The Binomial Distribution
How to tell whether a count is a binomial random variable, how to find binomial probabilities with the formula and a calculator, the mean and standard deviation np and √(np(1 − p)), and how to interpret all of them in context.
A binomial random variable counts the number of successes in a fixed number of independent trials, each with the same chance of success. Many real counts fit this pattern: correct guesses on a quiz, made free throws, customers who buy. When a count is binomial, one formula gives every probability, and its mean and standard deviation come from n and p alone.
1Is it binomial?
A binomial random variable \(X\) is a discrete random variable that counts the number of successes in \(n\) repeated independent trials, where each trial has only two possible outcomes (success or failure), with probability of success \(p\) and probability of failure \(1 - p\).
Four counts
- X = number of heads in 20 tosses of a fair coin.
- X = number of rolls of a die until the first 6.
- X = number of hearts in 5 cards dealt from a 20-card pile holding 5 hearts.
- X = number of students who own a car among 30 chosen at random from a school of 2,000, where 18% own one.
- 11. Two outcomes, independent tosses, n = 20 fixed, p = 0.5 each time. Binomial.
- 22. The number of trials is not fixed: you keep rolling until a 6 appears. Not binomial.
- 33. Dealing without replacement from a small pile changes the chance of a heart after every card (5/20, then 4/19 or 5/19, …). The trials are not independent and p is not the same. Not binomial.
- 44. Strictly, choosing without replacement changes p a tiny bit, but 30 is a small part of 2,000, so the trials are very close to independent with p = 0.18. Treat it as binomial with n = 30, p = 0.18.
Before using the binomial formula, check all four parts out loud. The most common failures are a number of trials that is not fixed (counting until something happens) and trials that are not independent (drawing from a small group without replacement).
2Finding binomial probabilities
The probability of exactly \(x\) successes in \(n\) trials is given by the binomial probability function:
The binomial coefficient \(\binom{n}{x}\), read “n choose x,” counts the number of ways to arrange \(x\) successes among \(n\) trials.
Exactly 3 right by guessing
A student guesses on all 10 questions of a quiz, each with 4 choices. Find P(X = 3).
- 1Check the setting: guess right or wrong; independent guesses; n = 10; p = 0.25 each time. X is binomial.
- 2\(P(X = 3) = \binom{10}{3} (0.25)^3 (0.75)^7\).
- 3\(\binom{10}{3} = 120\), \((0.25)^3 = 0.015625\), \((0.75)^7 \approx 0.1335\).
- 4\(P(X = 3) \approx 120 \times 0.015625 \times 0.1335 \approx 0.2503\).
2nd VARS (DISTR). binompdf(n, p, x) gives \(P(X = x)\). binomcdf(n, p, x) gives \(P(X \le x)\), the cumulative probability. For “at least x,” use \(1 - \) binomcdf(n, p, x − 1).
Five or more right
Find the probability that the guessing student gets at least 5 of the 10 questions right.
- 1\(P(X \ge 5) = 1 - P(X \le 4)\).
- 2On a calculator, \(P(X \le 4)\) = binomcdf(10, 0.25, 4) \(\approx 0.9219\).
- 3\(P(X \ge 5) \approx 1 - 0.9219 = 0.0781\).
binomcdf(10, 0.25, 5) is \(P(X \le 5)\), not \(P(X \ge 5)\). For “at least 5,” take the complement of “at most 4”: \(1 - \) binomcdf(10, 0.25, 4). Write the inequality before you press any keys.
\((0.25)^3(0.75)^7\) is the probability of one particular order, such as the first 3 right and the rest wrong. There are 120 orders with exactly 3 right, so the probability is 120 times as large.
3Mean and standard deviation
If \(X\) is binomial, its mean and standard deviation have simple formulas:
Interpret in context
Find and interpret the mean and standard deviation of X, the number correct when guessing on all 10 questions.
- 1\(\mu_X = np = 10(0.25) = 2.5\).
- 2\(\sigma_X = \sqrt{np(1-p)} = \sqrt{10(0.25)(0.75)} = \sqrt{1.875} \approx 1.37\).
4Shape
The shape of a binomial distribution depends on \(p\). The farther \(p\) is from 0.5, the more skewed the distribution, with the tail stretching away from the side where the counts pile up. As \(n\) gets larger, the distribution becomes more symmetric.
5Using binomial probabilities
Binomial probabilities, means, and standard deviations should be interpreted in context. A very small probability tells you a result would be surprising if the binomial model were true, which is evidence against the model.
Was she guessing?
A student says she guessed on every question and got 7 right. Is that believable?
- 1If she were guessing, \(P(X \ge 7) = 1 - P(X \le 6)\) = 1 − binomcdf(10, 0.25, 6) \(\approx 0.0035\).
- 2That is about 3.5 times in 1,000 guessing students.
- 3A result this unlikely under guessing makes the claim hard to believe; it is evidence she knew some answers.
“If the student were guessing on all 10 questions, the probability of getting 7 or more right would be about 0.0035. Because this is so small, her score is convincing evidence that she was not just guessing.”
500 simulated guessers
Describe how to estimate P(X ≥ 5) by simulation, and compare with the exact value.
- 1One trial: randInt(1, 4, 10) gives 10 random whole numbers from 1 to 4, one per question. Call a 1 a correct guess, so each question is right with probability 1/4.
- 2Count the number of 1s in the trial, which is X. Repeat 500 times.
- 3In 500 simulated trials, 39 had at least 5 correct: an estimate of \(39 \div 500 = 0.078\).
The mean of 2.5 is not a possible count. It is the long-run average over many guessers. The single most likely count here is 2 (probability 0.282), and 3 is close behind.
Quick reference
| Idea | Rule |
|---|---|
| Binomial setting | Binary outcomes, Independent trials, fixed Number n, Same p |
| Probability of exactly x | \(\binom{n}{x} p^x (1-p)^{n-x}\), or binompdf(n, p, x) |
| At most x | binomcdf(n, p, x) |
| At least x | \(1 - \) binomcdf(n, p, x − 1) |
| Mean | \(\mu_X = np\) |
| Standard deviation | \(\sigma_X = \sqrt{np(1-p)}\) |