The Data Scientist

The Math of Variance: Why Players With an Edge Still Go Broke

Published 21 September 2026

An edge is a statement about the long run. Variance decides whether you are still playing when the long run arrives. This is the part of gambling maths that people who are good at the game most often underestimate.

Two numbers, not one

Every repeated bet is described by two numbers:

Over n bets the expectation grows in proportion to n, but the standard deviation only grows with √n. That is why edges win eventually, and it is also why "eventually" can take a very long time.

A worked example: the card counter

In our ten-million-hand simulation, a Hi-Lo counter with a 1-to-12 unit spread had:

Hands playedExpected resultOne standard deviationChance of being behind
1,000+5 units±79 units≈ 47%
10,000+50±251≈ 42%
100,000+500±793≈ 26%
1,000,000+5,000±2,510≈ 2%

A player with a genuine edge still has close to even odds of being behind after a thousand hands, which is about ten hours of play. It takes about a million hands before the result is reliably positive. At 100 hands an hour, that is 10,000 hours.

(The last column uses the normal approximation: the chance of being behind is Φ(−μ√n / σ).)

Risk of ruin

Risk of ruin is the probability that a bankroll hits zero before the edge carries it clear. For a small edge and many bets there is a good approximation:

Risk of ruin ≈ exp(−2 μ B / σ²), where B is the bankroll in betting units.

Using the counter's numbers above:

Bankroll (units)Risk of ruin
10085%
25067%
50045%
1,00020%
2,0004%

With a €10 unit, a counter needs around €20,000 set aside to have a 96% chance of never going broke. The edge is the same at every size. What changes is only whether the player survives long enough to collect it.

Kelly: how much to bet

The Kelly criterion answers the related question of how large each bet should be to grow a bankroll as fast as possible without risking ruin. For a simple even-money bet that you win with probability p:

Kelly fraction = p − (1 − p) = 2p − 1

A 51% coin flip at even money has a Kelly fraction of 2%: bet 2% of your current bankroll each time. Betting more than twice the Kelly fraction produces negative long-run growth even though every single bet has positive expectation. That result surprises most people.

For a negative-expectation bet, which is every standard casino bet, the Kelly fraction is zero. The formula agrees with the obvious advice.

The lesson

Expected value says where you are heading. Variance says how bumpy the road is, and bankroll size decides whether you get there. This applies beyond gambling: to trading, to startups, and to any repeated decision under uncertainty.

Sources and further reading