Skip to content

Waiting time for the pattern HTH

Question

A fair coin is tossed repeatedly. What is the expected number of tosses needed until the sequence heads, tails, heads appears for the first time as three consecutive outcomes?

Short answer

1010. Set up states for progress (nothing, H, HT) and solve the first-step equations; equivalently, by the overlap (martingale/gambler) argument, the expected wait is 232^3 plus 212^1 for the self-overlap of HTH with its own prefix H, giving 8+2=108+2=10.

Adapted from QuantQuestions.io; 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