click here for the plus home page
© 1997-2004, Millennium Mathematics Project, University of Cambridge.
Permission is granted to print and copy this page on paper for non-commercial use. For other uses, including electronic redistribution, please contact us.
January 1998
Regulars

Solution to the coin tossing problem


If XN appears as XN then your browser does not support subscripts or superscripts. Please use this alternative version.

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

(1/2)^(k+1)

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

(n-k)*(1/2)^(k+1)

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.

Acknowledgements

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