# 2.2: Order and Probability

**At Grade**Created by: CK-12

Permutations and combinations are the next step in the learning of probability. It is by using permutations and combinations that we can find the probabilities of various events occurring at the same time, such as choosing 3 boys and 3 girls from a class of grade 12 math students.

In mathematics, we use more precise language:

If the order doesn't matter, it is a combination.

If the order does matter, it is a permutation.

Say, for example, you are making a salad. You throw in some lettuce, carrots, cucumbers, and green peppers. The order in which you throw in these vegetables doesn't really matter. Here we are talking about a combination. For combinations, you are merely selecting. Say, though, that Jack went to the ATM to get out some money and that he has to put in his PIN number. Here the order of the digits in the PIN number is quite important. In this case, we are talking about a permutation. For permutations, you are ordering objects in a specific manner.

**Permutations**

The **Fundamental Counting Principle** states that if an event can be chosen in \begin{align*}p\end{align*} different ways and another independent event can be chosen in \begin{align*}q\end{align*} different ways, the number of different ways the 2 events can occur is \begin{align*}p \times q\end{align*}. In other words, the Fundamental Counting Principle tells you how many ways you can arrange items. **Permutations** are the number of possible arrangements in an ordered set of objects.

*Example 3*

How many ways can you arrange the letters in the word MATH?

*Solution:*

You have 4 letters in the word, and you are going to choose 1 letter at a time. When you choose the first letter, you have 4 possibilities ('M', 'A', 'T', or 'H'). Your second choice will have 3 possibilities, your third choice will have 2 possibilities, and your last choice will have only 1 possibility.

Therefore, the number of arrangements is: \begin{align*}4 \times 3 \times 2 \times 1 = 24\end{align*} possible arrangements.

The notation for a permutation is: \begin{align*}{_n}P_r\end{align*},

where:

\begin{align*}n\end{align*} is the *total* number of objects.

\begin{align*}r\end{align*} is the number of objects chosen.

For simplifying calculations, when \begin{align*}n = r\end{align*}, then \begin{align*}{_n}P_r = n!\end{align*}.

The **factorial function (!)** requires us to multiply a series of descending natural numbers.

Examples:

\begin{align*}5! &= 5 \times 4 \times 3 \times 2 \times 1 = 120\\ 4! &= 4 \times 3 \times 2 \times 1 = 24\\ 1! &= 1\end{align*}

Note: It is a general rule that \begin{align*}0! = 1\end{align*}.

With TI calculators, you can find the factorial function using:

\begin{align*}\boxed{\text{MATH}} \ \boxed{\blacktriangleright} \ \boxed{\blacktriangleright} \ \boxed{\blacktriangleright} \ (\text{PRB}) \boxed{\blacktriangledown} \ \boxed{\blacktriangledown} \ \boxed{\blacktriangledown} \ (\boxed{4})\end{align*}

*Example 4*

Solve for \begin{align*}{_4}P_4\end{align*}.

*Solution:*

\begin{align*}{_4}P_4 = 4 \cdot 3 \cdot 2 \cdot 1 = 24\end{align*}

This represents the number of ways to arrange 4 objects that are chosen from a set of 4 different objects.

*Example 5*

Solve for \begin{align*}{_6}P_3\end{align*}.

*Solution:*

Starting with 6, multiply the first 3 numbers of the factorial:

\begin{align*}{_6}P_3 = 6 \cdot 5 \cdot 4 = 120\end{align*}

This represents the number of ways to arrange 3 objects that are chosen from a set of 6 different objects.

The formula to solve permutations like these is:

\begin{align*}{_n}P_r=\frac{n!}{(n-r)!}\end{align*}

Look at Example 5 above. In this example, the total number of objects \begin{align*}(n)\end{align*} is 6, while the number of objects chosen \begin{align*}(r)\end{align*} is 3. We can use these 2 numbers to calculate the number of possible permutations (or the number of arrangements) of 6 objects chosen 3 at a time.

\begin{align*}{_n}P_r &= \frac{n!}{(n-r)!}\\ {_6}P_3 &= \frac{6!}{(6-3)!}\\ {_6}P_3 &= \frac{6!}{3!}=\frac{6 \times 5 \times 4 \cancel{\times 3 \times 2 \times 1}}{\cancel{3 \times 2 \times 1}}\\ {_6}P_3 &= \frac{120}{1}\\ {_6}P_3 &= 120\end{align*}

*Example 6*

What is the total number of possible 4-letter arrangements of the letters 's', 'n', 'o', and 'w' if each letter is used only once in each arrangement?

*Solution:*

In this problem, there are 4 letters to choose from, so \begin{align*}n = 4\end{align*}. We want 4-letter arrangements; therefore, we are choosing 4 objects at a time. In this example, \begin{align*}r = 4\end{align*}.

*Example 7*

A committee is to be formed with a president, a vice president, and a treasurer. If there are 10 people to select from, how many committees are possible?

*Solution:*

In this problem, there are 10 committee members to choose from, so \begin{align*}n = 10\end{align*}. We want to choose 3 members to be president, vice-president, and treasurer; therefore, we are choosing 3 objects at a time. In this example, \begin{align*}r = 3\end{align*}.

\begin{align*}{_n}P_r &= \frac{n!}{(n-r)!}\\ {_{10}}P_3 &= \frac{10!}{(10-3)!}\\ {_{10}}P_3 &= \frac{10!}{7!}=\frac{10 \times 9 \times 8 \times 7 \times 6 \times 5 \times 4 \times 3 \times 2 \times 1}{7 \times 6 \times 5 \times 4 \times 3 \times 2 \times 1}\\ {_{10}}P_3 &= \frac{720}{1}\\ {_{10}}P_3 &= 720\end{align*}

**Permutations with Repetition**

There is a subset of permutations that takes into account that there are double objects or repetitions in a permutation problem. In general, repetitions are taken care of by dividing the permutation by the factorial of the number of objects that are identical.

If you look at the word TOOTH, there are 2 O’s in the word. Both O’s are identical, and it does not matter in which order we write these 2 O’s, since they are the same. In other words, if we exchange 'O' for 'O', we still spell TOOTH. The same is true for the T’s, since there are 2 T’s in the word TOOTH as well.

If we were to ask the question, "In how many ways can we arrange the letters in the word TOOTH?" we must account for the fact that these 2 O’s are identical and that the 2 T’s are identical. We do this using the formula:

\begin{align*}\frac{_nP_r}{x_1! x_2!}\end{align*}, where \begin{align*}x\end{align*} is the number of times a letter is repeated.

\begin{align*}\frac{_nP_r}{x_1! x_2!} &= \frac{_5P_5}{2!2!}\\ \frac{_5P_5}{2!2!} &= \frac{5 \times 4 \times 3 \times 2 \times 1}{2 \times 1 \times 2 \times 1}\\ \frac{_5P_5}{2!2!} &= \frac{120}{4}\\ \frac{_5P_5}{2!2!} &= 30\end{align*}

**Tech Tip: Calculating Permutations on the Calculator**

**Permutations \begin{align*}(nPr)\end{align*}**

Enter the \begin{align*}n\end{align*} value. Press \begin{align*}\boxed{\text{MATH}}\end{align*}. You should see menus across the top of the screen. You want the fourth menu: PRB (arrow right 3 times). You will see several options. \begin{align*}nPr\end{align*} is the second. Press \begin{align*}\boxed{2}\end{align*}. Enter the \begin{align*}r\end{align*} value. Press \begin{align*}\boxed{\text{ENTER}}\end{align*}.

*Example 8*

Compute \begin{align*}{_9}P_5\end{align*}.

*Solution:*

\begin{align*}\boxed{9} \ \boxed{\text{MATH}} \ \boxed{\blacktriangleright} \ \boxed{\blacktriangleright} \ \boxed{\blacktriangleright} \ (\text{PRB}) \ \boxed{2} \ (\text{nPr}) \ \boxed{5} \ \boxed{\text{ENTER}}\end{align*}

\begin{align*}{_9}P_5= 15,120\end{align*}

*Example 9*

How many different 5-letter arrangements can be formed from the word APPLE?

*Solution:*

There are 5 letters in the word APPLE, so \begin{align*}n = 5\end{align*}. We want 5-letter arrangements; therefore, we are choosing 5 objects at a time. In this example, \begin{align*}r = 5\end{align*}, and we are using a word with letters that repeat. In the word APPLE, there are 2 P’s, so \begin{align*}x_1 = 2\end{align*}.

*Example 10*

How many different 6-digit numerals can be written using the following 7 digits? Assume the repeated digits are all used.

3, 3, 4, 4, 4, 5, 6

*Solution:*

There are 7 digits, so \begin{align*}n = 7\end{align*}. We want 6-digit arrangements; therefore, we are choosing 6 objects at a time. In this example, \begin{align*}r = 6\end{align*}, and we are using a group of digits with numbers that repeat. In the group of 7 digits (3, 3, 4, 4, 4, 5, 6), there are two 3’s and three 4’s, so \begin{align*}x_1 = 2\end{align*} and \begin{align*}x_2 = 3\end{align*}.

When there are no repetitions, remember that we use the standard permutation formula:

\begin{align*}{_n}P_r=\frac{n!}{(n-r)!}\end{align*}

*Example 11*

In how many ways can first and second place be awarded to 10 people?

*Solution:*

There are 10 people \begin{align*}(n = 10)\end{align*}, and there are 2 prize winners \begin{align*}(r = 2)\end{align*}.

*Example 12*

In how many ways can 3 favorite desserts be listed in order from a menu of 10 (i.e., permutations without repetition)?

*Solution:*

There are 10 menu items \begin{align*}(n = 10)\end{align*}, and you are choosing 3 favorite desserts \begin{align*}(r = 3)\end{align*} in order.

**Combinations**

If you think about the lottery, you choose a group of lucky numbers in hopes of winning millions of dollars. When the numbers are drawn, the order in which they are drawn does not have to be the same order as on your lottery ticket. The numbers drawn simply have to be on your lottery ticket in order for you to win. You can imagine how many possible combinations of numbers exist, which is why your odds of winning are so small!

**Combinations** are arrangements of objects *without* regard to order and without repetition, selected from a distinct number of objects. A combination of \begin{align*}n\end{align*} objects taken \begin{align*}r\end{align*} at a time \begin{align*}({_n}C_r)\end{align*} can be calculated using the formula:

\begin{align*}{_n}C_r = \frac{n!}{r!(n-r)!}\end{align*}

*Example 13*

Evaluate: \begin{align*}{_7}C_2\end{align*}.

*Solution:*

\begin{align*}{_7}C_2 &= \frac{7!}{2!(7-2)!}\\ {_7}C_2 &= \frac{7!}{2!(5)!}\\ {_7}C_2 &= \frac{7 \times 6 \times 5 \times 4 \times 3 \times 2 \times 1}{(2 \times 1)(5 \times 4 \times 3 \times 2 \times 1)}\\ {_7}C_2 &= \frac{5,040}{(2)(120)}\\ {_7}C_2 &= \frac{5,040}{240}\\ {_7}C_2 &= 21\end{align*}

*Example 14*

In how many ways can 3 desserts be chosen in any order from a menu of 10?

*Solution:*

There are 10 menu items \begin{align*}(n = 10)\end{align*}, and you are choosing 3 desserts in any order \begin{align*}(r = 3)\end{align*}.

\begin{align*}{_{10}}C_3 &= \frac{10!}{3!(10-3)!}\\ {_{10}}C_3 &= \frac{10!}{3!(7)!}\\ {_{10}}C_3 &= \frac{10 \times 9 \times 8}{3 \times 2 \times 1}\\ {_{10}}C_3 &= 120\end{align*}

*Example 15*

There are 12 boys and 14 girls in Mrs. Cameron's math class. Find the number of ways Mrs. Cameron can select a team of 3 students from the class to work on a group project. The team must consist of 2 girls and 1 boy.

*Solution:*

There are groups of both boys and girls to consider. From the 14 girls \begin{align*}(n = 14)\end{align*} in the class, we are choosing 2 \begin{align*}(r = 2)\end{align*}.

\begin{align*}\text{Girls:}\\ {_{14}}C_2 &= \frac{14!}{2!(14 -2)!}\\ {_{14}}C_2 &= \frac{14!}{2!(12)!}\\ {_{14}}C_2 &= \frac{87,178,291,200}{2(479,001,600)}\\ {_{14}}C_2 &= \frac{87,178,291,200}{958,003,200}\\ {_{14}}C_2 &= 91\end{align*}

From the 12 boys \begin{align*}(n = 12)\end{align*} in the class, we are choosing \begin{align*}1 (r = 1)\end{align*}.

\begin{align*}\text{Boys:}\\ {_{12}}C_1 &= \frac{12!}{1!(12-1)!}\\ {_{12}}C_1 &= \frac{12!}{1!(11)!}\\ {_{12}}C_1 &= \frac{479,001,600}{1(39,916,800)}\\ {_{12}}C_1 &= \frac{479,001,600}{39,916,800}\\ {_{12}}C_1 &= 12\end{align*}

Therefore, the number of ways Mrs. Cameron can select a team of 3 students (2 girls and 1 boy) from the class of 26 students to work on a group project is:

\begin{align*}\text{Total combinations} = {_{14}}C_2 \times {_{12}}C_1=91 \times 12=1,092\end{align*}

*Example 16*

If there are 20 rock songs and 20 rap songs to choose from, in how many different ways can you select 12 rock songs and 7 rap songs for a mix CD?

*Solution:*

As in Example 15, we have multiple groups from which we are required to select, so we have to calculate the possible combinations for each group (rock songs and rap songs in this example) separately and then multiply together.

Using TI technology: for \begin{align*}{_n}C_r\end{align*}, type the \begin{align*}n\end{align*} value (the total number of items), and then press \begin{align*}\boxed{\text{MATH}} \ \boxed{\blacktriangleright} \ \boxed{\blacktriangleright} \ \boxed{\blacktriangleright}\end{align*} \begin{align*}\text{(PRB)} \ \boxed{\blacktriangledown} \ \boxed{\blacktriangledown}\end{align*} (to number 3) \begin{align*}\boxed{\text{ENTER}}\end{align*}. Then type the \begin{align*}r\end{align*} value (the number of items your want to choose), and finally, press \begin{align*}\boxed{\text{ENTER}}\end{align*}.

\begin{align*}\text{Rock:}\\ {_{20}}C_{12} &= \frac{20!}{12!(20-12)!}\\ {_{20}}C_{12} &= \frac{20!}{12!(8)!}\\ {_{20}}C_{12} &= 125,970\\ \\ \text{Rap:}\\ {_{20}}C_7 &= \frac{20!}{7!(20-7)!}\\ {_{20}}C_7 &= \frac{20!}{7!(13)!}\\ {_{20}}C_7 &= 77,520\end{align*}

Therefore, the total number of possible combinations is:

\begin{align*}&\text{Rock} \quad \ \text{Rap}\\ &{_{20}}C_{12} \times _{20}C_7 = 125,970 \times 77,520 = 9.765 \times 10^9 \ \text{possible combinations}\end{align*}

**Tech Tip: Calculating Combinations on the Calculator**

**Combinations \begin{align*}(nCr)\end{align*}**

Enter the \begin{align*}n\end{align*} value. Press \begin{align*}\boxed{\text{MATH}}\end{align*}. You should see modes across the top of the screen. You want the fourth menu: PRB (arrow right 3 times). You will see several options. \begin{align*}nCr\end{align*} is the third. Press \begin{align*}\boxed{3}\end{align*}. Enter the \begin{align*}r\end{align*} value. Press \begin{align*}\boxed{\text{ENTER}}\end{align*}.

*Example 17*

Compute \begin{align*}{_{10}}C_6\end{align*}.

*Solution:*

\begin{align*}{_{10}}C_6 & \qquad \quad \boxed{1} \ \boxed{0} \ \boxed{\text{MATH}} \ \boxed{\blacktriangleright} \ \boxed{\blacktriangleright} \ \boxed{\blacktriangleright} \ (\text{PRB}) \ \boxed{3} \ (\text{nCr}) \ \boxed{6} \ \boxed{\text{ENTER}}\\ {_{10}}C_6 &= 210\end{align*}