Lesson 12.5 · Probability
Permutations and combinations
Listing every outcome works for two dice. It does not work for dealing a -card hand, where there are over million possibilities. To find probabilities in big sample spaces, you need to count without listing. This lesson gives you three tools: the fundamental counting principle, permutations and combinations.
The fundamental counting principle
Fundamental counting principle
If one choice can be made in ways and a second choice can then be made in ways, the two choices together can be made in ways. This extends to any number of choices: multiply the number of options at each step.
You've already used this: two number cubes give outcomes.
Worked example: Codes
A locker code is letters followed by digits, and letters and digits may repeat. How many codes are possible?
There are choices for each letter and for each digit:
Factorials and arrangements
How many ways can books be lined up on a shelf? There are choices for the first spot, then left for the second, then , and :
This product has a name.
Definition
Factorial
For a positive integer , factorial is . By definition, . There are ways to arrange different objects in a row.
Permutations: order matters
Now suppose only some of the objects are used. A club of members elects a president, a vice president and a secretary. There are choices for president, then for vice president, then for secretary: ways. Each result is a permutation, an arrangement in which order (here, which office) matters. Electing Ana president and Ben secretary is different from the reverse.
Permutations
The number of permutations of objects taken at a time is
That last form is factors, counting down from .
Check with the club: . The cancels the part of you don't use.
Combinations: order doesn't matter
Now the club picks a committee of with no titles. The committee {Ana, Ben, Cy} is the same committee however you list the names. The permutations count each committee several times, once for each of the ways to order its members. So the number of committees is
A selection in which order doesn't matter is a combination.
Combinations
The number of combinations of objects taken at a time is
It is also written and read " choose ."
Common mistake
Before you use a formula, ask: if I swap two of the chosen items, is it a different result? If yes (offices, finishing places, a code, a seating order), use permutations. If no (a committee, a hand of cards, pizza toppings), use combinations. Using for a committee overcounts by a factor of .
Worked example: Permutation or combination?
-
In how many ways can gold, silver and bronze medals be awarded to of runners?
-
In how many ways can a coach choose of runners for a relay pool, with no order?
-
Medals are different, so order matters: .
-
A group without roles, so order doesn't matter: .
Counting to find probabilities
When outcomes are equally likely, , and now you can count both with combinations or permutations.
Worked example: Choosing a committee at random
A committee of is chosen at random from girls and boys. What is the probability that the committee is all girls? What is the probability that it has exactly girls?
Total committees: .
All girls: choose of the girls: .
Exactly girls: choose of girls and of boys. By the counting principle, that's committees.
Tip
. Choosing people to be on a committee from is the same as choosing to leave off, so . Use whichever is quicker to compute.
Practice
In how many different orders can students line up for a photo?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Evaluate .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A -digit PIN uses the digits through , and no digit may be repeated. How many PINs are possible?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A pizza shop offers toppings. How many different pizzas with exactly different toppings can you order?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Which situation should be counted with a permutation?
Ten people enter a drawing, and of them are chosen at random to win identical prizes. What is the probability that Ana and Ben are the two winners?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Five people, including Ana and Ben, sit in a row of chairs in a random order. What is the probability that Ana sits in the first chair and Ben sits in the last chair?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A bag has red and blue marbles. You grab marbles at random. What is the probability that exactly of them are red?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.