Upstart · Probability & Brainteasers
Analyze HT vs HH stopping-time probabilities
TrueInterview
October 7, 2026 · 1 min read
We toss a fair coin repeatedly and stop at the first appearance of either HT (A wins) or HH (B wins). A tie cannot happen.
-
Find exact expressions for and .
-
For , derive the probability mass function of the stopping time, giving and .
-
Calculate the expected stopping time .
-
Generalize part (1) to a biased coin where , and give closed-form formulas for and .
-
Verify your results by simulation with at least trials, and compare the empirical PMFs to the theoretical PMFs.
Overview: The question assesses understanding of discrete probability, stopping-time analysis, pattern occurrence in Bernoulli sequences, deriving PMFs and expectations, and generalizing to biased coins.
Loading comments…