AP Statistics · Topic 2.10 · Reading guide, about 5 min

Counting successes in n trials

Recognize a binomial setting, find binomial probabilities, the mean and standard deviation, and interpret results in context, with a worked example.

In one minute

Many situations count how many times something happens in a fixed number of tries: free throws made out of 8, seeds that sprout out of 20, defective parts in a box of 50. When the tries meet four conditions, the count follows a binomial distribution and you can find exact probabilities.

This topic teaches how to decide whether a situation is binomial, how to compute probabilities for exact, at-most and at-least counts, and how to find and interpret the mean and standard deviation.

Key terms

Binomial setting
A process with a fixed number of trials nn, independent trials, two outcomes (success or failure), and the same success probability pp each trial.
Binomial random variable
XX = the number of successes in nn trials of a binomial setting. Its possible values are 0,1,…,n0, 1, \ldots, n.
Success
The outcome being counted, not necessarily a good one. A defective part can be called a success if defects are what you count.
nn and pp
The parameters: nn is the number of trials and pp is the probability of success on each trial.
Binomial probability
P(X=x)=(nx)px(1−p)n−xP(X = x) = \binom{n}{x} p^{x}(1 - p)^{n - x}, where (nx)\binom{n}{x} counts the ways to place xx successes among nn trials.
Mean of a binomial
μX=np\mu_X = np, the expected number of successes in the long run.
Standard deviation of a binomial
σX=np(1−p)\sigma_X = \sqrt{np(1 - p)}, the typical distance of the count from npnp.
Independence check
When sampling without replacement from a population, trials are close enough to independent if the sample is under 10% of the population.

Deciding whether a situation is binomial

Use a checklist, and tie each item to the situation. Is the number of trials fixed in advance? Are the trials independent? Is each trial a success or a failure? Is the probability of success the same each time? If all four hold, the variable is binomial. If any one fails, it is not.

Counting how many flips it takes to see the first head fails the first condition, because the number of trials is not fixed. Drawing 5 cards from a deck and counting hearts fails independence and constant pp, because without replacement each card changes the deck. Counting how many of 25 friends in one group chat own a certain phone can fail independence, because friends influence each other's choices.

When you sample without replacement from a large population, the draws are not exactly independent, but if the sample is less than 10 percent of the population the probabilities hardly change, so the binomial model is a good approximation. Check this and say so.

Binomial probabilities

For exactly xx successes, use P(X=x)=(nx)px(1−p)n−xP(X = x) = \binom{n}{x} p^{x}(1 - p)^{n - x}. The factor px(1−p)n−xp^{x}(1 - p)^{n - x} is the probability of one particular arrangement of xx successes and n−xn - x failures, using the multiplication rule from 2.7. The factor (nx)=n!x!(n−x)!\binom{n}{x} = \dfrac{n!}{x!(n - x)!} counts how many different arrangements there are.

For probabilities like "at most 5" or "at least 7", add the individual probabilities or use technology for cumulative probabilities. Use the complement when it is shorter: P(X≥3)=1−P(X≤2)P(X \geq 3) = 1 - P(X \leq 2). Always write the inequality in symbols first.

You can also estimate a binomial probability by simulation. Generate many sets of nn trials, each trial a success with probability pp, record the count of successes in each set, and take the proportion of sets that meet your condition. It will be close to, but not exactly equal to, the true value.

Binomial facts at a glance
QuantityRuleFree-throw example (n=8n = 8, p=0.7p = 0.7)
Exactly xx(nx)px(1−p)n−x\binom{n}{x} p^{x}(1 - p)^{n - x}P(X=6)=0.2965P(X = 6) = 0.2965
Meannpnp8(0.7)=5.68(0.7) = 5.6 makes
Standard deviationnp(1−p)\sqrt{np(1 - p)}1.68=1.2961\sqrt{1.68} = 1.2961
At least xxAdd, or use 1−P(X≤x−1)1 - P(X \leq x - 1)P(X≥7)=0.2553P(X \geq 7) = 0.2553

Worked example

A basketball player makes 70 percent of her free throws. Assume 8 shots are independent with the same probability (a model, not a guarantee). Let XX be the number made. This is binomial with n=8n = 8 and p=0.7p = 0.7, because there are a fixed 8 trials, each a make or a miss, independent, with constant pp.

(a) Exactly 6: P(X=6)=(86)(0.7)6(0.3)2=28(0.117649)(0.09)≈0.2965P(X = 6) = \binom{8}{6}(0.7)^6(0.3)^2 = 28(0.117649)(0.09) \approx 0.2965 (probabilities rounded to four decimal places).

(b) At least 7: P(X≥7)=P(7)+P(8)P(X \geq 7) = P(7) + P(8). P(7)=(87)(0.7)7(0.3)=8(0.0823543)(0.3)=0.1977P(7) = \binom{8}{7}(0.7)^7(0.3) = 8(0.0823543)(0.3) = 0.1977 and P(8)=(0.7)8=0.0576P(8) = (0.7)^8 = 0.0576. So P(X≥7)=0.1977+0.0576=0.2553P(X \geq 7) = 0.1977 + 0.0576 = 0.2553.

(c) At most 5: use the complement, P(X≤5)=1−P(X≥6)=1−(0.2965+0.2553)=1−0.5518=0.4482P(X \leq 5) = 1 - P(X \geq 6) = 1 - (0.2965 + 0.2553) = 1 - 0.5518 = 0.4482.

(d) Mean and standard deviation: μX=8(0.7)=5.6\mu_X = 8(0.7) = 5.6 and σX=8(0.7)(0.3)=1.68=1.2961\sigma_X = \sqrt{8(0.7)(0.3)} = \sqrt{1.68} = 1.2961. In the long run, she makes an average of 5.6 of 8 shots per set of 8 free throws, and the number made typically varies from 5.6 by about 1.3 shots. Note that 5.6 is not a possible count; it is a long-run average.

How it connects

  • Back to 2.7: the binomial formula is repeated multiplication of independent trials, plus counting the ways they can be arranged.
  • Back to 2.9: the mean npnp and standard deviation np(1−p)\sqrt{np(1 - p)} are shortcuts for the general expected value and standard deviation formulas.
  • Forward to 3.2: sample proportions come from counts that are binomial, which explains their center and spread.

Common mistakes

  • Calling something binomial without checking. Name all four conditions in context. If the trials are dependent or nn is not fixed, the model fails.
  • Using the formula for a range. The formula gives exactly xx. For "at least" or "at most", add several terms or use cumulative technology.
  • Dropping the complement step. For P(X≥3)P(X \geq 3) you need 1−P(X≤2)1 - P(X \leq 2), not 1−P(X≤3)1 - P(X \leq 3).
  • Reporting a mean as a prediction. The mean npnp is a long-run average and may not be a whole number.

How it shows up on the exam

  • A scenario with a count of successes in repeated trials, asking you to justify whether a binomial model applies by checking the conditions in context.
  • Questions asking for exact, at-most or at-least probabilities, the mean and standard deviation, and a plain-language interpretation.

Check yourself

  1. What are the four conditions for a binomial setting, and which one fails when you count flips until the first head?
  2. Why does (nx)\binom{n}{x} appear in the formula, and what does the other factor represent?
  3. How would you find the probability of at least 2 defective parts in a box of 12 when p=0.05p = 0.05?
  4. When may you treat sampling without replacement as binomial?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.