maths.free › Statistics & Probability › 7. Probability › Permutations
Permutations
Use the Multiplication Rule for Counting to determine the number of permutations.
Learning Objectives
After completing this section, you should be able to:
- Use the Multiplication Rule for Counting to determine the number of permutations.
- Compute expressions containing factorials.
- Compute permutations.
- Apply permutations to solve problems.
Applying the Multiplication Rule for Counting to Permutations
In the case of the swimming finals, one possible permutation of length 3 would be the list of medal winners (first, second, and third place finishers). A permutation of length 8 would be the full order of finish (first place through eighth place). Let’s use the Multiplication Rule for Counting to figure out how many of each of these permutations there are.
Using the Multiplication Rule for Counting to Find the Number of Permutations
Try it.
The final heat of Olympic swimming events features 8 swimmers (or teams of swimmers).
- How many different podium placements (first place, second place, and third place) are possible?
- How many different complete orders of finish (first place through eighth place) are possible?
Solution
- Let’s start with the first place finisher. How many options are there? Since 8 swimmers are competing, there are 8 possibilities. Once that first swimmer completes the race, there are 7 swimmers left competing for second place. After the second finisher is decided, there are 6 swimmers remaining who could possibly finish in third place. Thus, there are 8 possibilities for first place, 7 for second place, and 6 for third place. The Multiplication Rule for Counting then tells us there are \(8\times 7\times 6=336\) different ways the winners’ podium can be filled out.
- To look at the complete order of finish, we can continue the pattern we can see in part 1 of this example: There are 5 possibilities for fourth place, 4 for fifth place, 3 for sixth place, 2 for seventh place, and then just 1 swimmer is left to finish in eighth place. Using the Multiplication Rule for Counting, we see that there are \(8\times 7\times 6\times 5\times 4\times 3\times 2\times 1=40,320\) possible orders of finish.
Factorials
The pattern we see in occurs commonly enough that we have a name for it: factorial.
For any positive whole number \(n\), we define the factorial of \(n\) (denoted \(n!\) and read "\(n\) factorial") to be the product of every whole number less than or equal to \(n\). We also define 0! to be equal to one. We will use factorials in a couple of different contexts, so let's get some practice doing computations with them.
Computing Factorials
Try it.
Compute the following:
- \(4!\)
- \(\frac{8!}{6!}\)
- \(\frac{9!}{3!4!}\)
Solution
- \(4!=4\times \text{3}\times \text{2}\times 1=24\)
- There are two ways to approach this calculation. The first way is to compute the factorials first, then divide:
\[\frac{8!}{6!}=\frac{8\times 7\times 6\times 5\times 4\times 3\times 2\times 1}{6\times 5\times 4\times 3\times 2\times 1}=\frac{40,320}{720}=56\]
However, there is an easier way! You may notice in the second step that there are several terms that can be canceled; that’s always the case whenever we divide factorials. In this case, notice that we can rewrite the numerator like this:
\[8!=8\times 7\times (6\times 5\times 4\times 3\times 2\times 1)=8\times 7\times 6!\]
With that in mind, we can proceed this way by canceling out the 6!:
\[\frac{8!}{6!}=\frac{8\times 7\times 6!}{6!}=8\times 7=56\] That’s much easier!
- Let’s approach this one using our canceling technique. When we see two factorials in either the numerator or denominator, we should focus on the larger one first. So:
\[\frac{9!}{3!4!}=\frac{9\times 8\times 7\times 6\times 5\times 4!}{3!4!}=\frac{9\times 8\times 7\times 6\times 5}{3\times 2\times 1}=9\times 8\times 7\times 5=2,520\]
Permutations
As we’ve seen, factorials can pop up when we’re computing permutations. In fact, there is a formula that we can use to make that connection explicit. Let’s define some notation first. If we have a collection of \(n\) objects and we wish to create an ordered list of \(r\) of the objects (where \(1\le r\le n\)), we’ll call the number of those permutations \({}_{n}{P}_{r}\) (read “the number of permutations of \(n\) objects taken \(r\) at a time”). We formalize the formula we'll use to compute permutations below.
If you wondered why we defined \(0!=1\) earlier, it was to make formulas like this one work; if we have \(n\) objects and want to order all of them (so, we want the number of permutations of \(n\) objects taken \(n\) at a time), we get \({}_{n}{P}_{n}=\frac{n!}{(n-n)!}=\frac{n!}{0!}=\frac{n!}{1}=n!\). Next, we’ll get some practice computing these permutations.
Computing Permutations
Try it.
Find the following numbers:
- The number of permutations of 12 objects taken 3 at a time
- The number of permutations of 8 objects taken 5 at a time
- The number of permutations of 32 objects taken 2 at a time
Solution
- \[{}_{12}{P}_{3}=\frac{12!}{(12-3)!}=\frac{12!}{9!}=\frac{12\times 11\times 10\times 9!}{9!}=12\times 11\times 10=1,320\]
- \[{}_{8}{P}_{5}=\frac{8!}{(8-5)!}=\frac{8\times 7\times 6\times 5\times 4\times 3!}{3!}=8\times 7\times 6\times 5\times 4=6,720\]
- \[{}_{32}{P}_{2}=\frac{32!}{(32-2)!}=\frac{32\times 31\times 30!}{30!}=32\times 31=992\]
Applying Permutations
Try it.
- A high school graduating class has 312 students. The top student is declared valedictorian, and the second-best is named salutatorian. How many possible outcomes are there for the valedictorian and salutatorian?
- In the card game blackjack, the dealer’s hand of 2 cards is dealt with 1 card faceup and 1 card facedown. If the game is being played with a single deck of (52) cards, how many possible hands could the dealer get?
- The University Combinatorics Club has 3 officers: president, vice president, and treasurer. If there are 18 members of the club, how many ways are there to fill the officer positions?
Solution
- This is the number of permutations of 312 students taken 2 at a time, and \({}_{312}{P}_{2}=97,032\).
- We want the number of permutations of 52 cards taken 2 at a time, and \({}_{52}{P}_{2}=2,652\).
- Here we’re looking for the number of permutations of 18 members taken 3 at a time, and \({}_{18}{P}_{3}=4,896\).
Condensed — the full section is in OpenStax Contemporary Mathematics.
Key Concepts
- Using the Multiplication Rule for Counting to enumerate permutations.
- Simplifying and computing expressions involving factorials.
- Using factorials to count permutations.
Practice (4)
Try each one on paper first. Reveal the answer to check; verified ones can be opened in the solver for every step.
-
The final heat of Olympic swimming events features 8 swimmers (or teams of swimmers).
- How many different podium placements (first place, second place, and third place) are possible?
- How many different complete orders of finish (first place through eighth place) are possible?
Жавобни кўрсатиш
- Let’s start with the first place finisher. How many options are there? Since 8 swimmers are competing, there are 8 possibilities. Once that first swimmer completes the race, there are 7 swimmers left competing for second place. After the second finisher is decided, there are 6 swimmers remaining who could possibly finish in third place. Thus, there are 8 possibilities for first place, 7 for second place, and 6 for third place. The Multiplication Rule for Counting then tells us there are \(8\times 7\times 6=336\) different ways the winners’ podium can be filled out.
- To look at the complete order of finish, we can continue the pattern we can see in part 1 of this example: There are 5 possibilities for fourth place, 4 for fifth place, 3 for sixth place, 2 for seventh place, and then just 1 swimmer is left to finish in eighth place. Using the Multiplication Rule for Counting, we see that there are \(8\times 7\times 6\times 5\times 4\times 3\times 2\times 1=40,320\) possible orders of finish.
-
Compute the following:
- \(4!\)
- \(\frac{8!}{6!}\)
- \(\frac{9!}{3!4!}\)
Жавобни кўрсатиш
- \(4!=4\times \text{3}\times \text{2}\times 1=24\)
- There are two ways to approach this calculation. The first way is to compute the factorials first, then divide:
\[\frac{8!}{6!}=\frac{8\times 7\times 6\times 5\times 4\times 3\times 2\times 1}{6\times 5\times 4\times 3\times 2\times 1}=\frac{40,320}{720}=56\]
However, there is an easier way! You may notice in the second step that there are several terms that can be canceled; that’s always the case whenever we divide factorials. In this case, notice that we can rewrite the numerator like this:
\[8!=8\times 7\times (6\times 5\times 4\times 3\times 2\times 1)=8\times 7\times 6!\]
With that in mind, we can proceed this way by canceling out the 6!:
\[\frac{8!}{6!}=\frac{8\times 7\times 6!}{6!}=8\times 7=56\] That’s much easier!
- Let’s approach this one using our canceling technique. When we see two factorials in either the numerator or denominator, we should focus on the larger one first. So:
\[\frac{9!}{3!4!}=\frac{9\times 8\times 7\times 6\times 5\times 4!}{3!4!}=\frac{9\times 8\times 7\times 6\times 5}{3\times 2\times 1}=9\times 8\times 7\times 5=2,520\]
-
Find the following numbers:
- The number of permutations of 12 objects taken 3 at a time
- The number of permutations of 8 objects taken 5 at a time
- The number of permutations of 32 objects taken 2 at a time
Жавобни кўрсатиш
- \[{}_{12}{P}_{3}=\frac{12!}{(12-3)!}=\frac{12!}{9!}=\frac{12\times 11\times 10\times 9!}{9!}=12\times 11\times 10=1,320\]
- \[{}_{8}{P}_{5}=\frac{8!}{(8-5)!}=\frac{8\times 7\times 6\times 5\times 4\times 3!}{3!}=8\times 7\times 6\times 5\times 4=6,720\]
- \[{}_{32}{P}_{2}=\frac{32!}{(32-2)!}=\frac{32\times 31\times 30!}{30!}=32\times 31=992\]
-
- A high school graduating class has 312 students. The top student is declared valedictorian, and the second-best is named salutatorian. How many possible outcomes are there for the valedictorian and salutatorian?
- In the card game blackjack, the dealer’s hand of 2 cards is dealt with 1 card faceup and 1 card facedown. If the game is being played with a single deck of (52) cards, how many possible hands could the dealer get?
- The University Combinatorics Club has 3 officers: president, vice president, and treasurer. If there are 18 members of the club, how many ways are there to fill the officer positions?
Жавобни кўрсатиш
- This is the number of permutations of 312 students taken 2 at a time, and \({}_{312}{P}_{2}=97,032\).
- We want the number of permutations of 52 cards taken 2 at a time, and \({}_{52}{P}_{2}=2,652\).
- Here we’re looking for the number of permutations of 18 members taken 3 at a time, and \({}_{18}{P}_{3}=4,896\).
Symbols used here
n × (n−1) × … × 1; the number of orderings of n things. 0! = 1.
Inequalities that allow equality; < and > exclude it.
Both signs at once: x = 3 ± 2 means 5 and 1.
Equal to the precision shown, not exactly.
Number of k-element subsets of n things: n!/(k!(n−k)!).
Add a_k for k = 1 up to n.
In either; in both; in A but not B.
Average of the data; average of the whole population.
Typical distance from the mean; its square.
Chance of A; chance of A given that B happened.
Probability-weighted average of X; its spread.
The bell curve with mean μ and variance σ²; (x − μ)/σ.
How to: Permutations
- Use the Multiplication Rule for Counting to determine the number of permutations.
- Compute expressions containing factorials.
- Compute permutations.
- Apply permutations to solve problems.
- How many different podium placements (first place, second place, and third place) are possible?
- How many different complete orders of finish (first place through eighth place) are possible?
- Let’s start with the first place finisher. How many options are there? Since 8 swimmers are competing, there are 8 possibilities. Once that first swimmer completes the race, there are 7 swimmers left competing for second place. After the second finisher is decided, there are 6 swimmers remaining who could possibly finish in third place. Thus, there are 8 possibilities for first place, 7 for second place, and 6 for third place. The Multiplication Rule for Counting then tells us there are
- To look at the complete order of finish, we can continue the pattern we can see in part 1 of this example: There are 5 possibilities for fourth place, 4 for fifth place, 3 for sixth place, 2 for seventh place, and then just 1 swimmer is left to finish in eighth place. Using the Multiplication Rule for Counting, we see that there are
Questions people ask
Mean or median — which should I use?
Median when the data have outliers or a long tail (incomes, house prices); mean when the data are roughly symmetric and you want every value to count. Report both if they disagree — the gap is itself information.
What does a p-value actually say?
The probability of seeing data at least this extreme if the null hypothesis were true. It is not the probability that the null hypothesis is true.
Why divide by n − 1 for the sample variance?
The sample mean sits closer to the sample than the true mean does, so squared deviations from it are slightly too small on average; dividing by n − 1 instead of n corrects the bias.
Ўзингизни синаб кўринг
Parts of this page are adapted from OpenStax Contemporary Mathematics (CC BY-NC-SA 4.0). Condensed and re-explained here; errors are ours.
Кўпроқ Statistics & Probability
Sampling and dataDescribing data with graphsMean, median and modeProbabilityCounting: permutations and combinationsDiscrete random variablesContinuous random variablesThe normal distributionThe central limit theoremConfidence intervalsHypothesis testingComparing two samplesChi-square testsLinear regression and correlation