Combinatorics: Counting Without Enumerating
2 min read
Most probability questions are secretly counting questions: favorable outcomes over total outcomes. Fluency means recognizing which counting pattern you're looking at within seconds.
The core four
Ordered, no repetition (permutations). Ways to arrange of distinct items: . All : just .
Unordered, no repetition (combinations). — choose a committee, a poker hand, a subset. The identity (choosing who's in ≡ choosing who's out) saves arithmetic constantly.
Ordered, with repetition. — passwords, dice sequences (the in the all-faces-distinct question).
Unordered, with repetition (stars and bars). Ways to put identical balls into boxes: . The disguises are many: non-negative integer solutions of , dice-sum counts, distributing $10 among 4 traders.
The meta-skill is classification: before computing anything, ask "does order matter? can items repeat?" — two binary questions, four formulas.
Inclusion-exclusion
To count a union, add the pieces, subtract the overlaps, add back the triple overlaps:
The classic application: derangements — permutations with no fixed point ("no one gets their own hat"). Inclusion-exclusion gives
so the probability a random permutation has no fixed point converges to — nearly independent of , a genuinely shocking fact that makes it a recurring interview closer. (Companion fact via linearity: the expected number of fixed points is exactly 1, for any .)
Symmetry and overcounting
The professional's move is dividing out overcounting rather than counting directly:
- Circular arrangements: people around a table: — divide by rotations.
- Poker probabilities: P(full house) . Structure: choose the rank triple, its suits, the pair rank, its suits; divide by all hands. Every poker question has this choose-the-structure shape, and SIG in particular loves them.
- Grid paths: lattice paths from to moving only right/up: — arrange the sequence of moves. Add a forbidden diagonal and you're at the reflection principle and Catalan numbers — worth recognizing, rarely required in full.
The interview version
"8 people, split into two teams of 4 — how many ways?" — : the division by 2 (unlabeled teams) is the entire point of the question. "How many ways to give 10 identical chips to 4 players?" — stars and bars, . "Five letters into five envelopes at random — P(nobody gets theirs)?" — . Classify first, compute second, and say the classification out loud — the narration is most of the grade.