---
title: "Four checks, then the count. | FiveStudy"
description: "A pharmacy inspector pulls ten tablets from a large batch and counts how many are defective. The batch runs about eight percent defective. Ten tablets have 1,024 defect patterns. The binomial model is"
url: https://fivestudy.com/guides/apstats-2-10-binomial-distribution
---

[AP Statistics](https://fivestudy.com/ap-statistics) · Study guide

# Four checks, then the count.

[Figure: FiveStudy]

FiveStudy

AP® Statistics · Unit 2 · Probability, Random Variables, and Probability Distributions

AP® Statistics · Unit 2 · Probability, Random Variables, and Probability Distributions

# 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.

1. Is it binomial? 2. Probabilities 3. Mean and SD 4. Shape 5. Using it

The idea in one paragraph

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.

## 1 Is 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\).

**Figure 1.** A random variable is binomial when it counts successes in a setting that passes all four checks. If any one fails, such as a number of trials that is not fixed, the count is not binomial.

Worked Example 1 Binomial or not?

### Four counts

1. X = number of heads in 20 tosses of a fair coin.
2. X = number of rolls of a die until the first 6.
3. X = number of hearts in 5 cards dealt from a 20-card pile holding 5 hearts.
4. X = number of students who own a car among 30 chosen at random from a school of 2,000, where 18% own one.
1. 1 **1.** Two outcomes, independent tosses, n = 20 fixed, p = 0.5 each time. Binomial.
2. 2 **2.** The number of trials is not fixed: you keep rolling until a 6 appears. Not binomial.
3. 3 **3.** 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.
4. 4 **4.** 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.

**Answer:** 1 and 4 are binomial (4 approximately, because the sample is a small part of the population); 2 and 3 are not.

Common Mistake 1 · Calling any count binomial

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).

## 2 Finding binomial probabilities

The probability of exactly \(x\) successes in \(n\) trials is given by the **binomial probability function**:

\[ P(X = x) = \binom{n}{x} p^x (1-p)^{n-x}, \qquad x = 0, 1, 2, \ldots, n \]

The binomial coefficient \(\binom{n}{x}\), read “n choose x,” counts the number of ways to arrange \(x\) successes among \(n\) trials.

**Figure 2.** Every arrangement with 3 correct and 7 wrong has the same probability, 0.25³ × 0.75⁷. The binomial coefficient counts how many arrangements there are. C stands for correct and W for wrong.

Worked Example 2 Use the binomial formula

### Exactly 3 right by guessing

A student guesses on all 10 questions of a quiz, each with 4 choices. Find P(X = 3).

1. 1Check the setting: guess right or wrong; independent guesses; n = 10; p = 0.25 each time. X is binomial.
2. 2\(P(X = 3) = \binom{10}{3} (0.25)^3 (0.75)^7\).
3. 3\(\binom{10}{3} = 120\), \((0.25)^3 = 0.015625\), \((0.75)^7 \approx 0.1335\).
4. 4\(P(X = 3) \approx 120 \times 0.015625 \times 0.1335 \approx 0.2503\).

**Answer:** P(X = 3) ≈ 0.250. A student who guesses on all 10 has about a 25% chance of getting exactly 3 right.

On the calculator

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).

Worked Example 3 “At least” with the complement

### Five or more right

Find the probability that the guessing student gets at least 5 of the 10 questions right.

1. 1\(P(X \ge 5) = 1 - P(X \le 4)\).
2. 2On a calculator, \(P(X \le 4)\) = binomcdf(10, 0.25, 4) \(\approx 0.9219\).
3. 3\(P(X \ge 5) \approx 1 - 0.9219 = 0.0781\).

**Answer:** About 0.078. Only about 7.8% of students guessing on all 10 questions would get 5 or more right.

Common Mistake 2 · Using binomcdf for “at least”

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.

Common Mistake 3 · Leaving out “n choose x”

\((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.

## 3 Mean and standard deviation

If \(X\) is binomial, its mean and standard deviation have simple formulas:

\[ \mu_X = np \qquad\qquad \sigma_X = \sqrt{np(1-p)} \]

Worked Example 4 Mean and standard deviation

### Interpret in context

Find and interpret the mean and standard deviation of X, the number correct when guessing on all 10 questions.

1. 1\(\mu_X = np = 10(0.25) = 2.5\).
2. 2\(\sigma_X = \sqrt{np(1-p)} = \sqrt{10(0.25)(0.75)} = \sqrt{1.875} \approx 1.37\).

**Answer:** If many students guessed on all 10 questions, they would get 2.5 right on average, and the number right would typically vary by about 1.37 questions from that mean.

**Figure 3.** With n = 10 and p = 0.25 the distribution is skewed right: most guessers get 1 to 4 right, and getting 5 or more right (the darker bars) happens only about 7.8% of the time.

## 4 Shape

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.

**Figure 4.** Same n = 10, three values of p. When p is small the counts pile up near 0 and the tail runs right; when p = 0.5 the shape is symmetric; when p is large the counts pile up near n.

## 5 Using 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.

Worked Example 5 Use a probability to judge a claim

### Was she guessing?

A student says she guessed on every question and got 7 right. Is that believable?

1. 1If she were guessing, \(P(X \ge 7) = 1 - P(X \le 6)\) = 1 − binomcdf(10, 0.25, 6) \(\approx 0.0035\).
2. 2That is about 3.5 times in 1,000 guessing students.
3. 3A result this unlikely under guessing makes the claim hard to believe; it is evidence she knew some answers.

**Answer:** Not very believable: guessing would produce 7 or more right only about 0.35% of the time.

Say it like this

“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.”

Worked Example 6 Estimate with a simulation

### 500 simulated guessers

Describe how to estimate P(X ≥ 5) by simulation, and compare with the exact value.

1. 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.
2. 2Count the number of 1s in the trial, which is X. Repeat 500 times.
3. 3In 500 simulated trials, 39 had at least 5 correct: an estimate of \(39 \div 500 = 0.078\).

**Answer:** The simulation estimates 0.078, close to the exact 0.078. More trials would bring the estimate closer.

Common Mistake 4 · Reading the mean as the most likely count

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)}\) |

FiveStudy AP® Statistics · The binomial distribution
