Home▸Articles▸Probability & Statistics

The St. Petersburg Paradox: A Probability Ladder Cascade

A classic problem in probability theory that challenges our understanding of expected values and risk.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What the St. Petersburg Paradox Is

The St. Petersburg paradox involves a coin-flip game where a player wins money based on the number of heads flipped consecutively before getting a tail. The payout doubles with each additional head, leading to an expected value that is theoretically infinite.

Despite its seemingly fair nature, this paradox highlights the limitations of using expected values as a measure of fairness or rational decision-making.

Why It Happens

The paradox arises because the probability of winning large sums decreases exponentially, but the potential payouts increase exponentially. This creates an infinite expected value that is not practically achievable.

Mathematically, if we denote the payout as 2^n where n is the number of consecutive heads before a tail, the expected value E is given by the sum of (1/2)^(n-1)*2^n from n=1 to infinity, which diverges.

live demo · related simulation● LIVE

Real-World Implications

The St. Petersburg paradox has implications in economics and decision theory, where it challenges the idea that rational decisions should be based solely on expected values.

It also highlights the importance of considering risk aversion and utility functions when making decisions under uncertainty.

How to Resolve the Paradox

To resolve the paradox, various methods can be applied. One common approach is to introduce a cap on the number of coin flips or the maximum payout, which makes the expected value finite.

Another method involves considering the utility function of the player, where the utility of money decreases as wealth increases, thus making large payouts less attractive.

Frequently asked questions

What is the flip-cap slider for in the simulation?

The flip-cap slider limits the number of consecutive heads that can occur before a tail, effectively capping the maximum payout and bringing the expected value down to a finite number.

How does the entry-fee slider affect the game's outcome?

Adjusting the entry-fee slider allows you to compare the net gain or loss after accounting for the initial cost of playing. This helps illustrate how the expected value can still be infinite even when considering costs.

Why is the St. Petersburg paradox considered a problem in probability theory?

It challenges the intuitive understanding that games with finite expected values are fair, and it highlights the limitations of using expected value as a measure of fairness or rationality.

Can the St. Petersburg paradox be resolved by changing the game rules?

Yes, by introducing practical limits such as a maximum number of flips or a cap on payouts, the paradox can be resolved and the expected value becomes finite, aligning better with real-world decision-making.

Try it live

Everything above runs in your browser — open St. Petersburg Paradox — Probability Ladder Cascade and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open St. Petersburg Paradox — Probability Ladder Cascade simulation

What did you find?

Add reproduction steps (optional)