Counting-Techniques 1
Counting-Techniques 1
4: Counting Techniques
There are times when the sample space or event space are very large, that it isn’t feasible to write it out. In that case, it helps to
have mathematical tools for counting the size of the sample space and event space. These tools are known as counting techniques.
Definition 4.4.1
Δ∗
ways to do task 1, 2,…, n together would be m ∗
1
∗
m
2
r mn .
A menu offers a choice of 3 salads, 8 main dishes, and 5 desserts. How many different meals consisting of one salad, one main
dish, and one dessert are possible?
Solution
There are three tasks, picking a salad, a main dish, and a dessert. The salad task can be done 3 ways, the main dish task can be
done 8 ways, and the dessert task can be done 5 ways. The ways to pick a salad, main dish, and dessert are
3 8 5
= 120 different meals
salad main dessert
How many three letter “words” can be made from the letters a, b, and c with no letters repeating? A “word” is just an ordered
group of letters. It doesn’t have to be a real word in a dictionary.
Solution
There are three tasks that must be done in this case. The tasks are to pick the first letter, then the second letter, and then the
third letter. The first task can be done 3 ways since there are 3 letters. The second task can be done 2 ways, since the first task
took one of the letters. The third task can be done 1 ways, since the first and second task took two of the letters. There are
3 2 1
∗ ∗
first letter second letter third letter
Which is
∗ ∗
3 2 1 =6
In Example 4.4.2, the solution was found by find 3 ∗ 2 ∗ 1 = 6 . Many counting problems involve multiplying a list of decreasing
numbers. This is called a factorial. There is a special symbol for this and a special button on your calculator.
4.4.1 https://stats.libretexts.org/@go/page/5181
Definition 4.4.2
Factorial
n! = n(n − 1)(n − 2) ⋯ (3)(2)(1)
As an example:
5! = 5 ∗ 4 ∗ 3 ∗ 2 ∗ 1 = 120
8! = 8 ∗ 7 ∗ 6 ∗ 5 ∗ 4 ∗ 3 ∗ 2 ∗ 1 = 40320
Definition 4.4.3
Permutation Formula
Picking r objects from n total objects when order matters
n!
n Pr =
(n − r)!
Definition 4.4.4
Combination Formula
Picking r objects from n total objects when order doesn’t matter
n!
n Cr =
r!(n − r)!
In a club with 15 members, how many ways can a slate of 3 officers consisting of a president, vice-president, and
secretary/treasurer be chosen?
Solution
In this case the order matters. If you pick person 1 for president, person 2 for vice-president, and person 3 for
secretary/treasurer you would have different officers than if you picked person 2 for president, person 1 for vice-president, and
person 3 for secretary/treasurer. This is a permutation problem with n=15 and r=3.
15! 15!
15 P3 = = = 2730
(15 − 3)! 12!
Suppose you want to pick 7 people out of 20 people to take part in a survey. How many ways can you do this?
Solution
In this case the order doesn’t matter, since you just want 7 people. This is a combination with n=20 and r=7.
4.4.2 https://stats.libretexts.org/@go/page/5181
20! 20!
20 C7 = = = 77520
7!(20 − 7)! 7!13!
Most calculators have a factorial button on them, and many have the combination and permutation functions also. R has a
combination command.
Homework
Exercise 4.4.1
1. You are going to a benefit dinner, and need to decide before the dinner what you want for salad, main dish, and dessert. You
have 2 different salads to choose from, 3 main dishes, and 5 desserts. How many different meals are available?
2. How many different phone numbers are possible in the area code 928?
3. You are opening a T-shirt store. You can have long sleeves or short sleeves, three different colors, five different designs,
and four different sizes. How many different shirts can you make?
4. The California license plate has one number followed by three letters followed by three numbers. How many different
license plates are there?
5. Find P
9 4
6. Find P
10 6
7. Find P
10 5
8. Find P
20 4
9. You have a group of twelve people. You need to pick a president, treasurer, and secretary from the twelve. How many
different ways can you do this?
10. A baseball team has a 25-man roster. A batting order has nine people. How many different batting orders are there?
11. An urn contains five red balls, seven yellow balls, and eight white balls. How many different ways can you pick two red
balls?
12. How many ways can you choose seven people from a group of twenty?
Answer
1. 30 meals
3. 120 shirts
5. 3024
7. 252
9. 1320
11. 10
Data sources
Aboriginal deaths in custody. (2013, September 26). Retrieved from http://www.statsci.org/data/oz/custody.html
Activities of dolphin groups. (2013, September 26). Retrieved from http://www.statsci.org/data/general/dolpacti.html
Car preferences. (2013, September 26). Retrieved from http://www.statsci.org/data/oz/carprefs.html
Encyclopedia Titanica. (2013, November 09). Retrieved from www.encyclopediatitanica.org/
Leprosy: Number of reported cases by country. (2013, September 04). Retrieved from
http://apps.who.int/gho/data/node.main.A1639
Madison, J. (2013, October 15). M&M's color distribution analysis. Retrieved from http://joshmadison.com/2007/12/02/mm...tion-
analysis/
4.4: Counting Techniques is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Kathryn Kozak via source
content that was edited to conform to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.
4.4.3 https://stats.libretexts.org/@go/page/5181