Finance practice › Finance practice questions › Expected value and Kelly criterion
Expected value and the Kelly criterion: practice problems with answers
Expected value is what a bet pays on average if you could repeat it many times: multiply each outcome by its probability and add the results. The Kelly criterion takes a bet with a positive expected value and answers the next question, how much of your money to put on it: fraction to risk = p − q ÷ b, where p is the chance of winning, q the chance of losing and b what you win per dollar risked.
Ten problems, on a die game, a trade and a coin-style bet. Every number is made up for practice and stated in the problem; real trades don't come with known probabilities, and the last questions are about what that does to the formula. Educational content, not advice on betting or investing.
The formulas
- Expected value = the sum of (each outcome × its probability). For a bet with two outcomes: p × the win − q × the loss, with q = 1 − p.
- Break-even probability = loss ÷ (win + loss): the chance of winning at which the expected value is exactly zero.
- Edge = expected value ÷ the amount risked: the expected gain per dollar at risk.
- Odds, b = win ÷ loss: dollars won for each dollar risked. An even-money bet has b = 1.
- Kelly fraction = p − q ÷ b (the same as edge ÷ b): the share of the bankroll to risk on each bet to make it grow fastest over many bets.
In a spreadsheet, with the outcomes in A2:A7 and their probabilities in B2:B7, the expected value is =SUMPRODUCT(A2:A7,B2:B7).
You roll one fair die. A six pays $10, a five pays $4, and anything else pays nothing. What is the expected payout of one roll?
Show the answer
$2.33
10 × 1/6 + 4 × 1/6 + 0 × 4/6 = 14/6 = $2.33. No single roll pays that amount: it is the average over many rolls.
The same game costs $3 a roll. What is your expected profit per roll, after paying to play? Type a minus sign if it is a loss.
Show the answer
-$0.67
$2.33 − $3.00 = -$0.67 a roll. You can still win $7 on any one roll; over many rolls you lose about $0.67 each. Expected value is the reason a game can feel winnable and still cost you money.
A trade has a 40% chance of making $300 and a 60% chance of losing $150. What is its expected value?
Show the answer
$30
0.4 × 300 − 0.6 × 150 = 120 − 90 = $30. The trade loses more often than it wins, 60% of the time, and still has a positive expected value, because a win is twice the size of a loss. The win rate alone never tells you whether a bet is good.
Same trade: win $300 or lose $150. What chance of winning would make its expected value exactly zero?
Show the answer
33.3%
Loss ÷ (win + loss) = 150 ÷ 450 = 33.3%. Check: 0.3333 × 300 − 0.6667 × 150 = 0. The trade as described wins 40% of the time, above the 33.3% it needs: that margin is where its positive expected value comes from.
The trade risks $150 and has an expected value of $30. What is the edge: the expected value as a percent of the amount risked?
Show the answer
20%
30 ÷ 150 = 20%: on average, each dollar put at risk earns 20 cents. With the odds b = 300 ÷ 150 = 2, the same figure is p × b − q = 0.4 × 2 − 0.6 = 0.20.
For the trade: p = 0.4, q = 0.6, and the odds are b = 2 (you win $2 for each $1 risked). What fraction of the bankroll does the Kelly formula say to risk?
Show the answer
10%
p − q ÷ b = 0.4 − 0.6 ÷ 2 = 0.4 − 0.3 = 10%. The edge is 20%, and Kelly says to risk half of that share of the bankroll, because the odds are 2. "Risk" means the amount you would lose: with a $10,000 bankroll, size the trade so that the losing outcome costs $1,000.
A bet pays even money (you win what you staked, or lose it) and you win 60% of the time. What is the Kelly fraction?
Show the answer
20%
With b = 1 the formula is simply p − q: 0.6 − 0.4 = 20%. A bet won 60% of the time sounds like one to bet heavily on, and the formula says to put a fifth of the bankroll on it, not more. The next two questions show why.
You start with $100 and stake 20% of whatever you have on each even-money bet. You win one and lose one. How much do you have afterwards?
Show the answer
$96
Win first: 100 × 1.2 = 120, then lose 20%: × 0.8 = $96. Lose first and you get the same: 100 × 0.8 × 1.2. One win and one loss of the same percentage leave you below where you started, and the bigger the stake, the bigger that gap. Expected value doesn't see this; the Kelly formula is built on it.
What bet size does to growth
For the even-money bet won 60% of the time, the long-run growth of the bankroll per bet at different stakes:
| Share of bankroll staked | Growth per bet, in the long run |
|---|---|
| 5% | +0.88% |
| 10% | +1.52% |
| 20% | +2.03% |
| 30% | +1.49% |
| 40% | -0.24% |
| 50% | -3.34% |
Every stake in the table has the same positive expected value per dollar. What changes is how the wins and losses compound. Growth is fastest at the Kelly fraction, 20%; past it, growth falls, and it turns negative before the stake is twice the Kelly fraction.
On that bet (even money, 60% wins) the Kelly fraction is 20%. A bettor reasons that the bet is favorable, so more is better, and stakes 40% of the bankroll every time. What happens over many bets?
Show the answer
It tends to shrink, even though every single bet has a positive expected value.
At 40% the long-run growth is -0.24% a bet: a slow loss, on a bet that wins 60% of the time. One win and one loss at that stake turn $100 into $84, and the extra wins don't make up for it. Staking half the Kelly fraction, 10%, gives 1.52% a bet, 75% of the full Kelly growth with half the stake, which is one reason bettors who use the formula often bet a fraction of it.
Another even-money bet is won 45% of the time. The formula gives p − q = 0.45 − 0.55 = -10%. What does a negative Kelly fraction tell you?
Show the answer
Don't take the bet: its expected value is negative, and no stake size turns that into growth.
The edge is p × b − q = 0.45 − 0.55 = -0.10 per dollar: negative. The formula's answer is to stake nothing. (A negative fraction would mean taking the other side of the bet, if someone would let you.) Kelly sizes bets that are already favorable; it can't make an unfavorable one worth taking.
Questions people ask
What is the Kelly criterion formula?
For a bet with two outcomes: fraction of the bankroll to risk = p − q ÷ b, where p is the probability of winning, q = 1 − p, and b is the amount won per unit risked. For an even-money bet it reduces to p − q. It was described by John L. Kelly Jr. of Bell Labs in 1956, and it is the stake that maximizes the long-run growth rate of the bankroll, which is not the same as maximizing the expected value of one bet.
How do you calculate expected value in Excel?
List the outcomes in one column and their probabilities in the next, then use =SUMPRODUCT(A2:A7,B2:B7): it multiplies each outcome by its probability and adds the products. Check that the probabilities add up to 1. For the die game on this page the outcomes are 10, 4, 0, 0, 0, 0, each with probability 1/6, and the result is 2.33.
What is half Kelly?
Staking half of what the formula gives. On the even-money bet above, half Kelly is 10% instead of 20%, and the long-run growth per bet is 1.52% instead of 2.03%: most of the growth, with smaller swings. People use it because the swings at full Kelly are large, and because the probability that goes into the formula is usually an estimate: if the true chance of winning is lower than you think, full Kelly on your estimate is too much.
Does the Kelly criterion work for stocks?
The formula on this page is for a bet with two known outcomes and known probabilities. An investment has a whole range of outcomes, and nobody knows its probabilities: they are estimated from the past. The idea carries over (size a position by its edge, and too large a position lowers long-run growth), but the number that comes out is only as good as the estimates that go in. Nothing on this page tells you how much to invest in anything.
Can a bet with positive expected value lose money?
Yes, in two ways. Any single bet can lose: expected value is an average over many repetitions. And a series of favorable bets can lose if each stake is too large: at 40% of the bankroll on the 60% bet above, the long-run growth is -0.24% a bet.