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
. 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 plus for the self-overlap of HTH with its own prefix H, giving .
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 solutionLessons behind this question
- Conditional Expectation and Variance Revisited
- Conditional Probability, Total Probability, and Bayes' Rule
- Worked Examples — Probability Trees, Monty Hall, and Bayesian Updating
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