AP subjects/AP Statistics/Binomial Distribution Explorer
CED 2.10AP Statistics

Binomial Distribution Explorer

Use this free binomial distribution explorer to see the probability of every possible number of successes in nn trials, and to find exact, at-most and at-least probabilities. Set nn and pp and the bar chart, mean, standard deviation and live probability all update.

Controls
knnormBtnp

How to use the simulator

The controls, from top to bottom:
  • Trials (nn): 1 to 50 in steps of 1, starting at 10.
  • Success probability (pp): 0.00 to 1.00 in steps of 0.01, starting at 0.50.
  • Exact, At most and At least buttons choose whether the live probability is P(X=k)P(X = k), P(X≤k)P(X \le k) or P(X≥k)P(X \ge k).
  • Outcome (kk): any whole number from 0 to nn. Its maximum follows the Trials slider, and if you lower nn below kk, kk drops to nn.
  • Normal approximation button, Off or On.
The bar chart shows P(X=k)P(X = k) for every kk from 0 to nn. Bars counted in your probability turn gold and a dashed line marks kk. Two boxes give Mean μ = np and SD σ = √(np(1−p)) to four decimal places, and the Live probability box shows the answer, such as P(X ≥ 8) = 0.2277.
Switching the normal approximation on draws a teal normal curve with the same mean and SD over the bars, and a note under the probability. It reads Normal approximation OK when np≥10np \ge 10 and n(1−p)≥10n(1-p) \ge 10, and Approximation unreliable otherwise. The curve is only a picture: the live probability is always the exact binomial value.
Watch the shape as you move pp. At p=0.50p = 0.50 the bars are symmetric; below 0.50 they are skewed right, above 0.50 skewed left. Raising nn makes any shape more symmetric. With the normal curve on, at n=40n = 40, p=0.50p = 0.50 it traces the bars closely; at n=10n = 10, p=0.10p = 0.10 it fits badly.

The formulas

If XX counts the successes in nn trials with success probability pp:
P(X=x)=(nx)px(1−p)n−xP(X = x) = \binom{n}{x} p^x (1-p)^{n-x}
μX=npσX=np(1−p)\mu_X = np \qquad \sigma_X = \sqrt{np(1-p)}
  • (nx)=n!x! (n−x)!\binom{n}{x} = \dfrac{n!}{x!\,(n-x)!} counts the orders in which the xx successes can occur.
  • A setting is binomial when each trial has two outcomes, trials are independent, the number of trials is fixed in advance, and pp is the same on every trial.
  • When sampling without replacement, treat trials as independent only if nn is at most 10% of the population.
  • Cumulative probabilities add bars: P(X≤k)=P(X=0)+⋯+P(X=k)P(X \le k) = P(X = 0) + \dots + P(X = k), and P(X≥k)=1−P(X≤k−1)P(X \ge k) = 1 - P(X \le k - 1).

Worked example

Problem: A basketball player makes 30% of her three-point attempts, and attempts are independent. In a practice she takes 20 three-pointers. Let XX = the number she makes. Find (a) P(X=6)P(X = 6), (b) the probability she makes at least 8, and (c) the mean and standard deviation of XX.
Step 1: Check the setting. Each shot is make or miss, shots are independent, n=20n = 20 is fixed and p=0.30p = 0.30 on every shot, so XX is binomial with n=20n = 20, p=0.30p = 0.30.
Step 2: Exactly 6. P(X=6)=(206)(0.30)6(0.70)14=38,760×(0.30)6(0.70)14≈0.1916P(X = 6) = \binom{20}{6}(0.30)^6(0.70)^{14} = 38{,}760 \times (0.30)^6 (0.70)^{14} \approx 0.1916.
Step 3: At least 8. Use the complement: P(X≥8)=1−P(X≤7)=1−0.7723=0.2277P(X \ge 8) = 1 - P(X \le 7) = 1 - 0.7723 = 0.2277.
Step 4: Mean and SD. μX=20(0.30)=6\mu_X = 20(0.30) = 6 makes and σX=20(0.30)(0.70)=4.2≈2.049\sigma_X = \sqrt{20(0.30)(0.70)} = \sqrt{4.2} \approx 2.049 makes. Over many 20-shot practices she averages 6 makes, and her count typically varies from 6 by about 2.05.
Check it in the simulator: set Trials to 20 and Success probability to 0.30. With Exact and k=6k = 6, the box reads P(X = 6) = 0.1916. Choose At least and move kk to 8 for 0.2277. The mean and SD boxes show 6.0000 and 2.0494. Turn the normal approximation on: the note says it is unreliable because np=6.00<10np = 6.00 < 10, and the bars are visibly right-skewed.

Common mistakes on the AP exam

  • Off-by-one errors. "More than 7" means X≥8X \ge 8, and "fewer than 3" means X≤2X \le 2. Translate the words into an inequality before calculating.
  • Wrong complement. P(X≥8)=1−P(X≤7)P(X \ge 8) = 1 - P(X \le 7), not 1−P(X≤8)1 - P(X \le 8). The complement must leave out exactly the values you want.
  • Dropping the binomial coefficient. (0.30)6(0.70)14(0.30)^6(0.70)^{14} is the probability of one particular order of makes and misses. Multiply by (206)\binom{20}{6} to count every order.
  • Using the binomial when it does not apply. If the number of trials is not fixed (for example, "shoot until the first make"), or the trials are dependent, the binomial model is wrong.
  • Calculator syntax as the only work. Writing binomcdf(20, 0.3, 7) alone is not clear communication. Name the distribution, its parameters and the event: XX is binomial with n=20n = 20, p=0.30p = 0.30, and P(X≥8)=1−P(X≤7)P(X \ge 8) = 1 - P(X \le 7).
  • Reading the mean as a guarantee. μX=6\mu_X = 6 is a long-run average, not the count she will make in any one practice. The mean also need not be a whole number.

When the AP exam uses this

The binomial distribution is introduced in topic 2.10, and the probability formula, mean and standard deviation are on the AP Statistics formula sheet. Expect multiple-choice questions that ask for an exact or cumulative probability, and free-response parts that ask you to identify a binomial setting, calculate a probability with clear work, or interpret μX\mu_X and σX\sigma_X in context.
Embed this simulator on your class page

Free for classroom use. Paste this into your site, LMS page or blog; keep the credit link under it.