TL;DR
Gambler's Ruin: A gambler with $a facing an opponent with $(N-a): ruin probability and expected duration. This concept is essential for quantitative trading interviews and is frequently tested at top firms.
By Valenke Exam Prep Team·Last updated 2026-06-01
Stochastic Processes
Gambler's Ruin
A gambler with $a facing an opponent with $(N-a): ruin probability and expected duration.
Prerequisites
The gambler's ruin problem: A gambler starts with \$ and at each step wins \$1 with probability or loses \$1 with probability . The game ends when the gambler reaches \$0 (ruin) or \$ (goal). What is the probability of ruin?
Fair game ():
P ( ruin ) = 1 − a N , P ( reach N ) = a N P(\text{ruin}) = 1 - \frac{a}{N}, \qquad P(\text{reach } N) = \frac{a}{N}
E [ duration ] = a ( N − a ) E[\text{duration}] = a(N - a)
Biased game (p ≠ q p \neq q ):
P ( ruin ) = ( q / p ) a − ( q / p ) N 1 − ( q / p ) N P(\text{ruin}) = \frac{(q/p)^a - (q/p)^N}{1 - (q/p)^N}
Intuition: Even with a slight edge, against an opponent with vastly more resources, you're likely to be ruined. A gambler with \$10 against a casino with \$10{,}000 is doomed even with p = 0.51 p = 0.51 . The asymmetry of resources overwhelms the slight edge.
Concrete example (fair game): You have \$20 and want to reach \$100.
P ( success ) = 20 / 100 = 20 % P(\text{success}) = 20 100 \frac{20}{100} = 20\% . Expected duration: 20 × 80 = 1,600 20 \times 80 = 1{,}600 steps.
Concrete example (biased game): You have \$10, goal is \$20, p = 0.49 p = 0.49 (house edge of 2%). Let r = q / p = 51 / 49 ≈ 1.0408 r = q/p = 51 49 \frac{51}{49} \approx 1.0408 .
P ( ruin ) = r 10 − r 20 1 − r 20 = 1.498 − 2.244 1 − 2.244 = − 0.746 − 1.244 ≈ 0.60 P(\text{ruin}) = \frac{r^{10} - r^{20}}{1 - r^{20}} = \frac{1.498 - 2.244}{1 - 2.244} = \frac{-0.746}{-1.244} \approx 0.60
Even starting halfway to the goal, you're ruined 60% of the time with a tiny house edge!
Derivation (martingale method): Wealth is a martingale (fair game) or can be transformed into one (biased game using ( q / p ) S n (q/p)^{S_n} ). Apply the optional stopping theorem at the stopping time T = min ( hit 0 , hit N ) T = \min(\text{hit } 0, \text{hit } N) .
When to use: Ruin probability analysis in finance and insurance. Position sizing and bankroll management. Understanding why under-capitalized traders fail even with an edge. Classic interview problem in quantitative finance.
Ready to practice for the Valenke Finance Exam?
Adaptive practice powered by Item Response Theory targets your weak areas. Start with 3 free sessions.
Start free practice →