Unit 3 · The Quant Math Toolkit — Session 06 of 06

Bet Sizing, Kelly & Ruin

Two traders with the same edge can end up in opposite places, one compounding and one wiped out. The only difference is how much of their money they put on each bet. This session derives the bet size that makes wealth grow fastest, the Kelly criterion, then shows why professionals bet less than it says: over-betting costs more than under-betting, you never know your edge exactly, and halving your money is far more likely than it feels. The core move: size to maximise growth, shrink for what you don't know about your edge, and cap for the losses you can't live with.

DURATION 1.5 h + lab LEVEL Foundations TRACKS QR · QT · QD · IND HANDS-ON 10,000 bettors and 20,000 researchers, simulated

3.6.1 Same edge, different fates

A positive edge is necessary but not enough. How much of your wealth you stake on each bet decides whether the edge compounds into wealth or grinds you down.

Take the simplest bet with an edge: a coin that lands your way 55% of the time, paying even money. Stake $1 and you win $1 or lose it, so the expected value is $0.10 per dollar staked. Now hand the coin to 10,000 simulated bettors for 1,000 flips each. Every bettor stakes a fixed fraction of whatever they have at the time, and the only thing that differs between groups is that fraction. The lab uses the same flips for every group, so luck is identical:

  • staking 2.5% of wealth, the median bettor turns $1 into $8.92;
  • staking 10%, the median bettor turns $1 into $150;
  • staking 25%, the median bettor turns $1 into $0.0012, and 81% of bettors end with less than they started.

Same coin, same edge, same luck. Deciding how much to put on each bet is called bet sizing, and in this example it is the difference between a hundredfold gain and losing almost everything. You met the reason in Session 3.1: when each bet stakes what the last one left you, wealth multiplies, and what almost every bettor experiences is the average log return per bet, not the average return. That average log return is the growth rate, g=𝔼[ln⁡(Wt+1/Wt)]g = \E[\ln(W_{t+1}/W_t)]: after nn bets typical wealth is about W0engW_0 e^{ng}, because the law of large numbers applies to the sum of the logs. Plot gg against the fraction staked and you get the picture this whole session hangs on (fig 3.6.1).

THE GROWTH CURVE — one edge, every bet size (a sketch, not to scale) UNDER-BETTING safe, but slow KELLY fastest growth OVER-BETTING less growth, more risk RUIN ZONE growth below zero: wealth drifts toward 0 ↑ growth rate fraction of wealth bet → f* (Kelly) ≈ 2f*: growth back to 0 ½f* and 1½f*: same growth, 3× the volatility Flat near the top, a cliff past 2f*: under-bet if you must, never over-bet.
fig 3.6.1 — the growth curve: growth rises to a peak at the Kelly fraction f*, falls back to zero near twice that, and turns negative beyond

Read it from left to right. Stake nothing and your wealth stands still. Stake a little and you grow slowly but safely. Growth peaks at one fraction, f⋆f^\star, the Kelly criterion's answer. Past the peak you get less growth for more risk. Past roughly 2f⋆2f^\star the growth rate turns negative: a bet you win on average makes almost every bettor poorer over time, just as the all-in coin of Session 3.1 did.

📌 Key idea — the size of a bet is a second decision, as important as the first

Finding an edge answers "should I bet?". Sizing answers "how much?", and a wrong answer to the second question can destroy a right answer to the first. For wealth that compounds, the size to aim for is the one that maximises the growth rate, and every size above it is strictly worse.

3.6.2 The Kelly bet, derived

Maximise the expected log of wealth and the optimal bet falls out in two lines. It turns out to be the edge divided by the odds.

Stake a fraction ff of wealth on a bet that pays bb to 1 with probability pp and loses the stake with probability q=1−pq = 1 - p. A win multiplies wealth by 1+bf1 + bf, a loss by 1−f1 - f. The growth rate per bet is the probability-weighted average of the log of those multipliers. Set its derivative to zero:

g(f)=pln⁡(1+bf)+qln⁡(1−f),g′(f)=pb1+bf−q1−f=0⟹f⋆=p−qb=bp−qbg(f) = p\ln(1 + bf) + q\ln(1 - f), \qquad g'(f) = \frac{pb}{1 + bf} - \frac{q}{1 - f} = 0 \;\Longrightarrow\; f^\star = p - \frac{q}{b} = \frac{bp - q}{b}

The numerator bp−qbp - q is the expected profit per dollar staked, the edge; the denominator is the odds. So Kelly stakes edge over odds. For the coin, f⋆f^\star = 0.55 − 0.45 = 10% of wealth, and the growth rate peaks at 0.50% per bet, enough to multiply typical wealth by about 150 over 1,000 bets. The second derivative is negative everywhere, so this is a maximum, and there is only one. A bet with no edge gets f⋆≤0f^\star \le 0: don't bet.

The same two lines work for any bet with two outcomes. If a win adds a fraction uu of the stake and a loss removes a fraction dd, then f⋆=p/d−q/uf^\star = p/d - q/u. Take the +50%/−40% coin of Session 3.1, which, staked in full, has a growth rate of −0.0527: a typical change of −5.1% a round. Its Kelly fraction is 0.5/0.4−0.5/0.50.5/0.4 - 0.5/0.5 = 25%, and staking a quarter of wealth each round turns the same coin into a winner: a growth rate of 0.0062, or about +0.6% a round for the typical player.

Maximising 𝔼[ln⁡W]\E[\ln W] is what an investor with log utility would do: someone who values each extra dollar in inverse proportion to how many they already have, so that doubling their money is worth exactly as much as halving it costs. John Kelly, a Bell Labs scientist, reached the same rule from information theory: a gambler who receives tips over a noisy private wire should bet so as to maximise the growth rate of capital, and the best achievable rate equals the rate at which the wire transmits information (Kelly 1956). Breiman (1961) proved the two properties that made it famous: over a long run of bets, the Kelly bettor's wealth pulls ahead of any essentially different strategy's, almost surely, and it reaches a distant wealth goal fastest on average.

The lab checks the formula against the 10,000 bettors of §3.6.1, asserting that each simulated growth rate lies within four Monte Carlo standard errors of g(f)g(f):

def growth_rate_binary(f, p: float, b: float):
    """Expected log growth per bet when staking a fraction f of wealth on a p-to-win, b-to-1 bet."""
    return p * np.log1p(b * f) + (1 - p) * np.log1p(-f)


def kelly_binary(p: float, b: float) -> float:
    """Kelly fraction for a bet paying b-to-1 with win probability p: f* = p − q/b."""
    return p - (1 - p) / b

wins = rng_bin.random((N_BETS, N_BETTORS)) < P_WIN     # one row per bet, one column per bettor
for f in FRACTIONS:
    log_step = np.where(wins, np.log1p(ODDS * f), np.log1p(-f))
    log_wealth = log_step.cumsum(axis=0)
    growth = log_wealth[-1] / N_BETS                      # each bettor's average log growth per bet
    theory = growth_rate_binary(f, P_WIN, ODDS)
    se = growth.std(ddof=1) / np.sqrt(N_BETTORS)
    assert abs(growth.mean() - theory) < 4 * se, f"f={f}: simulated growth rate off by more than 4 SE"
Fraction staked× KellyGrowth per bet: theory · simulatedMedian wealth after 1,000 bets, per $1Bettors behind after 1,000 bets
2.5%0.250.219% · 0.219%$8.920.3%
5%0.500.375% · 0.375%$42.630.8%
10% (Kelly)1.000.501% · 0.500%$149.665.6%
15%1.500.374% · 0.372%$41.9121.1%
20%2.00−0.014% · −0.016%$0.8751.4%
25%2.50−0.673% · −0.675%$0.001280.9%
GROWTH RATE PER BET VS FRACTION OF WEALTH STAKED (55/45 EVEN-MONEY BET) −0.75% −0.50% −0.25% 0.00% 0.25% 0.50% 0.75% 0 0.05 0.1 0.15 0.2 0.25 growth per bet growth per bet: −0.67% −0.67%
fig 3.6.2 — the growth rate per bet for the 55/45 even-money coin, by fraction of wealth staked (x-axis): the hill of fig 3.6.1, computed. Grey line: zero growth

Growth returns to zero at a stake of 19.87%, just under 2f⋆2f^\star; at exactly 2f⋆2f^\star it is −0.014% per bet. For a two-outcome bet "twice Kelly gives zero growth" is a very good approximation, and in the continuous case of §3.6.4 it is exact.

3.6.3 Over-betting costs more than under-betting

Near its peak the growth curve is almost symmetric. The risk around it is not, and that asymmetry is why nobody sensible bets more than Kelly.

When the bets are small relative to wealth (or when you resize continuously, §3.6.4), the growth curve becomes an exact parabola. Measure the stake as a multiple cc of Kelly, f=cf⋆f = c f^\star:

g(cf⋆)=(2c−c2)g(f⋆),volatility∝c,ℙ(wealth ever falls to a fraction x of today’s)=x2/c−1g(cf^\star) = (2c - c^2)\, g(f^\star), \qquad \text{volatility} \propto c, \qquad \Prob(\text{wealth ever falls to a fraction } x \text{ of today's}) = x^{2/c - 1}

The first formula says half Kelly and one-and-a-half Kelly grow at the same rate, three-quarters of the maximum. The second says the bigger bet carries three times the volatility for that same growth. The third, from Thorp (2006, §7.4), is the one that stings: the chance of ever seeing your wealth halve is one in two at full Kelly, one in eight at half Kelly and about four in five at one-and-a-half Kelly. The exponent depends only on cc, not on how good the edge is: a better edge makes everything happen faster, but not less often.

Multiple of Kelly, ccShare of the maximum growthVolatility, × full Kelly'sChance of ever falling to half
¼44%0.250.8%
½ (half Kelly)75%0.5012.5%
1 (full Kelly)100%1.0050.0%
1½75%1.5079.4%
20%2.00100.0%
FULL KELLY vs HALF KELLY — the continuous-limit formulas, bars drawn to one scale FULL KELLY · c = 1 GROWTH all of the maximum VOLATILITY the full amount EVER HALVED one chance in two HALF KELLY · c = ½ GROWTH three-quarters VOLATILITY half EVER HALVED one chance in eight Half Kelly gives up a quarter of the growth to halve the volatility and quarter the chance of halving.
fig 3.6.3 — full vs half Kelly, to one scale: growth (2c − c² of the maximum), volatility (c times full Kelly's) and the chance of ever falling to half (0.5 to the power 2/c − 1)

The lab's two-outcome coin shows the same shape, slightly tilted against over-betting because ln⁡(1−f)\ln(1 - f) plunges faster than ln⁡(1+bf)\ln(1 + bf) rises: half Kelly keeps 74.9% of the peak growth and one-and-a-half Kelly only 74.6%.

🧭 Margin note — why full Kelly halves with probability at most one half, for any bet

The first-order condition g′(f⋆)=0g'(f^\star) = 0 can be rewritten as 𝔼[1/(1+f⋆X)]=1\E[1/(1 + f^\star X)] = 1, where XX is the bet's payoff per dollar. So at full Kelly the ratio W0/WtW_0/W_t is a fair game (a martingale), and a standard inequality for fair games says it reaches 2 with probability at most ½. In other words, wealth ever halves with probability at most ½, whatever the bet. At cc times Kelly the exponent 2/c−12/c - 1 becomes the root RR of 𝔼[(1+fX)−R]=1\E[(1 + fX)^{-R}] = 1, and the bound is xRx^R. The lab solves for RR on the coin: 3.008 at half Kelly, where the continuous formula says 3, and exactly 1.000 at full Kelly. Its bettors at full Kelly halved within 1,000 bets 47.0% of the time, inside the bound.

⚠️ Pitfall — "Kelly is the optimum, so a bit more can't hurt much"

Past the peak you pay twice: less growth and more risk. Any stake above Kelly is beaten on both counts by a stake the same distance below it. Over-betting is also the error you are most likely to make, because it is what happens when you overestimate your edge (§3.6.5). If you are unsure which side of the peak you are on, you are safer on the left.

3.6.4 Continuous Kelly is growth-optimal leverage

For a position you can resize at any time, Kelly is not new. It is the growth-optimal leverage you met in Session 2.3, now read as a bet size.

Put a fraction ff of wealth into an asset with expected return μ\mu and volatility σ\sigma, keep the rest in cash at rfr_f, and rebalance continuously. The growth rate is the formula Session 2.3 wrote for leverage LL, with LL renamed ff:

g(f)=rf+f(μ−rf)−12f2σ2,f⋆=μ−rfσ2,g(f⋆)−rf=12SR2g(f) = r_f + f(\mu - r_f) - \tfrac12 f^2\sigma^2, \qquad f^\star = \frac{\mu - r_f}{\sigma^2}, \qquad g(f^\star) - r_f = \tfrac12\,\SR^2

Continuous Kelly is that session's L⋆L^\star. For its asset (μ\mu = 8%, σ\sigma = 20%, rfr_f = 3%) it is 1.25: full Kelly means 1.25 dollars of exposure per dollar of capital. The last formula is sobering: with a Sharpe ratio SR\SR of 0.25, the best possible excess growth rate over cash is only 3.125% a year, bought with 25.0% volatility. Half Kelly's excess growth rate is 2.34% at 12.5% volatility, the "75% of the growth for half the volatility" that the same session showed for leverage. And at c=2c = 2 the excess growth is exactly zero: 2.5× leverage compounds like cash.

The lab re-checks the formula with daily rather than continuous rebalancing: 4,000 paths of 10 simulated years each, the same random shocks at every multiple of Kelly, and each mean growth rate asserted within four standard errors of theory.

Multiple of KellyFraction in the assetVolatilityGrowth rate: theorySimulated ± SE
½0.62512.5%5.34%5.25% ± 0.06%
11.25025.0%6.12%5.93% ± 0.12%
1½1.87537.5%5.34%5.05% ± 0.19%
22.50050.0%3.00%2.61% ± 0.25%

Kelly and mean-variance

Look again at g(f)g(f): expected excess return minus half the variance. That is the mean-variance objective f(μ−rf)−γ2f2σ2f(\mu - r_f) - \tfrac{\gamma}{2}f^2\sigma^2 with risk aversion γ=1\gamma = 1. Merton (1969) showed that an investor with constant relative risk aversion γ\gamma holds (μ−rf)/(γσ2)(\mu - r_f)/(\gamma\sigma^2) in this setting, so log utility is the case γ=1\gamma = 1, and betting a fraction cc of Kelly is what a more risk-averse investor with γ=1/c\gamma = 1/c would choose: half Kelly is γ=2\gamma = 2. The two frameworks agree when prices follow geometric Brownian motion and you rebalance continuously. They part ways when either fails:

Kelly (log utility)Mean-variance
Maximisesthe growth rate, 𝔼[ln⁡W]\E[\ln W]mean minus γ2\tfrac{\gamma}{2} × variance
Usesthe whole return distributiontwo moments only
Risk aversionfixed at 1a free choice, γ\gamma
A chance of losing everythingnever taken (ln⁡0=−∞\ln 0 = -\infty)can be recommended, if mean and variance look good
Many assetsf⋆=Σ−1(μ−rf𝟏)f^\star = \Sigma^{-1}(\mu - r_f\mathbf 1)the same direction, scaled by 1/γ1/\gamma
Weak spotboth are only as good as the estimate of μ\mu (§3.6.5)
💡 Looking ahead — many bets at once

With several assets, continuous Kelly is f⋆=Σ−1(μ−rf𝟏)f^\star = \Sigma^{-1}(\mu - r_f\mathbf 1), where Σ\Sigma is the covariance matrix: the tangency portfolio, levered to the growth-optimal scale. It inherits every estimation problem of Session 9.1 — Mean-Variance & Why It Breaks, which is why Session 9.5 — Sizing, Vol Targeting & Allocating Across Strategies allocates across strategies with fractional Kelly and volatility targeting rather than the raw formula.

3.6.5 You never know your edge

Kelly assumes you know the edge exactly. You never do, and the growth curve punishes a noisy estimate in a way that has a clean formula: the correct response is to bet a fraction of Kelly.

Session 2.3 and Session 1.4 showed that mean returns are the hardest thing in finance to estimate: after YY years the standard error of an estimated mean is σ/Y\sigma/\sqrt{Y}. Volatility is far easier, because daily data pin it down. The lab makes this concrete with 20,000 simulated researchers. Each sees 5 years of daily prices from the asset of §3.6.4, estimates μ\mu, sizes at Kelly on that estimate, and then trades for the next 10 years. After 5 years the standard error of μˆ\hat\mu is 8.9% against a true excess return of 5%; for σˆ\hat\sigma it is 0.4%, so the lab treats σ\sigma as known. Nine in ten estimates of μ\mu fall between −6.7% and 22.6%, and the middle 90% of the Kelly fractions built on them run from −2.4 to 4.9. 29% of researchers go short an asset that truly rises, and 21% lever it more than threefold.

Sizing ruleGrowth rate: theory · simulatedMedian CAGR, 10 yearsLost moneyDid worse than cash
Full Kelly, true μ\mu (a benchmark nobody has)6.12% · 6.15%6.3%22%35%
Full Kelly on the 5-year estimate−3.88% · −3.71%1.4%45%59%
Half Kelly on the estimate2.84% · 2.89%3.1%27%49%
k⋆k^\star = 0.24 of Kelly on the estimate3.74% · 3.76%3.3%13%43%
10-YEAR CAGR OF 20,000 RESEARCHERS SIZING AT FULL KELLY ON A 5-YEAR ESTIMATE −100% −50% 0% 50% −85% to −82% −82% to −80% −80% to −78% −78% to −75% −75% to −72% −72% to −70% −70% to −68% −68% to −65% −65% to −62% −62% to −60% −60% to −57% −57% to −55% −55% to −52% −52% to −50% −50% to −48% −48% to −45% −45% to −42% −42% to −40% −40% to −38% −38% to −35% −35% to −32% −32% to −30% −30% to −27% −27% to −25% −25% to −22% −22% to −20% −20% to −17% −17% to −15% −15% to −12% −12% to −10% −10% to −7% −7% to −5% −5% to −2% −2% to 0% 0% to 3% 3% to 5% 5% to 7% 7% to 10% 10% to 12% 12% to 15% 15% to 18% 18% to 20% 20% to 23% 23% to 25% 25% to 28% 28% to 30% 30% to 33% 33% to 35% 35% to 38% 38% to 40% 40% to 43% 43% to 45% 45% to 48% 48% to 50% 50% to 53% 53% to 55% 55% to 58% 58% to 60% 60% to 62% 62% to 65% 65% to 68% 68% to 70% 73% to 75% 75% to 78% 78% to 80% lost money ←
fig 3.6.4 — 10-year CAGR of the 20,000 researchers who sized at full Kelly on their own 5-year estimate of the mean (coral: lost money). A few of the luckiest, above the right edge, are counted in the last bar
10-YEAR CAGR OF 20,000 RESEARCHERS SIZING AT HALF KELLY ON A 5-YEAR ESTIMATE −100% −50% 0% 50% −45% to −42% −42% to −40% −40% to −38% −38% to −35% −35% to −32% −32% to −30% −30% to −27% −27% to −25% −25% to −22% −22% to −20% −20% to −17% −17% to −15% −15% to −12% −12% to −10% −10% to −7% −7% to −5% −5% to −2% −2% to 0% 0% to 3% 3% to 5% 5% to 7% 7% to 10% 10% to 12% 12% to 15% 15% to 18% 18% to 20% 20% to 23% 23% to 25% 25% to 28% 28% to 30% 30% to 33% 33% to 35% 35% to 38% 38% to 40% 40% to 43% 43% to 45% 45% to 48% 48% to 50% 50% to 53% 53% to 55% 55% to 58% 58% to 60% 60% to 62% 62% to 65% 68% to 70% 70% to 73% 75% to 78% lost money ←
fig 3.6.5 — the same researchers and the same futures at half Kelly, on the same x-axis: fewer blow-ups, and a tighter spread around a still-modest centre

Plug-in full Kelly is a disaster: its expected growth rate, −3.88% a year, is below the 3% that cash pays, even though the asset is genuinely good. The reason has a formula. The estimated Kelly fraction fˆ=(μˆ−rf)/σ2\hat f = (\hat\mu - r_f)/\sigma^2 is right on average, with variance 1/(σ2Y)1/(\sigma^2 Y), and because the growth curve is a parabola, its errors cost growth in proportion to that variance. Sizing at a multiple kk of the estimate gives

𝔼[g(kfˆ)]=rf+kSR2−k22(SR2+1Y),k⋆=YSR21+YSR2=t21+t2,t=SRY\E\big[g(k\hat f)\big] = r_f + k\,\SR^2 - \frac{k^2}{2}\Big(\SR^2 + \frac{1}{Y}\Big), \qquad k^\star = \frac{Y\SR^2}{1 + Y\SR^2} = \frac{t^2}{1 + t^2}, \quad t = \SR\sqrt{Y}

At k=1k = 1 the estimation error costs 1/(2Y)1/(2Y) of growth a year, 10 percentage points with five years of data, whatever the asset. The best multiplier k⋆k^\star depends only on tt, the t-statistic your data can be expected to give the edge (Session 1.4): here tt = 0.56 and k⋆k^\star = 0.24. Kan & Zhou (2007) derived the optimal scaling for mean-variance portfolios built on estimated means and covariances; applied to one asset and five years of daily data, their formula gives 0.237 against our 0.238. Baker & McHale (2013) show that shrinking the plug-in Kelly bet improves out-of-sample growth in betting too. It is a shrinkage estimator in disguise, and Session 5.3 — Bayesian Thinking: Priors, Shrinkage & Updating gets there properly, by shrinking μˆ\hat\mu toward a prior before you size.

Best fraction of Kelly, k⋆k^\star5 years of data10 years20 years
Sharpe ratio 0.250.240.380.56
Sharpe ratio 0.50.560.710.83
Sharpe ratio 1.00.830.910.95

Two caveats make the real answer smaller still. The table assumes your estimate is merely noisy; a backtest chosen as the best of many is also biased upward, which Session 6.7 measures. And it assumes the edge does not change, which Session 1.4 warned it will. Even the benchmark researcher who is told the true μ\mu did worse than cash over ten years 35% of the time.

📌 Key idea — fractional Kelly is not timidity; it is the right answer to an estimated edge

Fractional Kelly means staking a fixed fraction c<1c \lt 1 of the Kelly amount. Because you only ever have an estimate of your edge, the growth-optimal bet on that estimate is a fraction of Kelly, and the less certain the edge, the smaller the fraction. Half Kelly is a common rule of thumb; with a Sharpe ratio of 0.25 and five years of data, the formula says 0.24.

⚠️ Pitfall — "my backtest says Kelly is 3× leverage, so 2× is conservative"

The 3× was computed from an estimated mean, probably the best-looking one among many you tried. In the lab, 21% of researchers reached a Kelly fraction above 3 from an asset whose true Kelly fraction is 1.25. Before trusting a Kelly number, compute the t-statistic of the edge behind it: below 1, k⋆=t2/(1+t2)k^\star = t^2/(1 + t^2) says bet less than half of Kelly; below 0.5, less than a fifth.

3.6.6 Ruin, halving and the drawdown cap

Growth rates describe the long run. You have to survive the short run to get there, so the last input to a bet size is how deep a fall you can live with.

Risk of ruin is the probability that wealth ever reaches a level from which you cannot, or will not, carry on: zero, a margin call, or the loss at which you or your investors stop the strategy. How you size decides which kind of ruin you face. Someone who stakes a fixed dollar amount can be wiped out: with nn stakes' worth of bankroll on the lab's 55/45 coin, the classical gambler's-ruin result (Feller 1968, ch. XIV) is about (q/p)n(q/p)^n. A bettor who stakes a fraction of current wealth can never hit zero, because each loss is smaller than the last, but can fall a long way. The lab plays both from a $100 bankroll until it reaches $1,000 or is gone, with 20,000 players per rule:

Sizing ruleWhat counts as ruinFormulaSimulated
Fixed $10 stakes (10 stakes of bankroll)$013.4%13.6%
Fixed $5 stakes (20 stakes)$01.8%1.8%
Full Kelly, 10% of current wealthever below $10, a 90% lossat most 10.0%9.0%
Half Kelly, 5% of current wealthever below $10at most 0.10%0.07%

Risk of ruin with fixed stakes falls exponentially with the bankroll measured in stakes: 30 stakes would take it to 0.24%. Proportional sizing removes ruin at zero in theory. In practice minimum trade sizes, costs and overnight gaps (Session 3.2) bring it back, which is one more reason to stay below Kelly.

How likely is a 50% loss?

For a continuously rebalanced position, the chance of touching a given level within a horizon is the barrier problem of Session 3.5: wealth at cc times Kelly, measured against cash (i.e. Wt/(W0erft)W_t / (W_0 e^{r_f t}), so cash's own compounding is netted out), is a geometric Brownian motion with drift cf⋆(μ−rf)cf^\star(\mu - r_f) and volatility cf⋆σcf^\star\sigma. Every probability below is that relative-to-cash figure, not the chance of nominal wealth halving — cash compounding for 10 years is itself a real cushion. The lab feeds the relative process into quantnb.stats.p_touch (with its correction for checking only once a day) and compares it with 20,000 simulated 10-year paths of the same asset:

Multiple of KellyFalls to half (relative to cash) within 10 years: formula · simulatedEver falls to half (relative to cash)Drawdown of −50% or worse relative to cash, within 10 years (simulated)
½2.4% · 2.4%12.5%6.1%
¾12.4% · 12.5%31.5%30.9%
125.4% · 25.6%50.0%60.9%
1½48.6% · 48.5%79.4%93.7%
265.3% · 65.0%100.0%99.6%
CHANCE OF LOSING 50% RELATIVE TO CASH, BY MULTIPLE OF KELLY (1 = FULL KELLY) ever, no time limit within 10 years from a peak, within 10 years (simulated) 0% 20% 40% 60% 80% 100% 0.5 1 1.5 2 ever, no time limit ever, no time limit: 100% within 10 years within 10 years: 65% from a peak, within 10 years (simulated) from a peak, within 10 years (simulated): 100% ever: 100% from a peak: 100% within 10 y: 65%
fig 3.6.6 — the chance of losing half relative to cash, by multiple of Kelly on the x-axis: ever (Thorp's formula), within 10 years (the barrier formula of Session 3.5) and from a running peak within 10 years (simulated)

The last column is the one that hurts. A formula that starts from today's wealth understates the pain, because a drawdown is measured from the running peak, and peaks keep rising. At full Kelly on this asset, 61% of paths suffered a drawdown of −50% or worse relative to cash within ten years (the distribution of the maximum drawdown is the subject of Session 9.8 — Drawdowns, Copulas, Tail Risk & Stress Tests). Few people, and fewer investors, sit through that.

Turning a pain limit into a cap

Invert Thorp's formula and a drawdown tolerance becomes a maximum bet. If you will accept at most a probability δ\delta of ever falling to a fraction xx of today's wealth, bet no more than

c≤21+ln⁡δ/ln⁡xc \;\le\; \frac{2}{1 + \ln\delta / \ln x}

times Kelly (all three percentages below still relative to cash, as above). "At most a 10% chance of ever halving" allows 0.46 of Kelly; 5% allows 0.38; "at most a 20% chance of ever losing 20%" allows 0.24. Busseti, Ryu & Boyd (2016) solve the general version, maximising growth subject to a drawdown-probability limit as a convex program, the kind Session 3.4 taught you to state.

3.6.7 From Kelly to a position, and the debate

Kelly is one step in a six-step sizing workflow. The steps around it decide whether it helps you or hurts you, and whether to use it at all is still argued about.

THE SIZING WORKFLOW — from an estimated edge to a position 1 · EDGE estimate μ − r_f (or p and b) 2 · ERROR BARS its standard error and t-statistic 3 · KELLY f* = edge ÷ σ² (or p − q/b) 4 · SHRINK × t²/(1 + t²), or half Kelly 5 · CAP the multiple your drawdown limit allows 6 · SIZE the smaller of 4 and 5, as a position bug: the best backtest's mean bug: skipping it bug: σ from calm years only bug: full Kelly on an estimate bug: no limit written down bug: rounding up Kelly is step 3 of 6. Steps 2, 4 and 5 are what keep it from ruining you.
fig 3.6.7 — the sizing workflow: estimate the edge, measure how uncertain it is, compute Kelly, shrink it, cap it by your drawdown limit, and size the position at the smaller of the two (classic bug at each step in coral)

Run the asset of §3.6.4 through it, supposing your five-year estimate happened to land on the truth. Step 3 gives f⋆f^\star = 1.25. Step 4 shrinks it by k⋆k^\star = 0.24 to 0.30. Step 5, a limit of a 10% chance of ever halving relative to cash, caps it at 0.58. Step 6 takes the smaller: hold 30% of capital in the asset and the rest in cash. That is far from the 1.25× leverage the formula alone suggested, and it is what the evidence supports. Turning a fraction of capital into contracts, lots and shares is position sizing, the subject of Session 9.5.

SHOULD YOU USE KELLY, AND HOW MUCH OF IT? A BET WITH AN EDGE DO YOUR BETS COMPOUND? (repeated bets) yes EDGE KNOWN PRECISELY? (t-statistic ≳ 3) yes NEAR KELLY capped by your drawdown limit no NOT KELLY'S GAME a one-off bet: size it by the loss you can afford to take no SHRINK HARD bet about t²/(1 + t²) of Kelly, then apply the drawdown cap The usual answer is the green box: a fraction of Kelly, cut again by a drawdown limit.
fig 3.6.8 — a decision guide: Kelly is for repeated, compounding bets; unless the edge is measured very precisely, bet a fraction of it and cap that by your drawdown limit

Kelly in practice, and its critics

Edward Thorp used Kelly sizing for blackjack and sports betting, and from 1969 to allocate assets in an investment partnership (Thorp 2006). His advice is a practitioner's. When the edge is an estimate, assume the true edge is smaller and bet less than the estimated Kelly amount (his §7.3). And, from his own experience and that of many blackjack players and teams, "most people strongly prefer the increased safety and psychological comfort of 'half Kelly' (or some nearby value), in exchange for giving up 1/4 of their growth rate" (his §7.4). The economist Paul Samuelson objected from the other side, to the objective itself, and the argument about why anyone should maximise a logarithm has never quite ended:

QuestionThe case for KellyThe case against
Is maximising growth rational?Over enough bets, the Kelly bettor pulls ahead of any essentially different strategy, almost surely (Breiman 1961)Being ahead almost surely is not the same as higher expected utility; for an investor with any power utility other than the log, Kelly is not optimal at any horizon, however long (Samuelson 1971, 1979)
What about finite horizons?The advantage builds with every betOver ten years, the lab's full-Kelly benchmark trailed cash 35% of the time
Why use logs at all?Compounding wealth grows at the time-average log return, so no utility assumption is needed (Peters's ergodicity argument, Session 3.1)Mathematically it is the same objective as log utility (§3.6.2). And risk attitudes differ from person to person, which "thousands of economic studies" document, so no single objective fits everyone (Doctor, Wakker & Wang 2020)

Strip out the philosophy and the practical ground is shared. Nobody defends betting more than Kelly: it is beaten on growth and risk at once (§3.6.3). Fractional Kelly trades growth for safety along a smooth curve, so the fraction is a preference, and MacLean, Thorp & Ziemba (2010) lay out both sides of that trade. And estimation error pushes every honest answer below full Kelly (§3.6.5). Whether you call the objective "log utility" or "time-average growth", the number you bet ends up smaller than the formula's.

🧭 Margin note — Kelly for your own money

Everything here assumes the bets are the only thing that matters. A real account also has living costs, withdrawals, taxes and a limit to the drawdown you will actually sit through. Session 16.4 — Running Your Own Capital builds those into a plan for running your own capital; start from a cap, not from Kelly.

3.6.8 Try it

Open the companion lab and change the inputs. Predict each answer before you run it.

🔧 Try it (15 min, in the lab)

1. Set P_WIN = 0.52 in section 1. Predict f⋆f^\star, the peak growth rate per bet and where growth returns to zero, then run. Success: the printed f⋆f^\star is 4% and the fraction table shows negative growth from 10% of wealth upward (2.5 times Kelly).
2. In section 4 set YEARS_EST = 20. Predict k⋆k^\star from the table in §3.6.5 (0.56), then check it and compare the two histograms with the 5-year versions. The asserts still pass: the formula knows about YY.
3. In section 5 set FLOOR = 0.8 (a 20% loss). Before running, compute 0.82/c−10.8^{2/c - 1} at full Kelly. Success: the "ever" column matches your number, and the simulated 10-year column still agrees with p_touch.


3.6.9 Glossary · Check yourself · Go deeper

Bet sizing — choosing how much of your capital to stake on each bet; it decides whether an edge compounds or ruins you.
Growth rate — the expected log growth of wealth per period, g=𝔼[ln⁡(Wt+1/Wt)]g = \E[\ln(W_{t+1}/W_t)]; typical wealth after nn periods is about W0engW_0e^{ng}, and CAGR is eg−1e^g - 1 for annual gg.
Kelly criterion — stake the fraction of wealth that maximises the growth rate: f⋆=p−q/bf^\star = p - q/b for a binary bet, (μ−rf)/σ2(\mu - r_f)/\sigma^2 for a continuously rebalanced position.
Log utility — valuing wealth by its logarithm, so a doubling is worth as much as a halving costs; the investor who maximises expected log utility bets Kelly.
Fractional Kelly — staking a fixed fraction c<1c \lt 1 of the Kelly bet (half Kelly: c=½c = ½); keeps 2c−c22c - c^2 of the growth for cc times the volatility.
Risk of ruin — the probability that wealth ever reaches a level at which you cannot or will not continue: zero, a margin call or a loss limit.

Check yourself

1. A bet pays 2 to 1 and wins 40% of the time. What is the Kelly stake, and what is the edge?
The edge is bp−q=2×0.4−0.6=0.2bp - q = 2 \times 0.4 - 0.6 = 0.2, twenty cents per dollar staked. Kelly stakes edge over odds: 0.2/2=10%0.2/2 = 10\% of wealth. A high payout does not justify a big stake; it divides the edge.
2. A colleague bets 1.5 times Kelly "because the edge is strong", and you bet half Kelly. Who grows faster?
Neither: in the continuous limit both keep three-quarters of the maximum growth (2c−c2=0.752c - c^2 = 0.75 at c=½c = ½ and c=1½c = 1½). But the colleague runs three times your volatility and has a 79% chance of ever halving against your 12.5%. Over-betting buys nothing and costs a lot.
3. Four years of backtest show an excess return of 6% a year at 15% volatility. What does Kelly say, and what should you bet?
Plug-in Kelly is 0.06/0.152≈2.70.06/0.15^2 \approx 2.7× leverage. But the Sharpe ratio is 0.4 and t=0.44=0.8t = 0.4\sqrt{4} = 0.8, so k⋆=0.64/1.64≈0.39k^\star = 0.64/1.64 \approx 0.39: roughly 1× leverage at most, and less if the backtest was the best of many variants or you need a drawdown cap.
4. A trader with $50,000 always risks $5,000 on 55/45 even-money trades. What is her risk of ruin, and what one change fixes most of it?
She has 10 stakes of bankroll, so ruin is about (0.45/0.55)10(0.45/0.55)^{10} = 13.4%, the lab's fixed-$10 case. Scaling each stake with current wealth (a fraction, not a fixed amount) makes ruin at zero impossible in principle; smaller stakes cut it exponentially.
5. Why is the chance of ever halving at full Kelly one half whether the Sharpe ratio is 0.25 or 2?
Under full Kelly, W0/WtW_0/W_t is a fair game, and the probability of ever reaching the level xx is x2/c−1x^{2/c - 1}, which does not involve the Sharpe ratio. A better edge makes growth, and any fall, happen faster, but not more or less often. Over a fixed horizon such as 10 years the Sharpe ratio does matter: the barrier formula of Session 3.5 has it in the time terms.
6. "Kelly maximises long-run growth, so every rational long-term investor should use it." Evaluate.
Half right. Kelly maximises the growth rate of almost every path, and nobody should bet more than it. But Samuelson showed that for investors with other power utilities Kelly is not optimal, however long the horizon, and in practice estimation error and drawdown limits push everyone below it. Kelly is the ceiling, not the target.
🔧 Homework (~1 h before Session 4.1)

1. Write kelly_multi(mu, cov, rf) returning Σ−1(μ−rf𝟏)\Sigma^{-1}(\mu - r_f\mathbf 1). Test it: with two uncorrelated assets it must return each asset's own Kelly fraction. Then set their correlation to 0.9 and explain, in one sentence, why the weights change so much (a preview of Session 9.1).
2. In section 4 of the lab, give the researchers a strategy with a Sharpe ratio of 1.0: ASSET_MU, ASSET_SIGMA = 0.13, 0.10. Check that k⋆k^\star matches the table in §3.6.5 and report how often half Kelly now does worse than cash. (The growth rates will look spectacular: the model lets you lever tenfold with no costs, gaps or margin calls.)
3. Read Thorp (2006) on fractional Kelly and Samuelson (1979), which is written almost entirely in words of one syllable. Write two sentences for each side of the debate in your research log.

📚 Go deeper

  1. Kelly, J. L., Jr. (1956). "A New Interpretation of Information Rate." Bell System Technical Journal 35(4), 917–926. doi:10.1002/j.1538-7305.1956.tb03809.x
  2. Thorp, E. O. (2006). "The Kelly Criterion in Blackjack Sports Betting, and the Stock Market." In Zenios, S. A. & Ziemba, W. T. (eds.), Handbook of Asset and Liability Management, Vol. 1, ch. 9, 385–428. North-Holland/Elsevier. The fractional-Kelly case and the halving formula are in §7.3–7.4. doi:10.1016/S1872-0978(06)01009-X
  3. MacLean, L. C., Thorp, E. O. & Ziemba, W. T. (2010). "Long-term capital growth: the good and bad properties of the Kelly and fractional Kelly capital growth criteria." Quantitative Finance 10(7), 681–687. doi:10.1080/14697688.2010.506108
  4. Samuelson, P. A. (1979). "Why We Should Not Make Mean Log of Wealth Big Though Years to Act Are Long." Journal of Banking & Finance 3(4), 305–307. The critique, in words of one syllable. doi:10.1016/0378-4266(79)90023-2
  5. Kan, R. & Zhou, G. (2007). "Optimal Portfolio Choice with Parameter Uncertainty." Journal of Financial and Quantitative Analysis 42(3), 621–656. doi:10.1017/S0022109000004129
  6. Busseti, E., Ryu, E. K. & Boyd, S. (2016). "Risk-Constrained Kelly Gambling." The Journal of Investing 25(3), 118–134. doi:10.3905/joi.2016.25.3.118 · arXiv:1603.06183
  7. Poundstone, W. (2005). Fortune's Formula: The Untold Story of the Scientific Betting System That Beat the Casinos and Wall Street. Hill and Wang. The story of Kelly, Shannon, Thorp and Samuelson, told for a general reader. ISBN 978-0-8090-4637-9

Sources for the numbers

  1. Breiman, L. (1961). "Optimal Gambling Systems for Favorable Games." In Neyman, J. (ed.), Proceedings of the Fourth Berkeley Symposium on Mathematical Statistics and Probability, Vol. 1, 65–78. University of California Press. https://projecteuclid.org/proceedings/berkeley-symposium-on-mathematical-statistics-and-probability/Proceedings-of-the-Fourth-Berkeley-Symposium-on-Mathematical-Statistics-and/Chapter/Optimal-Gambling-Systems-for-Favorable-Games/bsmsp/1200512159
  2. Samuelson, P. A. (1971). "The 'Fallacy' of Maximizing the Geometric Mean in Long Sequences of Investing or Gambling." Proceedings of the National Academy of Sciences 68(10), 2493–2496. doi:10.1073/pnas.68.10.2493
  3. Merton, R. C. (1969). "Lifetime Portfolio Selection under Uncertainty: The Continuous-Time Case." Review of Economics and Statistics 51(3), 247–257. doi:10.2307/1926560
  4. Baker, R. D. & McHale, I. G. (2013). "Optimal Betting Under Parameter Uncertainty: Improving the Kelly Criterion." Decision Analysis 10(3), 189–199. doi:10.1287/deca.2013.0271
  5. Doctor, J. N., Wakker, P. P. & Wang, T. V. (2020). "Economists' views on the ergodicity problem." Nature Physics 16, 1168. doi:10.1038/s41567-020-01106-x
  6. Feller, W. (1968). An Introduction to Probability Theory and Its Applications, Vol. 1, 3rd ed., ch. XIV. Wiley. ISBN 978-0-471-25708-0
← Prev: 3.5 · Monte Carlo Next: 4.1 · Data Landscape →