5.4 - The binomial distribution

5.4 - The binomial distribution

When the same chance experiment is repeated a fixed number of times, how can you find the chance of a particular number of successes? Learn when a binomial model fits, calculate exact and cumulative probabilities, and use its mean and variance to recover unknown parameters.

When a binomial model fits

Six independent attempts each have a success probability of 0.250.25. Is exactly two successes more likely than no successes? Listing every possible sequence would work, but a binomial model counts the relevant sequences for you.

First decide what one trial is and what you will call a success. Success is just the outcome being counted: a faulty component can be a success in the mathematical model.

Binomial distribution

The random variable XX has the binomial distribution B(n,p)\mathrm B(n,p) when it counts successes in a fixed number nn of independent trials, each with two outcomes and the same success probability pp.

Write X∼B(n,p)X\sim\mathrm B(n,p). Its possible values are 0,1,…,n0,1,\ldots,n, where nn is a positive integer and 0≤p≤10\le p\le1.

An experiment can have several physical outcomes as long as they are grouped into success and failure. For a die, “a six” and “not a six” are two outcomes for this purpose. Independence means that knowing earlier outcomes does not change the chance of success on a later trial. Equal marginal probabilities alone do not establish independence.

Worked example 1: sampling with replacement

Question. A bag contains 3 red and 7 blue counters. A counter is drawn, its colour recorded and the counter replaced. The bag is mixed before each of 8 draws. State a distribution for the number XX of red counters drawn and justify it.

Plan. Check the trial count, the success definition, independence and the success probability.

There are exactly 88 trials. Each is red or not red. Replacement restores the original contents, and the draws are modelled as independent after mixing. On every draw,

p=310=0.3.p=\frac3{10}=0.3.

Answer. X∼B(8,0.3)X\sim\mathrm B(8,0.3).

Check. The count can be 00 or 88, and every integer between them. These are precisely the possible values of this binomial variable.

Now change only the replacement rule. The first success probability stays the same, but later ones can change.

Worked example 2: sampling without replacement

Question. The same bag contains 3 red and 7 blue counters. Eight counters are drawn without replacement. Is B(8,0.3)\mathrm B(8,0.3) an appropriate distribution for the number of reds?

Plan. Test whether an earlier outcome changes the next success probability.

After a red first draw, the probability of another red is 2/92/9. After a blue first draw it is 3/93/9. Neither conditional probability equals the original 3/103/10, so the trials are dependent.

Answer. No: the binomial independence and constant conditional success probability requirements fail.

Check. There are only 33 red counters, so X≤3X\le3. A B(8,0.3)\mathrm B(8,0.3) model would assign positive probability to X=8X=8, an impossible outcome here.

In applications, a statement such as “independently, with probability 0.250.25 on each attempt” supplies assumptions. If the probability changes through practice, fatigue or changing conditions, justify a binomial model rather than assuming it from a repeated experiment alone.

Watch out

“Two outcomes” is not enough. A fixed trial count, independence and the same success probability are also needed. Stopping as soon as the first success occurs does not give a fixed number of trials.

Choose the experiment whose conditions support the proposed model.

Exact and cumulative probabilities

One particular sequence with two successes in six attempts has probability 0.252×0.7540.25^2\times0.75^4. It is not the only sequence: the two successes can occupy any 22 of the 66 positions, giving (62)=15\binom62=15 sequences. Add their equal probabilities by multiplying by 1515.

Binomial probabilities

For X∼B(n,p)X\sim\mathrm B(n,p), where 0<p<10<p<1, and an integer rr with 0≤r≤n0\le r\le n,

P(X=r)=(nr)pr(1−p)n−r.\mathrm P(X=r)=\binom nr p^r(1-p)^{n-r}.

In the formula booklet.

The powers count successes and failures. The coefficient counts the positions of the successes. At the endpoint cases, p=0p=0 gives X=0X=0 with certainty and p=1p=1 gives X=nX=n with certainty. For “at most”, add the probabilities of the permitted integer values. For “at least”, a complement often uses fewer terms.

Worked example 3: exactly two successes

Question. Six independent attempts each have success probability 0.250.25. Find the probability of exactly two successes.

Plan. Use n=6n=6, p=0.25p=0.25 and r=2r=2 in the binomial formula.

P(X=2)=(62)(0.25)2(0.75)4=15×116×81256=0.296630859375\begin{aligned} \mathrm P(X=2)&=\binom62(0.25)^2(0.75)^4\\ &=15\times\frac1{16}\times\frac{81}{256}\\ &=0.296630859375 \end{aligned}

Answer. 0.2970.297, to 33 significant figures.

Check. Every two-success sequence has probability 81/409681/4096. Multiplying by the 1515 possible pairs of success positions gives 1215/40961215/4096, the same result. Omitting the coefficient would count just one sequence.

Change “exactly two” to “at least two”. The model is unchanged; the event now includes 2,3,4,5,62,3,4,5,6.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account