2023-10-18
Example 1
Suppose you roll a fair 6-sided die. What value do you expect to get?
Definition: Expected value
The expected value of a discrete r.v. \(X\) that takes on values \(x_1, x_2, \ldots, x_n\) is \[\mathbb{E}[X] = \sum_{i=1}^n x_ip_X(x_i).\]
Example 2
Suppose the die is 6-sided, but not fair. And the probabilities of each side is distributed as:
\(x\) | \(p_X(x)\) |
---|---|
1 | 0.10 |
2 | 0.05 |
3 | 0.02 |
4 | 0.30 |
5 | 0.50 |
6 | 0.03 |
What value do you expect to get on a roll?
Example 3
Suppose \[X = \left\{ \begin{array}{ll} 1 & \quad \mathrm{with\ probability}\ p \quad\mathrm{(success)}\\ 0 & \quad \mathrm{with\ probability}\ 1-p \quad\mathrm{(failure)} \end{array} \right.\] Find the expected value of \(X\).
Example 5
Suppose \[X = \left\{ \begin{array}{ll} 1 & \quad \mathrm{with\ probability}\ p \\ -1 & \quad \mathrm{with\ probability}\ 1-p \end{array} \right.\] Find the expected value of \(X\).
Example 6
A ghost is trick-or-treating. It comes to a house where it is known that there are 30 candies in the bag and only one is a watermelon Jolly Rancher, which is the ghost’s favorite. The ghost takes pieces of candy without replacement until it gets the watermelon Jolly Rancher. How many pieces of candy do we expect the ghost to take?