Statistics

The Binomial Distribution

Last updated: March 2026 · Intermediate
Before you start

You should be comfortable with:

Real-world applications
💊
Nursing

Medication dosages, IV drip rates, vital monitoring

💰
Retail & Finance

Discounts, tax, tips, profit margins

The binomial distribution is one of the most important probability distributions in statistics. It models a simple but powerful scenario: you repeat the same experiment a fixed number of times, each trial has exactly two outcomes (success or failure), and you count the total number of successes. Coin flips, pass/fail inspections, yes/no survey questions, and defective/non-defective product checks all follow this pattern.

The Four Conditions (BINS)

A random variable XX follows a binomial distribution only when all four of these conditions are met. The mnemonic BINS makes them easy to remember:

  • Binary outcomes — each trial has exactly two outcomes: success or failure
  • Independent trials — the result of one trial does not affect any other trial
  • Number of trials is fixed — you decide on nn before the experiment begins
  • Same probability — the probability of success pp stays constant from trial to trial

If any condition is violated, the binomial model does not apply. For example, drawing cards without replacement violates independence (the deck composition changes after each draw), so that scenario is not binomial.

The Binomial Formula

If XX is the number of successes in nn independent trials, each with probability of success pp, then:

P(X=k)=(nk)pk(1p)nkP(X = k) = \binom{n}{k} p^k (1-p)^{n-k}

where:

  • nn = number of trials
  • kk = number of successes you are calculating the probability for
  • pp = probability of success on a single trial
  • (1p)(1-p) = probability of failure on a single trial
  • (nk)=n!k!(nk)!\binom{n}{k} = \frac{n!}{k!(n-k)!} = the number of ways to arrange kk successes among nn trials

The combination (nk)\binom{n}{k} is essential because the kk successes can occur in any order across the nn trials, and each arrangement has the same probability.

Worked Examples

Example 1: Free Throws

A basketball player makes 80% of free throws (p=0.80p = 0.80). In 5 attempts (n=5n = 5), what is the probability of making exactly 3?

Identify the parts: n=5n = 5, k=3k = 3, p=0.80p = 0.80, (1p)=0.20(1-p) = 0.20

Step 1: Calculate the combination.

(53)=5!3!2!=5×42×1=10\binom{5}{3} = \frac{5!}{3! \cdot 2!} = \frac{5 \times 4}{2 \times 1} = 10

Step 2: Calculate pkp^k and (1p)nk(1-p)^{n-k}.

pk=(0.80)3=0.512p^k = (0.80)^3 = 0.512

(1p)nk=(0.20)2=0.04(1-p)^{n-k} = (0.20)^2 = 0.04

Step 3: Multiply everything together.

P(X=3)=10×0.512×0.04=10×0.02048=0.2048P(X = 3) = 10 \times 0.512 \times 0.04 = 10 \times 0.02048 = 0.2048

Answer: The probability of making exactly 3 out of 5 free throws is 0.2048, or about 20.5%.

Verification: (53)=10\binom{5}{3} = 10 \checkmark. (0.80)3=0.512(0.80)^3 = 0.512 \checkmark. (0.20)2=0.04(0.20)^2 = 0.04 \checkmark. 10×0.512×0.04=0.204810 \times 0.512 \times 0.04 = 0.2048 \checkmark

Example 2: Quality Control — Zero Defects

A factory has a 5% defect rate (p=0.05p = 0.05). In a batch of 10 items (n=10n = 10), what is the probability that none are defective?

P(X=0)=(100)(0.05)0(0.95)10P(X = 0) = \binom{10}{0}(0.05)^0(0.95)^{10}

=1×1×(0.95)10= 1 \times 1 \times (0.95)^{10}

=0.5987= 0.5987

Answer: There is about a 59.9% chance that all 10 items are defect-free.

Verification: (0.95)10=0.9510(0.95)^{10} = 0.95^{10}. Computing step by step: 0.952=0.90250.95^2 = 0.9025, 0.954=0.81450.95^4 = 0.8145, 0.955=0.773780.95^5 = 0.77378, 0.9510=0.773782=0.59870.95^{10} = 0.77378^2 = 0.5987 \checkmark

Example 3: At Least One Defect (Complement Approach)

Using the same scenario, what is the probability of at least one defective item?

The complement approach is much faster than calculating P(X=1)+P(X=2)++P(X=10)P(X=1) + P(X=2) + \cdots + P(X=10):

P(X1)=1P(X=0)=10.5987=0.4013P(X \geq 1) = 1 - P(X = 0) = 1 - 0.5987 = 0.4013

Answer: There is about a 40.1% chance of finding at least one defective item in a batch of 10.

This is a surprisingly high probability given that the defect rate is only 5%. Even a low per-item defect rate accumulates quickly across multiple items.

Mean and Standard Deviation

For a binomial random variable, the mean and standard deviation have simple formulas:

μ=np\mu = np

σ=np(1p)\sigma = \sqrt{np(1-p)}

These follow from the general expected value and variance formulas for random variables, but the binomial structure makes them especially clean.

Example 4: Free Throws — Mean and Standard Deviation

Using the free throw scenario (n=5n = 5, p=0.80p = 0.80):

μ=5×0.80=4\mu = 5 \times 0.80 = 4

On average, the player makes 4 out of 5 free throws.

σ=5×0.80×0.20=5×0.16=0.800.894\sigma = \sqrt{5 \times 0.80 \times 0.20} = \sqrt{5 \times 0.16} = \sqrt{0.80} \approx 0.894

The standard deviation is about 0.894, meaning most outcomes will be within about 1 make of the average. You would typically see 3, 4, or 5 makes — which lines up with our probability table below.

When to Use the Binomial Distribution

Not every yes/no scenario is binomial. The table below helps you decide:

ScenarioBinomial?Why?
Flipping a coin 20 times, counting headsYesBinary, independent, fixed n, same p
Rolling a die 10 times, counting sixesYes”Six” vs “not six” = binary outcome
Testing 15 lightbulbs for defectsYesDefective/not defective, independent
Drawing 5 cards without replacement, counting acesNoTrials are dependent (deck changes)
Counting customers until the 10th purchaseNoNumber of trials is not fixed
Survey where each person has a different response rateNoProbability p is not constant

Rule of thumb: If sampling without replacement but the sample is less than 10% of the population, you can still approximate with the binomial distribution. Drawing 5 items from a warehouse of 10,000 is effectively binomial because removing one item barely changes the composition.

Binomial Probability Table

Here is the complete distribution for the free throw example (n=5n = 5, p=0.80p = 0.80):

kk(5k)\binom{5}{k}(0.80)k(0.80)^k(0.20)5k(0.20)^{5-k}P(X=k)P(X=k)
0110.000320.00032
150.800.00160.00640
2100.640.0080.05120
3100.5120.040.20480
450.40960.200.40960
510.3276810.32768

Verification: 0.00032+0.00640+0.05120+0.20480+0.40960+0.32768=1.000000.00032 + 0.00640 + 0.05120 + 0.20480 + 0.40960 + 0.32768 = 1.00000 \checkmark

Notice that k=4k = 4 is the most likely outcome (about 41%), consistent with the mean of 4. Making all 5 has about a 33% probability, while making 0 or 1 is extremely unlikely (less than 1% combined).

Binomial Distribution — Free Throws (n=5, p=0.80)

0.100.200.300.400.051.205.410.328012345k (number of makes)P(X = k)

Real-World Application: Nursing — Medication Side Effects

A medication has a 15% side effect rate (p=0.15p = 0.15). A nurse administers it to 8 patients (n=8n = 8). What is the probability that 2 or fewer patients experience side effects?

We need P(X2)=P(X=0)+P(X=1)+P(X=2)P(X \leq 2) = P(X = 0) + P(X = 1) + P(X = 2).

P(X = 0):

P(X=0)=(80)(0.15)0(0.85)8=1×1×(0.85)8P(X = 0) = \binom{8}{0}(0.15)^0(0.85)^8 = 1 \times 1 \times (0.85)^8

Computing (0.85)8(0.85)^8: 0.852=0.72250.85^2 = 0.7225, 0.854=0.72252=0.52200.85^4 = 0.7225^2 = 0.5220, 0.858=0.52202=0.27250.85^8 = 0.5220^2 = 0.2725

P(X=0)=0.2725P(X = 0) = 0.2725

P(X = 1):

P(X=1)=(81)(0.15)1(0.85)7=8×0.15×(0.85)7P(X = 1) = \binom{8}{1}(0.15)^1(0.85)^7 = 8 \times 0.15 \times (0.85)^7

(0.85)7=(0.85)8/0.85=0.2725/0.85=0.3206(0.85)^7 = (0.85)^8 / 0.85 = 0.2725 / 0.85 = 0.3206

P(X=1)=8×0.15×0.3206=8×0.04809=0.3847P(X = 1) = 8 \times 0.15 \times 0.3206 = 8 \times 0.04809 = 0.3847

P(X = 2):

P(X=2)=(82)(0.15)2(0.85)6=28×0.0225×(0.85)6P(X = 2) = \binom{8}{2}(0.15)^2(0.85)^6 = 28 \times 0.0225 \times (0.85)^6

(0.85)6=(0.85)4×(0.85)2=0.5220×0.7225=0.3771(0.85)^6 = (0.85)^4 \times (0.85)^2 = 0.5220 \times 0.7225 = 0.3771

P(X=2)=28×0.0225×0.3771=28×0.008485=0.2376P(X = 2) = 28 \times 0.0225 \times 0.3771 = 28 \times 0.008485 = 0.2376

Total:

P(X2)=0.2725+0.3847+0.2376=0.8948P(X \leq 2) = 0.2725 + 0.3847 + 0.2376 = 0.8948

Answer: There is about an 89.5% chance that 2 or fewer of the 8 patients will experience side effects.

Verification: 0.2725+0.3847+0.2376=0.89480.2725 + 0.3847 + 0.2376 = 0.8948 \checkmark. This makes sense because the expected number of patients with side effects is μ=8×0.15=1.2\mu = 8 \times 0.15 = 1.2, and 2 or fewer is above the mean, so the cumulative probability should be well above 50%.

Why this matters in nursing: If a nurse is monitoring 8 patients and 4 or 5 experience side effects from a drug with a 15% side effect rate, the binomial model tells us that outcome is very unlikely (the probability of 4 or more is only about 1P(X3)0.021 - P(X \leq 3) \approx 0.02). This would signal a potential issue — perhaps a bad batch, a drug interaction, or a patient population with elevated risk factors.

Practice Problems

Test your understanding with these problems. Click to reveal each answer.

Problem 1: A multiple-choice quiz has 8 questions, each with 4 choices. A student guesses randomly on every question. What is the probability of getting exactly 2 correct?

Here n=8n = 8, k=2k = 2, p=0.25p = 0.25 (one correct answer out of 4 choices).

P(X=2)=(82)(0.25)2(0.75)6P(X = 2) = \binom{8}{2}(0.25)^2(0.75)^6

=28×0.0625×0.1780= 28 \times 0.0625 \times 0.1780

=1.75×0.1780=0.3115= 1.75 \times 0.1780 = 0.3115

Verification: (82)=28\binom{8}{2} = 28. (0.25)2=0.0625(0.25)^2 = 0.0625. (0.75)6=0.752×0.752×0.752=0.56253=0.1780(0.75)^6 = 0.75^2 \times 0.75^2 \times 0.75^2 = 0.5625^3 = 0.1780. 28×0.0625×0.1780=0.311528 \times 0.0625 \times 0.1780 = 0.3115 \checkmark

Answer: The probability of guessing exactly 2 correctly is approximately 0.311, or about 31.1%.

Problem 2: A coin is flipped 6 times. What is the probability of getting exactly 4 heads?

Here n=6n = 6, k=4k = 4, p=0.50p = 0.50.

P(X=4)=(64)(0.50)4(0.50)2=15×0.0625×0.25P(X = 4) = \binom{6}{4}(0.50)^4(0.50)^2 = 15 \times 0.0625 \times 0.25

=15×0.015625=0.2344= 15 \times 0.015625 = 0.2344

Answer: The probability is approximately 0.234, or about 23.4%.

Problem 3: A company knows that 10% of its emails go to spam. Out of 20 emails sent, what are the mean and standard deviation of the number that land in spam?

Here n=20n = 20, p=0.10p = 0.10.

μ=np=20×0.10=2\mu = np = 20 \times 0.10 = 2

σ=np(1p)=20×0.10×0.90=1.81.342\sigma = \sqrt{np(1-p)} = \sqrt{20 \times 0.10 \times 0.90} = \sqrt{1.8} \approx 1.342

Answer: On average, 2 emails land in spam, with a standard deviation of approximately 1.34.

Problem 4: A retail store finds that 30% of customers who enter make a purchase. If 12 customers enter, what is the probability that exactly 5 make a purchase?

Here n=12n = 12, k=5k = 5, p=0.30p = 0.30.

P(X=5)=(125)(0.30)5(0.70)7P(X = 5) = \binom{12}{5}(0.30)^5(0.70)^7

(125)=12!5!7!=12×11×10×9×8120=95040120=792\binom{12}{5} = \frac{12!}{5! \cdot 7!} = \frac{12 \times 11 \times 10 \times 9 \times 8}{120} = \frac{95040}{120} = 792

(0.30)5=0.00243(0.70)70.08235(0.30)^5 = 0.00243 \qquad (0.70)^7 \approx 0.08235

P(X=5)=792×0.00243×0.082350.1585P(X = 5) = 792 \times 0.00243 \times 0.08235 \approx 0.1585

Answer: The probability that exactly 5 out of 12 customers make a purchase is approximately 0.1585, or about 15.9%.

Problem 5: A nurse gives a vaccine to 6 patients. The vaccine has a 2% chance of causing a mild reaction. What is the probability that none of the 6 patients have a reaction?

Here n=6n = 6, k=0k = 0, p=0.02p = 0.02.

P(X=0)=(60)(0.02)0(0.98)6=1×1×(0.98)6P(X = 0) = \binom{6}{0}(0.02)^0(0.98)^6 = 1 \times 1 \times (0.98)^6

(0.98)2=0.9604(0.98)^2 = 0.9604. (0.98)6=0.96043=0.8858(0.98)^6 = 0.9604^3 = 0.8858

P(X=0)=0.8858P(X = 0) = 0.8858

Answer: There is about an 88.6% chance that none of the 6 patients experience a reaction.

Key Takeaways

  • The binomial distribution models the number of successes in nn fixed, independent trials with constant success probability pp.
  • Remember the BINS checklist: Binary outcomes, Independent trials, fixed Number of trials, Same probability.
  • Binomial formula: P(X=k)=(nk)pk(1p)nkP(X = k) = \binom{n}{k} p^k (1-p)^{n-k}
  • Mean: μ=np\mu = np gives the expected number of successes.
  • Standard deviation: σ=np(1p)\sigma = \sqrt{np(1-p)} measures the typical variation around the mean.
  • Use the complement P(X1)=1P(X=0)P(X \geq 1) = 1 - P(X = 0) to find “at least one” probabilities efficiently.
  • The binomial distribution appears in quality control, medical studies, survey analysis, retail conversion rates, and any context where you count successes in repeated trials.

Return to Statistics for more topics in this section.

Last updated: March 29, 2026