Complete · 60 Days39 / 143
MediumStochastic Processes
Flips Until Two Heads in a Row
Jane StreetCitadel
What is the expected number of fair-coin flips to get two heads in a row (HH)?
Approach
Track states: 0 heads so far vs. 1 head so far.
A tail always sends you back to the start state.
Related problems
Gambler’s RuinMediumExpected Flips for HTHHardRandom Walk — Expected StepsHardExpectation of GBMHardVariance of Brownian MotionEasyCovariance of Brownian MotionMedium
More in Stochastic Processes.