Combinatorics
Study guides: Exam P-1, Exam MAS-I, Exam ACIA-CAPSTONE
Combinatorics is the branch of discrete mathematics that counts the ways to arrange, select or partition objects. In probability, combinatorics is used to count the number of outcomes in an event E.
The idea How you count outcomes depends on two questions: does the order of the objects matter, and can an object be chosen more than once?
The number of ways to choose k objects from n distinct objects is:
| Without replacement | With replacement | |
|---|---|---|
| Order matters | Permutation: {}_{n}P_{k} = \frac{n!}{(n-k)!} |
n^k |
| Order does not matter | Combination: \binom{n}{k} = \frac{n!}{k!\,(n-k)!} |
\binom{n+k-1}{k} |
How many ways are there to choose 2 letters from
\?
- Order matters, without replacement: 6 outcomes,
AB,BA,AC,CA,BC,CB.- Order does not matter, without replacement: 3 outcomes,
\{A, B\},\{A, C\},\{B, C\}.- Order matters, with replacement: 9 outcomes, the 6 above plus
AA,BB,CC.- Order does not matter, with replacement: 6 outcomes,
\{A, B\},\{A, C\},\{B, C\},\{A, A\},\{B, B\},\{C, C\}.
The multiplication principle
The multiplication principle states that if an outcome is built in k consecutive steps, with
m_1choices at the first step,m_2choices at the second step,- and so on, up to
m_kchoices at thekth step,
then the total number of outcomes is
m_1 \times m_2 \times \cdots \times m_k
If you have 5 shirts and 4 pairs of pants, how many outfits can you create?
- There are
5 \times 4 = 20different outfits.
Derangements
A derangement is a permutation of n items with no fixed point: no item stays in its original position. The number of derangements of n items is written D_n. By inclusion-exclusion over the items that stay in place, it is
D_n = n!\sum_{k=0}^{n}\frac{(-1)^k}{k!}
The probability that a random permutation of n items has no fixed point is D_n/n!.
Four letters are put at random into their four addressed envelopes. What is the probability that no letter is in its own envelope?
- The number of derangements is
D_4 = 4!\left(1 - 1 + \tfrac{1}{2} - \tfrac{1}{6} + \tfrac{1}{24}\right) = 9.- There are
4! = 24ways to fill the envelopes.- The probability is
9/24 = 0.375.
Symmetry in a random arrangement
In a uniformly random seating or ordering, each person is equally likely to be in any position. So one person's position can be fixed without loss of generality; another given person is then equally likely to occupy each of the remaining positions.
Five people sit at random in a row of five seats. What is the probability that Ann and Bob sit next to each other?
- Fix Ann's seat. Bob is equally likely to be in each of the other 4 seats.
- If Ann is at an end (probability
\tfrac{2}{5}), 1 of Bob's 4 seats is next to her. If Ann is in the middle three (probability\tfrac{3}{5}), 2 of them are.- The probability is
\tfrac{2}{5} \times \tfrac{1}{4} + \tfrac{3}{5} \times \tfrac{2}{4} = \tfrac{8}{20} = 0.4.
Practice questions
- CAS Exam MAS-I Fall 2018, Question 7
- SOA Exam P Sample Question 31
- SOA Exam P Sample Question 97
- SOA Exam P Sample Question 134
- SOA Exam P Sample Question 156
- SOA Exam P Sample Question 157
- SOA Exam P Sample Question 179
- SOA Exam P Sample Question 185
- SOA Exam P Sample Question 189
- SOA Exam P Sample Question 193
- SOA Exam P Sample Question 196
- SOA Exam P Sample Question 197
- SOA Exam P Sample Question 203
- SOA Exam P Sample Question 304
- SOA Exam P Sample Question 332
- SOA Exam P Sample Question 333
- SOA Exam P Sample Question 335
- SOA Exam P Sample Question 366
- SOA Exam P Sample Question 376
- SOA Exam P Sample Question 387
- SOA Exam P Sample Question 389
- SOA Exam P Sample Question 399
- SOA Exam P Sample Question 403
- SOA Exam P Sample Question 405
- SOA Exam P Sample Question 414
- SOA Exam P Sample Question 424
- SOA Exam P Sample Question 438
- SOA Exam P Sample Question 456
- SOA Exam P Sample Question 472
- SOA Exam P Sample Question 501
- SOA Exam P Sample Question 506
- SOA Exam P Sample Question 524
- SOA Exam P Sample Question 530
- SOA Exam P Sample Question 533
- SOA Exam P Sample Question 549
- SOA Exam P Sample Question 550
- SOA Exam P Sample Question 561
- SOA Exam P Sample Question 570
- Exam P Practice Question 929
- Exam P Practice Question 938
- Exam P Practice Question 11