In 1713 Nicolaus Bernoulli, nephew of Jakob and of Johann, put an innocent-looking problem to the French mathematician Pierre Rémond de Montmort in a letter. Peter tosses a coin until it comes up heads. If heads comes on the first toss, he pays Paul $1$ crown; if only on the second, $2$ crowns; on the third, $4$; on the fourth, $8$; and so on, doubling each time. How much should Paul pay for the game to be fair?

The infinite expectation

The rule of the time, which came from Pascal, Fermat and Huygens, said that the fair price of a game is its expectation: the sum of the prizes multiplied by their probabilities. Heads first appears on toss $k$ with probability $\frac{1}{2^k}$, and the prize in that case is $2^{k-1}$. The expectation is

$$\frac{1}{2} \cdot 1 + \frac{1}{4} \cdot 2 + \frac{1}{8} \cdot 4 + \frac{1}{16} \cdot 8 + \cdots = \frac{1}{2} + \frac{1}{2} + \frac{1}{2} + \frac{1}{2} + \cdots$$

Each term is worth half a crown, and there are infinitely many terms: the expectation is infinite. By the rule, Paul ought to agree to pay any amount to play, a million crowns, a billion. And yet, Nicolaus observed, no sensible person would pay more than a few crowns. Montmort could not resolve the question, and it went round the Bernoullis for years.

The letter from London

Cramer heard of the problem and, on 21 May 1728, during his travels, wrote from London to Nicolaus Bernoulli with an explanation. The paradox, he said, comes from a confusion:

Mathematicians value money in proportion to its quantity, and people of good sense in proportion to the use they can make of it.

— Gabriel Cramer, letter to Nicolaus Bernoulli (London, 21 May 1728)

A hundred million crowns do not make a person a hundred times happier than one million. Beyond a certain point, more money changes almost nothing. Cramer proposed two ways of bringing this into the calculation.

First: a ceiling. Suppose that any sum above $2^{24} = 16{,}777{,}216$ crowns is worth no more than that sum itself. Up to toss $25$ the prize is $2^{k-1} \le 2^{24}$, and each term is still worth half a crown; from then on the prize is stuck at $2^{24}$. The expectation becomes

$$\underbrace{\frac{1}{2} + \cdots + \frac{1}{2}}_{25 \text{ terms}} + 2^{24}\left(\frac{1}{2^{26}} + \frac{1}{2^{27}} + \cdots\right) = \frac{25}{2} + \frac{2^{24}}{2^{25}} = 12.5 + 0.5 = 13.$$

Thirteen crowns: a sensible number.

Second: the square root. Suppose that the “moral value” of a sum $q$ is proportional to $\sqrt{q}$. The expected moral value of the game is

$$\sum_{k=1}^{\infty} \frac{1}{2^k}\sqrt{2^{k-1}} = \frac{1}{2}\sum_{k=0}^{\infty} \left(\frac{1}{\sqrt 2}\right)^{k} = \frac{1}{2} \cdot \frac{1}{1 - \frac{1}{\sqrt 2}} = \frac{1}{2 - \sqrt 2} \approx 1.707.$$

The amount of money with that moral value is $1.707^2 \approx 2.9$ crowns. That was the figure Cramer found.

Daniel Bernoulli and the name of the paradox

Ten years later, in 1738, Daniel Bernoulli, Nicolaus’s cousin, published in the Commentaries of the St Petersburg Academy a paper with a similar idea: the value of a gain is inversely proportional to the wealth of the person receiving it, which leads to measuring value by the logarithm of wealth. It was because of this publication that the problem became known as the St Petersburg paradox. When the paper was already finished, Nicolaus showed Daniel Cramer’s letter, and Daniel had the honesty to transcribe it at the end of the paper, acknowledging that the Genevan had reached the same idea first.

The idea of Cramer and Daniel Bernoulli, that one should compute the expectation not of money but of the utility of money, is the foundation of decision theory. Two centuries later, John von Neumann and Oskar Morgenstern turned it into expected utility theory, which economics still uses today.

In the figure, play the game many times and see what happens to the average prize. It does not settle down: every so often a long run of tails produces an enormous prize and makes it jump.

Exercise: any ceiling

Show that if the prize is capped at $2^m$ crowns, the expectation of the game is $\frac{m + 2}{2}$ crowns. What is it for $m = 10$?

Up to toss $m + 1$ the prize is $2^{k-1} \le 2^m$, and each of the $m + 1$ terms is worth $\frac{1}{2}$. On the following tosses the prize is $2^m$, and those terms add up to $2^m \left(\frac{1}{2^{m+2}} + \frac{1}{2^{m+3}} + \cdots\right) = 2^m \cdot \frac{1}{2^{m+1}} = \frac{1}{2}$. The total is $\frac{m + 1}{2} + \frac{1}{2} = \frac{m + 2}{2}$. For $m = 10$, with a ceiling of $1{,}024$ crowns, the expectation is $6$ crowns; for $m = 24$ it is $13$, as Cramer calculated.

Exercise: Daniel Bernoulli's calculation

If the value of a sum $q$ is $\ln q$, the expected value of the game is $\sum_{k \ge 1} \frac{1}{2^k} \ln 2^{k-1}$. Compute this sum, given that $\sum_{k \ge 1} \frac{k - 1}{2^k} = 1$, and find the equivalent amount.

The sum is $\ln 2 \cdot \sum_{k \ge 1} \frac{k - 1}{2^k} = \ln 2$. The amount whose value is $\ln 2$ is $2$ crowns. Daniel’s logarithm gives a fair price of $2$ crowns, Cramer’s square root $2.9$: different answers in detail, but the same in essence.

Sources: Daniel Bernoulli, “Specimen theoriae novae de mensura sortis”, Commentarii Academiae Scientiarum Imperialis Petropolitanae 5 (1738), with Cramer’s letter · Pierre Rémond de Montmort, Essay d’analyse sur les jeux de hazard, 2nd ed. (1713) · Gérard Jorland, “The Saint Petersburg Paradox 1713–1937”, in The Probabilistic Revolution, vol. 1 (1987) · “St. Petersburg Paradox”, Stanford Encyclopedia of Philosophy.


All topics on Gabriel Cramer · ← Newton’s parallelogram and the branches of curves · The legacy of Gabriel Cramer →

Image credits.