James's Math Hub
Statistics & Probability

Lesson 9 / 13 · 12 min read

The Binomial Distribution

Counting successes in n independent trials, with a clean formula for mean and spread.

When is a setting binomial? (BINS)

A situation is binomial when all four hold:

  • Binary: each trial is a success or a failure.
  • Independent: trials don't affect each other.
  • Number of trials nn is fixed in advance.
  • Same probability pp of success on every trial.

Then XX = the number of successes is a binomial random variable.

The binomial formula

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

Reading it: (nk)\binom{n}{k} counts which kk of the nn trials are the successes (that's the combinations from counting), pkp^k is the probability those kk succeed, and (1p)nk(1-p)^{n-k} is the probability the rest fail.

Worked example

Flip a fair coin 5 times (n=5n = 5, p=0.5p = 0.5). Probability of exactly 3 heads:

P(X=3)=(53)(0.5)3(0.5)2=100.1250.25=0.3125P(X = 3) = \binom{5}{3}(0.5)^3(0.5)^2 = 10 \cdot 0.125 \cdot 0.25 = 0.3125

With p0.5p \neq 0.5. A shooter makes free throws 80%80\% of the time (p=0.8p = 0.8). In 6 attempts, probability of exactly 5 makes:

(65)(0.8)5(0.2)1=60.327680.20.393\binom{6}{5}(0.8)^5(0.2)^1 = 6 \cdot 0.32768 \cdot 0.2 \approx 0.393

"At least" problems — use the complement

For "at least one," it's almost always easier to subtract from 1.

Example. Roll a die 4 times. Probability of at least one 6:

P(at least one 6)=1P(no 6)=1(56)410.482=0.518P(\text{at least one } 6) = 1 - P(\text{no } 6) = 1 - \left(\tfrac{5}{6}\right)^4 \approx 1 - 0.482 = 0.518

Mean and standard deviation

A binomial distribution has a tidy mean and spread:

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

Example. n=100n = 100 fair flips (p=0.5p = 0.5): μ=50\mu = 50 and σ=1000.50.5=25=5\sigma = \sqrt{100 \cdot 0.5 \cdot 0.5} = \sqrt{25} = 5.

Normal approximation

When nn is large — a common rule of thumb is np10np \geq 10 and n(1p)10n(1-p) \geq 10 — the binomial is approximately normal with that same μ\mu and σ\sigma. So the 68-95-99.7 rule kicks in. For 100 fair flips, about 95%95\% of the time you'd get between 4040 and 6060 heads (50±2550 \pm 2 \cdot 5).

Key takeaways

  • Binomial setting = BINS: binary, independent, fixed nn, same pp.
  • P(X=k)=(nk)pk(1p)nkP(X = k) = \binom{n}{k} p^k (1-p)^{n-k}.
  • For "at least one," compute 1P(none)1 - P(\text{none}).
  • μ=np\mu = np and σ=np(1p)\sigma = \sqrt{np(1-p)}.
  • Large nn (npnp and n(1p)10n(1-p) \geq 10) makes it approximately normal.