We will present three ``how" solutions and one ``why" solution. The ``why" solution is at the end (solution #4); you can skip immediately to it if the discussion of 1-3 is too technical.
Solutions 1-3, while shedding no real light on why the answer is what it is, are not without interest. Each one involves different important techniques, although all of them stem from the same basic probability ideas:
Basic
probability theory states that if you flip a coin
times, the
probability of exactly
heads is
![]() |
![]() |
||
![]() |
|||
![]() |
![]() |
||
![]() |
![]() |
![]() |
||
![]() |
Consider a specific case,
. We will simulate the experiment of
selecting a
and then flipping the
-coin 5 times by
using a random number generator which spits out ``uniformly distributed"
random numbers between 0 and
1.
If our simulation produced all heads, it would have been the case that the
first random number (
) was larger than the next
5 numbers. Conversely, if we had all tails, then the first number would
have been the smallest of the 6. What if the
simulation produced exactly 1 head? In this case, exactly one of the 5
coin-toss numbers would be smaller than the first
(
); in other words, the first number was the 2nd smallest number of the 6.
By now you may see the punchline: the number of heads produced by the simulation depends only on the relative rank of the first random number. If it is the largest of the 6, we produce 5 heads; if it the 2nd largest, 4 heads are produced; and so on.
But when you produce 6 uniformaly distributed random numbers the relative rank of the first number is not special, it is no more likely for the first number to be the smallest, say as it is to be the 4th largest.
Thus, of the 6 possible ranks, all are equally likely. So each of the 6 possible coin simulations (0 heads, 1 head, ..., 5 heads) are equally likely, each with probability 1/6.
Certainly this generalizes to
coin tosses. The crux idea--the
``why"--behind the solution--is the fact that when
you select
uniformly distributed random numbers (between 0 and 1) , the
relative rank of any specific number is itself
uniformly distributed (between 1 and n). This is a simple, intuitive
property of uniformly distributed random numbers.
So now you should understand why the coin problem had the answer
that it did. It is not unexpected, magical
algebra. It is just simple, almost inevitable symmetry.