To find probabilities when there are too many outcomes to list by hand or draw on a tree diagram, we need a fast way to count how many outcomes are possible.
1
Counting with Slots and Repeats
Suppose you have 3 shirts, 2 pairs of pants, and 4 pairs of shoes, and we want to know how many different outfits you can make, or how many 4-digit phone PINs exist using the digits 0 through 9.
Counting with Slots and Repeats
Text solution
Draw one slot per choiceA 4-digit PIN requires picking 4 digits in a row, and the digits 0 through 9 give 10 options for the first slot (not 9, since 0 is included).
Keep all options when repeats are allowedBecause a PIN can reuse digits (like 7777), picking a digit does not use it up, so all 10 options stay available in every slot.
[10]×[10]×[10]×[10]=104=10,000
So there are 10,000 possible 4-digit PINs, and 3×2×4=24 possible outfits.
In the outfit tree, each of the 3 shirts branches into 2 pairs of pants, and each of those 6 shirt-and-pant pairs branches into 4 pairs of shoes, which is why the slot numbers multiply instead of add.
Every new option connects to all the choices before and after it, which is why we multiply the options in each group.
2
Permutations and Factorials
When repeats are not allowed, picking an item for the first slot uses it up, leaving one fewer option for the next slot. We want to find how many ways 4 friends can line up side-by-side for a photo, and how many ways 10 sprinters can fill the Gold, Silver, and Bronze medal spots.
Permutations and Factorials
Text solution
Count down to 1 when arranging everyoneLining up all 4 friends in 4 photo spots uses up one person per slot, which is written with a factorial (!).
4 factorial4!=4×3×2×1=24
Stop after the slots being filledWith 10 sprinters competing for only 3 medals, we draw just 3 slots and multiply the first 3 numbers counting down from 10.
Gold[10]×Silver[9]×Bronze[8]=720
Cancel the unused factors with factorialsTo write 10×9×8 using factorials, start with all 10! factors and divide by (10−3)!=7! for the 7 runners who do not get a medal.
So there are 24 ways to line up the 4 friends, and 720 possible Gold, Silver, and Bronze podiums.
Permutation of r items from n:nPr=(n−r)!n!
To calculate a permutation, just draw the r slots and multiply; use the factorial fraction only when you need to write the answer with factorials.
3
Combinations: Dividing Out Duplicates
What if we pick 3 people out of 10 to help carry boxes, or choose 4 pizza toppings from a menu of 12? Now there are no separate Gold, Silver, and Bronze titles. Everyone chosen has the exact same role, so we want to count how many different groups we can pick without counting rearrangements of the same group as separate outcomes.
Combinations: Dividing Out Duplicates
Text solution
Multiply the r slots on topFor 4 toppings out of 12, start with 4 slots counting down from 12.
12×11×10×9
Divide by r! to cancel duplicate ordersBecause any 4 chosen toppings can be rearranged in 4!=4×3×2×1 ways to make the exact same pizza, divide the top slots by 4! and cancel common factors before multiplying.
Write with factorialsReplacing the top slots in (310)=3×2×110×9×8 with 7!10! puts both the 3! duplicate orders and the 7! people left behind in the denominator.
(310)=3!10×9×8=3 chosen3!×7 left behind7!10!=6720=120
So there are 120 different groups of 3 box-carriers, and 495 different 4-topping pizzas.
Combination of r items from n:nCr=(rn)=r!(n−r)!n!
The notation (rn) is read "n choose r". There is no fraction bar inside the parentheses.
Swapping two people who are already in the 3 chosen slots just gives another one of the 3!=6 arrangements of that same box-carrying group, whereas swapping in someone from the 7 people left behind creates a new group with its own 6 arrangements.
Swapping the 3 chosen people changes the podium inside a row of 6 without changing the group, which splits the 720 arrangements into 120 groups.
4
Choosing All or None: Why 0!=1
What happens when we choose all 10 friends for a van trip ((1010)), or choose 0 of them ((010))? Plugging r=10 or r=0 into the factorial formula leaves 0! in the denominator, so we need to see what 0! equals.
Choosing All or None: Why 0! = 1
Text solution
Plug n=10 and r=10 into the factorial formulaSubtracting 10−10 in the denominator gives 0!.
(1010)=10!(10−10)!10!=10!×0!10!
Cancel 10! and match the actual countSince there is only 1 way to take all 10 friends (everyone gets in the van), 0!1 must equal 1.
10!×0!10!=0!1=1⟹0!=1
So there is 1 way to choose all 10 friends and 1 way to choose 0 friends, because 0!=1.
5
Permutation or Combination? Check the Labels
When we count ways to pick r items from n, we need to know whether to stop after multiplying the slots or divide by r!. Let's compare two problems with a 20-member club: electing a President, Vice President, and Treasurer, versus picking a 3-person committee to plan a party.
Permutation or Combination? Check the Labels
Text solution
Different slot labels (do not divide)Swapping two people changes who gets to be President, Vice President, or Treasurer, so every slot arrangement is a different outcome.
Same slot labels (divide by r!)All 3 slots have the same label ("Committee"), so swapping two chosen members changes nothing and we divide out the 3! duplicates.
So there are 6,840 ways to elect the three officers, but only 1,140 ways to form a 3-person committee.
6
Probability with Combinations
Now we can find probabilities when there are too many outcomes to list out. An animal shelter has 6 dogs and 5 cats (11 animals total); if we randomly pick 4 animals to feature on a poster, what is the probability of picking 2 dogs and 2 cats?
Probability=total possible outcomesways to get what we want
Probability with Combinations
Text solution
Count total possible groups for the denominatorPicking any 4 animals out of 11 for the poster gives all 4 slots the same label ("on the poster"), so we use (411).
Count the combinations for the dogs and the catsFind the ways to pick 2 dogs from the 6 dogs, and the ways to pick 2 cats from the 5 cats.
(26)(25)=2×16×5=15 dog pairs,=2×15×4=10 cat pairs
Multiply the dog and cat combinations and divide by the totalBecause each of the 15 dog pairs can be matched with any of the 10 cat pairs, multiply them on top and divide by all 330 possible posters.
So there is about a 45.5% chance that the poster features 2 dogs and 2 cats.
Each of the 15 dog pairs can be paired with any of the 10 cat pairs, giving 15×10=150 posters with 2 dogs and 2 cats out of the 330 possible 4-animal posters.
Every pair of dogs pairs up with all 10 pairs of cats, forming a 15-by-10 block of wanted posters inside the 330 possible four-animal groups.
Key concepts
Whenever you need to count outcomes, start by drawing a slot for each choice and multiplying the options across the slots. First check whether repeats are allowed: if an item can be reused, the number of options stays the same in every slot and you do not use factorials or combinations at all (a 4-digit PIN using 0 through 9 has [10]×[10]×[10]×[10]=104=10,000 outcomes). If repeats are not allowed, the options count down by 1 after each slot; arranging all n items in n spots multiplies all the way down to 1 (4!=4×3×2×1=24, and 0!=1).
When you only fill r slots out of n items without repeats, check the labels on the slots:
Different labels (Permutation)
Each slot has a different role (like Gold, Silver, Bronze), so swapping two chosen items creates a different outcome. Multiply the first r slots and stop:
10P3=(10−3)!10!=10×9×8=720
Same label (Combination)
All slots share the exact same role (like a group, committee, or pizza toppings), so divide the r top slots by r! to cancel the duplicate rearrangements:
(310)=3!(10−3)!10!=3×2×110×9×8=120
Probability with groups
Divide the number of wanted outcomes by the total possible outcomes, multiplying the combinations on top when you pick from separate groups ((411)(26)×(25)=33015×10).
7
Practice
1
A luggage lock has 3 dials. The first dial has 4 letters (A, B, C, D), and the second and third dials each have the digits 0 through 9. Repeats are allowed on the digit dials. How many different lock codes are possible?
Watch out: the digits 0 through 9 give 10 choices, not 9, which would give 4×9×9=324.Because repeats are allowed, the third slot stays at 10 instead of dropping to 9 for 360.
Draw 3 slots for the 3 dials. How many digits are in 0 through 9, and does picking a digit on the second dial reduce the options for the third?
Draw one slot for each dial and multiply the options across the slots (watch out: the digits 0 through 9 give 10 choices, not 9, which would give 4×9×9=324; and because repeats are allowed, the third slot stays at 10 instead of dropping to 9 for 360):
4×10×10=400
2
Six different books are being placed side-by-side on a shelf. In how many different orders can all 6 books be arranged?
Don't keep 6 in every slot for 66=46,656, since the same book cannot sit in two spots at once.
Draw 6 slots for the 6 spots on the shelf. Once a book is placed in the first spot, how many books remain for the second spot?
Each book placed on the shelf uses up one option for the next spot, so count down from 6 to 1 (don't keep 6 in every slot for 66=46,656, since the same book cannot sit in two spots at once):
6!=6×5×4×3×2×1=720
3
An art contest has 9 paintings competing for Best in Show, Runner-Up, and Honorable Mention. No painting can win more than one award. Write the number of possible outcomes as a fraction of factorials and calculate its value.
Do not divide by 3! to get 84, because swapping two winning paintings changes which award they win.
Do the 3 award slots have different labels or the same label, and which factorial goes in the denominator to cancel the paintings that don't win an award?
Because Best in Show, Runner-Up, and Honorable Mention are different labels, this is a permutation of 3 slots from 9: divide 9! by (9−3)!=6! for the 6 paintings that do not win an award to cancel the factors from 6 down to 1 (do not divide by 3! to get 84, because swapping two winning paintings changes which award they win):
(9−3)!9!=6!9!=9×8×7=504
4
A chef has 9 different vegetables and wants to choose 4 of them to put together in a soup. How many different groups of 4 vegetables can the chef choose?
Stopping after the top slots gives 9×8×7×6=3,024, which counts every soup 24 times.
All 4 chosen vegetables go into the same soup pot. After writing the 4 slots on top, what do you divide by to cancel the duplicate orders?
All 4 slots have the same label ("in the soup"), so divide the 4 top slots by 4! (stopping after the top slots gives 9×8×7×6=3,024, which counts every soup 24 times):
4×3×2×19×8×7×6=126
5
A hiker has 7 snacks and decides to pack all 7 of them into a bag. Write 7 choose 7 using the factorial formula r!×(n−r)!n! and simplify it to find the number of ways.
Plug n=7 and r=7 into the formula. What does (7−7)! simplify to?
Cancel 7! from the top and bottom (remember that 0!=1, not 0, which would make the fraction undefined):
7!×0!7!=0!1=1
6
A club has 8 members. It needs to elect 1 President and then choose a 2-person cleanup crew from the remaining members. How many different ways can these roles be filled?
Forgetting to divide the crew slots by 2! gives 8×7×6=336.Dividing the whole product by 3! to get 56 ignores that President is a different role from the crew.
Take the two roles one at a time: after 1 of the 8 members becomes President, how many members are left for the 2 cleanup crew slots, and do those 2 crew slots have the same label or different labels?
There are 8 choices for President, leaving 7 members for the 2 cleanup crew slots, which have the same label, so we divide the crew slots by 2! (forgetting to divide the crew slots by 2! gives 8×7×6=336, while dividing the whole product by 3! to get 56 ignores that President is a different role from the crew):
8×2×17×6=8×21=168
7
A box of 10 lightbulbs contains 6 working bulbs and 4 burned-out bulbs. If you randomly grab 3 bulbs at once, what is the probability that you get 2 working bulbs and 1 burned-out bulb?
Be careful to multiply 15×4=60 rather than adding 15+4=19, which would give 12019≈15.8%.
Find the combinations for the 2 working bulbs and the 1 burned-out bulb on top, and divide by the total combinations of grabbing any 3 bulbs from all 10.
Multiply the (26)=15 pairs of working bulbs by the (14)=4 choices of a burned-out bulb on top, and divide by (310)=120 total groups (be careful to multiply 15×4=60 rather than adding 15+4=19, which would give 12019≈15.8%):
(310)(26)×(14)=12015×4=12060=50%
8
A 4-digit PIN is chosen at random from all possible 4-digit PINs using the digits 0 through 9 (where repeats are allowed). What is the probability that the PIN has no repeated digits?
Dividing by 4! to get (410)=210 on top gives 2.1%, which treats rearrangements of a PIN like 1234 and 4321 as the same code.
Put the number of 4-digit PINs with no repeated digits on top, and the total number of 4-digit PINs (where repeats are allowed) on the bottom.
A PIN's 4 digit positions have different labels (Digit 1, Digit 2, Digit 3, Digit 4), so count down 10×9×8×7 on top without dividing by 4! (dividing by 4! to get (410)=210 on top gives 2.1%, which treats rearrangements of a PIN like 1234 and 4321 as the same code), and divide by the 104 total PINs: