2.1.3 Unordered Sampling without Replacement: Combinations
Here we have a set with elements, e.g., and we want to draw samples from the set such that ordering does not matter and repetition is not allowed. Thus, we basically want to choose a -element subset of , which we also call a -combination of the set . For example if and , there are $3$ different possibilities:
- {1,2};
- {1,3};
- {2,3}.
We show the number of -element subsets of by
The number of -combinations of an -element set is given by
is also called the binomial coefficient. This is because the coefficients in the binomial theorem are given by . In particular, the binomial theorem states that for an integer , we have
Note: There are several different common notations that are used to show the number of -combinations of an -element set including , etc. In this book, we always use .
Example
I choose $3$ cards from the standard deck of cards. What is the probability that these cards contain at least one ace?
- Solution
- Again the phrase "at least" suggests that it might be easier to first find ,
the probability that there is no ace. Here the sample space contains all possible
ways to choose $3$ cards from $52$ cards, thus
There are $52-4=48$ non-ace cards, so we haveThus
- Again the phrase "at least" suggests that it might be easier to first find ,
the probability that there is no ace. Here the sample space contains all possible
ways to choose $3$ cards from $52$ cards, thus
How many distinct sequences can we make using $3$ letter "A"s and $5$ letter "B"s? (AAABBBBB, AABABBBB, etc.)
- Solution
- You can think of this problem in the following way. You have $3+5=8$ positions to
fill with letters A or B. From these $8$ positions, you need to choose $3$ of them
for As. Whatever is left will be filled with Bs. Thus the total number of ways is
Now, you could have equivalently chosen the locations for Bs, so the answer would have beenThus, we conclude that
- You can think of this problem in the following way. You have $3+5=8$ positions to
fill with letters A or B. From these $8$ positions, you need to choose $3$ of them
for As. Whatever is left will be filled with Bs. Thus the total number of ways is
The same argument can be repeated for general and to conclude
Example Show the following identities for non-negative integers and and , using combinatorial interpretation arguments.
- We have .
- For $0\leq k< n$, we have .
- We have (Vandermonde's identity).
- Solution
To show this identity, we count the total number of subsets of an -element set . We have already seen that this is equal to $2^n$ in Example 2.3. Another way to count the number of subsets is to first count the subsets with $0$ elements, and then add the number of subsets with $1$ element, and then add the number of subsets with $2$ elements, etc. But we know that the number of -element subsets of is , thus we have
$2^n$ $=\textrm{Number of subsets of }$ $=\sum_{k=0}^{n}\textrm{Number of -element subsets of } \hspace{70pt}$ . We can also prove this identity algebraically, using the binomial theorem, . If we let , we obtain $2^n=\sum_{k=0}^{n} {n \choose k}$.
To show this identity, let's assume that we have an arbitrary set with distinct elements:
We would like to choose a -element subset . We know that we can do this in ways (the left hand side of the identity). Another way to count the number of -element subsets is to divide them into two non-overlapping categories based on whether or not they contain . In particular, if , then we need to choose elements from which we can do in different ways. If, on the other hand, , then we need to choose another elements from to complete and we can do this in different ways. Thus, we have shown that the total number of -element subsets of an -element set is equal to .Here we assume that we have a set that has elements:
We would like to count the number of -element subsets of . This is . Another way to do this is first choose elements from and then elements from . This can be done in number of ways. But can be any number from $0$ to , so we conclude .
Let us now provide another interpretation of . Suppose that we have a group of people and we would like to divide them into two groups and such that group consists of people and group consists of people. To do this, we just simply need to choose people and put them in group , and whoever is left will be in group . Thus, the total number of ways to do this is .
The total number of ways to divide distinct objects into two groups and such that group consists of objects and group consists of objects is .
Note: For the special case when and we do not particularly care about group names and , the number of ways to do this division is to avoid double counting. For example, if $22$ players want to play a soccer game and we need to divide them into two groups of $11$ players, there will be ways to do this. The reason for this is that, if we label the players $1$ to $22$, then the two choices
For example, we can solve Example 2.7 in the following way: We have $8$ blank positions to be filled with letters "A" or "B." We need to divide them into two groups and such that group consists of three blank positions and group consists of $5$ blank spaces. The elements in group show the positions of "A"s and the elements in group show the positions of "B"s. Therefore the total number of possibilities is .
Bernoulli Trials and Binomial Distribution:
Now, we are ready to discuss an important class of random experiments that appear frequently in practice. First, we define Bernoulli trials and then discuss the binomial distribution. A Bernoulli Trial is a random experiment that has two possible outcomes which we can label as "success" and "failure," such as
- You toss a coin. The possible outcomes are "heads" and "tails." You can define "heads" as success and "tails" as "failure" here.
- You take a pass-fail test. The possible outcomes are "pass" and "fail."
We usually denote the probability of success by and probability of failure by . If we have an experiment in which we perform independent Bernoulli trials and count the total number of successes, we call it a binomial experiment. For example, you may toss a coin times repeatedly and be interested in the total number of heads.
Example Suppose that I have a coin for which and . I toss the coin $5$ times.
- What is the probability that the outcome is ?
- What is the probability that the outcome is ?
- What is the probability that the outcome is ?
- What is the probability that I will observe exactly four heads and one tails?
- What is the probability that I will observe exactly three heads and two tails?
- If I toss the coin times, what is the probability that I observe exactly heads and tails?
- Solution
To find the probability of the event , we note that is the intersection of $5$ independent events: first coin toss is tails, and the next four coin tosses result in heads. Since the individual coin tosses are independent, we obtain
. Similarly,
. Similarly,
. Let be the event that I observe exactly one tails and four heads. Then
Thus. Let be the event that I observe exactly three heads and two tails. Then
Thus. But what is ? Luckily, we know how to find . This is the total number of distinct sequences that you can create using two tails and three heads. This is exactly the same as Example 2.7. The idea is that we have $5$ positions to fill with letters H or T. From these $5$ positions, you need to choose $3$ of them for Hs. Whatever is left is going to be filled with Ts. Thus the total number of elements in is , and
Finally, we can repeat the same argument when we toss the coin times and obtain
Note that here, instead of writing heads and tails, we can just write heads.
Binomial Formula:
For independent Bernoulli trials where each trial has success probability , the probability of successes is given by
Multinomial Coefficients:
The interpretation of the binomial coefficient as the number of ways to divide objects into two groups of size and has the advantage of being generalizable to dividing objects into more than two groups.
Example
Ten people have a potluck. Five people will be selected to bring a main dish, three people will bring drinks, and two people will bring dessert. How many ways can they be divided into these three groups?
- Solution
- We can solve this problem in the following way. First, we can choose $5$ people for the
main dish. This can be done in ways. From the remaining $5$ people,
we then choose $3$ people for drinks, and finally the remaining $2$ people will bring desert.
Thus, by the multiplication principle, the total number of ways is given by
- We can solve this problem in the following way. First, we can choose $5$ people for the
main dish. This can be done in ways. From the remaining $5$ people,
we then choose $3$ people for drinks, and finally the remaining $2$ people will bring desert.
Thus, by the multiplication principle, the total number of ways is given by
This argument can be generalized for the case when we have people and would like to divide them to groups. The number of ways in this case is given by the multinomial coefficients. In particular, if , where all are integers, then the number of ways to divide distinct objects to distinct groups of sizes is given by
Example
I roll a die $18$ times. What is the probability that each number appears exactly $3$ times?
- Solution
- First of all, each sequence of outcomes in which each number appears $3$ times has probability
How many distinct sequences are there with three $1$'s, three $2$'s, ..., and three $6$'s? Each sequence has $18$ positions which we need to fill with the digits. To obtain a sequence, we need to choose three positions for $1$'s, three positions for $2$'s, ..., and three positions for $6$'s. The number of ways to do this is given by the multinomial coefficientThus the total probability is
- First of all, each sequence of outcomes in which each number appears $3$ times has probability
We now state the general form of the multinomial formula. Suppose that an experiment has possible outcomes, so the sample space is given by
