Five tools, labeled A through E, lie on a bench, and two selections are to be made. Is the number of possible outcomes 20, 10, 25 or 15? Each of these answers is right for some experiment, and the question cannot be settled until we know what one outcome records, whether order is part of it and whether the same label may be chosen twice. This lesson sorts the counting methods by those questions and shows how to check that the counted outcomes are equally likely before a ratio of counts is used as a probability.
Key terms
Ordered selection
Definition An ordered selection of items from distinct objects records which object fills each of labeled positions, such as first and second or primary and backup. An outcome is a sequence , and two sequences that hold the same objects in different positions are different outcomes. Without replacement, so that no object is used twice, the product rule gives
sequences for . With replacement, so that an object or label may fill several positions, each position has choices and there are sequences. A restriction applies only to the positions it names, so a rule that the first and third entries differ leaves the middle entry free. The product rule applies when the number of choices at each position, given the positions already filled, is the same whichever earlier choices were made.
In plain words The positions or roles are part of the outcome, so swapping two different chosen objects produces a new outcome. Without other restrictions, whether repetition is allowed decides whether the number of choices shrinks from one position to the next.
Example Choosing a primary tool and a backup tool from the five distinct tools A to E gives ordered selections, and (A, B) differs from (B, A). If instead each of two stations requests one of five tool types and both may request the same type, there are ordered requests. That second count describes types, not one physical tool sent to two places at once. For three-letter codes from A, B and C in which only the first and third letters must differ, the positions give codes, and AAB is allowed. Requiring all three letters to differ gives codes.
Unordered selection
Definition An unordered selection of objects from distinct objects without replacement records only which objects are chosen. An outcome is a subset of size , and for the number of such subsets is
Each subset of size arises from exactly ordered selections without replacement, one for each order of its members, so dividing the ordered count by gives the same number.
In plain words Only membership matters. Listing the same objects in another order describes the same outcome, so each subset appears exactly times among the ordered selections.
Example An unranked two-tool kit from A to E can be chosen in ways, which is . The kit {A, B} is one outcome, and it comes from the two ordered selections (A, B) and (B, A).
Unordered selection with repetition
Definition When labels are chosen with repetition allowed and only the labels chosen and their numbers of copies are recorded, an outcome is a multiset of size from the labels. Two multisets are the same exactly when every label appears the same number of times in both. For an outcome is either a double such as {A, A} or two different labels such as {A, B}, so for labels there are
multisets of size two. Larger sizes can be counted by cases on the pattern of repeated labels.
In plain words The record lists what was chosen and how many times, with no first or second. It differs from a subset, because a label may appear more than once, and from a sequence, because there is no order.
Example Two labels chosen from A to E with repetition allowed, with the order erased, give 5 doubles and 10 mixed pairs, so there are multisets. A count of records is not yet a probability. The next two cards show why these 15 records are not equally likely when each label is chosen independently and uniformly.
Multiplicity of a record
Definition Let be a finite sample space, and suppose each outcome produces a record , the part of the outcome that is written down. The multiplicity of a possible record is the number of outcomes that produce it,
The multiplicities of all possible records add up to . When the outcomes of are equally likely, the record occurs with probability
In plain words Multiplicity says how many detailed outcomes collapse onto one record. Dividing the detailed count by a number counts the records correctly when every record hides exactly outcomes.
Example Among the 25 ordered pairs of labels from A to E, the record {A, A} comes only from (A, A), so its multiplicity is 1, while {A, B} comes from (A, B) and (B, A) and has multiplicity 2. The total accounts for every pair. Repeated letters in a row work the same way. Tag the two R’s of RRB as and . The arrangements of , and B collapse onto the visible strings RRB, RBR and BRR, each with multiplicity from swapping the tags, so there are strings. This division forgets only which R is which, and the positions keep their order. Dividing by instead would erase the order of the whole row, as a combination does.
Equal likelihood after erasing order
Definition Suppose the outcomes of a finite sample space are equally likely and each outcome produces a record. The possible records all have the same probability exactly when they all have the same multiplicity . In that case there are possible records, and the probability that the record falls in a set of possible records is the number of records in divided by . In every case
and when the multiplicities differ the ratio of record counts need not equal this probability. Whether the detailed outcomes are equally likely is a property of the selection procedure, not of the way the result is written down.
In plain words When the ordered outcomes are equally likely, erasing order keeps equal likelihood exactly when every record hides the same number of them. Without replacement each unordered pair hides exactly two orders, so the pairs stay equally likely. With replacement a double hides one order and a mixed pair hides two, so the records do not.
Example Choose two labels from A to E independently and uniformly, so the 25 ordered pairs are equally likely. Each double then has probability and each mixed pair , so
Counting 5 favorable records out of 15 would give , which is wrong for this procedure. That ratio would be correct for a different procedure, one that picks one of the 15 records uniformly at random. If instead two tools are drawn at random without replacement, each of the 10 unordered pairs has probability .
Counting by complement
Definition For an event in a finite sample space ,
and when the outcomes of are equally likely, . Both counts must describe outcomes of the same sample space, ordered in both or unordered in both. The method helps when an event such as “at least one” splits into several cases while its complement is a single simple case.
In plain words Count everything, subtract what you do not want, and keep one outcome definition throughout.
Example A kit of two tools is chosen from two fragile and four sturdy tools, and order is not recorded. Of the kits, contain no fragile tool, so contain at least one. Direct cases agree, with kits holding exactly one fragile tool and kit holding both. Subtracting the unordered 6 from the ordered total would give 24, which counts neither the ordered nor the unordered selections with a fragile tool. In the ordered space the complement has selections, which leaves . When the two tools are drawn at random without replacement, both models give the probability .
Check yourself
- A code has three positions, each filled with one of the letters A, B, C and D, and adjacent letters must differ. How many codes are there? Is ABA allowed, and is AAB? How many codes use three different letters?
Show the answer
Fill the positions from left to right. The first letter has 4 choices, the second must differ from the first and has 3, and the third must differ only from the second and has 3, whatever the earlier letters were. That gives codes.
The code ABA is allowed, because the restriction never compares the first and third letters, while AAB is forbidden because its first two letters are adjacent and equal. Requiring three different letters gives codes. The other codes have equal first and third letters, such as ABA, and indeed there are of those.
- Two tools are drawn at random without replacement from two fragile and four sturdy tools. Find the probability that exactly one is fragile by counting unordered kits. Then find it again by counting ordered draws, a first tool and a second tool. Why do the two answers agree?
Show the answer
There are 15 equally likely kits, and a kit with exactly one fragile tool needs one of the 2 fragile tools and one of the 4 sturdy tools, so
In the ordered model there are equally likely draws. Choose which draw is fragile in 2 ways, the fragile tool in 2 ways and the sturdy tool in 4 ways, which gives 16 favorable draws and
The answers agree because every kit corresponds to exactly two ordered draws, so each kit has probability in the ordered model too, and the event depends only on which tools are drawn, not on their order.
- A machine fills a cup with three scoops, choosing the flavor of each scoop independently and uniformly from vanilla, chocolate and strawberry. A cup is described only by how many scoops of each flavor it holds. How many different cups are possible? What is the probability that the three scoops have three different flavors, and why is the answer not ?
Show the answer
Count cups by the pattern of repeats. Three scoops of one flavor give 3 cups, two of one flavor and one of another give cups, and three different flavors give 1 cup, so there are 10 cups.
The equally likely outcomes are the ordered flavor sequences. The cup with three different flavors comes from of them, so its probability is . The answer treats the 10 cups as equally likely, but their multiplicities differ. A cup of three vanilla scoops comes from 1 sequence, a cup of two vanilla and one chocolate from 3, since the chocolate scoop can be first, second or third, and the cup with one scoop of each flavor from 6. The total confirms the count. The ratio would be correct for a different machine, one that picks one of the 10 cups uniformly at random.