Example — Biased coin, exactly two heads

A biased coin comes up heads in 13\tfrac{1}{3} of cases. It is tossed 55 times: what is the probability of getting exactly 22 heads?

We apply the binomial formula with n=5n=5, k=2k=2, p=1/3p=1/3:

P5(2)=(52)(13)2(113)52=1019827=802430,329.P_5(2) = \binom{5}{2}\left(\frac{1}{3}\right)^2\left(1-\frac{1}{3}\right)^{5-2} = 10\cdot \frac{1}{9}\cdot \frac{8}{27} = \frac{80}{243} \approx 0,329.

Careful

If we ask “the first two are heads and the rest tails” the answer is much smaller: only (13)2(23)3=8/243\left(\tfrac{1}{3}\right)^2\left(\tfrac{2}{3}\right)^3 = 8/243. The difference is the factor (52)=10\binom{5}{2}=10: without a constraint on the order, one multiplies by the number of ways the two heads can be distributed among the five positions.

Topics: Probability
Concepts: Binomial distribution
Methods: Binomial
Skills: Probability calculation