Probability foundations · Definition

Permutations and combinations

probabilitycombinatorics

Before you start you need to know

In classical probability most of the work is counting favorable and possible cases; these two tools do it without listing.

Definition

A permutation \(P(n,k)\) is an ordered arrangement of \(k\) elements from a set of \(n\); a combination \(\binom nk\) is a selection in which order does not matter.

\[P(n,k)=\frac{n!}{(n-k)!},\quad \binom{n}{k}=\frac{n!}{k!\,(n-k)!}\]

The base is the multiplication principle: if a task is done in \(m\) steps and the first has \(a_1\) ways, the second \(a_2\), and so on, there are \(a_1a_2\cdots a_m\) ways in total. Ordering \(n\) distinct objects gives \(n!=n(n-1)\cdots1\) permutations; ordering only \(k\) of them gives \(P(n,k)=n(n-1)\cdots(n-k+1)\).

If order does not matter, each selection of \(k\) elements is counted \(k!\) times in \(P(n,k)\), hence \(\binom{n}{k}=P(n,k)/k!\). It is read «\(n\) choose \(k\)» and satisfies \(\binom{n}{k}=\binom{n}{n-k}\): choosing what goes in is the same as choosing what stays out.

Guiding example: a 5-card hand has \(\binom{52}{5}=2{,}598{,}960\) possible hands, all equally likely; the probability of an event is the number of favorable hands over that total. This links counting with classical probability.

The key question is always: does order matter? President and secretary do; committee members do not. Another common mistake is forgetting that \(0!=1\), or applying \(P(n,k)\) when elements repeat, in which case one must divide by the repetitions.

Think about it

Why is \(\binom{n}{0}=1\)?

There is exactly one way to choose nothing: the empty set. It also follows from the formula, since \(0!=1\).

Exercises 10

References

  • Joseph K. Blitzstein, Jessica Hwang, Introduction to Probability, 2nd edition, CRC Press, 2019. §1.4
  • Sheldon Ross, A First Course in Probability, 10th edition, Pearson, 2019. §1.3–1.4
  • Larry Wasserman, All of Statistics, 1st edition, Springer, 2004. §1.5