Probability foundations · Definition
Permutations and combinations
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.
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
- In how many ways can a president and a secretary be chosen among 5 people (different offices)?
- In how many ways can a committee of 2 be formed from 6 people?
- In how many ways can 4 different books be arranged on a shelf?
- How many different sets of 6 numbers can be chosen from 49, regardless of order?
- From 5 women and 4 men a committee of 3 is chosen at random. What is the probability it has 2 women and 1 man?
- Which of these equals \(\binom{10}{3}\)?
- Five people line up and two of them, \(A\) and \(B\), must stand together. In how many ways?
- A 5-card hand is dealt from a 52-card deck. What is the probability that it contains all 4 aces?
- Which relation between \(P(n,k)\) and \(\binom{n}{k}\) is correct?
- Five people have birthdays uniform over 365 days. What is the probability that all are different?
What comes next
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