Objective
Compute the probability that a bettor or strategy with a positive edge still hits a disastrous level, and understand how that probability depends on bet size, edge and volatility.
Two kinds of ruin
- Fixed size. You stake the same amount each time. Wealth is an additive random walk, and it can reach zero. Ruin is literal.
- Fixed fraction. You stake a fixed fraction of current wealth (as Kelly does). Wealth is multiplicative and never reaches zero, but it can fall to 10% or 1% of the start.
In practice "ruin" means hitting any level at which you are forced to stop: a margin call, investor redemptions, a desk loss limit. So the general question is the probability of ever hitting a barrier, and the same mathematics answers both cases.
Gambler's ruin with unit bets
You have units, bet one unit per round, win with probability and lose with , and stop at or . Let be the probability of ruin. First-step analysis gives
A slicker route: with , the process is a martingale, because
Optional stopping at the exit time gives , so
Against an infinitely rich opponent ():
Ruin probability decays exponentially in the bankroll measured in bet units. Two consequences: halving the bet size doubles and therefore squares the ruin probability; and for a small edge, , so .
Worked example
bet size and ruin
A trader has $100,000 and takes repeated even-money trades that win with probability . What is the probability of ever going broke if each trade risks $5,000? If each risks $10,000?
Show solutionHide solution
Here .
- $5,000 trades: 20 units, .
- $10,000 trades: 10 units, .
Doubling the trade size took the ruin probability from 1.8% to 13.4%, and indeed . The small-edge approximation gives for the first case, very close.
The continuous version: a drifting Brownian motion
Let with , starting at 0. What is the probability it ever reaches ?
Look for such that is a martingale. Its drift is , which vanishes for . With an upper barrier , optional stopping gives , and letting :
The second form is the useful one: the exponent is twice the Sharpe ratio times the barrier distance measured in units of volatility. The unit-bet walk is the discrete analogue: , , giving as above.
For a strategy whose log wealth drifts at with volatility , the probability of ever losing a fraction of starting wealth is .
Fixed fraction: no ruin, but deep drawdowns
Bet fraction of wealth at even odds. Now look for with a martingale:
At the Kelly fraction , works exactly: . So is a martingale. When wealth first falls to or below, ; on paths that never fall that far, . Optional stopping gives
A full-Kelly bettor has roughly a 50% chance of halving at some point, a 10% chance of losing 90%, and a 1% chance of losing 99%. The inequality is an equality in the continuous limit: with drift and volatility , Kelly's gives log drift and log volatility , so and the probability is . In the discrete game the last step overshoots the barrier, so the probability is slightly less than .
These numbers do not depend on how large the edge is. That is the hidden cost of full Kelly.
Worked example
Kelly versus fixed size
With at even odds and $100,000, compare (a) a Kelly bettor staking 10% of current wealth and (b) a fixed-size bettor staking $10,000 each time. For each, what is the chance of ever going broke, and of ever falling to $50,000?
Show solutionHide solution
(a) Kelly. . The bettor never goes broke, since wealth is multiplied by 1.1 or 0.9. The probability of ever falling to half is at most ; a simulation (below) gives about 0.48. The probability of ever falling to a quarter is at most 0.25 (simulation about 0.23).
(b) Fixed size. 10 units, so ruin is . Falling to $50,000 means losing 5 units net: .
The fixed-size bettor is less likely to halve, because once he is ahead his stake becomes a small fraction of wealth. But he has a 13% chance of total loss, and his wealth grows only linearly. Kelly removes ruin at the price of constant proportional volatility, so halvings stay likely forever.
A short Monte Carlo check of the Kelly bound:
import math
import random
def prob_ever_falls_to(x, p, f, cap=100.0, trials=20_000, seed=0):
"""Estimate P(wealth ever falls to x * start) for a fixed-fraction bettor.
Each bet wins with probability p at even odds and stakes fraction f of
current wealth. Paths that reach `cap` times start are treated as safe.
"""
rng = random.Random(seed)
up, down = math.log(1 + f), math.log(1 - f)
lo, hi = math.log(x), math.log(cap)
hits = 0
for _ in range(trials):
lw = 0.0
while lo < lw < hi:
lw += up if rng.random() < p else down
hits += lw <= lo
return hits / trials
print(prob_ever_falls_to(0.5, p=0.55, f=0.10)) # full Kelly
print(prob_ever_falls_to(0.5, p=0.55, f=0.05)) # half Kelly
It prints about 0.477 and 0.119. Capping at 100 times the start changes the answer negligibly: from there, falling back to half is a further 200-fold drop. Half Kelly cuts the halving probability by a factor of four; the next lesson shows why.
Drawdown statistics
The drawdown at time is the distance below the running peak, , where is log wealth. The maximum drawdown over a period is the largest .
- No drift. For driftless Brownian motion, . It grows without bound like .
- Positive drift . The drawdown process is a Brownian motion with drift reflected at zero. Its long-run distribution is exponential with rate : at a random time, , and the average drawdown is .
- Every depth eventually happens. Each new peak is a fresh start with a positive chance of a drawdown of depth , so over an infinite horizon every depth is reached with probability 1. With drift, the expected maximum drawdown grows only logarithmically in , with coefficient .
Example: a strategy with arithmetic drift 10% and volatility 20% has log drift . The rate is , so the average log drawdown is (about 22% below the peak), the chance that at a random time it sits more than in log terms below its peak is , and the chance of ever halving from the start is .
Knowledge check
You bet one unit at a time against an infinitely rich house, winning each bet with probability 0.6. You start with 5 units. What is the probability you eventually go broke?
Knowledge check
A bettor stakes the full Kelly fraction on a favourable even-money bet, forever. Roughly what is the probability that their wealth ever falls to 25% of the starting amount?
Knowledge check
With fixed-size bets and a positive edge, your probability of ever going broke is 4%. You halve your bet size. What is it now, approximately?
Knowledge check
Log wealth follows a Brownian motion with drift and volatility a year. What is the probability that it ever falls below its starting level?
Key takeaways
- Unit-bet ruin against an infinite opponent is ; it decays exponentially in the bankroll measured in bet units, so halving bets squares the risk.
- For a drifting Brownian motion, : twice the Sharpe times the barrier in volatility units.
- Fixed-fraction betting cannot reach zero, but a full-Kelly bettor falls to a fraction of the start with probability about , whatever the edge.
- Drawdowns of a drifting strategy are exponentially distributed with mean ; with no drift the expected maximum drawdown grows like .
- Over a long enough horizon every drawdown depth occurs; loss limits closer than a few volatility units will be hit.
Practice problems
Finished reading?
Answer the 4 knowledge checks to complete this lesson (0 done).