Mathwords logoMathwords

Binomial Distribution — Definition, Formula & Examples

A binomial distribution models the number of successes in a fixed number of independent trials, where each trial has exactly two outcomes (success or failure) and the same probability of success.

A discrete random variable XX follows a binomial distribution with parameters nn and pp, written XB(n,p)X \sim B(n, p), if XX counts the number of successes in nn independent Bernoulli trials, each with success probability pp. Its probability mass function is P(X=k)=(nk)pk(1p)nkP(X = k) = \binom{n}{k} p^k (1-p)^{n-k} for k=0,1,2,,nk = 0, 1, 2, \ldots, n, with mean μ=np\mu = np and variance σ2=np(1p)\sigma^2 = np(1-p).

Key Formula

P(X=k)=(nk)pk(1p)nkP(X = k) = \binom{n}{k}\, p^{k}\,(1 - p)^{n - k}
Where:
  • nn = Total number of independent trials
  • kk = Number of successes you want the probability for
  • pp = Probability of success on a single trial
  • (nk)\binom{n}{k} = Binomial coefficient, equal to n! / (k!(n−k)!)

How It Works

To use the binomial distribution, first verify four conditions: (1) there is a fixed number of trials nn, (2) each trial is independent, (3) each trial has only two outcomes, and (4) the probability of success pp stays constant across trials. Once confirmed, plug nn, pp, and the desired number of successes kk into the binomial probability formula. The binomial coefficient (nk)\binom{n}{k} counts how many different orderings of kk successes can occur among nn trials, while pk(1p)nkp^k(1-p)^{n-k} gives the probability of any single such ordering. For cumulative questions like "at most 3 successes," sum the individual probabilities from k=0k = 0 to k=3k = 3.

Worked Example

Problem: You flip a fair coin 10 times. What is the probability of getting exactly 6 heads?
Identify parameters: Each flip is an independent trial with two outcomes. Here n=10n = 10, p=0.5p = 0.5, and k=6k = 6.
Compute the binomial coefficient: Calculate the number of ways to choose 6 heads out of 10 flips.
(106)=10!6!4!=210\binom{10}{6} = \frac{10!}{6!\cdot 4!} = 210
Apply the formula: Substitute into the binomial probability formula.
P(X=6)=210(0.5)6(0.5)4=210(0.5)10P(X = 6) = 210 \cdot (0.5)^{6} \cdot (0.5)^{4} = 210 \cdot (0.5)^{10}
Calculate: Since (0.5)10=11024(0.5)^{10} = \frac{1}{1024}, multiply to get the final probability.
P(X=6)=21010240.2051P(X = 6) = \frac{210}{1024} \approx 0.2051
Answer: The probability of getting exactly 6 heads in 10 flips is approximately 0.205, or about 20.5%.

Another Example

Problem: A multiple-choice quiz has 8 questions, each with 4 choices. If you guess randomly on every question, what is the probability of getting exactly 3 correct?
Identify parameters: Each question is an independent trial with p=0.25p = 0.25 (one correct choice out of four). We have n=8n = 8 and k=3k = 3.
Binomial coefficient: Count the number of ways to choose which 3 questions are answered correctly.
(83)=8!3!5!=56\binom{8}{3} = \frac{8!}{3!\cdot 5!} = 56
Apply the formula: Plug everything into the binomial formula.
P(X=3)=56(0.25)3(0.75)5P(X = 3) = 56 \cdot (0.25)^{3} \cdot (0.75)^{5}
Calculate: Evaluate each piece: (0.25)3=0.015625(0.25)^3 = 0.015625 and (0.75)50.23730(0.75)^5 \approx 0.23730.
P(X=3)=560.0156250.237300.2076P(X = 3) = 56 \cdot 0.015625 \cdot 0.23730 \approx 0.2076
Answer: The probability of guessing exactly 3 out of 8 correct is approximately 0.208, or about 20.8%.

Visualization

Why It Matters

The binomial distribution is one of the most heavily tested topics in AP Statistics, appearing in both multiple-choice and free-response sections. Quality-control engineers use it to decide how many defective items to expect in a production batch. Medical researchers rely on it when analyzing the number of patients who respond to a treatment in a clinical trial of fixed size.

Common Mistakes

Mistake: Forgetting the binomial coefficient and only computing pk(1p)nkp^k(1-p)^{n-k}.
Correction: The term pk(1p)nkp^k(1-p)^{n-k} gives the probability of one specific ordering. You must multiply by (nk)\binom{n}{k} to account for all possible arrangements of successes among the nn trials.
Mistake: Using the binomial distribution when trials are not independent.
Correction: Check independence before applying the formula. If outcomes affect each other (e.g., sampling without replacement from a small population), the binomial model does not apply.