Exam PProbability foundationsFree to read

Counting: permutations, combinations and partitions

Order matters or it does not, and repetition is allowed or it is not. Those two questions pick the formula every time.

The formulas

Multiplication rule
n1×n2×⋯×nkn_1 \times n_2 \times \dots \times n_k
Permutations
P(n,k)=n!(n−k)!P(n,k) = \dfrac{n!}{(n-k)!}

order matters, no repetition

Combinations
(nk)=n!k! (n−k)!\binom{n}{k} = \dfrac{n!}{k!\,(n-k)!}

order does not matter

Multinomial
n!k1! k2!⋯km!\dfrac{n!}{k_1!\,k_2!\cdots k_m!}

split n items into labelled groups

Stars and bars
(n+k−1k−1)\binom{n+k-1}{k-1}

n identical items into k distinct boxes

Where it comes from

  1. Choosing kk items in order from nn leaves nn choices, then n−1n-1, and so on for kk factors - that product is n!/(n−k)!n!/(n-k)!.
  2. Every unordered set of kk items was counted k!k! times in that product, so dividing by k!k! gives the combination count.
  3. The multinomial coefficient is the same argument applied to several groups at once.

Worked example

A study committee needs 3 actuaries chosen from 12 and 2 underwriters chosen from 9. How many committees are possible?

  1. The two choices are independent, so multiply the counts.
  2. (123)=220\binom{12}{3} = 220 ways to pick the actuaries.
  3. (92)=36\binom{9}{2} = 36 ways to pick the underwriters.
  4. 220×36=7,920220 \times 36 = 7{,}920 committees.

Answer: 7,920

This answer is recomputed from the site’s own interest-theory and probability functions every time the test suite runs, so the page and the mathematics cannot drift apart.

Memory hooks

  • Ask 'would swapping two of my picks give a different outcome?' Yes means permutation; no means combination.
  • Repeated letters in a word: n! divided by the factorial of each repeat count - the multinomial coefficient in disguise.

Traps

  • Using a permutation when the selection is a committee (unordered).
  • Forgetting to divide by the repeats when arranging items that are not all distinct.

Related

Drill this: the Exam P question bank has original questions on this topic, and today’s free round is open to everyone.