Section 3.1 and 3.2
Expectation
You will be given this formula sheet on Checkpoints and the Final.
Discrete (3.1)
Question 3.1.1
The joint PMF of discrete random variables \(X\) and \(Y\) is given by:
| \(X \backslash Y\) | \(Y=0\) | \(Y=1\) | \(P(X=x)\) |
|---|---|---|---|
| \(X=0\) | 0.30 | 0.05 | 0.35 |
| \(X=1\) | 0.20 | 0.25 | 0.45 |
| \(X=2\) | 0.10 | 0.10 | 0.20 |
| \(P(Y=y)\) | 0.60 | 0.40 | 1.00 |
- Compute \(E(X)\)
- Compute \(E(XY)\)
Question 3.1.2
Suppose \(X\) and \(Y\) have joint probability:
\[ p_{X,Y}(x,y) = \begin{cases} 1/9 & x = -4, y = -2\\ 2/9 & x = 5, y = -2\\ 3/9 & x = 9, y = -2\\ 2/9 & x = 9, y = 0\\ 1/9 & x = 9, y = 4\\ 0&\text{otherwise} \end{cases} \] (a) What is \(\mathbb{E}(X)\)?
- What is \(\mathbb{E}(X^2)\)?
- What is \(\mathbb{E}(e^{tx})\)?
Question 3.1.3
Suppose you flip one fair coin and roll one fair six-sided die. Let \(X\) be the product of the numbers of heads (i.e., 0 or 1) times the number showing on the die. Compute \(\mathbb{E}(X)\).
Question 3.1.4
A coffee shop records the number of drinks \(X\) in each mobile order. The PMF of \(X\) is \[ p_X(x) = \frac{x}{c} \quad \text{for } x \in \{1, 2, 3, 4\}, \] and \(p_X(x) = 0\) otherwise.
Find the constant \(c\) that makes \(p_X\) a valid PMF.
Compute \(E[X]\).
Compute \(E[X^2]\). Is \(E[X^2] = (E[X])^2\)?
The shop’s cost (in dollars) to process an order with \(X\) drinks is \(C = 2X^2 + 1\). Find the expected cost of processing an order, \(E[C]\).
Continuous (3.2)
Question 3.2.1
Let \(f_X(x) = 2xI_{(0, 1)}(x)\).
- What is \(\mathbb{E}(X)\)?
- What is \(\mathbb{E}(e^{tx})\) for \(t > 0\)?
Question 3.2.2
Let \(X\) and \(Y\) be jointly absolutely continuous random variables, with joint density function \[ f_{X,Y}(x,y) = \frac{3}{2}x^2I_{(0,1)}(x)I_{(0,2)}(y) \]
What is \(E(XY)\)?
Question 3.2.3
Let \(X\) and \(Y\) be jointly absolutely continuous random variables, with joint density function \[ f_{X,Y}(x,y) = 6xy + \frac{9}{2}x^2y^2I_{(0,x)}(y)I_{(0,1)}(x) \]
What is \(E(X^3)\)?
Question 3.2.4
Suppose \(X \sim \textrm{Gamma}(\alpha, \lambda )\). What is \(\mathbb{E}[X^2]\)?