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, ;
- each trial independent of the others;
- each trial a success with the same probability (and failure with probability ).
A single such yes/no trial is called a Bernoulli trial. The binomial random variable is the total number of successes across the trials, so can be any whole number from to .
The formula
Read it in three pieces. The term is the chance of particular successes; is the chance the other trials all fail; and , " choose ," counts how many different ways those successes could be positioned among the 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 independent yes/no trials, each with the same success chance . The formula is just three factors: (those successes happen) × (the rest fail) × (how many ways to arrange them).
The chart below is the same mass function, but live. Drag and and watch two things move: the mound recenters on its mean (the dashed line), and it widens or narrows. It's symmetric at ; push toward or and it skews and bunches against the wall.
Mean and variance
Because is just a sum of independent Bernoulli trials, and expectation adds (see Expected Value), the mean and variance drop out with no messy sum:
Each trial contributes to the expected count and to the variance; add up of them. For that gives a mean of and a variance of (standard deviation about ), 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 , , :
Now and , so
About a 20.5% chance, the same height as the bar above. Meanwhile the expected number of heads is simply , 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 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. 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 is large and tiny, the count is better handled by the The Poisson Distribution; when is large and 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 and exceed about 10.
- Sampling without replacement isn't binomial. Drawing from a finite pool without putting items back changes 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