sciandu
Mathematics

Mathematics

The binomial distribution

Roll a die ten times and you want exactly two sixes. One formula covers every task of this shape.

Many questions look different and are really the same: how likely are exactly 2 sixes in 10 rolls? How likely are exactly 3 faulty parts among 20? How likely is it to score 5 out of 8 free throws? Every time the same trial is repeated, each time with the same chance, and all that counts is how often it worked.

The Bernoulli chain

Three conditions have to hold. First: every trial has only two outcomes, hit or no hit. Second: the hit probability pp stays the same in every trial. Third: the trials do not influence each other. If all of that holds, you have a Bernoulli chain, and then the formula of this topic applies.

Marble bag
Blue3
Yellow5
P(Blue) = 3/8 = 37.5%
The bag supplies the pp for a single trial. Set 2 blue and 8 yellow and p=20%p = 20\,\% for blue. A Bernoulli chain arises when you draw from it ten times and put the marble back each time, because only then does pp stay constant. Without replacement the bag would change, and the formula of this topic would no longer apply.

Where the formula comes from

Take 3 rolls with p=16p = \frac{1}{6} and ask for exactly one six. One possible course is hit, miss, miss, and its probability is 165656\frac{1}{6} \cdot \frac{5}{6} \cdot \frac{5}{6}. But the six could also come on the second or third roll. All three courses have the same probability, so you have to multiply by 3.

That is exactly what the binomial coefficient (nk)\binom{n}{k} does, read as nn choose kk. It counts in how many ways kk hits can be spread across nn trials. For 3 trials and 1 hit that is 3 ways, for 10 trials and 2 hits already 45.

P(X=k)=(nk)pk(1p)nkP(X = k) = \binom{n}{k} \cdot p^k \cdot (1-p)^{\,n-k}
Number of arrangements times probability of the hits times probability of the misses.

The three building blocks are easy to remember. pkp^k stands for the kk hits, (1p)nk(1-p)^{n-k} for the remaining trials without a hit, and the binomial coefficient for the fact that the hits can sit in different places. For 10 rolls and exactly 2 sixes that gives (102)(16)2(56)80.29\binom{10}{2} \cdot \left(\frac{1}{6}\right)^2 \cdot \left(\frac{5}{6}\right)^8 \approx 0.29.

At least and at most

It is rare for a question to ask about exactly one number. For at least one hit the direct calculation would be tedious, because you would have to add every case from 1 to nn. The detour via the complementary event is far shorter: at least one hit is the opposite of no hit at all, so P(X1)=1P(X=0)P(X \geq 1) = 1 - P(X = 0). And P(X=0)P(X = 0) is simply (1p)n(1-p)^n.

Exercises

0 of 6 solved

Time to try it yourself. You can't break anything, every attempt counts.

Which condition does not belong to a Bernoulli chain?

A coin is tossed 5 times. How many different orders give exactly 1 head? That is (51)\binom{5}{1}.

A die is rolled 30 times. How many sixes do you expect?

The binomial coefficient (nk)\binom{n}{k} counts .

How do you work out the probability of exactly 3 sixes in 10 rolls?

Match each part of the formula to its meaning.

(nk)\binom{n}{k}
pkp^k
(1p)nk(1-p)^{n-k}

Where this leads