Learn / Library / Expected value
Random number of coins
A fair -sided die is rolled to give a number from to . Then fair coins are flipped, and the payout is the number of heads. What is the variance of the payout?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Condition on the die result and split the variance accordingly.
Solution
- By the law of total variance, .
- Given , the head count has variance , so the first term is .
- Given the mean is , so the second term is .
- The total is .
Answer: