Quant Memo
Foundational

The Binomial Distribution

The distribution of how many successes you get in a fixed number of independent yes/no trials. The first real distribution most quants reach for, and the direct payoff of knowing how to count.

Prerequisites: Counting: Permutations and Combinations, Random Variables & Distributions

The binomial distribution counts how many times something happens in a fixed number of independent yes/no trials: how many heads in 10 flips, how many of 100 orders fill, how many of 50 bonds default. Whenever you repeat the same simple gamble a set number of times and tally the wins, the count follows a binomial. It is usually the first distribution worth memorizing cold.

The setup

You need three things, and only three:

  • a fixed number of trials, nn;
  • each trial independent of the others;
  • each trial a success with the same probability pp (and failure with probability 1p1-p).

A single such yes/no trial is called a Bernoulli trial. The binomial random variable XX is the total number of successes across the nn trials, so XX can be any whole number from 00 to nn.

The formula

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

Read it in three pieces. The term pkp^k is the chance of kk particular successes; (1p)nk(1-p)^{n-k} is the chance the other nkn-k trials all fail; and (nk)\binom{n}{k}, "nn choose kk," counts how many different ways those kk successes could be positioned among the nn trials (see Counting: Permutations and Combinations). We multiply the first two because the trials are independent, and multiply by the count because any of those arrangements would do.

Binomial counts successes in nn independent yes/no trials, each with the same success chance pp. The formula is just three factors: pkp^k (those successes happen) × (1p)nk(1-p)^{n-k} (the rest fail) × (nk)\binom{n}{k} (how many ways to arrange them).

0 1 2 3 4 5 6 7 8 9 10 Binomial(n = 10, p = 0.5) mean = np = 5
Each bar is the probability of exactly k successes; the mound is symmetric around its mean of 5, and the two extremes are so rare their bars are barely visible.

The chart below is the same mass function, but live. Drag nn and pp and watch two things move: the mound recenters on its mean npnp (the dashed line), and it widens or narrows. It's symmetric at p=0.5p = 0.5; push pp toward 00 or 11 and it skews and bunches against the wall.

Distribution · binomial
mean 5.0012345678910outcomes (k) →
mean 5.00std dev 1.58peak at k = 5

Mean and variance

Because XX is just a sum of nn independent Bernoulli trials, and expectation adds (see Expected Value), the mean and variance drop out with no messy sum:

E[X]=np,Var(X)=np(1p).E[X] = np, \qquad \operatorname{Var}(X) = np(1-p) .

Each trial contributes pp to the expected count and p(1p)p(1-p) to the variance; add up nn of them. For n=10,p=0.5n = 10, p = 0.5 that gives a mean of 55 and a variance of 2.52.5 (standard deviation about 1.581.58), matching the chart's balance point and spread.

Worked example

Flip a fair coin 10 times. What is the probability of exactly 6 heads? Here n=10n = 10, p=0.5p = 0.5, k=6k = 6:

P(X=6)=(106)(0.5)6(0.5)4=(106)(0.5)10.P(X = 6) = \binom{10}{6}(0.5)^6 (0.5)^4 = \binom{10}{6}(0.5)^{10} .

Now (106)=10!6!4!=210\binom{10}{6} = \frac{10!}{6!\,4!} = 210 and (0.5)10=11024(0.5)^{10} = \frac{1}{1024}, so

P(X=6)=21010240.205.P(X = 6) = \frac{210}{1024} \approx 0.205 .

About a 20.5% chance, the same height as the k=6k = 6 bar above. Meanwhile the expected number of heads is simply np=10×0.5=5np = 10 \times 0.5 = 5, the tallest bar. Notice that the single most likely outcome (5 heads, near 24.6%) is still far from guaranteed: the count varies.

Where it misleads

  • Trials must be independent and identical. If one order filling makes the next more likely, or pp drifts over time, the binomial is wrong. Correlated defaults, in particular, fatten the tail far beyond what it predicts.
  • It counts, it doesn't order. XX is the number of successes, not which trials succeeded. If the sequence matters, you are back to counting arrangements.
  • Don't confuse it with its limits. When nn is large and pp tiny, the count is better handled by the The Poisson Distribution; when nn is large and pp moderate, it looks Gaussian, which is the The Central Limit Theorem at work. A common rule of thumb: the normal approximation is safe only when both npnp and n(1p)n(1-p) exceed about 10.
  • Sampling without replacement isn't binomial. Drawing from a finite pool without putting items back changes pp each draw; that is the hypergeometric distribution, not the binomial.

The binomial sits at the center of a small family of related laws collected in Common Distributions. Learn to derive its mean and variance from a sum of Bernoullis, and you have the template for reasoning about almost every count a quant meets.

Related concepts

Practice in interviews

Further reading

  • Blitzstein & Hwang, Introduction to Probability, ch. 3
  • Ross, A First Course in Probability
ShareTwitterLinkedIn