Mental Models204 cards · 12 fields

Mental Models/Investing & Risk

Kelly Criterion

凯利公式

When you bet over and over, one fraction you can calculate grows your money fastest.

In 1961 the mathematician Edward Thorp took 10,000 dollars from his backers to Reno and Lake Tahoe in Nevada, to test his blackjack card-counting method in the casinos. As the cards were dealt one by one, he used the cards already played to work out how much the cards still left favored the player. When they favored him, he bet big; when they didn't, he bet small. The test trip won money.

You have 1,000 yuan, and in front of you is a lopsided coin that lands heads up 60% of the time. You bet on heads. If you're right, you win as much as you bet; if you're wrong, you lose the bet. The game clearly favors you, yet how much you bet each round matters a great deal. Take ten rounds with exactly six wins and four losses. Bet a tenth of your money each round, and 1,000 yuan grows to about 1,162. Bet half each round, with exactly the same wins and losses, and you're left with about 712. The Kelly criterion works out that fraction.

Betting 20% grows fastest; 40% ends up losing
Fastest share20%
Bet 10%4.5×
Bet 20%7.49×
024680%10%20%30%40%50%60%Share bet each roundTimes your money after 100 roundsAfter 100 roundsMoney unchangedFastest growth
02.557.50%20%40%60%Share bet each roundTimes your money after 100 roundsAfter 100 roundsMoney unchangedFastest growth

A coin that lands heads 60% of the time, a win pays the bet, exactly 60 wins in 100 rounds. Drag the win rate to 55%: betting 20% barely grows.

How much you bet changes the long-run result several times over

Take the same coin that lands heads 60% of the time. The more you bet each round, the harder it is to climb back after a loss. Bet a tenth, and one loss leaves nine-tenths, which a rise of about 11% makes up. Bet half, and one loss leaves half, which has to double to make it up. But bet too little and you earn slowly. So the fraction that grows fastest lies in between. With this coin a win pays as much as you bet, and then the fastest fraction is the win rate minus the loss rate: 0.6 minus 0.4, which is 20%. Betting too much actually loses money. Bet 40%, and after a hundred rounds with sixty wins and forty losses, you're left with only about 0.78 times what you started with.

The more one win pays, the bigger the fraction you can bet

Swap the coin for a general game. The chance of winning is and the chance of losing is ; a win pays a net times the bet, and a loss costs the whole bet. The fraction to bet each round is:

The bigger is, the less gets taken off the win rate, and the more you can bet: when one win pays a lot, it makes up for the times you lose. When equals 1, the formula goes back to the coin game's win rate minus loss rate. Another example: with a 40% success rate and a net gain of four times the stake on success, the fraction is , a quarter.

Overestimate the win rate by five points, and betting by the formula nearly stops the growth

You estimate the coin's win rate at 60%, so by the formula you bet 20% each round. But the true win rate is only 55%, and the best fraction is 0.55 minus 0.45, which is 10%. Count a hundred rounds as fifty-five wins and forty-five losses. Betting 20% leaves you with about 0.99 times your money, nearly standing still; betting 10% gives about 1.65 times.

The Kelly criterion works best for games like this: you can bet again and again, the win rate and the payoff have a record you can look up, and you decide how much to bet each time. Card counting is exactly such a game. A stock's returns have countless possible outcomes and can't be squeezed into a formula with only two outcomes, win or lose; it needs a more general calculation. The gains and losses of buying a home or changing jobs can't be settled as multiples of your money either. The formula also assumes that each round has nothing to do with the others and that the rules stay the same. Once the rules change, the old record is worthless.

Act
You have a marketing budget you can spend again every quarter. Sort past years' campaign results into the number of successes and the multiples gained or lost, and work out the largest share of the budget to try each time.
Design
When setting a limit on each position for a trading team, use the win rate and the gain and loss multiples to work out a ceiling, then let traders place their own bets under it.
Explore
Write a small program that runs the same game ten thousand times at each of several fractions, and see which fraction has the highest median growth and which does worst in its worst few runs.
  1. If the true win rate is five points lower than I estimated, will betting at my current fraction still grow in the long run?
  2. How many times the bet does one win pay, net, and at most what share of the bet can one loss cost? Are both measured against the same sum of money?
  3. How many times a year will I come across a chance like this?

Psychology

Half an hour with a digital coin

In 2016 Haghani and Dewey published an experiment. Each participant got 25 dollars and half an hour to bet on a digital coin that came up heads 60% of the time. A correct bet won back as much as was staked, and each person chose how much to bet each round. Many of the 61 participants were finance students and professionals, and 28% of them lost all 25 dollars. By the Kelly criterion, betting a fifth of your money each round in this game almost never loses it all; yet 18 of the 61 people bet everything they had at least once.

Personal life

Four out of ten side projects work

Every quarter you take part of your savings as the starting money for a side project. Your record from past years: of ten projects, four succeeded and six failed. The successes made a net four times their stake; the failures lost all of it. Fewer than half succeed, yet the sums come out positive. Working from this record, you put at most a quarter of your savings into each project, and at the start of each quarter you move that money into a separate side-project account.

Business

Ninety-five percent of the payments

You run a small wholesale shop and sell on credit to regular customers. In past years, of every twenty sales, nineteen were paid in full when due, earning 10% on top of the price of the goods; in the remaining one the customer vanished and the whole payment was lost. From this record you work out a maximum of 45%. But a record of twenty sales is too short, so you take only half: the goods you sell on credit each time are worth no more than 20% of your working capital.

Kelly CriterionExpected ValueMultiply each outcome by its chance and add them up to see a choice's average worth.A company has a pool of cash it can put to work again and again, and two plans both make money on average. Plan A puts in 30% of the cash each time, plan B 80%, and B's average return is higher. Expected value picks B. The Kelly criterion works out long-run growth from the share put in each time: for this game the best share is a little over 20%. A is slightly above it and B far above it, and over a few dozen rounds B's money keeps shrinking while A's keeps growing. When the money has to keep rolling and what you earn goes back in, look at the share Kelly works out; when you do it only this once and a loss won't hurt anything else, comparing average returns is enough.Kelly CriterionAvoiding RuinHowever much you can win, guard first against the one loss that knocks you out.You come across a game. You're 99% sure to win; a win pays an extra 0.05 yuan for every yuan bet, and a loss costs the whole bet. The Kelly criterion says you can bet up to nearly 80%, and one loss won't take you to zero. Avoiding ruin keeps its eye on that one loss: your money drops to a little over 20%, and it has to grow to nearly 4.8 times that to get back to where you started, and this money also holds next month's rent. If the money is all spare, bet the Kelly fraction. If it includes spending you can't touch, set that part aside first and work out the fraction only from what's left.

You run a small plant nursery. Each season you take part of your working capital to trial a new variety, and the money you make stays in the working capital to use again. Your record from past years: half the new varieties sold, making a net 3 times what they cost; the other half didn't sell, and everything put into them was lost.

To make your working capital grow fastest in the long run, how much should you put into trials each season?

You and a friend play a game where a win pays back as much as you bet and a loss costs the bet. You won 7 of the first 10 games. Taking the win rate as 70%, the formula gives 40% as the best fraction. From here on, you decide how much to bet each game.

For the next stretch, what is the safer amount to bet each game?

You keep playing a game that favors you. The win rate and payoff stay steady over time, a loss costs the whole bet, and every round you bet a quarter of your latest money. With 640,000 yuan, you lose three rounds in a row and have 270,000 left.

How much should you bet in the fourth round to stick most closely to the rule you have always followed?