Learn / Library / Expected value
Runs in flips
A fair coin is flipped times. A run is a maximal block of equal consecutive results. What is the expected number of runs?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
A new run starts whenever a flip differs from the previous one.
Solution
- The first flip always starts a run.
- Each of the other flips starts a new run when it differs from its predecessor, which has probability .
- The expectation is .
Answer: