Theorem 3.4.1 Combinations of a subset without replacement
The number of ways to arrange r items from a set of n distinct items is
This is sometimes denoted C(n,r) or \(C_r^n\) or \({n \choose r}\text{.}\)
When counting various outcomes sometimes the order of things does not matter. If so, each unique unordered outcome is called a combination.
Once again, consider the permutations when selecting three letters from {A, B, C, D}.
Notice how these 24 permutations fall into only four distinct categories if the order does not matter. Therefore, from a group of size four you can pick an unordered subset of size three in only 4 ways rather than the original 24.
In general, it would be nice to have a direct formula to determine the number of such combinations without having to explicitly list them all out.
The number of ways to arrange r items from a set of n distinct items is This is sometimes denoted C(n,r) or \(C_r^n\) or \({n \choose r}\text{.}\)
Theorem 3.4.1 Combinations of a subset without replacement
Proof
Consider creating a permutation of r objects from a set of size n by first picking an unordered subset of size r and then counting the number of ways to order that subset. Using our notation and the multiplication principle,
Dividing by \(r!\) gives the result.
The number of ways to arrange r items from a set of n distinct items is
Theorem 3.4.2 Combinations of a subset with replacement
Proof
Label each item in your group in some defined order. Since order doesn't matter, as you repeatedly sample r times with replacement you can always write down your outcomes sorted from low to high placement. Finally, separate like values by some symbol, say "|", and consider each of the n distinct objects as indistinct *'s. There will be n-1 of these separators since there will be n to choose from. For example, if choosing r=6 times from the set {a, b, c, d}, then the outcome b, b, a, d, a, b could be collected as a, a, b, b, b, d and written in our code as **|***||* . Notice that shuffling around the identical *'s would not change the code (and similarly for the identical |'s) but swapping a * with a | would be a different outcome. Therefore, we can consider this to be a multinomial coefficient and the number of ways to rearrange this code is
Let's apply the this new Combination forumula.
Notice that to determine the number of outcomes required you to use the combination forumula several times and then multiply the results using the multiplication principle.
Use the new Combination formula again.
Once again, you can see that using the formulas can be easy and also can be part of a bigger problem pasted together using the multiplication principle.
Revisiting your ipad's security, what happens if the order in which the digits are entered does not matter? If so, then you would be picking a combination of 4 digits without replacement from a group of 10 digits. Namely,
Notice that the total number of options is much smaller when order does not matter.
Note that if you were allowed to reuse the digits then the number of possible outcomes would be
which once again is more since numbers are allowed to repeat.
The value \(_nC_r\) is known as the binomial coefficient. It is denoted by \({n \choose r}\) and is read "n choose k".
Definition 3.4.6 Binomial Coefficients
Binomial coefficients have a number of interesting properties. Many of these are very useful as well in probability calculations. Several of these properties are collected below. In particular, these relationships verify that the binomial coefficients are the values found in Pascal's Triangle.
For \(n \in \mathbb{N}\text{,}\)
Theorem 3.4.7 Binomial Coefficient Formulas
Proof