A batch of 8 distinct items contains 3 marked ones, and an inspector draws 3 items at random without putting any back. What is the chance that exactly 2 of the 3 are marked? Answering by counting needs two decisions first, whether the order of the draws is part of an outcome and whether the outcomes being counted are equally likely. This lesson builds the counting rules for ordered and unordered selections, finds that chance exactly, and shows why drawing without replacement gives a different model from drawing with replacement.
Key terms
Multiplication principle
Definition Suppose a procedure is carried out in stages. Stage 1 has possible results, and for each , stage has exactly possible results whatever happened at the earlier stages. Then the number of different sequences of results for the whole procedure is
The options available at a stage may depend on the earlier results, as long as their number does not.
In plain words Count the options at each step and multiply. A tree diagram shows why, since every branch at one level splits into the same number of branches at the next level.
Example Draw 3 items one at a time from the batch of 8 distinct items without returning them. The first draw has 8 options, the second has 7 whichever item came first, and the third has 6, so there are ordered outcomes, each a list of the first, second and third item drawn. If each item is returned before the next draw, every stage has 8 options and there are ordered outcomes, including repeats such as the same item drawn three times.
Factorial
Definition For a positive integer , the factorial of is
and by definition . Factorials are used here only for nonnegative integers. By the multiplication principle, is the number of ways to arrange distinct objects in a row. The value counts the single arrangement of no objects, the empty one. It also keeps the rule true for , and it lets the counting formulas below work when no objects are left over.
In plain words A factorial counts the orders of a group of distinct objects. Dividing one factorial by a smaller one cancels the common factors and leaves a shorter product.
Example Three items A, B and C have orders, namely ABC, ACB, BAC, BCA, CAB and CBA. For the batch, and , and the common factors cancel in
the number of ordered draws of 3 items from 8.
Permutation
Definition For integers and with , a permutation of objects from distinct objects is an ordered list of of the objects with no object repeated. By the multiplication principle the number of such lists is
The product has factors. For the formula gives , the arrangements of all the objects, which is where is needed. For it gives , the empty list. Two lists with the same objects in different orders are different permutations.
In plain words A permutation is a selection in which positions matter, such as first, second and third place, or the order in which items come off a line.
Example The 336 ordered draws of 3 items from 8 are permutations. The list (item 2, item 7, item 5) and the list (item 5, item 2, item 7) contain the same items but are two different ordered outcomes. Choosing a president, a secretary and a treasurer, three different people, from a club of 8 members also has possible results, because the three roles can be told apart.
Combination
Definition For integers and with , a combination of objects from distinct objects is an unordered selection of different objects, that is, a subset with elements. The number of combinations is the binomial coefficient
The formula holds because each subset of size appears exactly times among the permutations, once for each of its orders. In particular , which again relies on .
In plain words A combination records which objects were chosen and ignores the order in which they arrived. Counting ordered lists and dividing by the number of orders of each group gives the number of groups.
Example Each set of 3 items from the batch appears times among the 336 ordered draws, so there are possible samples. To count the samples with exactly 2 marked items, choose 2 of the 3 marked items and 1 of the 5 unmarked ones. Every marked pair can go with every unmarked item, so the multiplication principle gives
samples. Listing all 56 subsets confirms that 10 contain no marked item, 30 contain one, 15 contain two and 1 contains all three.
Equally likely outcomes
Definition Suppose a sample space is finite and every outcome in it has the same probability , where is the number of outcomes. Then every event has probability
Equal likelihood is a property of the selection mechanism and of how the outcomes are described, not of the counting. A simple random sample of size from distinct objects gives every one of the subsets the same probability. Drawing one object at a time, each uniformly from those still available, gives every one of the ordered lists the same probability and produces a simple random sample. The favorable count and the total count must describe outcomes at the same level.
In plain words Dividing a favorable count by a total count is justified when the things being counted are equally likely, and without that condition the ratio has no reason to be the probability. Uniform draws without replacement can be described by ordered lists or by subsets, and in both descriptions the outcomes are equally likely. The possible values of a summary, such as the number of marked items, need not be equally likely.
Example Let be the event that exactly 2 of the 3 sampled items are marked. All 56 subsets of the batch are equally likely, so
Counting ordered lists gives the same answer, since each of the 15 favorable subsets has 6 orders and . The number of marked items in the sample can be 0, 1, 2 or 3, but these four values have probabilities , , and . Answering because one of four possible values is favorable would be wrong. If the items are picked by convenience, so that some subsets have no chance of being chosen, nothing supports the ratio .
Sampling with and without replacement
Definition In sampling with replacement, each drawn object is returned before the next draw, so every draw is made from the full population and an object can appear more than once. In sampling without replacement, a drawn object is set aside, so a sample of size from a finite population of objects contains different objects and requires . The ratio is the sampling fraction. Uniform draws with replacement are independent. Successive draws without replacement are dependent, because each draw removes an object and changes what the next draw can produce. If the population contains marked objects and a sample of size is drawn uniformly without replacement, the chance that it contains exactly marked objects is
for integers with and . This is hypergeometric counting. With replacement, the count of marked objects follows a binomial model with success probability on every draw instead.
In plain words Replacement resets the population before every draw. Without replacement the population shrinks, and when it holds both marked and unmarked objects its mix changes with every draw, so later chances depend on earlier results. The two models agree for a single draw, and their probabilities are close when the sampling fraction is small, but for a sample of 3 from 8 they differ.
Example Let be the event that draw is marked. Without replacement the first draw is marked with probability , and the chance for the second draw depends on the result of the first,
So the draws are dependent. By the law of total probability the second draw is still marked with probability , the same chance as for the first draw. With replacement the draws are independent, and the single unmarked draw can come first, second or third, each order with probability . So the event of exactly 2 marked items now has
close to but not equal to the value without replacement.
Check yourself
- A club of 10 members elects a president and a vice president, who must be different people. How many results are possible? How many two-person committees without roles can be formed from the same 10 members?
Show the answer
By the multiplication principle there are ways to fill the two roles. A committee without roles is a combination, and each committee corresponds to ordered choices, so there are committees.
- For the batch of 8 items with 3 marked, find the probability that none of the 3 selected items is marked, first by counting subsets and then by following the draws one at a time. Why is not the answer?
Show the answer
There are samples made only of unmarked items, so the probability is
Following the draws, the first is unmarked with probability , and given that the earlier draws were unmarked, the second and third are unmarked with probabilities and . Their product is , the same value. The number is the answer for sampling with replacement, where every draw again faces 5 unmarked items out of 8 and the draws are independent. Without replacement, each unmarked draw lowers the share of unmarked items left, from to and then , so the chance is smaller.
- Someone finds the chance of exactly 2 marked items in the sample as , reasoning that 15 samples are favorable and 336 draws are possible. What went wrong?
Show the answer
The numerator counts unordered subsets, while the denominator counts ordered lists, so the two counts describe outcomes at different levels. Each favorable subset corresponds to ordered lists, which gives 90 favorable ordered lists and the probability . The value is 6 times too small. Counting at either level works, as long as the numerator and the denominator use the same one.