Skip to content

Counting and Combinatorics

Under an equally-likely-outcomes model, P(A)=∣A∣/∣Ω∣\mathbb{P}(A) = |A|/|\Omega| — computing a probability reduces entirely to counting. That was trivial for the 8-outcome coin-toss sample space in Sample Spaces, Events, and the Probability Axioms, but the sample spaces that matter in practice — the number of ways to allocate kk traders to nn desks, the number of distinct portfolios of kk names out of a universe of nn, the number of orderings in a matching-engine priority queue — are astronomically large and cannot be enumerated by hand. This note builds the counting toolkit: the multiplication (counting) principle, permutations, combinations (the binomial coefficient), and partitions (the multinomial coefficient). Every later probability calculation involving finite, equally-likely outcomes routes through one of these four counts.
Learning objectives. By the end of this note you should be able to:
  • apply the multiplication principle to decompose a multi-stage counting problem into a product of per-stage counts;
  • distinguish permutations from combinations and compute both, including the special cases k=nk=n and repeated objects;
  • derive and apply the binomial coefficient (nk)\binom{n}{k} and recognise it as both "kk-subsets of nn" and "coefficients of (a+b)n(a+b)^n";
  • generalise to the multinomial coefficient for partitioning nn objects into more than two labelled groups.

In this lesson

  1. The counting principle
  2. Permutations: order matters
  3. Combinations: order doesn't matter
  4. Partitions: more than two groups

Before you start

The full lesson, with worked examples and exercise solutions, is for members.

Read the full lesson

New to SelfMadeQuant.com? See membership options or browse the Probability, Statistics and Financial Data syllabus.