Educerie · AP · Statistics
AP Statistics 2.10
The Binomial Distribution
How do we describe chance and variation, so that a claim about a population can be backed by numbers?
What you will learn
- Understand that a binomial variable counts successes in a fixed number of independent two-outcome trials with the same probability
- Know the binomial probability function
- Know the mean np and the standard deviation sqrt(np(1-p))
- Understand how to read at least, at most, fewer than and more than as values of X
You must be able to
- Justify that a variable is binomial, in context
- Calculate P(X = x) with the binomial probability function
- Calculate tail probabilities such as P(X at least k)
- Calculate the mean and standard deviation of a binomial variable
- Interpret the mean, standard deviation and a probability in context
- Estimate a binomial probability from simulation results
In the exam. Section I multiple choice asks whether a variable is binomial and why, then asks for , a tail probability such as , or the mean and standard deviation. The Unit 2 set on a shared stimulus is a binomial setting: the standard deviation, a tail probability, then the interpretation of the mean. In Section II you are expected to name the distribution with its parameters, show the probability expression and give the answer. Skills 3.C, 3.D, 4.B and 4.D.
1Is the variable binomial?
The question often asks you to justify that a variable is binomial. Check each of four things, and write each one in the context of the problem.
| Check | Meaning | Example (a shop's 12 customers) |
|---|---|---|
| Binary | Each trial has two outcomes, success or failure | A customer buys a warranty, or does not |
| Independent | One trial does not change the next | Customers decide separately |
| Number of trials fixed | is set in advance | Exactly 12 customers |
| Same probability | is the same on every trial | Each has a 0.35 chance |
"Success" only means the outcome being counted. It need not be good news.
Worked example 1 (it is binomial). A shop asks each of 12 customers, chosen independently, to buy an extended warranty. Each buys with probability 0.35. Let be the number of the 12 who buy.
is binomial: each customer either buys or does not (two outcomes), the customers decide independently, there is a fixed number of trials (), and the probability of buying is the same, 0.35, for each. So has a binomial distribution with and .
Cases that are not binomial.
- Not independent. Drawing 5 cards from a small deck without replacement and counting hearts. Each card changes the chances of the next. In a very large population, sampling without replacement is treated as independent, since the change is negligible.
- Number of trials not fixed. Counting the number of tosses needed to get the first head. The count of trials is the thing that varies, so there is no fixed .
- Probability not the same. Counting how many of 10 students pass a test, when the students have different pass rates. The probability changes from trial to trial.
- More than two outcomes. Recording which of 4 colors each of 10 candies has, when no single color is the one being counted.
2The probability function
For the warranty example, what is the probability that exactly 4 of the 12 buy?
The pieces: is the probability of one particular sequence of 4 successes and 8 failures. counts the sequences with 4 successes. Multiply them.
Interpretation. In the long run, about 23.7% of groups of 12 customers will have exactly 4 who buy the warranty.
The exam expects the expression with , and substituted, then the answer. The calculator will do the arithmetic, but a bare number or calculator syntax with no labeled values does not show the work.
3Tail probabilities
Most questions ask for a range of values. Add the probabilities of the values included, and use the complement when it is shorter.
At least 4. is the complement of , since takes whole numbers.
At most 2. .
At least 6. .
Figure 1 shows the whole distribution, with the values from 6 to 12 in amber.
The bars peak at 4, near the mean 4.2, and trail off to the right, so the distribution is skewed right. The amber bars are the probability of at least 6, which is small because 6 is well above the mean.
Take care at the boundary, where most mistakes happen.
| Words | Values | Probability |
|---|---|---|
| exactly 4 | 4 | |
| at most 3, fewer than 4 | 0, 1, 2, 3 | |
| at least 4, 4 or more | 4, 5, ..., 12 | |
| more than 4 | 5, 6, ..., 12 |
4Mean and standard deviation
Interpretation. "In the long run, the mean number of customers out of 12 who buy the warranty is 4.2." The number of buyers in any one group of 12 is a whole number, so 4.2 is a long-run average over many groups. "The number of buyers in a group of 12 typically varies from the mean of 4.2 by about 1.65 customers."
Use these shortcut formulas for a binomial variable, not the general ones from 2.9.
5Estimating with a simulation
A binomial probability can be estimated without formulas. To simulate a group of 12 customers, use digits: the numbers 00 to 34 stand for "buys" (35 of 100 values, so ), and generate 12 two-digit numbers per trial. Count the buyers in each trial. Repeat many times.
A simulation of 50 groups gave this number of buyers: the event "at least 6 buyers" happened in 8 of the 50 groups.
The exact value is 0.213. With only 50 trials, an estimate 0.05 away is ordinary chance variation. A simulation of more groups would be closer.
Practice questions
30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.