← Back to Library
Wikipedia Deep Dive

St. Petersburg paradox

Based on Wikipedia: St. Petersburg paradox

The Game That Broke Mathematics

Here's a simple game. I flip a coin. If it lands heads on the first flip, I pay you two dollars. If it lands tails, I flip again. Heads on the second flip? Four dollars. Tails again? We keep going. Eight dollars, then sixteen, then thirty-two—doubling each time until heads finally appears and you collect your winnings.

How much would you pay to play this game?

Most people say something between five and twenty-five dollars. That seems reasonable—you'll probably get heads within the first few flips and walk away with a modest sum. But here's the thing that has haunted mathematicians for over three hundred years: according to the standard rules of probability, you should be willing to pay any amount to play. A million dollars. A billion. Everything you own.

This is the Saint Petersburg paradox, and it reveals something deeply strange about how we make decisions under uncertainty.

The Math That Goes Wrong

Let's work through why the expected value of this game is infinite. Expected value is a fundamental concept in probability—you calculate it by multiplying each possible outcome by its probability, then adding everything up. It tells you what you'd win on average if you played the game many, many times.

In our coin-flip game, the outcomes look like this:

  • Heads on flip one (probability one-half): you win two dollars
  • Heads on flip two (probability one-quarter): you win four dollars
  • Heads on flip three (probability one-eighth): you win eight dollars
  • And so on, forever

Now calculate the expected value. Each outcome contributes: probability times payout. So we get one-half times two dollars, plus one-quarter times four dollars, plus one-eighth times eight dollars. That's one dollar, plus one dollar, plus one dollar. Every term in this infinite sum equals exactly one dollar.

One plus one plus one plus one, continuing forever.

The expected value is infinite.

This means that if you truly believed in maximizing expected value—the cornerstone of rational decision-making in economics—you should mortgage your house to play this game. You should sell everything. Any finite price is a bargain compared to infinity.

But of course, nobody would actually do that. And the gap between what the math says and what any sensible person would do is the paradox.

A Family Affair

The problem was invented by Nicolas Bernoulli, a Swiss mathematician, who described it in a letter to Pierre Raymond de Montmort on September 9, 1713. But the paradox takes its name from Nicolas's cousin Daniel Bernoulli, who published his analysis in the Commentaries of the Imperial Academy of Science of Saint Petersburg in 1738—hence "Saint Petersburg."

The Bernoulli family was absurdly accomplished in mathematics. Over three generations, they produced eight prominent mathematicians. Nicolas and Daniel's work on probability and decision theory laid groundwork that economists still build on today. But in this case, they stumbled onto something that resisted easy answers.

Daniel Bernoulli captured the puzzle perfectly: "Although the standard calculation shows that the value of the player's expectation is infinitely great, it has to be admitted that any fairly reasonable man would sell his chance, with great pleasure, for twenty ducats."

Twenty ducats. Not infinity. Not even close.

The Utility Solution

Daniel Bernoulli's proposed solution was elegant and influential: the problem, he argued, is that we shouldn't care about money itself. We should care about what money does for us—its utility.

Think about it this way. If you have ten dollars and someone gives you another hundred, that's transformative—you can buy dinner, fill your gas tank, maybe catch a movie. But if you have ten million dollars and someone gives you another hundred, you barely notice. The same hundred dollars creates vastly different amounts of actual benefit depending on how much you already have.

Bernoulli suggested that the utility of money follows a logarithmic pattern. The jump from one dollar to ten dollars feels about as significant as the jump from ten dollars to a hundred, which feels about as significant as the jump from a hundred to a thousand. Each multiplication gives roughly equal satisfaction.

When you recalculate the Saint Petersburg game using logarithmic utility instead of raw dollars, something remarkable happens. The infinite sum suddenly converges to a finite number. A millionaire, by this math, should pay about twenty-one dollars to play. Someone with only a thousand dollars should pay about eleven. The answers start matching what people actually say.

This was a breakthrough. It introduced the concept of expected utility—the idea that rational decision-making isn't about maximizing money but maximizing the satisfaction that money brings. This concept became foundational to modern economics.

But there's a catch.

The Paradox Strikes Back

Gabriel Cramer, a mathematician from Geneva, had actually beaten Daniel Bernoulli to part of this insight by a decade. In 1728, Cramer wrote that "mathematicians estimate money in proportion to its quantity, and men of good sense in proportion to the usage that they may make of it."

But both Cramer's and Bernoulli's solutions have a vulnerability. You can construct a modified version of the game that brings the paradox roaring back.

How? Just make the payouts grow faster. If logarithmic utility tames the original game, design new payouts that grow exponentially faster than the logarithm shrinks them. Mathematician Karl Menger pointed this out: for any unbounded utility function—any function that keeps growing forever, no matter how slowly—you can construct a variant of the Saint Petersburg game that produces infinite expected utility.

This is like a mathematical arms race. Every proposed solution can be defeated by a cleverer version of the game. The only way to truly escape is to say that utility is bounded—that there's some maximum level of satisfaction, and beyond that point, more money simply doesn't help. But this seems philosophically strange. Is there really no difference between having a trillion dollars and having a trillion trillion?

The Casino Goes Bankrupt

Perhaps the most practical objection to the paradox is simply this: no casino could actually run this game.

The math assumes the casino has infinite resources. But of course it doesn't. If you flip tails thirty times in a row (probability about one in a billion), the casino would owe you over a billion dollars. Flip forty times? Over a trillion. At some point, the casino simply can't pay.

Georges-Louis Leclerc, the Comte de Buffon—a French naturalist better known for his work on biology—calculated in 1777 that after just twenty-nine rounds, the required payout would exceed all the money in the Kingdom of France.

When you factor in realistic limits, the expected value drops dramatically. Against a casino with a million dollars, the expected value is only about twenty dollars. Against the entire wealth of a modern nation, it might be thirty or forty dollars. Against all the money that exists on Earth—maybe fifty dollars. The "infinity" only appears when you assume impossible resources.

This resolution is satisfying in one way: it explains why no one offers this game and why no one would pay much to play it. But it sidesteps the deeper question. The paradox was meant to test our theories of rational choice. Saying "the game can't exist" doesn't tell us whether expected value maximization is the right way to think.

Ignoring the Impossible

The Comte de Buffon proposed another solution: reasonable people simply ignore events that are sufficiently unlikely.

He offered a wonderfully morbid way to calibrate this. A healthy fifty-six-year-old man, Buffon noted, doesn't spend his days worrying about dying in the next twenty-four hours—even though the mortality tables of his era put this probability at about one in ten thousand. If we routinely ignore risks at that level, Buffon argued, we should ignore coin-flip sequences that improbable too.

Cutting off the Saint Petersburg game at the point where probabilities drop below one in ten thousand leaves you with only thirteen relevant flips. The expected value? Exactly thirteen dollars. A far cry from infinity, and much closer to what people actually report.

This feels intuitively right. We do ignore sufficiently unlikely events in daily life. You don't refuse to leave your house because a meteor might hit you. But as a theory of rational choice, it has problems. Where exactly do you draw the line? Why one in ten thousand and not one in a hundred thousand? And isn't it a bit arbitrary to simply declare that unlikely enough events don't count?

The Psychology of Risk

Nicolas Bernoulli himself—the original inventor of the problem—suggested that people naturally underweight unlikely events. We don't properly account for those one-in-a-million possibilities, even when they carry enormous payoffs.

This intuition eventually flowered into prospect theory, developed by psychologists Daniel Kahneman and Amos Tversky in the late twentieth century. Prospect theory showed that people don't treat probabilities linearly. We tend to overweight small probabilities in some contexts (that's why people buy lottery tickets) and underweight them in others (that's why people underinsure against rare disasters).

But here's an ironic twist: in some versions of prospect theory, the Saint Petersburg paradox actually gets worse. The theory's probability weighting function can sometimes inflate the value of unlikely events rather than diminish it. Whether you escape the paradox depends on technical details about how curved the utility function is relative to the probability weights.

There's a deeper issue too. Paul Weirich argued that risk aversion should resolve the paradox—surely people are willing to accept lower expected value in exchange for certainty. But others point out that some people actively enjoy risk. They seek out gambling precisely because of the thrill. And it seems logically strange to say that making a game's prizes bigger should make people less willing to play.

The Peter and Paul Problem

Economist Paul Samuelson, a Nobel laureate, offered a different perspective entirely. Even if someone could run this game, he argued, they never would.

Think about it from the casino's side. If the expected value to the player is infinite, then the expected value to the house is negative infinity. The casino expects to lose an infinite amount of money. What rational operator would offer such a game at any finite price?

Samuelson put it memorably: "Paul will never be willing to give as much as Peter will demand for such a contract; and hence the indicated activity will take place at the equilibrium level of zero intensity." In plain language: no deal will ever be struck. The game exists only as a thought experiment because no one on either side would actually agree to play it.

This doesn't resolve the philosophical puzzle—it still seems like expected value maximization gives crazy answers—but it explains why we never encounter the paradox in practice.

Time and Ergodicity

A more recent approach attacks the problem from an unexpected angle: the physics of time.

Expected value calculations implicitly assume you can play a game infinitely many times and average the results. But you can't. You're one person with one life and one bankroll. Physicist Ole Peters argued that we should think about what happens to a single player over time, not what happens to an infinite population of players in a single instant.

When you do this math—analyzing the "time-average" rather than the "ensemble average"—the Saint Petersburg game looks very different. A real person playing repeatedly would, with probability approaching certainty, eventually go broke. The infinite expected value is a mirage created by averaging over possibilities that no individual would actually experience.

This connects to ideas from investment theory. The Kelly criterion, a formula for optimal bet sizing developed by physicist John Kelly at Bell Labs in 1956, tells you to bet a fraction of your bankroll proportional to your edge. It explicitly avoids bet sizes that could wipe you out, even if those bets have positive expected value. The Kelly criterion and logarithmic utility turn out to be mathematically related—different perspectives on the same underlying truth about sustainable decision-making.

The Game Mutates

As if the original paradox weren't troublesome enough, creative mathematicians have invented variants that defeat various proposed solutions.

Consider the "Pasadena game." Instead of the standard doubling payoffs, you win or lose based on whether the number of coin flips is odd or even. The payoff structure is designed so that the expected value depends on how you add up the terms. Rearrange the infinite sum one way, and you get one answer. Rearrange it another way, and you get a completely different answer. The expected value isn't just infinite—it's undefined.

This is mathematically legitimate. The sum involved is "conditionally convergent," meaning its value genuinely depends on the order of terms. It's like having a game where the expected value is simultaneously every number. What should a rational person pay for that?

What the Paradox Teaches

Three centuries after Nicolas Bernoulli first posed the problem, the Saint Petersburg paradox remains genuinely unresolved. Every proposed solution either has counterexamples, requires somewhat arbitrary assumptions, or sidesteps rather than answers the core question.

But perhaps that's the point. The paradox isn't a puzzle waiting to be solved—it's a permanent warning sign at the edge of decision theory.

Expected value maximization is a powerful tool. It works beautifully for insurance pricing, investment analysis, and countless practical applications. But push it far enough, into regimes of infinite resources and unbounded outcomes, and it starts giving answers that no sane person would follow.

This matters beyond mathematics. Modern finance, artificial intelligence, and public policy all use expected value calculations. The Saint Petersburg paradox reminds us that these calculations have limits. When stakes become extreme, when probabilities become tiny, when payoffs become astronomical, the standard framework may quietly stop working.

The paradox also reveals something about human nature. We don't actually maximize expected value, and maybe we shouldn't. We care about risk. We care about ruin. We care about what's likely, not just what's theoretically possible. Our instinctive reluctance to pay much for the Saint Petersburg game isn't irrationality—it might be wisdom that the mathematics hasn't yet captured.

Daniel Bernoulli's reasonable man, happily selling his chance for twenty ducats, understood something that the infinite expected value misses. The math is correct. The math is also, in some deep sense, wrong. That gap—between rigorous calculation and sound judgment—is where the paradox lives, as vital and unresolved today as it was in 1713.

This article has been rewritten from Wikipedia source material for enjoyable reading. Content may have been condensed, restructured, or simplified.