Introduction

In 1713, the mathematician Nicolas Bernoulli wrote a letter containing a simple game. A casino flips a fair coin repeatedly until it lands heads. If heads appears on the first flip, you win $2. On the second flip, $4. On the third, $8 — and so on: the prize doubles every time tails appears. Your payoff if heads comes on flip n is 2n2^{n} dollars.

The puzzle: how much would you pay to play?

Classical probability says the fair price equals the expected value — the average payoff over infinitely many games. Let's compute it: there's a ½ chance of winning $2, a ¼ chance of winning $4, a ⅛ chance of winning $8, and so on.

Expected value=12×2+14×4+18×8+=1+1+1+=\text{Expected value} = \tfrac{1}{2}\times 2 + \tfrac{1}{4}\times 4 + \tfrac{1}{8}\times 8 + \cdots = 1 + 1 + 1 + \cdots = \infty

Every term contributes exactly $1, and there are infinitely many terms. The expected value is infinite. Classical theory says a rational player should pay any finite amount to enter.

Yet ask real people — economists, mathematicians, anyone — and they'll offer a few dollars at most. This gap between theory and intuition is the St. Petersburg Paradox, and resolving it took two centuries and reshaped how we model rational decision-making.

Try It

Click Run games to simulate rounds of the St. Petersburg game. Each round flips a fair coin until heads, then records the payoff 2n2^{n}. Watch what the typical payout really looks like.

<div class="controls">
  <label>{{label_games_per_run}}
    <select id="numGames">
      <option value="100">100</option>
      <option value="500" selected>500</option>
      <option value="2000">2,000</option>
      <option value="10000">10,000</option>
    </select>
  </label>
  <button id="runBtn" type="button">{{btn_run}}</button>
  <button id="resetBtn" type="button" class="ghost">{{btn_reset}}</button>
</div>
<div class="stats" id="stats"></div>
<div class="chart-wrap">
  <canvas id="chart" width="540" height="220"></canvas>
</div>
<div class="legend">
  <span class="dot dot-bar"></span> {{legend_bar}} &nbsp;
  <span class="dot dot-avg"></span> {{legend_avg}}
</div>
* { box-sizing: border-box; }
body { font-family: system-ui, sans-serif; color: #222; margin: 0; padding: 14px; }
.controls { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
label { font-size: .88rem; color: #444; }
select { font-size: .88rem; padding: .25rem .4rem; border: 1px solid #aaa; border-radius: 6px; background: #fff; }
button { font: 600 13px system-ui; padding: .4rem .85rem; border: 1px solid #1d3557;
         background: #1d3557; color: #fff; border-radius: 8px; cursor: pointer; }
button.ghost { background: #fff; color: #1d3557; }
.stats { font-size: .88rem; min-height: 1.3em; margin-bottom: .4rem; color: #333; }
.stats b { color: #1d3557; }
.chart-wrap { width: 100%; overflow-x: auto; }
canvas { display: block; max-width: 100%; }
.legend { font-size: .78rem; color: #555; margin-top: .35rem; display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: middle; }
.dot-bar { background: #457b9d; }
.dot-avg { background: #e63946; }
// Code not found

Notice the pattern: most games end quickly (heads on flip 1 or 2), paying just $2 or $4. The rare jackpot — 10 or 20 tails in a row — happens almost never in any finite run, even though it dominates the mathematical expectation. The running average can spike dramatically after a lucky game, then drift back down. Infinite expected value doesn't mean you'll ever get rich — it just means the average never settles.

Why the Math Breaks

The paradox is open in its original form: there is no single universally accepted price that classical expected-value theory assigns to the game. It exposed a genuine gap in 18th-century probability, and the fixes proposed over 300 years each illuminate a different truth about rationality.

Daniel Bernoulli's fix (1738): His cousin Nicolas posed the puzzle; Daniel solved it. Instead of maximizing expected money, people maximize expected utility — and utility grows logarithmically with wealth. Doubling your money from $1,000 feels less good than doubling from $1. Under log utility, the St. Petersburg game has finite expected utility, and the willingness-to-pay works out to a modest sum (around $10–$25 depending on wealth). This paper founded expected utility theory, the backbone of modern economics and decision science.

Bounded utility (20th century): If utility is bounded — there's some maximum satisfaction money can buy — then any weighted sum of utilities is finite, resolving the paradox. The debate over whether human utility truly is bounded remains live in behavioral economics.

Kelly's criterion (1956): Bell Labs scientist John L. Kelly Jr. showed that a gambler maximizing the logarithm of wealth — the Kelly bettor — achieves the best long-run growth rate. Kelly betting naturally assigns a finite, reasonable price to St. Petersburg games, and it links Bernoulli's intuition to information theory. Kelly's fraction also explains why even a positive-expected-value bet is worth nothing if it can wipe out your bankroll.

The ergodicity fix (Ole Peters, 2011): A more recent argument notes that expected value averages over a population of parallel universes, but a real player lives through time sequentially. The time-average growth rate — what actually matters for a single player over a long life — is finite and small. This reframes the paradox not as a quirk of utility but as a confusion between ensemble averages and time averages, connecting it to Nash equilibrium and the foundations of game theory.

None of these fixes makes the paradox "wrong" — each reveals a different facet of why raw expected value is insufficient for modeling real decisions under risk.

Where It Matters

Three centuries of grappling with a coin-flip game produced ideas that now power real systems:

  • Portfolio theory and the Kelly criterion: Professional gamblers and quantitative traders use Kelly betting to size positions. The criterion maximizes long-run wealth growth and is derived directly from the log-utility insight Bernoulli used to fix the paradox. It tells you how much to bet, not just whether to bet.
  • Insurance and risk aversion: Insurance markets exist because people pay more than the expected loss to avoid ruin. That makes no sense under expected-value theory, but is perfectly rational under concave (log-like) utility. The St. Petersburg Paradox was the first formal statement of this idea.
  • Behavioral economics and prospect theory: Kahneman and Tversky's Prospect Theory (1979 Nobel Prize, 2002) generalizes Bernoulli's utility approach: people weigh losses more than equal gains (loss aversion) and distort small probabilities upward. The paradox motivated this entire research program.
  • Algorithmic trading and tail risk: Markets occasionally produce St.-Petersburg-style tail events — huge but rare payoffs (or losses). Strategies that look profitable in expectation can be ruinous in practice if they rely on jackpots that a finite trading career will almost never see. Kelly sizing and log-utility accounting avoid this trap.
  • Ergodicity economics: Ole Peters' framework, applied to climate policy and pandemic response, argues that population-average statistics can mislead individual agents navigating sequential risk. The St. Petersburg Paradox is its motivating example.

Conclusion

The St. Petersburg Paradox is unresolved in the deepest sense: there is no consensus on the single "correct" price for the game, and different resolutions — log utility, bounded utility, Kelly betting, ergodicity — each capture something true and something incomplete.

What the paradox has settled, conclusively, is that expected value alone is not enough to model rational choice under risk. Every serious framework for decision-making under uncertainty — expected utility theory, prospect theory, Kelly sizing, ergodicity economics — owes its existence to the 1713 letter in which Nicolas Bernoulli asked: how much would you pay?

The answer, it turns out, depends on who you are, how rich you are, and how long you plan to keep playing. That's not a failure of mathematics — it's a precise and profound statement about the nature of risk.

Share this article

Pick a channel — or use your device's native share sheet.

Comments

Loading comments...

https://www.kipuhub.com/en/article/st-petersburg-paradox/Content licensed under CC BY-NC 4.0.