Skip to content

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

33. The first flip can never end the game. Every later flip matches its predecessor with probability 12\tfrac12, so the number of additional flips is geometric with mean 22, giving 1+2=31+2=3.

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 solution

Lessons behind this question

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