OBJECTIVES By the end of this section, I will be able to …
Counting methods allow us to solve a range of problems, including how to compute certain probabilities.
1 Multiplication rule for counting
Let us begin with an example illustrating a general rule of counting.
292
EXAMPLE 33 Design your own T-shirt
A store at the local mall allows customers to design their own T-shirts. The store offers the following options to its customers:
List the possible T-shirt options.
Solution
Figure 18 is a tree diagram that shows all the different T-shirts that can be designed. Two choices are available for the type of sleeve. For each sleeve type, there are three choices for color. For each color, there are two choices of image: stock picture or uploaded photo. Altogether, customers have a choice from among
different T-shirt options.
NOW YOU CAN DO
Exercises 7–10.
293
We can generalize the result from Example 33 as the Multiplication rule for Counting.
Multiplication rule for counting
Suppose an activity consists of a series of events in which there are possible outcomes for the first event, possible outcomes for the second event, possible outcomes for the third event, and so on. Then the total number of different possible outcomes for the series of events is
EXAMPLE 34 Counting with repetition: Famous initials
Some Americans in history are uniquely identified by their initials. For example, “JFK” stands for John Fitzgerald Kennedy, and “FDR” stands for Franklin Delano Roosevelt. How many different possible sets of initials are there for people with a first, middle, and last name?
Solution
Let us consider the three initials as an activity consisting of three events. Note that a particular letter may be repeated, as in “AAM” for A. A. Milne, author of Winnie the Pooh. Then there are ways to choose the first initial, ways to choose the second initial, and ways to choose the third initial. Thus, by the Multiplication Rule for Counting, the total number of different sets of initials is
NOW YOU CAN DO
Exercises 11 and 12.
EXAMPLE 35 Counting without repetition: Intramural singles tennis
Note: To summarize the key difference between Examples 34 and 35: If repetitions are allowed, then . If repetitions are not allowed, then the numbers being multiplied decrease by one from left to right.
A local college has an intramural singles tennis league with five players: Ryan, Megan, Nicole, Justin, and Kyle. The college presents a trophy to the top three players in the league. How many different possible sets of three trophy winners are there?
Solution
The major difference between Example 34 and this example is that, in this example there can be no repetition. Ryan cannot finish in first place and second place. So we proceed as follows: Five possible players could finish in first place, so . Now there are only four players left, one of whom will finish in second place, so . That leaves only three players, one of whom will finish in third place, giving . Thus, by the Multiplication Rule for Counting, the number of different possible sets of trophy winners is
NOW YOU CAN DO
Exercises 13 and 14.
YOUR TURN #21
For the situation in Example 35, suppose there are six players, and the college presents a trophy to the top four players in the league. How many different possible sets of four trophy winners are there?
(The solution is shown in Appendix A.)
294
EXAMPLE 36 Traveling salesman problem
A Southeast regional salesman has eight destinations that he must travel to this month: Atlanta, Raleigh, Charleston, Nashville, Jacksonville, Richmond, Mobile, and Jackson. How many different possible routes could he take?
Solution
The salesman has different choices for where to go first. Once the first destina-tion has been chosen, there are only choices for where to go second. And once the first two destinations have been chosen, there are only choices for where to go third, and so on. Thus, by the Multiplication Law for Counting, the number of dif-ferent possible routes for the salesman is
NOW YOU CAN DO
Exercises 15 and 16.
YOUR TURN #22
For the traveling salesman in Example 36, suppose there are ten destinations he must travel to. How many different possible routes could he take?
(The solution is shown in Appendix A.)
The calculation in Example 36 leads us to introduce the factorial symbol, which is used for the counting rules we will learn in the remainder of this section.
For any integer , the factorial symbol ! is defined as follows:
EXAMPLE 37 Factorials
Calculate the following factorials:
Solution
NOW YOU CAN DO
Exercises 17–22.
YOUR TURN #23
Find the following factorials:
(The solutions are shown in Appendix A.)
295
2 Permutations and combinations
EXAMPLE 38 Traveling to some but not all of the cities
Example 37 calculated the number of possible routes for traveling to cities. However, suppose we are interested in traveling to some but not all of the cities? For example, suppose that the salesman is traveling to three of the eight cities. Find the number of possible routes.
Solution
Eight choices are available for the first city, seven choices for the second city, and six choices for the third city. The salesman is traveling to three cities only, so the number of possible routes is thus
This result may be rewritten using factorial notation, as follows:
NOW YOU CAN DO
Exercises 23 and 24.
YOUR TURN #24
For the traveling salesman in Example 38, suppose there are 10 destinations, but he is traveling only to 5 of the 10 destinations. Find the number of possible routes.
(The solution is shown in Appendix A.)
Example 38 leads us to the following definition.
Permutations
A permutation is an arrangement of items, such that
The number of permutations of items chosen at a time is denoted as and given by the formula
In Example 38, we are looking for the number of permutations of 8 cities taken 3 at a time. We have
EXAMPLE 39 Calculating numbers of permutations
Find the following numbers of permutations:
Solution
296
NOW YOU CAN DO
Exercises 25–32.
YOUR TURN #25
Find the following numbers of permutations:
(The solution is shown in Appendix A.)
EXAMPLE 40 Counting permutations: Secret Santas
“Secret Santa” refers to a method whereby each member of a group anonymously buys a holiday gift for another member of the group. Each person is secretly assigned to buy a gift for another randomly chosen person in the group. Suppose Jessica, Laverne, Samantha, and Luisa share a dorm suite and want to do Secret Santa this holiday season.
Solution
The number of permutations is calculated as follows:
In a permutation, order is important. For example, in Example 40, there was a dif-ference between Jessica buying a gift for Laverne and Laverne buying one for Jessica. However, what if we consider shaking hands instead? Then Jessica shaking hands with Laverne is considered the same as Laverne shaking hands with Jessica. Thus, some-times order is not important. What is important here is the combination of Jessica and Laverne.
combinations
A combination is an arrangement of items in which
The number of combinations of items chosen from different items is denoted as
297
EXAMPLE 41 How many combinations in the intramural tennis league?
We return to the intramural singles tennis league at the local college. There are five players: Ryan, Megan, Nicole, Justin, and Kyle. Each player must play each other once.
Solution
Let {Ryan, Megan} denote a tennis match between Ryan and Megan. Note:
Thus, a tennis match between two players represents a combination.
{Ryan, Megan} | {Megan, Nicole} | {Nicole, Justin} |
{Ryan, Nicole} | {Megan, Justin} | {Nicole, Kyle} |
{Ryan, Justin} | {Megan, Kyle} | {Justin, Kyle} |
{Ryan, Kyle} |
Thus, there are possible matches of players chosen from players.
YOUR TURN #26
For the intramural league in Example 41, suppose there are 10 players. How many matches will be held?
(The solution is shown in Appendix A.)
We saw in Example 39 that and in Example 41 that . Permuta-tions and combinations differ only in that ordering is ignored for combinations. To calculate the number of combinations , we have to take into consideration how many different rearrangements there are of the same items. For example, in Example 41, there are rearrangements of the same players, such as {Ryan, Megan} and {Megan, Ryan}. Thus,
In general, the number of combinations can be computed as the number of permu-tations divided by the factorial of the number of items chosen.
Note: Following are some special combinations you may find useful. For any integer :
Formula for the Number of combinations
The number of combinations of items chosen from different items is given by
For instance, in Example 41, the formula for the number of combinations is
Thus, the relation: is verified.
298
EXAMPLE 42 Calculating numbers of combinations
Find the following numbers of combinations:
Solution
NOW YOU CAN DO
Exercises 33–40.
YOUR TURN #27
Find the following numbers of combinations:
(The solutions are shown in Appendix A.)
Note that in (c), we used the commutative property of multiplication and found that . In general, for this reason.
EXAMPLE 43 Calculating the number of permutations and combinations using technology
Use the TI-83/84 and Excel to calculate the following:
Solution
We use the instructions provided in the Step-by-Step Technology Guide at the end of this section (page 302).
From Figures 19a and 19b, we find that
299
Sometimes we wish to find the number of permutations of items where some of the items are not distinct.
EXAMPLE 44 Permutations with nondistinct items
How many distinct strings of letters can we make by using all the letters in the word STATISTICS?
Solution
Each string will be 10 letters long and include 3 S's, 3 T's, 2 I's, 1 A, and 1 C. The 10 positions shown here need to be filled.
The string-forming process is as follows:
There are ways to place the three S's in Step 1. Once Step 1 is done, seven slots are left, leaving positions for the three T's. Once Step 2 is done, four slots are left, so there are ways to place the two I's. Once Step 3 is done, only two slots are left, so there are only ways to position the A. Finally, there is only way to place the C.
Putting Steps 1–5 together, we calculate the number of distinct letter strings as
There are 50,400 distinct strings of letters that can be made using the letters in the word STATISTICS.
This example can be generalized in the following result.
Permutations of Nondistinct Items
The number of permutations of items of which are of the first kind, are of the second kind, …, and are of the kind is calculated as
where
300
EXAMPLE 45 Number of permutations of nondistinct items
Brandon brings a healthy snack to school each day, consisting of 5 carrot sticks, 4 celery sticks, and 2 cherry tomatoes. If Brandon eats one item at a time, in how many different ways can he eat his snack?
Solution
We are seeking the number of permutations of items, of which are carrot sticks, are celery sticks, and are cherry tomatoes. Using the formula for the number of permutations of nondistinct items,
There are 6930 distinct ways in which Brandon can eat his snack.
NOW YOU CAN DO
Exercises 41 and 42.
Acceptance sampling refers to the process of (1) selecting a random sample from a batch of items, (2) evaluating the sample for defectives, and (3) either accepting or rejecting the entire batch based on the evaluation of the sample.
EXAMPLE 46 Acceptance sampling uses combinations
Suppose we have a batch of 20 cell phones, of which, unknown to us, 3 are defective and 17 are nondefective; we will take a random sample of size 2 and evaluate both items once.
Solution
The number of ways of choosing two of the three defectives is
Selecting 2 defectives means that we are choosing 0 of the 17 nondefectives. The number of ways this can happen is
By the Multiplication Rule for Counting, the number of ways that both sampled cell phones are defective is
301
3 Computing Probabilities Using Combinations
The counting methods we have learned in this section may be used to compute probabilities. We assume that each possible outcome in a random sample is equally likely, and thus we use the classical method for assigning the probability of an event :
EXAMPLE 47 probability using combinations: Acceptance sampling
Continuing with Example 46, if both cell phones in the sample of size 2 are defective,we will reject the batch and cancel our contract with the supplier.
Solution
EXAMPLE 48 Florida Lotto
You can win the jackpot in the Florida Lotto by correctly choosing all 6 winning numbers out of the numbers 1–53.
Solution
302
The size of the sample space is
Therefore, if you buy a single ticket for $1, your probability of winning the jackpot is given by
If you buy 500,000 tickets and they are all unique, then your probability of winning becomes
This is because the unique tickets are mutually exclusive, and the Addition Rule for Mutually Exclusive Events allows us to add the probabilities of the 500,000 tickets.After mortgaging your $500,000 house and buying lottery tickets with the proceeds, there is a better than 97% probability that you will not win the lottery.