Binomial Coefficients and Pascal's Triangle
The number of ways to choose a subset of a given size from a larger group, written $\binom{n}{k}$ — and Pascal's triangle, a simple visual pattern that generates every one of these counts just by adding two numbers above it.
Prerequisites: Permutations and Combinations
Counting "how many ways can I pick 3 stocks out of 20 for a basket" seems like it should require listing possibilities, but that becomes hopeless fast — even 20 choose 3 already has 1,140 combinations. Binomial coefficients give a closed formula for exactly this kind of count, and Pascal's triangle gives an almost magical way to build every one of these numbers just by repeated addition, without ever computing a single factorial.
An analogy: choosing a starting five, not a batting order
If you're choosing which 5 of 12 players will start a game — a plain selection where order doesn't matter, since "start" is start regardless of who's announced first — that's fundamentally a different, smaller count than choosing an ordered lineup of those 5 (where batting order matters). Binomial coefficients count the first kind: unordered selections. ("n choose k") is the number of distinct subsets of size you can pick from items, with no regard to the order you picked them in.
The formula, one symbol at a time
where ("n factorial") means , and reads "n choose k." In plain English: count all orderings of the full group, then divide by (to stop caring about the order within your chosen subset of size ) and by (to stop caring about the order of the leftover, unchosen items). Pascal's triangle arranges these numbers in rows, row holding , and each entry equals the sum of the two entries diagonally above it in the previous row:
In plain English: to select items from , either a specific item is in your selection (then you still need to pick the remaining from the other ) or it's not (then you need all from the other ) — these two cases are mutually exclusive and cover everything, so their counts simply add.
Worked example 1: choosing 3 stocks from 6 by hand
. Cross-checking with the addition rule: . Computing each: , . Sum: — matching exactly, confirming the recursive addition rule gives the same answer as the direct factorial formula, just built up from smaller cases.
Worked example 2: building three rows of Pascal's triangle
Row 0: . Row 1: . Row 2: , , . Row 3: , , , . So row 3 reads 1, 3, 3, 1 — exactly the coefficients you'd get expanding , which is the "binomial" in binomial coefficient: is literally the coefficient of in the expansion of .
Picture Pascal's triangle as a grid where each cell sums the two above it: the outer edges are always 1, and the interior numbers grow rapidly toward the middle of each row, mirroring the classic bell-curve shape that emerges from binomial probabilities as grows.
What this means in practice
Binomial coefficients are the raw counting machinery behind the binomial probability distribution (probability of exactly successes in trials involves directly), option-pricing binomial trees (the number of distinct up/down paths reaching a given node), portfolio construction from a universe ("how many distinct 30-stock portfolios from a 500-stock universe"), and virtually every probability brainteaser involving counting subsets. Fast, mental estimation of for small (like ) is a standard interview skill.
counts the number of unordered subsets of size from items, and Pascal's triangle generates every one of these values by simple repeated addition — each entry equal to the sum of the two entries diagonally above it, without ever computing a factorial directly.
The classic mixup is applying when order actually does matter (which needs the permutation count instead) — "how many ways to choose 3 board members" is a combination (), but "how many ways to choose a president, treasurer, and secretary from the same group" is a permutation, since swapping which of the three gets which role produces a genuinely different outcome. Mistaking one for the other is the single most common counting error in interview probability questions.
Practice in interviews
Further reading
- Feller, An Introduction to Probability Theory and Its Applications, ch. 2
- Graham, Knuth & Patashnik, Concrete Mathematics, ch. 5