The binomial distribution
The binomial distribution counts the number of successes in a fixed number of independent trials. Each trial has the same probability of success. If X is the number of successes in n trials with probability p, then X ~ B(n, p).
Key facts
- Conditions: a fixed number of trials n, two outcomes each time, a constant probability p, and independent trials.
- P(X = r) = nCr × p^r × (1 − p)^(n − r).
- P(X ≤ r): add P(X = 0) up to P(X = r). Or use cumulative tables or a calculator.
- P(X ≥ r) = 1 − P(X ≤ r − 1).
- Mean: E(X) = np. Variance: Var(X) = np(1 − p).
- P(at least one success) = 1 − (1 − p)^n.
Worked examples
Example 1
A basketball player scores a free throw with probability 0.7. She takes 6 shots. Find the probability she scores exactly 4, to 4 decimal places.
- Let X be the number of shots she scores. X ~ B(6, 0.7)
- Use the formula with r = 4. P(X = 4) = 6C4 × 0.7⁴ × 0.3²
- Work it out. 15 × 0.2401 × 0.09 = 0.3241
Answer: 0.3241
Example 2
Each egg in a box is cracked with probability 0.15. In a box of 10, find the probability that at most 1 is cracked, to 4 decimal places.
- None cracked: P(X = 0) = 0.85¹⁰ = 0.1969
- One cracked: P(X = 1) = 10 × 0.15 × 0.85⁹ = 0.3474
- Add them. P(X ≤ 1) = 0.1969 + 0.3474 = 0.5443
Answer: 0.5443
Example 3
Each seed sprouts with probability 0.1. What is the smallest number of seeds needed for P(at least one sprouts) > 0.95?
- Write the condition. 1 − 0.9ⁿ > 0.95, 0.9ⁿ < 0.05
- Take logs. log 0.9 is negative, so the sign flips. n > log 0.05 ÷ log 0.9 = 28.43
- n must be a whole number. n = 29
Answer: 29
Example 4
X ~ B(5, 0.5). Find P(X = 2).
- P(X = r) = ⁿCᵣ pʳ (1 − p)ⁿ⁻ʳ
- Choose 2 of the 5 trials. ⁵C₂ = 10
- Multiply. 10 × 0.5² × 0.5³ = 0.3125
Answer: 0.3125
Example 5
X ~ B(10, 0.3). Find E(X).
- E(X) = np
- Substitute. 10 × 0.3 = 3
Answer: 3