Flipping until two successive results agree
Question
Keep flipping a fair coin and stop the first time a flip shows the same face as the flip just before it. On average, how many flips will you make in total?
Short answer
. The first flip can never end the game. Every later flip matches its predecessor with probability , so the number of additional flips is geometric with mean , giving .
Adapted from Joshi, Denson & Downes, Quant Job Interview Questions and Answers, Q3.7, p.81; question and answer rewritten by SelfMadeQuant.com.
See the hint and the full worked solution in the question bank (free account).
Open the worked solutionLessons behind this question
- The Optional Stopping Theorem
- Expectation, Mean, and Variance
- Conditional Expectation and Variance Revisited
Start with a free lesson: Expectation, Variance and Covariance is part of a free topic. Create a free account, no card needed, to read it in full with worked solutions.
Read it free