连续 n 个正面的期望抛掷次数
Coin Sequence
题目详情
抛一枚公平硬币,直到出现连续 个正面(heads)。问:期望抛掷次数是多少?
What is the expected number of tosses of a fair coin to get consecutive heads?
解析
一个经典结果(可用马尔可夫链或停时鞅证明)是
其中 表示首次出现 连 H 的抛掷次数。
Original Explanation
Let be the expectation. A known result (via Markov chain or a martingale stopping argument) is:
Martingale Sketch (brief)
- Imagine a sequence of “gamblers” each betting on hitting heads in a row.
- Once a gambler achieves heads in a row, they win dollars and the game stops.
- An analysis of the stopping-time martingale shows the stopping time has expectation .
Thus, on average, tosses are needed to see consecutive heads.