Porisma

The binomial distribution

← Back to lesson · Complete chapter reading and print view · Open reference notes separately

By the end, you can

  • Check the assumptions for a binomial model
  • Calculate exact-count and cumulative probabilities
  • Use the binomial mean and variance

about 25 minutes for the lesson · practise at your own pace.

The central idea

A binomial variable counts successes in n independent trials, each with the same success probability p. For X∼B(n,p)X\sim B(n,p), P(X=k)=(nk)pk(1−p)n−kP(X=k)=\binom nkp^k(1-p)^{n-k}. Its mean is np and variance np(1−p). A fixed trial count, two categories per trial, constant p and independence are model assumptions.

Three throws: where the binomial formula comes from

The notes introduce binomial distributions as models for real-world counts, then give their mean and variance without proof later in the chapter. Start with X, the number of sixes in three independent throws of an unbiased die. A throw is grouped into “six” (success, probability 1/6) or “not six” (failure, probability 5/6), even though the physical die has six faces.

Every source probability is retained:

P(X=0)=(5/6)(5/6)(5/6)=(30)(1/6)0(5/6)3.P(X=0)=(5/6)(5/6)(5/6)=\binom30(1/6)^0(5/6)^3. P(X=1)=(1/6)(5/6)(5/6)3!2!=(31)(1/6)1(5/6)2.P(X=1)=(1/6)(5/6)(5/6)\frac{3!}{2!}=\binom31(1/6)^1(5/6)^2. P(X=2)=(1/6)(1/6)(5/6)3!2!=(32)(1/6)2(5/6)1.P(X=2)=(1/6)(1/6)(5/6)\frac{3!}{2!}=\binom32(1/6)^2(5/6)^1. P(X=3)=(1/6)(1/6)(1/6)=(33)(1/6)3(5/6)0.P(X=3)=(1/6)(1/6)(1/6)=\binom33(1/6)^3(5/6)^0.

The factor 3!/2!3!/2! counts the three positions of the unique success or unique failure. In general P(X=x)=(3x)(1/6)x(5/6)3−xP(X=x)=\binom3x(1/6)^x(5/6)^{3-x} for x=0,1,2,3x=0,1,2,3. These are the four terms in

(1/6+5/6)3=(30)(1/6)0(5/6)3+(31)(1/6)1(5/6)2+(32)(1/6)2(5/6)1+(33)(1/6)3(5/6)0.(1/6+5/6)^3=\binom30(1/6)^0(5/6)^3+\binom31(1/6)^1(5/6)^2+\binom32(1/6)^2(5/6)^1+\binom33(1/6)^3(5/6)^0.

Their sum is 1. The three die icons on the source page illustrate the three throws; the count X concerns successes, not the sum of their face scores.

Definition, full probability law and counting proof

Let X count the number of successes out of n independent trials, with the same success probability p on each trial. Write X∼B(n,p)X\sim B(n,p), read “X follows a binomial distribution with parameters n and p”. Here n is the fixed number of trials, p the success probability, and 1−p the failure probability.

P(X=x)=(nx)px(1−p)n−x,x=0,1,2,…,n.P(X=x)=\binom nx p^x(1-p)^{n-x},\qquad x=0,1,2,\ldots,n.

The coefficient (nr)=nCr=n!/[r!(n−r)!]\binom nr={}^nC_r=n!/[r!(n-r)!] is given in MF27. The source calls the formula a probability distribution function; for this discrete variable it is specifically a probability mass function.

For the source’s self-reading proof, let Si,FiS_i,F_i denote success and failure on trial i. Fix the order with successes on trials 1 through x and failures on trials x+1 through n. There are n!/[x!(n−x)!]n!/[x!(n-x)!] orders of the x success labels and n−x failure labels. Thus

P(X=x)=P(S1∩⋯∩Sx∩Fx+1∩⋯∩Fn)n!x!(n−x)!=n!x!(n−x)!px(1−p)n−x=nCxpx(1−p)n−x=(nx)px(1−p)n−x.\begin{aligned} P(X=x)&=P(S_1\cap\cdots\cap S_x\cap F_{x+1}\cap\cdots\cap F_n)\frac{n!}{x!(n-x)!}\\ &=\frac{n!}{x!(n-x)!}p^x(1-p)^{n-x}\\ &={}^nC_xp^x(1-p)^{n-x}\\ &=\binom nx p^x(1-p)^{n-x}. \end{aligned}

The printed first line labels the failures F1,…,Fn−xF_1,\ldots,F_{n-x} while also calling S1,…,SxS_1,\ldots,S_x successes on those indexed trials. The intended fixed-order event uses disjoint trial indices, as written above. At the endpoints x=0 or x=n, the success or failure group is empty. The original printed proof is retained unchanged in the source transcription.

The complete symbolic source distribution, transposed for readability, is:

xProbability
0(n0)p0(1−p)n−0\binom n0p^0(1-p)^{n-0}
1(n1)p1(1−p)n−1\binom n1p^1(1-p)^{n-1}
2(n2)p2(1−p)n−2\binom n2p^2(1-p)^{n-2}
⋯\cdots⋯\cdots
n(nn)pn(1−p)n−n\binom nnp^n(1-p)^{n-n}

The name comes from the n+1 terms of the binomial expansion:

[p+(1−p)]n=(n0)p0(1−p)n−0+(n1)p1(1−p)n−1+⋯+(nn−1)pn−1(1−p)1+(nn)pn(1−p)0=1.[p+(1-p)]^n=\binom n0p^0(1-p)^{n-0}+\binom n1p^1(1-p)^{n-1}+\cdots+\binom n{n-1}p^{n-1}(1-p)^1+\binom nnp^n(1-p)^0=1.

This also verifies that the probabilities sum to one. For p=0 or p=1 use the degenerate law directly: X is always 0 or always n, respectively.

Check all four model conditions

  • Fixed number of trials: n is set before the count is observed. Merely saying the experiment ends after a finite time does not make n fixed.
  • Two mutually exclusive and exhaustive categories: each trial is classified as success or failure. “Success” names the event being counted; it need not mean a desirable result.
  • Same success probability: p is the same for every trial in the independent model.
  • Independent trials: previous outcomes do not alter the conditional probabilities of later success/failure events. The full model uses joint independence across all trials.

Example 1 compares four experiments using every condition before choosing a distribution.

Cumulative probabilities and integer inequalities

For the calculator workflow in Example 2, binompdf(n,p,x) gives P(X=x)P(X=x) and binomcdf(n,p,x) gives P(X≤x)P(X\le x). Both full input sequences and relevant calculator screens are retained beside the example.

The source gives these three conversions for an integer threshold k:

Required eventCalculate
P(X<k)P(X<k)P(X≤k−1)P(X\le k-1)
P(X>k)P(X>k)1−P(X≤k)1-P(X\le k)
P(X≥k)P(X\ge k)1−P(X≤k−1)1-P(X\le k-1)

For a non-integer bound, first identify the permitted integer values, as in Self-Practice 1(v). For an interval, subtract the cumulative probability immediately below its first included integer from the cumulative probability at its last included integer.

The notes use strict endpoints for the word “between” in Example 2; use the stated inequalities to remove ambiguity in other questions. One may instead define success as being right-handed: R=12−X∼B(12,0.85)R=12-X\sim B(12,0.85) in that example, giving the same event probabilities after transforming each bound. Changing what counts as success changes p and the event, not the underlying selection.

For nested binomial counts, Example 3 first calculates the probability that one box qualifies, then uses that unrounded probability in a count of qualifying boxes. Its source remark recommends at least five significant figures in intermediate values for a three-significant-figure final answer.

Mean, variance, standard deviation and the mode

For X∼B(n,p)X\sim B(n,p), the source gives E(X)=μ=npE(X)=\mu=np and Var⁡(X)=σ2=np(1−p)\operatorname{Var}(X)=\sigma^2=np(1-p) in MF27, without proof. Standard deviation is σ=Var⁡(X)=np(1−p)\sigma=\sqrt{\operatorname{Var}(X)}=\sqrt{np(1-p)}. The radicals are essential; text extraction can omit them. Example 9 uses these moments before selecting integer counts within an open interval.

From a data histogram, a mode has greatest frequency. For a probability distribution, its mode or modes are the count values with greatest probability.

The source method is to evaluate P(X=x)P(X=x) over all possible count values and identify the maximum; a calculator table is a way to inspect them.

Example 10 shows a single maximum and an exact two-value tie, including the source warning about floating-point table output.

Example 11 distinguishes a unique mode from a tied mode and corrects a tiny positive mass labelled zero in the printed sketch.

For unknowns, choose the search variable carefully: Example 5 varies integer sample size n, Example 6 varies integer threshold r, while Examples 7 and 8 solve an equation for a probability p between 0 and 1.

A decimal calculator table can bracket p; intersection/zero solving refines the continuous root.

The source’s statement that a table is “not possible” for non-integer p is too categorical; the integer-step search used for n is what must change.

Explore

Compare five draws from a bag of five red and five blue counters, first replacing each counter and then keeping it out. In each case, decide whether the count of red counters has a binomial model. Explain what happens to independence and the probability of success after the first draw.

Next compare B(10,0.5) with B(20,0.25) using a graphing tool. Both means are 5, but their variances are 2.5 and 3.75. Predict which distribution is more spread out, then compare the plotted probability masses. Find a mode by comparing candidate counts with their neighbours; use unrounded probabilities when checking for a tie.

Worked example

A quality-control model treats each independently produced item as defective with probability 0.2. For a batch of three items, let XX be the number defective. The count is fixed at three trials, each item is classified as defective or not, and the model assumes independent outcomes with the same defect probability. Thus X∼B(3,0.2)X\sim B(3,0.2).

“At least one defective” means X≥1X\ge1, so P(X≥1)=1−P(X=0)=1−0.83=0.488P(X\ge1)=1-P(X=0)=1-0.8^3=0.488.

The expected count is 3(0.2)=0.63(0.2)=0.6 and the variance is 3(0.2)(0.8)=0.483(0.2)(0.8)=0.48. The non-integer expectation is an average across batches, not a possible count in one batch.

A fixed trial count and a common marginal success probability do not establish independence. Check for shared causes, changing conditions and sampling without replacement.

Check your understanding

A bag contains four red and six blue counters. Three counters are selected.

In procedure A each counter is replaced and the bag is thoroughly mixed before the next random draw; procedure B keeps each drawn counter out.

Decide which red-count model is binomial and justify the difference.

Find the probability of at least one red counter in each procedure and explain why a common first-draw probability is not enough to use the same model.

Choose a practice question

Mastery checklist: after the lecture and after the tutorial

Use the same five checks at both checkpoints in the printed notes:

  1. Explain B(n,p)B(n,p) as a discrete probability distribution for a success count.
  2. Use it as a model and recall all four conditions: fixed trial count, success/failure classification, constant success probability and independent trials.
  3. Calculate binomial probabilities using the formula or a graphing calculator, with integer endpoints handled correctly.
  4. Find and use the mean npnp and variance np(1−p)np(1-p), without needing their proofs in this chapter.
  5. Find the mode or both modes, distinguishing exact ties from display rounding.

Choose practice by the skill you need

The complete seven-row source map is retained below with links. Part labels and broad groupings follow the printed map; a dash is a blank source cell. Read the qualifications below before using its “number of trials” row.

Skill/conceptLecture examplesDiscussionReview problems
Conditions for a suitable binomial model4(i), 8(i), 11(i)4(i)1 (last part), 5(i), 15(i), 16(i), 17(i), 18(i)
Point probabilities P(X=x)P(X=x)2(i), 31(v), 2, 3(i), 4(iii), 8(a)(i)2, 3(ii), 4(a)(i), 8, 9(i)(ii), 16(iii)(iv)
Cumulative probabilities P(X≤x)P(X\le x)2(ii)–(v), 8(ii), 9(ii)1, 2, 4(ii), 5 (second part), 7(i), 8(a)(ii), 9(ii)(iii)1(ii), 3(i), 4(a)(ii), (b), 5(iii), 6(i), 7, 9(iv), 10(i)(ii), 12, 13(ii), 16(ii), 17(iii), 18(ii)(iii)
Given probability: source row “n, number of trials”4(ii), 5, 7, 8(iii)3(ii), 65(ii), 6(ii), 9(iii), 10(iii), 11(i), 15(iv), 17(ii)
Given probability: observed value x68(c)—
Mean and variance9(i)5 (first part)10 (first part), 11(ii), 12, 13(i), 15(iii)
Mode10, 11(ii)7(ii), 8(b), 9(iv)12, 13(iii), 14

Use the actual unknown in the question. The source’s n-row also includes probability-p equations: Lecture 7 and 8(iii), Review 5(ii) and 17(ii). Discussion 6’s modified scheme asks for an expression and an expected sample count. They are not all integer-n searches.

Its observed-value row includes Discussion 8(c), a cash cutoff whose event changes at half-dollar steps.

The source map prints a probability formula with failure exponent x; the correct formula used throughout the lesson is (nx)px(1−p)n−x\binom nx p^x(1-p)^{n-x}. The unchanged source map remains in the retained transcription.

Start with Example 1 if you need to practise the modelling conditions. Then choose a row matching the event or unknown you are working on.

Complete discussion and review sets

Both lecture copies repeat the following questions and short answer keys. The links open the existing worked records so you can try a question before revealing its solution. Every printed ask and mark has been matched to those records.

Discussion 9 repeats the label (iii) for its final mode-range ask; its short key and the linked working call that ask (iv). Review 9’s short key labels part(ii) as(b), and Review 11’s key repeats(ii) for its first group; the links follow the actual question parts. Review 9 names August correctly in these lecture copies; its solution PDF misspells it “Agusut”, which is explained in the retained review record.

Practice questions

Practice section 1 · Questions 1–6

Decide whether an experiment has a binomial model · Translate left-handedness counts into binomial probabilities · +4 more

Practice section 2 · Questions 7–12

Find the least integer threshold for late days · Write an equation before solving for a game probability · +4 more

Practice section 3 · Questions 13–18

Translate five burger events into probabilities · A specified success position and a remaining tail · +4 more

Practice section 4 · Questions 19–24

Convert the hit count into a score · Game winnings, a mode and a tournament cutoff · +4 more

Practice section 5 · Questions 25–30

Distinguish a sample count from the position of a final success · Count faults across two boxes rather than test each box separately · +4 more

Practice section 6 · Questions 31–36

Translate birthday counts and find a strict minimum sample size · Derive a cookie success rate and compare two minimum-packet methods · +4 more

Practice section 7 · Questions 37–40

Choose hypergeometric or binomial sampling from replacement rules · Compare an ordered third success with exactly three successes · +2 more

Ready to try this on your own?

For “The binomial distribution”, try a question without the working and explain your method. This records your confidence, saved in this browser only.

Ready to practise?Chapter practice