← All writing

Writing & ideas

The Mathematics of Ruin: Why Retail Traders Are Destined to Lose Against the House

gambler

How a 1656 letter between Pascal and Fermat explains why your trading account keeps hitting zero.

If you have ever lost money in the stock market, you have likely blamed bad luck, poor timing, or maybe a bad indicator. But the real reason you lost money may have been decided 368 years ago, by two Frenchmen arguing about dice.

This is the story of the Gambler's Ruin problem, and why it acts as an invisible tax on retail traders that simply does not apply to institutional investors. By the end of this post, you will understand the exact mathematical formula that determines whether you go broke—and why the "house" (or the institution) almost never does.

1. The Origin: Pascal, Fermat, and a Letter from 1656

The earliest known mention of the gambler's ruin problem appears in a 1656 letter from Pierre de Carcavi to the Dutch mathematician Christiaan Huygens. Carcavi was summarizing correspondence between Blaise Pascal and Pierre de Fermat regarding a complex dice game.

Huygens was so intrigued that he reformulated the problem and published it in his 1657 treatise, De ratiociniis in ludo aleae ("On Reasoning in Games of Chance"). The problem was simple yet profound:

"Two players begin with fixed stakes, transferring points until one reaches zero. What is the probability of victory for each player?"

This was the birth of the Gambler's Ruin theorem. Later, Abraham de Moivre (1711) and Nicholas Bernoulli independently solved the general case, formalizing what we now know as the random walk with absorbing barriers.

2. The Core Mathematics: Fair vs. Unfair Games

Let us define the model. Two players, A and B, have finite wealth. They engage in a sequence of independent bets. Player A wins a dollar from B with probability \(p\), and loses a dollar to B with probability \(q = 1-p\). The game ends when one player reaches zero (ruin).

2.1 The Fair Game (\(p = q = 0.5\))

If the coin is fair, the probability that Player A is ruined given they start with \(n_1\) dollars, and Player B starts with \(n_2\) dollars, is:

\[ P_{\text{ruin, A}} = \frac{n_2}{n_1 + n_2} \]

Conversely, the probability Player B is ruined is:

\[ P_{\text{ruin, B}} = \frac{n_1}{n_1 + n_2} \]
Example: If you start trading with $5,000 and a hedge fund has $100,000 (which is 5,000 vs 100,000), your probability of ruin is:
Pruin = 100,000/(5,000 + 100,000) = 100,000/105,000 ≈ 95.2%

Even in a fair game, the player with less money is almost certain to lose. This is not a conspiracy; it is stochastic calculus.

2.2 The Unfair Game (\(p \neq q\))

In the real world, markets are not perfectly efficient. Sometimes you have an edge; sometimes you don't. If \(p \neq q\), the ruin probability for Player A is:

\[ P_{\text{ruin, A}} = \begin{cases} \dfrac{1 - (p/q)^{n_2}}{1 - (p/q)^{n_1 + n_2}}, & p \neq q \\[1em] \dfrac{n_2}{n_1 + n_2}, & p = q \end{cases} \]

Where:

  • \(n_1\) = Your starting capital
  • \(n_2\) = Opponent's starting capital
  • \(p\) = Probability you win a given trade
  • \(q\) = Probability you lose (1 - p)

Note: If the game is unfavorable to you (\(p < q\)), ruin is certain in the long run (\(P_{\text{ruin}} = 1\)). But crucially, even if you have an edge (\(p > q\)), you can still go broke if your capital is small relative to the opponent.

This was Huygens' great insight: Capital disparity is a stronger force than skill disparity.

3. Extending the Model: The "Infinitely Rich Adversary"

Institutional traders and casinos do not operate like Player B in the classic two-player game. They operate with effectively infinite capital.

Guy Katriel of ORT Braude College generalized the ruin probability for a gambler playing against an infinitely-rich adversary. If the gambler's payoff distribution has a maximum possible loss of \(\nu\), and their initial wealth is \(M\), the ruin probability is:

\[ P_{\text{ruin}}(M) = \sum_{j=1}^{\nu} \eta_j^M \prod_{i \neq j} \frac{1 - \eta_i}{\eta_j - \eta_i} \]

Where \(\eta_j\) are the roots of the generating function \(p(z) = \sum_{k=-\nu}^{\infty} p_k z^k = 1\) that lie inside the unit disk.

What this means practically: For a coin-toss game (win/loss of 1 unit), this simplifies to the famous result:

\[ P_{\text{ruin}}(M) = \left( \frac{p_{\text{loss}}}{p_{\text{win}}} \right)^M \]

If your win probability is 50% and loss probability is 50% (fair game), this equals 1. But if you have a slight edge—say 51% win, 49% loss—the ratio is \(0.49/0.51 \approx 0.9608\). If you start with $1,000 and bet $1 each time:

\[ P_{\text{ruin}} = (0.9608)^{1000} \approx 1.44 \times 10^{-17} \]

You are effectively immortal. So why do retail traders still die?

4. The Kelly Criterion and Simultaneous Risk

Here is where the retail trader diverges from the mathematician.

If you have an edge, the optimal way to grow your wealth is to bet a fixed fraction of your bankroll, not a fixed dollar amount. This is the Kelly Criterion, formalized by John L. Kelly Jr. in 1956.

For a binary bet with win probability \(p\) and even odds, the optimal fraction \(f^*\) to wager is:

\[ f^* = p - q = 2p - 1 \]

If \(p = 0.60\), you should bet 20% of your bankroll. This maximizes long-term logarithmic growth.

However: Retail traders rarely place one bet at a time. They trade multiple positions simultaneously. This is the "simultaneous coin toss" problem.

Andrew Grant of the University of Sydney analyzed this exact scenario. If you toss \(M\) identical, independent, favorable coins simultaneously, and bet the same fraction \(f\) on each, your growth rate is:

\[ G = \sum_{w=0}^{M} \binom{M}{w} p^w (1-p)^{M-w} \ln\left[1 + (2w - M)f\right] \]

Where \(w\) is the number of winning tosses.

The result: For \(M=2\) coins, the optimal bet size reduces to:

\[ f^* = \frac{2p-1}{(2p-1)^2 + 1} \]

If \(p=0.60\), your single-game Kelly bet is 20%. Your two-game simultaneous bet drops to approximately 16.7%. If you ignore this and bet 20% on each, you massively increase your risk of ruin.

Why this kills retail: Retail traders open 5 correlated tech stocks, 3 crypto positions, and 2 options spreads. They treat them as separate "bets," but mathematically, they are flipping 10 coins simultaneously. Their effective bet size is astronomical relative to their capital.

Institutions, by contrast, use Value-at-Risk (VaR) models and portfolio-level risk limits to ensure they never violate this constraint.

5. The Skew Problem: R. Michael Canjar and the Jackpot Fallacy

R. Michael Canjar (University of Detroit Mercy) identified another critical flaw in retail risk management: skew.

The standard approximation for risk of ruin, used by many unsophisticated traders, is the "normal approximation":

\[ \text{RoR} \approx \exp\left(-\frac{2\mu B}{\sigma^2}\right) \]

Where \(\mu\) is expected return, \(\sigma^2\) is variance, and \(B\) is bankroll.

Canjar proved that this formula fails catastrophically in games (or trading strategies) with high positive skew—i.e., strategies where you lose small amounts frequently but win large amounts rarely (think: selling options, buying lottery tickets, or "meme stock" gambles).

His finding: In high-skew scenarios, the standard formula underestimates risk of ruin. However, a variant replacing variance with the second moment creates a conservative (safe) upper bound.

Retail implication: Traders are drawn to strategies with "lottery-like" payoffs (1000% gains on Dogecoin). They perceive these as high-return strategies. Mathematically, they are actually high-ruin strategies.

6. Why Institutions Don't Lose: The Taranto & Khan Grid Theory

Recent work by Aldo Taranto and Shahjahan Khan (University of Southern Queensland) reframes the Gambler's Ruin problem for modern financial markets.

They introduce the Bi-directional Grid Absorption Barrier model. Instead of a simple random walk, institutions engage in grid trading—placing orders at multiple price levels simultaneously.

Key Theorem: While grid trading is still subject to ruin, the expected time to ruin is significantly longer than in classical Gambler's Ruin. Moreover, institutions use two absorption barriers:

  1. Zero balance (ruin).
  2. Profit target (take-profit).

By defining a stopping condition at a profit target, the institution converts an infinite-horizon ruin problem into a finite-horizon problem with a probability of success.

Retail traders do the opposite. They move their stop-losses further away ("it will come back") and take profits early. This effectively removes the profit-target barrier and lengthens the distance to the ruin barrier. They transform a winnable finite game into an unwinnable infinite game.

7. The Synthesis: A Tale of Two Bankrolls

Let us assemble the evidence.

Factor Retail Trader Institutional Trader Mathematical Consequence
Bankroll Finite ($5k – $50k) Finite but massive ($100M+) Retail ruin probability ~ \( \frac{B_{\text{inst}}}{B_{\text{retail}}+B_{\text{inst}}} \) → 1
Adversary Visible (market) Invisible (other traders) Retail plays against "infinite wealth" of market
Bet Correlation High (all tech stocks) Diversified Retail violates Grant's simultaneous coin toss limit
Risk Formula "I feel lucky" VaR / Stress Testing Retail uses no valid risk model
Skew Preference Positive (lottery) Negative (hedging) Retail plays Canjar's high-ruin skew games
Stopping Time "HODL" Profit target Retail removes absorption barrier (Taranto & Khan)

The result is deterministic chaos for the retail trader.

8. The Only Way to Beat the House

The Gambler's Ruin problem is not a metaphor. It is a hard mathematical constraint, as immutable as gravity. Christiaan Huygens proved in 1657 that capital disparity is a death sentence in a fair game. John Kelly proved in 1956 that over-betting is a death sentence in a favorable game. Andrew Grant proved in 2013 that correlated simultaneous bets are a death sentence. Canjar proved in 2007 that jackpot-chasing is a death sentence.

So how does a retail trader survive?

  1. Acknowledge the adversary. You are not trading against "the market." You are trading against infinite capital. You are Player A. The institution is Player B. Your \(n_1\) is $5,000. Their \(n_2\) is infinity. Your probability of winning the "game" is zero unless you change the game.
  2. Use fractional Kelly. Never bet more than 1-2% of capital on any single idea. If you have 10 ideas, you are flipping 10 coins. Your effective bet size is 10-20%. This is mathematically ruinous.
  3. Set profit targets. Taranto and Khan prove that a profit-target barrier converts infinite ruin risk into finite probability of success.
  4. Avoid high-skew strategies. If your strategy wins big rarely and loses small often, you are playing a game where the normal approximation lies to you. Your actual risk of ruin is much higher than you think.

The mathematics is not hopeful. It tells us that most retail traders will, with probability approaching 1, eventually go to zero. This is not opinion; it is the corollary of a theorem proven by Christiaan Huygens 368 years ago.

The only rational response is to either (a) increase your bankroll to institutional size (impossible for most), (b) find games where the house does not have an infinite bankroll (arbitrage, market-making), or (c) accept that trading is entertainment, not wealth creation, and size your bets accordingly.

Mathematics always wins.


References and Further Reading:

– Pascal, Fermat, Huygens (1656-1657): Original formulation of the ruin problem.

– De Moivre (1711), Bernoulli (1711): General solution to the two-player case.

– Kelly, J.L. (1956): A new interpretation of information rate. Bell System Technical Journal.

– Canjar, R.M. (2007): Gambler's ruin revisited: the effects of skew and large jackpots. Optimal Play.

– Katriel, G. (2012): Gambler's ruin probability – a general formula. arXiv:1209.4203.

– Grant, A. (2013): Betting on Simultaneous Events. Oxford Handbook of the Economics of Gambling.

– Taranto, A., & Khan, S. (2020): Bi-directional grid absorption barrier constrained stochastic processes. Risk Governance and Control.