Quant interview prep guides

The St. Petersburg Paradox, for quant interviews

A coin game with infinite expected value that no sane trader will pay $20 to play. The interviewer isn’t testing whether you can sum a series — they’re testing whether you know that expected value is the wrong yardstick here, and whether you can produce the right one.

For candidates reasoning about expected value, utility, and tail risk · Updated July 21, 2026

Infinite expected value, and nobody will pay $20

A house offers you this game. It flips a fair coin until the first Heads appears. If that first Heads lands on flip kkk, it pays you $2k\$2^{k}$2k: two dollars for Heads on flip one, four for Heads on flip two, eight for flip three, and so on, doubling forever. What is the most you would pay for a single ticket?

Compute the expected payout and you get a number that ends the conversation: infinity. By the naive rule “pay anything below expected value,” you should hand over your house, your savings, and your firstborn for one ticket. You wouldn’t pay $20. Neither would the interviewer, and neither would any desk. That gap — between an infinite average and a two-figure willingness to pay — is the entire question. They are not testing whether you can evaluate the sum. They are testing whether you understand that expected value is a tool with a domain of validity, and whether you can name what breaks it here.

Why the expected value really is infinite

Do the arithmetic honestly first, because the answer is genuinely ∞\infty∞ and pretending otherwise is a worse mistake than believing it. The payoff on flip kkk is $2k\$2^{k}$2k and it occurs with probability 2−k2^{-k}2−k (that is k−1k-1k−1 Tails then a Head: (1/2)k−1⋅(1/2)=2−k(1/2)^{k-1}\cdot(1/2)=2^{-k}(1/2)k−1⋅(1/2)=2−k), so each term of the expectation is a product of a shrinking probability and an exploding prize:

E[X]=∑k=1∞2−k⋅2k=∑k=1∞1=∞\E[X] = \sum_{k=1}^{\infty} 2^{-k}\cdot 2^{k} = \sum_{k=1}^{\infty} 1 = \inftyE[X]=k=1∑∞​2−k⋅2k=k=1∑∞​1=∞

Look at what happened: the probability halves every round and the payoff doubles every round, so they cancel exactly. Every single round contributes the same $1\$1$1 to the expected value, and there is no final round to stop the sum. The partial sum after nnn rounds is exactly $n\$n$n — it grows without bound. The infinity is not a rounding artifact or a trick of notation; it is a real feature of a payoff that grows as fast as its probability decays. Any correct answer starts by conceding this, then explains why it doesn’t imply an infinite price.

Why the St. Petersburg expected value divergesEight equal-height emerald bars, each an EV contribution of one dollar, under a slate partial-sum line that rises one unit per round and never converges.EXPECTED-VALUE CONTRIBUTION PER ROUNDp = ½$2= $1k=1p = ¼$4= $1k=2p = ⅛$8= $1k=3p = 1/16$16= $1k=4p = 1/32$32= $1k=5p = 1/64$64= $1k=6p = 1/128$128= $1k=7p = 1/256$256= $1k=8Sₙ = n → ∞partial sum never converges
Probability halves each round while the prize doubles, so the two cancel and every round contributes exactly $1 to the expected value. The running total climbs as a straight line — 1, 2, 3, … — with no final round to stop it. That is the whole reason the mean is infinite.

What the interviewer is actually testing: the tail is the whole distribution

Expected value is a mean, and a mean is only a good summary when the distribution isn’t dominated by a remote tail. Here it is all tail. Ask what actually happens when you play. With probability 12\tfrac1221​ you win just $2\$2$2. With probability 34\tfrac3443​ you win $4\$4$4 or less. With probability 78≈87.5%\tfrac78 \approx 87.5\%87​≈87.5% you walk away with $8\$8$8 or less. The chance of winning $64\$64$64 or more is 2−5≈3.1%2^{-5} \approx 3.1\%2−5≈3.1%.

So the typical experience of this game is winning pocket change; the infinite mean is manufactured entirely by outcomes like “1,024 Tails in a row,” each astronomically unlikely and astronomically large. The interviewer wants you to say: expected value is being hijacked by a measure-zero-in-spirit tail, so a decision-maker should price the game by something that discounts that tail — bounded utility, a finite bankroll, or the long-run growth rate. That single sentence is what separates a candidate who memorized “St. Petersburg = infinity” from one who understands why the paradox is a paradox.

Bernoulli’s resolution: value the prize, not the dollars

Daniel Bernoulli’s 1738 fix, and still the cleanest interview answer: people value marginal dollars less as they get richer. Replace the linear “money” yardstick with a concave utility u(x)u(x)u(x) and price the game by expected utility. Take the canonical choice u(x)=ln⁡xu(x)=\ln xu(x)=lnx. Then the utility of a $2k\$2^{k}$2k prize is ln⁡(2k)=kln⁡2\ln(2^{k})=k\ln 2ln(2k)=kln2 — it grows only linearly in kkk while the prize grows geometrically. Weight those utilities by their probabilities:

E[ln⁡X]=∑k=1∞2−k ln⁡(2k)=ln⁡2∑k=1∞k 2−k=ln⁡2⋅2=2ln⁡2\E[\ln X] = \sum_{k=1}^{\infty} 2^{-k}\,\ln(2^{k}) = \ln 2\sum_{k=1}^{\infty} k\,2^{-k} = \ln 2 \cdot 2 = 2\ln 2E[lnX]=k=1∑∞​2−kln(2k)=ln2k=1∑∞​k2−k=ln2⋅2=2ln2

The series ∑k≥1k 2−k\sum_{k\ge1} k\,2^{-k}∑k≥1​k2−k converges to 222 (it is x(1−x)2\tfrac{x}{(1-x)^2}(1−x)2x​ at x=12x=\tfrac12x=21​), so the expected log-utility is finite: 2ln⁡22\ln 22ln2. Convert back to a dollar figure via the certainty equivalent, the guaranteed amount with the same utility: ln⁡(CE)=2ln⁡2\ln(\text{CE}) = 2\ln 2ln(CE)=2ln2, hence

CE=e2ln⁡2=22=$4\text{CE} = e^{2\ln 2} = 2^{2} = \$4CE=e2ln2=22=$4

A log-utility player should pay about $4 for a ticket — finite, small, and much closer to human behavior than ∞\infty∞. Concavity tamed the tail: doubling a prize adds a fixed ln⁡2\ln 2ln2 of value, not double the value, so the exploding payoffs stop mattering.

Log-utility tames the St. Petersburg payoffThe slate money curve rises geometrically and exits the top of the chart, while the emerald log-utility line rises in equal steps to a finite sum, marking a four-dollar certainty equivalent.VALUE OF THE PRIZE ON FLIP kvalue12345678round k$2$4$8$2ᵏ → off the chart (∞ EV)u = ln(2ᵏ) = k·ln2 (equal steps)each doubling: +ln2Σ = 2·ln2certainty equivalent = $4
Under money (slate) the prize doubles every round and shoots off the chart — that is the infinite mean. Under log-utility (emerald) each doubling adds only a fixed ln⁡2\ln 2ln2, so the value series converges to $2\ln 2$ and the fair price is the certainty equivalent e2ln⁡2=$4e^{2\ln 2}=\$4e2ln2=$4.

The bankroll bound: no real house can pay 2602^{60}260

The utility argument is about your preferences. The blunter, more quant-flavored resolution is about the counterparty: no real house can honor a payoff of $260\$2^{60}$260. Suppose the house can pay at most $2L\$2^{L}$2L and caps the prize there. Then for k≤Lk\le Lk≤L you get $2k\$2^{k}$2k, and for every longer run you get the capped $2L\$2^{L}$2L. The expectation collapses to something tiny:

E[Xcap]=∑k=1L1  +  2L ⁣ ⁣∑k=L+1∞2−k  =  L+2L⋅2−L  =  L+1\E[X_{\text{cap}}] = \sum_{k=1}^{L} 1 \;+\; 2^{L}\!\!\sum_{k=L+1}^{\infty} 2^{-k} \;=\; L + 2^{L}\cdot 2^{-L} \;=\; L+1E[Xcap​]=k=1∑L​1+2Lk=L+1∑∞​2−k=L+2L⋅2−L=L+1

The whole infinite tail past round LLL contributes exactly $1\$1$1. So the fair price is L+1L+1L+1 dollars, where the bankroll is 2L2^{L}2L. Put real numbers on it: a house with a $1 million bankroll (220≈1.05M2^{20}\approx 1.05\text{M}220≈1.05M) makes the game worth about $21. Bump the house to $1 billion (2302^{30}230) and it’s worth $31. Give it a $1 trillion war chest (240≈1.10T2^{40}\approx 1.10\text{T}240≈1.10T) and the ticket is still only worth about $41. The value grows like log⁡2(bankroll)\log_2(\text{bankroll})log2​(bankroll) — doubling the entire bankroll adds exactly one dollar of fair value. “Infinite” was always an idealization that assumed an infinitely deep counterparty.

Fair price versus the house’s bankrollFour rows for bankrolls of two to the tenth, twentieth, thirtieth and fortieth power, whose fair prices are eleven, twenty-one, thirty-one and forty-one dollars.FAIR PRICE = L + 1, WHERE BANKROLL = 2ᴸ$50$1,024 (2¹⁰)$11$1.05M (2²⁰)$21$1.07B (2³⁰)$31$1.10T (2⁴⁰)$41each ×1024 of bankroll → +$10  (each doubling → +$1)
Cap the payoff at the house’s bankroll 2L2^{L}2L and the fair price collapses to L+1L+1L+1 dollars. A million-dollar house makes the ticket worth ~$21; a trillion-dollar house, only ~$41. Value grows like log⁡2\log_2log2​ of the bankroll — doubling the entire bankroll adds exactly $1.

Variants that change the answer

The result is fragile in instructive ways; expect the interviewer to poke it.

  • Super-exponential payoffs defeat log utility. Change the prize to $2(2k)\$2^{(2^{k})}$2(2k). Now ln⁡(payoff)=2kln⁡2\ln(\text{payoff})=2^{k}\ln 2ln(payoff)=2kln2, so each utility term is 2−k⋅2kln⁡2=ln⁡22^{-k}\cdot 2^{k}\ln 2=\ln 22−k⋅2kln2=ln2 and the expected utility diverges again. Log utility is not a magic shield. This is Karl Menger’s 1934 point: only a bounded utility function resolves every version of the paradox, because any unbounded utility can be out-run by a fierce enough payoff schedule.
  • A different growth base. If the prize grows slower than the odds shrink — say payoff ckc^{k}ck with c<2c<2c<2 — each term is 2−kck=(c/2)k2^{-k}c^{k}=(c/2)^{k}2−kck=(c/2)k, a convergent geometric series, and the EV is finite and ordinary. The paradox is specifically the knife-edge where payoff growth exactly matches probability decay.
  • Repeated play / time average. Averaging over infinitely many parallel players (the ensemble average) gives ∞\infty∞, but a single player compounding a fixed fee over time faces a finite — often negative — growth rate. The ergodicity lens is the modern “why EV alone can mislead”: the number you should optimize is the time-average growth rate, not the ensemble mean.

Common mistakes

  • Denying the infinity. Insisting the EV is “really finite” because “you can’t flip forever” without doing the capped-bankroll computation. State E[X]=∞\E[X]=\inftyE[X]=∞ for the idealized game, then introduce the cap.
  • Stopping at “utility fixes it.” Naming diminishing marginal utility but not producing a number. The interviewer wants the certainty equivalent — here e2ln⁡2=$4e^{2\ln 2}=\$4e2ln2=$4 — and wants to hear that unbounded utility can still be broken.
  • Confusing “rare” with “ignorable.” The tail here is rare and enormous; that is exactly the regime where the mean is a bad summary. Reach for the median ($2), a quantile, or a risk-adjusted value instead.
  • Forgetting the counterparty. Pricing purely off your own utility and never asking who is on the other side. The bankroll cap is often the cleanest, most “trader” answer: L+1L+1L+1 dollars for a 2L2^{L}2L house.

Practice the pattern

St. Petersburg is one instance of a whole family: expected value is not willingness to pay. The same reflex — discount the tail with utility, a bankroll, or a growth rate — drives risk-of-ruin questions and Kelly sizing. Drill those on the LeetQuidity curriculum, or take the free calibration to see where your reasoning breaks under time.

Take the calibrationView the curriculum

On this page

The setupWhy EV is infiniteWhat’s really being testedUtility resolutionThe bankroll boundVariantsCommon mistakes

Related guides

Kelly Criterion Interview IntuitionExpected Value vs Utility in InterviewsExpected Value Betting Interview QuestionsRisk Reward Quant Interview QuestionsQuant Interview Cheat Sheet: Formulas, Identities and Fast MethodsQuant Interview Drills by Topic
LeetQuidity

The complete quant interview course.

InstitutionsCurriculumPricingFAQCalibrationDemoGuides
XLinkedInInstagramYouTube

© 2026 LeetQuidity — a W Interior company. All rights reserved.

Privacy PolicyTerms of ServiceTrust & Security