AP Statistics · Probability, random variables and probability distributions
Binomial and geometric distributions
1Binomial settings
A binomial setting has four conditions (BINS):
- Binary: each trial is a success or a failure.
- Independent trials (or the 10% condition when sampling without replacement).
- Number of trials $n$ is fixed in advance.
- Same probability of success $p$ on each trial.
The binomial random variable $X$ counts the number of successes in $n$ trials: $X \sim B(n, p)$.
Check yourself
Which is a binomial setting?
Show the answer
Counting heads in 20 tosses of a fair coin
Fixed n, constant p.
2Binomial probabilities
$$P(X = k) = \binom{n}{k}p^k(1 - p)^{n - k}, \qquad \binom{n}{k} = \frac{n!}{k!(n - k)!}$$
$\binom{n}{k}$ counts the number of ways to arrange $k$ successes among $n$ trials.
Mean and standard deviation:
$$\mu_X = np, \qquad \sigma_X = \sqrt{np(1 - p)}$$
70% of a store's customers use a loyalty card. In a random sample of 10 customers:
- $P(X = 8) = \binom{10}{8}(0.7)^8(0.3)^2 = 45 \times 0.0576 \times 0.09 \approx 0.233$.
- $P(X \ge 9) = P(9) + P(10) \approx 0.121 + 0.028 = 0.149$.
- $\mu = 7$, $\sigma = \sqrt{2.1} \approx 1.45$.
The binomial distribution for 10 customers with p = 0.7 is skewed left
Check yourself
For X ~ B(50, 0.2), the mean is:
Show the answer
10
np.
3The geometric distribution
A geometric setting is like a binomial setting, but instead of a fixed number of trials, we count the trials until the first success.
$$P(Y = k) = (1 - p)^{k - 1}p, \qquad k = 1, 2, 3, \dots$$
$$\mu_Y = \frac{1}{p}, \qquad \sigma_Y = \frac{\sqrt{1 - p}}{p}$$
20% of cereal boxes contain a prize.
- $P(\text{first prize in box 3}) = 0.8^2 \times 0.2 = 0.128$.
- $P(\text{need more than 5 boxes}) = 0.8^5 \approx 0.328$ (no prize in the first 5).
- Expected number of boxes: $\frac{1}{0.2} = 5$.
Geometric distributions are always skewed right, with the most likely value 1.
Check yourself
On average, how many rolls of a die until the first 6?
Show the answer
6
1/p = 1/(1/6).
4Shape and technology
- Binomial: symmetric when $p = 0.5$; skewed right for small $p$; skewed left for large $p$. It becomes approximately normal when $np \ge 10$ and $n(1 - p) \ge 10$.
- Use binompdf for $P(X = k)$ and binomcdf for $P(X \le k)$; geometpdf and geometcdf similarly. On the exam, label inputs: "binomcdf(n = 10, p = 0.7, x = 6)".
$P(X \ge 9)$ for $B(10, 0.7)$ = $1 - P(X \le 8) = 1 - \text{binomcdf}(10, 0.7, 8) \approx 0.149$.
Check yourself
For X ~ B(n, p), P(X ≥ 4) equals:
Show the answer
1 − P(X ≤ 3)
Complement.
5Going deeper: checking the conditions, calculating and choosing the right one
Binomial setting: BINS
- Binary: each trial has two outcomes ("success" and "failure").
- Independent trials.
- Number of trials, n, is fixed in advance.
- Same probability of success, p, on every trial.
X = the number of successes in n trials is then binomial.
Binomial probability
$$P(X = k) = \binom{n}{k}p^k(1 - p)^{n-k}$$
where $\binom{n}{k}$ counts the ways to arrange k successes among n trials.
- Mean: $\mu_X = np$.
- Standard deviation: $\sigma_X = \sqrt{np(1 - p)}$.
a basketball player makes 30% of her three-point shots and takes 10 in a game. Assume the shots are independent.
- X is binomial with n = 10, p = 0.3.
- P(X = 3) = 120 (0.3)³(0.7)⁷ = 120 × 0.027 × 0.0824 = 0.267.
- P(X ≤ 1) = P(0) + P(1) = 0.7¹⁰ + 10(0.3)(0.7)⁹ = 0.0282 + 0.1211 = 0.149.
- P(X ≥ 2) = 1 − 0.149 = 0.851.
- Mean = 10(0.3) = 3 made shots; standard deviation = √(10 × 0.3 × 0.7) = 1.45.
- Interpretation: "Over many games of 10 attempts, she would average 3 made shots, typically varying from that by about 1.45."
Showing work with a calculator: name the distribution and its parameters, state the probability wanted, and label the inputs: binomcdf(trials: 10, p: 0.3, x value: 1) = 0.149. Unlabelled calculator syntax alone may not earn full credit.
Inequalities for a discrete variable
- "At most 3": P(X ≤ 3).
- "Fewer than 3": P(X ≤ 2).
- "At least 3": 1 − P(X ≤ 2).
- "More than 3": 1 − P(X ≤ 3).
Sampling without replacement and the 10% condition: drawing a sample from a population without replacement is not exactly independent. If the sample is no more than 10% of the population, the binomial model is a good approximation.
Shape: skewed right when p is small, skewed left when p is large, symmetric when p = 0.5; closer to symmetric as n grows.
Normal approximation (large counts condition): if np ≥ 10 and n(1 − p) ≥ 10, the binomial distribution is approximately normal with the mean and standard deviation above.
Geometric setting: the same as binomial except that there is no fixed number of trials. Trials continue until the first success.
Y = the number of trials needed to get the first success is geometric.
$$P(Y = k) = (1 - p)^{k-1}p$$
- Mean: $\mu_Y = \frac{1}{p}$.
- Standard deviation: $\sigma_Y = \frac{\sqrt{1 - p}}{p}$.
- P(Y > k) = (1 − p)ᵏ: the first k trials are all failures.
- The shape is always skewed right, with the highest probability at Y = 1.
20% of a brand's bottle caps carry a prize. Let Y = the number of bottles opened to find the first prize.
- P(Y = 3) = (0.8)²(0.2) = 0.128.
- P(Y > 3) = 0.8³ = 0.512.
- P(Y ≤ 3) = 1 − 0.512 = 0.488.
- Mean = 1 ÷ 0.2 = 5 bottles; standard deviation = √0.8 ÷ 0.2 = 4.47.
Which distribution?
- "How many successes in 12 tries?": binomial (n fixed; count successes).
- "How many tries until the first success?": geometric (count trials; no fixed n).
- Neither applies if the probability changes or the trials are not independent.
Worked example (is it binomial?)
- Deal 10 cards from a deck and count the aces: not binomial. The cards are dealt without replacement and 10 is more than 10% of the 52 cards, so the probability of an ace changes noticeably from card to card.
- Roll a die until a six appears and count the rolls: geometric, p = 1 ÷ 6.
- Survey 100 randomly chosen adults from a city of a million and count those who own a bicycle: binomial, by the 10% condition.
Common mistakes
- Using the binomial formula when n is not fixed.
- Forgetting the $\binom{n}{k}$ factor.
- Mixing up "at least" and "more than."
- Using np for the mean of a geometric variable (it is 1 ÷ p).
- Applying the normal approximation when np or n(1 − p) is below 10.
- Not stating or checking the conditions.
Check yourself
A fair coin is tossed until the first head appears. Which distribution describes the number of tosses needed?
Show the answer
Geometric with p = 0.5
There is no fixed number of trials; we count trials until the first success.
6For top marks
- Check all four binomial conditions in context (including the 10% condition when sampling without replacement).
- Define the random variable: "Let $X$ = the number of customers out of 10 who use a loyalty card."
- Be careful with "at least", "at most", "more than", "fewer than".
- Interpret the mean: "If we took many samples of 10, the average number of card users would be 7."
"Let $Y$ = the number of calls until the first sale, $p = 0.15$. $P(Y \le 4) = 1 - 0.85^4 \approx 0.478$."
Check yourself
"At most 3 successes" means:
Show the answer
X ≤ 3
Includes 3.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera