The Binomial Distribution
Counting successes in a fixed number of independent yes-or-no trials — and the tidy formula that gives every probability.
One trial, repeated
Start with the simplest random thing there is: a single trial with exactly two outcomes. Call one of them success and the other failure. A coin flip (heads or tails), a free throw (make or miss), a manufactured part (good or defective) — each is one such trial. A trial like this, with a fixed success probability, is called a Bernoulli trial.
Now repeat that exact same trial a fixed number of times and simply count the successes. That count is a random number — sometimes low, sometimes high. The binomial distribution tells you exactly how likely each possible count is.
- Fixed number of trials. You decide n in advance (10 flips, 6 shots, 50 parts).
- Two outcomes per trial. Each trial is a success or a failure — nothing in between.
- Constant probability. The success probability p is the same on every trial.
- Independence. One trial's result does not change the odds on any other.
Where the formula comes from
Suppose you want the probability of getting exactly k successes in n trials. Any one specific sequence with k successes and n−k failures has probability \(p^k(1-p)^{n-k}\), because the trials are independent so their probabilities multiply. But there are many different sequences that give k successes — the successes could land in any of the trial positions. The number of ways to choose which k of the n trials are the successes is the binomial coefficient \(\binom{n}{k}\). Multiply the two together and you have the whole probability.
Play with n and p
The bars below are the binomial PMF — one bar for each possible count k from 0 to n, its height the probability \(P(X=k)\). Drag p and watch the whole picture slide: near p = 0.5 it is symmetric, while small or large p pushes it to one side. Then raise the number of trials n. Notice two things happen at once: the bars spread out over more values, and the outline smooths into a familiar bell shape.
Center and spread without listing every bar
You rarely need all n+1 probabilities to describe a binomial — two summary numbers capture its center and its spread. Because X is a sum of n identical independent trials, the mean and variance of one trial (mean p, variance p(1−p)) simply add up n times:
- Check the setting: 6 fixed trials, two outcomes (make or miss), constant p = 0.8, shots independent. Binomial applies.
- Apply the PMF with n = 6, k = 5: \(P(X=5)=\binom{6}{5}(0.8)^5(0.2)^1\).
- Compute the pieces: \(\binom{6}{5}=6\), \((0.8)^5 = 0.32768\), and \((0.2)^1 = 0.2\), so \(P(X=5)=6 \times 0.32768 \times 0.2\).
- Center and spread: \(\mu = np = 6 \times 0.8 = 4.8\) and \(\sigma = \sqrt{np(1-p)} = \sqrt{6 \times 0.8 \times 0.2} = \sqrt{0.96}\).
Check your understanding
- A Bernoulli trial is a single yes-or-no trial with a fixed success probability p; a binomial counts the successes across n independent Bernoulli trials.
- The binomial setting requires four things: a fixed number of trials n, two outcomes per trial, a constant p, and independence.
- The PMF gives the chance of exactly k successes: P(X=k) = C(n,k) p^k (1-p)^(n-k).
- The mean is np and the standard deviation is sqrt(np(1-p)), which is largest near p = 0.5.
- As n grows, the binomial spreads out and its shape approaches a bell (normal) curve, especially when p is near 0.5.