Johann has fair coins. He flips all the coins. Any coin that lands on tails is tossed again. Coins that land on tails on the second toss are tossed a third time. What is the expected number of coins that are now heads?
- A)
- B)
- C)
- D)
- E)
Answer
D
Key insight
A coin stays tails only after three tails in a row, probability 1/8; so each coin is heads with probability 7/8, and 64 * 7/8 = 56.
Solution
Look at one coin. It finishes as heads unless it shows tails on the first toss, tails again on the second, and tails again on the third. Those three tosses are independent, so
The expected number of heads is the sum over the coins of the probability that each is heads (the coins need not be independent for this to hold, though they are):
The answer is .
Why this works
Linearity of expectation turns "expected number of coins with a property" into times the probability one coin has it, with no need to consider the joint distribution. The complement is easier than the event itself: "heads at some point in up to three tries" is the opposite of "tails, tails, tails." Any process that retries on failure a fixed number of times has success probability .
Alternative approach
Track the expected counts round by round: about heads after toss one, more after the tails are retossed, then more from the last . Total .
The trap
Stopping after two tosses (probability 3/4 heads, giving 48) or adding 1/2 + 1/4 + 1/8 without recognizing it equals 7/8.
Common mistakes
- Stopping after two tosses (probability 3/4 heads, giving 48) or adding 1/2 + 1/4 + 1/8 without recognizing it equals 7/8.
- Retossing the heads as well as the tails, or thinking that a coin flipped three times has a chance of heads overall, giving .
Techniques
Count the complement and subtract from the total