Permutations and combinations

 
 
Permutations and combinations blog post.jpeg
 
 
 

What is a permutation?

In order to answer many probability questions, we need to understand permutations and combinations.

permutation is the number of ways you can arrange a set of things, and the order matters.

Krista King Math.jpg

Hi! I'm krista.

I create online courses to help you rock your math class. Read more.

 

The formula for a permutation is

nPk=n!(nk)!_nP_k=\frac{n!}{(n-k)!}

where nn is the total number of items we have, and kk is the number of items we want to arrange.

 
 

The difference between permutations and combinations, and how to calculate both


 
Krista King Math Signup.png
 
Probability & Statistics course.png

Take the course

Want to learn more about Probability & Statistics? I have a step-by-step course for that. :)

 
 

 
 

Permutation example problem

Example

I have 44 scoops of ice cream: 11 chocolate, 11 strawberry, 11 vanilla, and 11 mint. I want to eat only 33 of the scoops. How many different ways can I eat 33 of the scoops if I consider both which scoops I eat and the order in which I eat them?


This is a permutation question, since I care about the order in which I eat the scoops. There are 44 total scoops, but I only want to eat 33 of them. Therefore, the number of ways I could eat three of the scoops of ice cream is

nPk=n!(nk)!_nP_k=\frac{n!}{(n-k)!}

4P3=4!(43)!_4P_3=\frac{4!}{(4-3)!}

4P3=4!1!_4P_3=\frac{4!}{1!}

4P3=43211_4P_3=\frac{4\cdot3\cdot2\cdot1}{1}

4P3=432_4P_3=4\cdot3\cdot2

4P3=24_4P_3=24

There are 2424 different ways that I could eat 33 of the 44 scoops. For example, chocolate-strawberry-vanilla would be 11 of the 2424 options, but since order matters, chocolate-vanilla-strawberry would be another option.


On the other hand, a combination is the number of ways you can arrange a set of things, but the order doesn’t matter. The formula for a combination is

nCk=n!k!(nk)!_nC_k=\frac{n!}{k!(n-k)!}

where nn is the total number of items we have, and kk is the number of items we want to choose. Sometimes people write nCk_nC_k as

(nk)\binom{n}{k}

which is called the binomial coefficient, and read as “nn choose kk.”

So to continue with the example from earlier, chocolate-strawberry-vanilla and chocolate-vanilla-strawberry would not count separately, because we don’t care about the order when we’re talking about combinations. All we care about is which items we picked, so chocolate-strawberry-vanilla and chocolate-vanilla-strawberry would count as the same thing.

Permutations and combinations for Probability and Statistics.jpg

On the other hand, a combination is the number of ways you can arrange a set of things, but the order doesn’t matter.

Example

I have the same 44 scoops of ice cream: 11 chocolate, 11 strawberry, 11 vanilla, and 11 mint. I want to eat only 33 of the scoops, and I don’t care about the order in which I eat my 33 scoops. How many different combinations of 33 scoops can I create?

This is a combination question, since I don’t care about the order in which I eat the scoops. There are 44 total scoops, but I only want to eat 33 of them. Therefore, the number of ways I could eat three of the scoops of ice cream is

nCk=n!k!(nk)!_nC_k=\frac{n!}{k!(n-k)!}

4C3=4!3!(43)!_4C_3=\frac{4!}{3!(4-3)!}

4C3=4!(3!)(1!)_4C_3=\frac{4!}{(3!)(1!)}

4C3=4321(321)(1)_4C_3=\frac{4\cdot3\cdot2\cdot1}{(3\cdot2\cdot1)(1)}

4C3=41_4C_3=\frac{4}{1}

4C3=4_4C_3=4

There are 44 different ways that I could eat 33 of the 44 scoops. For example, chocolate-strawberry-vanilla would be 11 of the 44 options, but since order doesn’t matter, chocolate-vanilla-strawberry would be the same combination, and wouldn’t count as another one of the 44 combinations.

 
Krista King.png
 

Get access to the complete Probability & Statistics course