Quant GT
Browse all lessons
Section 2 · Lesson 2.2

Counting Methods

Permutations and combinations: how many ways can it happen?

Counting is the bedrock of discrete probability. When all outcomes are equally likely, P(A)=A/ΩP(A) = |A|/|\Omega| — and the hard part is just counting the numerator and denominator.

A permutation is an ordered arrangement. The number of ways to arrange kk distinct items chosen from nn:

P(n,k)=n!(nk)!P(n, k) = \frac{n!}{(n-k)!}

A combination is an unordered selection. The number of kk-element subsets of an nn-set:

(nk)=n!k!(nk)!\binom{n}{k} = \frac{n!}{k!\,(n-k)!}

The difference matters: there are 5!=1205! = 120 ways to arrange 5 books on a shelf, but only (52)=10\binom{5}{2} = 10 ways to pick 2 of them to take on vacation.

For splitting nn items into groups of sizes k1,,krk_1, \dots, k_r (with ki=n\sum k_i = n), the multinomial coefficient generalizes the binomial:

(nk1,k2,,kr)=n!k1!k2!kr!\binom{n}{k_1, k_2, \dots, k_r} = \frac{n!}{k_1!\, k_2! \cdots k_r!}

The hardest counting question is usually "ordered or unordered?" — get that right and the formula is mechanical.