๐ŸŽฒ Counting in Probability

OCR FSMQ Additional Maths ยท Enumeration (EN6)

Level 3 · Ages 15–16

← Back to topic overview
1 When the Binomial Applies
EN6: solve problems about outcomes, including problems in the context of probability. The specification's own example is "find the probability of obtaining at least two sixes when five dice are rolled" โ€” a binomial problem.
The four conditions
1. A fixed number of trials, $n$
2. Each trial has just two outcomes: success or failure
3. The trials are independent
4. The probability of success, $p$, is the same every time
Sampling without replacement breaks conditions 3 and 4. Drawing counters from a bag and not replacing them changes $p$ each time, so the binomial does not apply โ€” use a tree diagram or combinations instead.
SituationBinomial?Why
$20$ coin tosses, counting headsYes$n=20$, $p=0.5$, independent
$5$ dice, counting sixesYes$n=5$, $p=\tfrac16$
$10$ bulbs tested, $4\%$ faultyYes$n=10$, $p=0.04$
$3$ cards dealt, counting acesNoWithout replacement โ€” $p$ changes
Rolling until a six appearsNo$n$ is not fixed
2 The Formula and Why It Works
The binomial probability formula
$P(X = r) = \binom{n}{r}\, p^{\,r}\, (1-p)^{\,n-r}$
Each piece explained. $p^r$ is the probability of $r$ successes along one particular path; $(1-p)^{n-r}$ is the probability of the remaining failures; and $\binom{n}{r}$ counts how many paths give exactly $r$ successes. That last factor is the enumeration โ€” it is why this topic sits in this section.
Worked Example 1 โ€” Building the formula from scratch

A biased coin has $P(\text{head}) = 0.3$. It is tossed $4$ times. Find $P(\text{exactly 2 heads})$.

โ‘ One particular order, say HHTT: $0.3 \times 0.3 \times 0.7 \times 0.7 = 0.0441$
โ‘กEvery order with $2$ heads has the same probability, since we multiply the same four numbers.
โ‘ขHow many such orders? Choose which $2$ of the $4$ tosses are heads: $\binom{4}{2} = 6$.
โ‘ฃ$P(X=2) = 6 \times 0.0441 = 0.2646$
โ‘คMatching the formula: $\binom{4}{2}(0.3)^2(0.7)^2 = 6 \times 0.09 \times 0.49 = 0.2646$ โœ“
Understanding step โ‘ข is the whole point. If you can see why the $\binom{n}{r}$ is there, you will never leave it out.
Worked Example 2 โ€” A straightforward calculation

A die is rolled $8$ times. Find the probability of exactly $3$ sixes.

โ‘ $n = 8$, $r = 3$, $p = \tfrac16$, $1-p = \tfrac56$
โ‘ก$P(X=3) = \binom{8}{3}\left(\tfrac16\right)^3\left(\tfrac56\right)^5$
โ‘ข$\binom{8}{3} = 56$
โ‘ฃ$= 56 \times \dfrac{1}{216} \times \dfrac{3125}{7776}$
โ‘ค$= 0.1042$ (4 d.p.)
3 "At Least" and "At Most"
The essential shortcut
$P(\text{at least } 1) = 1 - P(0)$
$P(\text{at least } 2) = 1 - P(0) - P(1)$
Translate the words carefully. "At least $2$" means $2, 3, 4, \ldots$ โ€” so the complement is $0$ and $1$, not just $1$. Getting this boundary wrong is the classic error.
The wordsMeansBest route
exactly $r$$X = r$One formula
at least $1$$X \geqslant 1$$1 - P(0)$
at least $2$$X \geqslant 2$$1 - P(0) - P(1)$
at most $2$$X \leqslant 2$$P(0)+P(1)+P(2)$
fewer than $3$$X \leqslant 2$Same as above
more than $3$$X \geqslant 4$$1 - P(0) - P(1) - P(2) - P(3)$
Worked Example 3 โ€” The specification's example

Find the probability of obtaining at least two sixes when five dice are rolled.

โ‘ $n = 5$, $p = \tfrac16$. "At least two" is the complement of "none or one".
โ‘ก$P(X=0) = \left(\tfrac56\right)^5 = \dfrac{3125}{7776} = 0.40188$
โ‘ข$P(X=1) = \binom{5}{1}\left(\tfrac16\right)\left(\tfrac56\right)^4 = 5 \times \tfrac16 \times \dfrac{625}{1296}$
โ‘ฃ$= \dfrac{3125}{7776} = 0.40188$  (the same value, by coincidence)
โ‘ค$P(X \geqslant 2) = 1 - 0.40188 - 0.40188 = 0.19624$
โ‘ฅ$P(\text{at least two sixes}) = 0.196$ (3 s.f.)
Exact form: $1 - \dfrac{3125}{7776} - \dfrac{3125}{7776} = \dfrac{7776 - 6250}{7776} = \dfrac{1526}{7776} = \dfrac{763}{3888}$.
Worked Example 4 โ€” "At most"

$8\%$ of items from a production line are faulty. A sample of $6$ is taken. Find the probability that at most one is faulty.

โ‘ $n=6$, $p=0.08$. "At most one" means $X = 0$ or $X = 1$.
โ‘ก$P(X=0) = (0.92)^6 = 0.60640$
โ‘ข$P(X=1) = \binom{6}{1}(0.08)(0.92)^5 = 6 \times 0.08 \times 0.65908 = 0.31636$
โ‘ฃ$P(X \leqslant 1) = 0.60640 + 0.31636 = 0.9228$
โ‘ค$= 0.923$ (3 s.f.)
A high answer makes sense: with only an $8\%$ fault rate, seeing two or more faults in six items would be unusual.
4 The Expected Number of Successes
Expected value
$\text{E}(X) = np$
Worked Example 5 โ€” Interpreting an expected value

A multiple-choice test has $40$ questions, each with $5$ options. A student guesses every answer. How many would you expect them to get right?

โ‘ $n = 40$, $p = \tfrac15 = 0.2$
โ‘ก$\text{E}(X) = 40 \times 0.2 = 8$ questions.
โ‘ขThis is a long-run average, not a guarantee. Any individual student might score anywhere from $0$ to $40$.
An expected value need not be a whole number. With $n=5$ dice, $\text{E}(\text{sixes}) = \tfrac56 = 0.833$, which is impossible on any single occasion but correct as an average.
5 Quick Reference

Conditions

Fixed $n$, two outcomes, independent, constant $p$.

Formula

$\binom{n}{r}p^r(1-p)^{n-r}$.

Why $\binom{n}{r}$

It counts the paths with $r$ successes.

At least $1$

$1 - P(0)$.

At least $2$

$1 - P(0) - P(1)$.

At most $2$

$P(0)+P(1)+P(2)$.

Fewer than $3$

Same as at most $2$.

Expected value

$np$.

Not binomial

Without replacement, or $n$ not fixed.

Accuracy

Keep full figures; round at the end.

6 Practice Questions
Question 1

A fair coin is tossed $5$ times. Find $P(\text{exactly 3 heads})$.

โ–ถ Show solution

$\binom{5}{3}(0.5)^3(0.5)^2 = 10 \times (0.5)^5 = \dfrac{10}{32} = 0.3125$

Question 2

A die is rolled $4$ times. Find $P(\text{exactly one six})$.

โ–ถ Show solution

$\binom{4}{1}\left(\tfrac16\right)\left(\tfrac56\right)^3 = 4 \times \tfrac16 \times \dfrac{125}{216}$

$= \dfrac{500}{1296} = 0.386$ (3 s.f.)

Question 3

$15\%$ of seeds fail to germinate. Ten are planted. Find $P(\text{all germinate})$.

โ–ถ Show solution

$P(\text{one germinates}) = 0.85$

$P(\text{all ten}) = (0.85)^{10} = 0.1969 = 0.197$ (3 s.f.)

Question 4

Using the data of Question 3, find the probability that at least one seed fails.

โ–ถ Show solution

$P(\text{at least one fails}) = 1 - P(\text{none fails})$

$= 1 - 0.1969 = 0.803$ (3 s.f.)

Question 5

A basketball player scores $70\%$ of free throws. She takes $6$. Find $P(\text{exactly 5 scored})$.

โ–ถ Show solution

$\binom{6}{5}(0.7)^5(0.3)^1 = 6 \times 0.16807 \times 0.3$

$= 0.3025 = 0.303$ (3 s.f.)

Question 6

A test has $25$ questions, each with $4$ options. How many would a guesser expect to get right?

โ–ถ Show solution

$\text{E}(X) = np = 25 \times 0.25 = 6.25$ questions.

Question 7

Six dice are rolled. Find the probability of at least one six.

โ–ถ Show solution

$P(\text{no sixes}) = \left(\tfrac56\right)^6 = \dfrac{15625}{46656} = 0.33490$

$P(\text{at least one}) = 1 - 0.33490 = 0.665$ (3 s.f.)

Question 8

$12\%$ of a large batch of components are faulty. Five are chosen. Find the probability that at most one is faulty.

โ–ถ Show solution

$P(X=0) = (0.88)^5 = 0.52773$

$P(X=1) = \binom{5}{1}(0.12)(0.88)^4 = 5 \times 0.12 \times 0.59969 = 0.35981$

$P(X \leqslant 1) = 0.52773 + 0.35981 = 0.888$ (3 s.f.)

Question 9

Explain why the binomial distribution should not be used to find the probability of drawing exactly $2$ aces when $5$ cards are dealt from a pack of $52$. Find the correct probability.

โ–ถ Show solution

The cards are dealt without replacement, so the probability of an ace changes after each card. Conditions 3 and 4 fail โ€” the trials are neither independent nor identically distributed.

Use combinations instead. Choose $2$ aces from $4$ and $3$ non-aces from $48$:

$P = \dfrac{\binom{4}{2}\binom{48}{3}}{\binom{52}{5}} = \dfrac{6 \times 17\,296}{2\,598\,960}$

$= \dfrac{103\,776}{2\,598\,960} = 0.0399$ (3 s.f.)

For comparison, the (incorrect) binomial answer with $p = \tfrac{4}{52}$ would be $\binom{5}{2}\left(\tfrac{1}{13}\right)^2\left(\tfrac{12}{13}\right)^3 = 0.0451$ โ€” close, but wrong.

Question 10

A quality inspector tests $10$ items from a large batch in which $5\%$ are known to be faulty. The batch is rejected if $2$ or more of the sample are faulty.

(a) Find the probability that the batch is accepted.   (b) Find the expected number of faulty items in the sample.   (c) The inspector wants the probability of accepting a $5\%$-faulty batch to be below $50\%$. Show that testing $10$ items cannot achieve this, and find the smallest sample size that does.   (d) Comment on whether the "$2$ or more" rule is a good test.

โ–ถ Show solution

(a) Accepted means $X \leqslant 1$, with $n=10$, $p=0.05$.

$P(X=0) = (0.95)^{10} = 0.598737$

$P(X=1) = \binom{10}{1}(0.05)(0.95)^9 = 10 \times 0.05 \times 0.630249 = 0.315125$

$P(\text{accepted}) = 0.598737 + 0.315125 = 0.9139 = 0.914$ (3 s.f.)

(b) $\text{E}(X) = 10 \times 0.05 = 0.5$ faulty items.

(c) From (a), with $n=10$ the acceptance probability is $0.914$, far above $0.5$. So $10$ items is not enough.

We need $P(X \leqslant 1) < 0.5$, i.e. $(0.95)^n + n(0.05)(0.95)^{n-1} < 0.5$.

Trying values:

$n = 30$: $(0.95)^{30} = 0.21464$; $30(0.05)(0.95)^{29} = 1.5 \times 0.22594 = 0.33891$; total $0.5536$ โ€” still too high.

$n = 33$: $(0.95)^{33} = 0.18406$; $33(0.05)(0.95)^{32} = 1.65 \times 0.19375 = 0.31969$; total $0.5037$ โ€” just too high.

$n = 34$: $(0.95)^{34} = 0.17485$; $34(0.05)(0.95)^{33} = 1.7 \times 0.18406 = 0.31290$; total $0.4878 < 0.5$ โœ“

The smallest sample size is $n = 34$.

(d) The rule is a weak test as it stands. A batch with the full $5\%$ fault rate is accepted about $91\%$ of the time, so the inspection lets almost every bad batch through.

Part (c) shows the problem is the sample size, not the threshold: with only $10$ items you expect just $0.5$ faults, so seeing $2$ is genuinely unusual even when the batch is bad. To make the test discriminating, the inspector must either test many more items (at least $34$) or reject on a single fault โ€” though that would then reject good batches too often.

Counting in Probability (EN6) ยท OCR FSMQ Additional Maths · Created with MathJax