N1StatisticsCore

The Binomial Distribution

Count the successes in a fixed number of independent trials, each with the same probability of success, and you have a binomial\textbf{binomial} random variable. It is the first named distribution in the course, and most of the marks come from knowing when it applies rather than from the arithmetic.

35 min Statistical Distributions

The big picture

The binomial matters because it is the bridge from probability to inference. Once you can compute the probability of an observed count under an assumed success rate, you can ask whether the observed count is surprising — and that question is exactly what a hypothesis test formalises in the next chapter. The four conditions are therefore not a checklist to recite: they are the assumptions the whole inference rests on, and when one fails the conclusion fails with it. Sampling without replacement is the case worth watching, because it breaks independence quietly.

What you'll be able to do

  • State the four conditions for a binomial model and test a scenario against them
  • Use the binomial probability formula for individual outcomes
  • Use cumulative binomial probabilities for "at most", "at least" and ranges
  • Calculate the mean and variance of a binomial distribution
1

The four conditions

A binomial model requires all four of the following. There must be a fixed number\textbf{fixed number} of trials nn, decided in advance. Each trial has exactly two outcomes\textbf{two outcomes}, labelled success and failure. The trials are independent\textbf{independent}. And the probability of success pp is constant\textbf{constant} across trials.

Questions frequently describe a scenario and ask whether a binomial model is suitable. The answer is a check against these four, naming which one fails when it does.

The condition that most often fails is independence, and the standard cause is sampling without replacement\textbf{without replacement} from a small population — each selection changes the composition for the next, so pp shifts as you go.

X∼B(n,p)X \sim B(n, p)
Notation: nn trials, success probability pp.
Example 1A bag has 5 red and 5 blue counters. Ten are drawn without replacement and the number of reds is counted. Is a binomial model appropriate?
1Fixed number of trials: yes, 10.
2Two outcomes: yes, red or blue.
3Constant pp and independence: no — after each draw the composition changes, so pp is not constant.
AnswerNot binomial: drawing without replacement breaks independence and makes pp vary between trials.

Tip — When a model is rejected, name the specific failing condition and why. "Not binomial because the trials are not independent — the counters are not replaced" is the full answer.

2

The probability formula

The probability of exactly rr successes has three factors. There are (nr)\binom{n}{r} ways to choose which trials succeed; each of those arrangements has probability prp^{r} for the successes and (1−p)n−r\left(1-p\right)^{n-r} for the failures.

The binomial coefficient is what accounts for order. Three successes in five trials can happen in (53)=10\binom{5}{3} = 10 different arrangements, all equally likely, so a single arrangement’s probability is multiplied by 10.

P(X=r)=(nr)pr(1−p)n−rP(X = r) = \binom{n}{r}p^{r}\left(1-p\right)^{n-r}
Arrangements × successes × failures.
(nr)=n!r!(n−r)!\binom{n}{r} = \dfrac{n!}{r!\left(n-r\right)!}
Number of arrangements.
Example 1A fair coin is tossed 6 times. Find the probability of exactly 4 heads.
1n=6n = 6, r=4r = 4, p=0.5p = 0.5.
2(64)=15\binom{6}{4} = 15.
3P=15×0.54×0.52=15×0.56=1564P = 15 \times 0.5^{4} \times 0.5^{2} = 15 \times 0.5^{6} = \tfrac{15}{64}.
Answer1564≈0.234\tfrac{15}{64} \approx 0.234
Example 2A component fails with probability 0.20.2. In a batch of 8, find the probability exactly 2 fail.
1(82)=28\binom{8}{2} = 28.
2P=28×0.22×0.86P = 28 \times 0.2^{2} \times 0.8^{6}.
3=28×0.04×0.262144= 28 \times 0.04 \times 0.262144.
Answer0.2940.294 (3 s.f.)
Why this works

The exponents must sum to nn: rr successes and n−rn-r failures account for every trial. If they do not add up, something has been miscounted.

3

Cumulative probabilities

Most questions ask about ranges rather than single values, and calculators provide the cumulative function P(X≤r)P(X \leq r). Translating the wording into cumulative form is the skill being tested.

"At most rr" is P(X≤r)P(X \leq r) directly. "Fewer than rr" is P(X≤r−1)P(X \leq r-1), since XX takes whole-number values. "At least rr" is 1−P(X≤r−1)1 - P(X \leq r-1), and "more than rr" is 1−P(X≤r)1 - P(X \leq r).

A range a≤X≤ba \leq X \leq b is P(X≤b)−P(X≤a−1)P(X \leq b) - P(X \leq a-1) — subtract everything strictly below the lower limit, which means using a−1a-1 rather than aa.

P(X≥r)=1−P(X≤r−1)P(X \geq r) = 1 - P(X \leq r-1)
At least: complement of at most r−1r-1.
P(a≤X≤b)=P(X≤b)−P(X≤a−1)P(a \leq X \leq b) = P(X \leq b) - P(X \leq a-1)
Ranges, with the −1-1 that is easy to lose.
Example 1For X∼B(20,0.3)X \sim B(20, 0.3), express P(X≥8)P(X \geq 8) and P(5≤X≤9)P(5 \leq X \leq 9) in cumulative form.
1"At least 8" excludes 0 to 7: 1−P(X≤7)1 - P(X \leq 7).
2For the range, take everything up to 9 and remove everything up to 4.
AnswerP(X≥8)=1−P(X≤7)P(X \geq 8) = 1 - P(X\leq7); P(5≤X≤9)=P(X≤9)−P(X≤4)P(5\leq X\leq9) = P(X\leq9) - P(X\leq4).

Tip — Because the binomial is discrete, "at least 8" and "more than 8" differ. Write out which values are included before reaching for the calculator.

4

Mean and variance

The mean of a binomial is npnp, which matches intuition: 20 trials at p=0.3p = 0.3 should give about 6 successes.

The variance is np(1−p)np\left(1-p\right). It is largest when p=0.5p = 0.5 and shrinks towards zero as pp approaches 0 or 1 — which makes sense, since an almost-certain or almost-impossible event produces very consistent counts.

The standard deviation is the square root, and is used to judge whether an observed count is unusual — the idea the hypothesis-testing chapter formalises.

E(X)=npE(X) = np
Mean.
Var(X)=np(1−p)\mathrm{Var}(X) = np(1-p)
Variance.
σ=np(1−p)\sigma = \sqrt{np(1-p)}
Standard deviation.
Example 1For X∼B(50,0.4)X \sim B(50, 0.4), find the mean and standard deviation.
1Mean: 50×0.4=2050 \times 0.4 = 20.
2Variance: 50×0.4×0.6=1250 \times 0.4 \times 0.6 = 12.
3Standard deviation: 12\sqrt{12}.
AnswerMean 20, standard deviation 3.463.46 (3 s.f.).
Why this works

Note the variance uses p(1−p)p(1-p), which peaks at p=0.5p = 0.5. Uncertainty about the outcome of each trial is greatest when success and failure are equally likely, and that feeds straight through to the spread of the total.

Think like an examiner

  • When asked whether a binomial model applies, check all four conditions and name any that fail.
  • Define the variable explicitly: "Let XX be the number of faulty components, X∼B(8,0.2)X \sim B(8, 0.2)."
  • Translate the wording into cumulative form before calculating, minding the −1-1 for "at least" and ranges.
  • Give probabilities to 3 significant figures unless told otherwise.

Common misconceptions

Using P(X≤r)P(X \leq r) for "at least rr".
"At least rr" is 1−P(X≤r−1)1 - P(X \leq r-1).
Applying a binomial model to sampling without replacement.
That breaks independence and makes pp vary. Say which condition fails.
Omitting the binomial coefficient.
(nr)\binom{n}{r} counts the arrangements; without it you have only one ordering.
Writing the variance as npnp.
The mean is npnp; the variance is np(1−p)np(1-p).

Binomial

X∼B(n,p)X \sim B(n,p)
Notation.
P(X=r)=(nr)pr(1−p)n−rP(X=r) = \binom{n}{r}p^{r}(1-p)^{n-r}
Exact probability.
P(X≥r)=1−P(X≤r−1)P(X \geq r) = 1 - P(X\leq r-1)
At least.
E(X)=npE(X) = np
Mean.
Var(X)=np(1−p)\mathrm{Var}(X) = np(1-p)
Variance.

Stretch yourself

A multiple-choice test has 15 questions, each with 4 options. A student guesses every answer. Find the probability they get at least 6 correct, and comment on whether guessing is a viable strategy for a pass mark of 6.

Hint — Identify nn and pp first, then convert "at least 6" into cumulative form.

Reveal solution
SolutionGuessing gives p=14=0.25p = \tfrac14 = 0.25 per question, and the questions are independent with a fixed n=15n = 15, so X∼B(15,0.25)X \sim B(15, 0.25). "At least 6" is 1−P(X≤5)1 - P(X \leq 5). From cumulative binomial tables or a calculator, P(X≤5)≈0.8516P(X \leq 5) \approx 0.8516, so P(X≥6)≈0.148P(X \geq 6) \approx 0.148. The mean number correct is np=15×0.25=3.75np = 15 \times 0.25 = 3.75, with standard deviation 15×0.25×0.75=2.8125≈1.68\sqrt{15 \times 0.25 \times 0.75} = \sqrt{2.8125} \approx 1.68. A score of 6 is therefore about 6−3.751.68≈1.34\tfrac{6 - 3.75}{1.68} \approx 1.34 standard deviations above the mean. Guessing succeeds roughly one time in seven — better than nothing, but it fails about 85% of the time, so it is not a viable strategy. ■\blacksquare

Questions students ask

What if the population is large but sampling is without replacement?
If the sample is a small fraction of the population — a common rule of thumb is under 10% — the change in pp is negligible and a binomial model is an acceptable approximation. Say that you are approximating.
Does "success" have to be a good outcome?
No. Success simply labels the outcome you are counting. Counting faulty components makes "faulty" the success, however odd that sounds.
Why does the variance involve p(1−p)p(1-p)?
Each trial contributes variance p(1−p)p(1-p), which is largest at p=0.5p=0.5 where the outcome is least predictable, and independence lets the nn trials’ variances add.
When is the binomial coefficient not needed?
Only for r=0r = 0 or r=nr = n, where (nr)=1\binom{n}{r} = 1 because there is exactly one arrangement. Every other case needs it.

Key takeaways

  • A binomial needs fixed nn, two outcomes, independence, and constant pp.
  • Sampling without replacement breaks independence and is the usual reason a model fails.
  • P(X=r)=(nr)pr(1−p)n−rP(X=r) = \binom{n}{r}p^{r}(1-p)^{n-r}, where the coefficient counts arrangements.
  • Convert wording carefully: "at least rr" is 1−P(X≤r−1)1 - P(X\leq r-1).
  • Mean is npnp and variance is np(1−p)np(1-p), greatest at p=0.5p = 0.5.

How this fits the course

Test yourself

Answer a few questions, then review anything you missed.

Next step

Keep practising

Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.

Browse practice topics

Related lessons

All 3 lessons

Put the methods into practice: see how A-Level maths duels work. An account is required to play; the overview and sample are public.