Combination
Study guides: Exam P-1, Exam ACIA-CAPSTONE
A Combination is an unordered selection of distinct objects. The number of combinations of k objects chosen from n distinct objects, \binom{n}{k}, read "n choose k", is
\binom{n}{k} = \frac{n!}{k!\,(n-k)!}
n!, read "nfactorial", isn \times (n-1) \times \cdots \times 2 \times 1, with0! = 1.k \le n.
The idea There are
k!times as many permutations as combinations.
Each combination of k objects can be put in order in k! ways, so \binom{n}{k} = \frac{{}_{n}P_{k}}{k!}.
A club of 8 people chooses a committee of 3. How many different committees are there?
- A committee has no order, so each committee is a combination of 3 people from 8.
\binom{8}{3} = \frac{8!}{3!\,5!} = \frac{8 \times 7 \times 6}{3 \times 2 \times 1} = 56.
Symmetry of combinations
Choosing the k objects that are selected is the same as choosing the n - k objects that are left out, so
\binom{n}{k} = \binom{n}{n-k}
How many ways are there to choose 18 of 20 students for a team?
- Choosing the 18 students on the team is the same as choosing the 2 students left off it.
\binom{20}{18} = \binom{20}{2} = \frac{20 \times 19}{2 \times 1} = 190.
Selections from several categories
When n objects are split into r categories, the number of selections with exactly k_i objects from category i is
\binom{n_1}{k_1}\binom{n_2}{k_2}\cdots\binom{n_r}{k_r}
n_iis the number of objects in categoryi, withn_1 + n_2 + \cdots + n_r = n.
A bag holds 3 red, 4 blue and 5 green marbles. Five are drawn at random. What is the probability of drawing 1 red, 2 blue and 2 green marbles?
- The sample space is every selection of 5 marbles from 12, so
|S| = \binom{12}{5} = 792.- The event chooses 1 of the 3 red, 2 of the 4 blue and 2 of the 5 green marbles, so
|E| = \binom{3}{1}\binom{4}{2}\binom{5}{2} = 3 \times 6 \times 10 = 180.- The probability is
P(E) = \frac{180}{792} \approx 0.227.
Number of subsets of a set
Adding \binom{n}{k} over every size k counts every subset of n objects, because each object is either in a subset or not:
\sum_{k=0}^{n} \binom{n}{k} = 2^n
Best subset selection fits one regression model for every subset of the
ppredictors. How many models does it fit whenp = 10?
- Each subset of the 10 predictors is one model, including the model with none of them.
- There are
2^{10} = 1{,}024models.
Pascal's rule
Choosing k objects from n + 1 either leaves out one fixed object or includes it. For 1 \le k \le n, the number of combinations is therefore
\binom{n+1}{k} = \binom{n}{k} + \binom{n}{k-1}
The hockey-stick identity
Pascal's rule written as \binom{m}{k} = \binom{m+1}{k+1} - \binom{m}{k+1} makes a sum of combinations with the same k telescope, since \binom{k}{k+1} = 0. For k \le n, the sum is
\sum_{m=k}^{n}\binom{m}{k} = \binom{n+1}{k+1}
What is
\binom + \binom + \binom + \binom + \binom?
- The terms are
1 + 3 + 6 + 10 + 15 = 35.- By the identity with
k = 2andn = 6, the sum is\binom{7}{3} = 35.
Roles make it a permutation When the selected objects get distinct roles, the order matters. Choosing a president, a secretary and a treasurer from 8 people is
{}_{8}P_{3} = 336, not\binom{8}{3} = 56.