Solution to the coin tossing problem

Solution to the coin tossing problem

January 1998

The chance that any fixed set of k+1 tosses gives k heads followed by a tail is:


In n tosses there are n-k possible starting points of such sequences. Therefore the expected number of wins is:


Using probability theory, one finds that the actual number of wins has what is called an approximate Poisson distribution. That is to say, the probability that you win exactly r pennies is given approximately by the Poisson probability:

p[r] = lambda^r/r! * e^(-lambda), lambda = (n-k)*(1/2)^(k+1)

Your average number of wins equals lambda. If lambda is big, then the number of wins will generally be big also, and if lambda is small then there will be only a small number of wins (perhaps 0).

The threshold between big and small occurs when lambda is a 'reasonable' number, say the value 1. When lambda = 1, then k is very close to log2(n). In this threshold case the Poisson probabilities are given in the following table.

p[0]=0.368, p[1]=0.368, p[2]=0.184, p[3]=0.061, p[4]=0.015, p[5]=0.003

Substantially longer runs than log2(n) are exceedingly unlikely, while substantially shorter runs are commonplace.


This solution was written by Geoffrey Grimmett. You may also be interested in his article "What a coincidence!" elsewhere in this issue.

By submitting this form, you accept the Mollom privacy policy.