10 Consecutive Heads
题目
You flip a fair coin until you get heads in a row. What is the expected number of flips?
解析
先自己试一试,卡住了再打开提示。
提示 1
Build the run one head at a time. Let be the expected number of flips until you first have heads in a row. How is related to ?
提示 2
To get in a row, you must first get in a row, then flip once more. Heads: done. Tails: you are back at the start and still need flips on average.
查看解析
Let be the expected number of flips until you first see heads in a row, with .
Step 1: From heads in a row to . To get heads in a row, you first need in a row, which takes flips on average. Then you flip once more:
- Tails (probability ): the run is broken. You have used flips and are back at the start, so you still need more flips on average. Total: .
- Heads (probability ): you now have in a row and you are done. Total: .
Averaging the two cases:
Step 2: Simplify. The right side is . Subtract from both sides and multiply by :
Step 3: Solve. Start from and apply the rule ten times:
Each value is less than a power of : . (Adding to both sides of the rule gives , so doubles every step.)
Check: is the familiar expected wait for a single head.
Answer: