Learn / Library / Expected value
Heads then tails
A fair coin is flipped repeatedly. What is the expected number of flips until a heads is immediately followed by a tails (the pattern )?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Split the wait into stages: first get a heads, then get a tails right after it.
Solution
- Reaching the first heads takes flips on average.
- From then on, each flip is tails with probability and ends the game; a heads simply leaves you in the same state, so the second stage also takes flips on average.
- The total is .
Answer: