Who Wins Penney's Game Between HHT and HTH
Last updated: November 29, 2026
Quick Overview
Two players each pick a three-flip pattern and a fair coin is flipped until one pattern appears. If one player picks HTH and the other picks HHT, what is the probability HHT appears first?
0
0
0 solved
Two players each pick a three-flip pattern and a fair coin is flipped until one pattern appears. If one player picks HTH and the other picks HHT, what is the probability HHT appears first?
Penney's game is a harder Google onsite follow-up to waiting-time puzzles. It tests whether the candidate realizes that a shorter expected wait does not determine who wins a race, and whether they can solve a competing-absorption Markov chain.
What the Interviewer Expects
- Set up states on shared prefixes of both patterns
- Solve absorption probabilities
- Get P(HHT first) = 2/3
- Explain non-transitivity of the game
- Contrast with expected waiting times 8 and 10
Key Topics to Cover
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
- Given any pattern the first player picks, how should the second player respond?
- Use Conway's leading numbers to compute the odds.
- What is the expected number of flips until the game ends?
- Why does a pattern with a shorter expected wait not always win?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Fair coin, independent flips, stop as soon as either HHT or HTH is the most recent three flips. We want . Note the standalone waits are and ...
Approach
Use states that capture the relevant recent history: start (or last flip T with no useful prefix), H, HH, HT. Let be the probability HHT wins from state . From the start state, tails change n...