StatisticsProbability Rules7 of 7
Probability Rules · 7

Permutations and Combinations

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\opt{3} shirts, 2\opt{2} pairs of pants, and 4\opt{4} pairs of shoes, and we want to know how many different outfits you can make, or how many 44-digit phone PINs exist using the digits 00 through 99.

Counting with Slots and Repeats
A\text{A}
B\htmlClass{lc-blue}{\text{B}}
C\text{C}
D\text{D}
E\htmlClass{lc-blue}{\text{E}}
F\text{F}
G\text{G}
H\htmlClass{lc-blue}{\text{H}}
I\text{I}
J\text{J}
PINs=?\text{PINs} = {?}
groups of 3=?\text{groups of 3} = {?}
Text solution
Draw one slot per choiceA 44-digit PIN requires picking 44 digits in a row, and the digits 00 through 99 give 10\opt{10} options for the first slot (not 99, since 00 is included).
[10]⏟Digit 1×[10]⏟Digit 2×[10]⏟Digit 3×[10]⏟Digit 4\displaystyle \underbrace{[\opt{10}]}_{\text{Digit 1}} \times \underbrace{[\phantom{10}]}_{\text{Digit 2}} \times \underbrace{[\phantom{10}]}_{\text{Digit 3}} \times \underbrace{[\phantom{10}]}_{\text{Digit 4}}
Keep all options when repeats are allowedBecause a PIN can reuse digits (like 77777777), picking a digit does not use it up, so all 10\opt{10} options stay available in every slot.
[10]×[10]×[10]×[10]\displaystyle [\opt{10}] \times [\opt{10}] \times [\opt{10}] \times [\opt{10}] =104\displaystyle = \opt{10}^4 =10,000\displaystyle = 10{,}000

So there are 10,00010{,}000 possible 44-digit PINs, and 3×2×4=24\opt{3} \times \opt{2} \times \opt{4} = 24 possible outfits.

In the outfit tree, each of the 3\opt{3} shirts branches into 2\opt{2} pairs of pants, and each of those 66 shirt-and-pant pairs branches into 4\opt{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 44 friends can line up side-by-side for a photo, and how many ways 1010 sprinters can fill the Gold, Silver, and Bronze medal spots.

Permutations and Factorials
Spot 1\text{Spot 1}
Spot 2\text{Spot 2}
Spot 3\text{Spot 3}
Spot 4\text{Spot 4}
=?= {?}
A\text{A}
B\text{B}
C\text{C}
D\text{D}
Text solution
Count down to 11 when arranging everyoneLining up all 44 friends in 44 photo spots uses up one person per slot, which is written with a factorial (!!).
4!⏟4 factorial\displaystyle \underbrace{4!}_{\text{4 factorial}} =4×3×2×1\displaystyle = \opt{4} \times \opt{3} \times \opt{2} \times \opt{1} =24\displaystyle = 24
Stop after the slots being filledWith 1010 sprinters competing for only 33 medals, we draw just 33 slots and multiply the first 33 numbers counting down from 1010.
[10]⏟Gold×[9]⏟Silver×[8]⏟Bronze\displaystyle \underbrace{[\opt{10}]}_{\text{Gold}} \times \underbrace{[\opt{9}]}_{\text{Silver}} \times \underbrace{[\opt{8}]}_{\text{Bronze}} =720\displaystyle = 720
Cancel the unused factors with factorialsTo write 10×9×8\opt{10} \times \opt{9} \times \opt{8} using factorials, start with all 10!10! factors and divide by (10−3)!=7!\tail{(10 - 3)!} = \tail{7!} for the 7\tail{7} runners who do not get a medal.
10P3⏟permutation=10!(10−3)!=10!7!=10×9×8×7×6×5×4×3×2×17×6×5×4×3×2×1=10×9×8=720\displaystyle \begin{aligned} &\underbrace{{}_{10}P_3}_{\text{permutation}} = \frac{10!}{\tail{(10 - 3)!}} = \frac{10!}{\tail{7!}} \\ &\quad = \frac{\begin{gathered}\opt{10} \times \opt{9} \times \opt{8} \\ \times \cancel{\tail{7 \times 6 \times 5 \times 4 \times 3 \times 2 \times 1}}\end{gathered}}{\cancel{\tail{7 \times 6 \times 5 \times 4 \times 3 \times 2 \times 1}}} \\ &\quad = \opt{10} \times \opt{9} \times \opt{8} = 720 \end{aligned}

So there are 2424 ways to line up the 44 friends, and 720720 possible Gold, Silver, and Bronze podiums.

Permutation of r items from n:nPr\displaystyle \text{Permutation of } r \text{ items from } n: \quad {}_nP_r =n!(n−r)!\displaystyle = \frac{n!}{\tail{(n - r)!}}

To calculate a permutation, just draw the rr 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 33 people out of 1010 to help carry boxes, or choose 44 pizza toppings from a menu of 1212? 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
helper\text{helper}
helper\text{helper}
helper\text{helper}
=?= {?}
A\text{A}
B\text{B}
C\text{C}
D\text{D}
E\text{E}
F\text{F}
G\text{G}
H\text{H}
I\text{I}
J\text{J}
Text solution
Multiply the rr slots on topFor 44 toppings out of 1212, start with 44 slots counting down from 1212.
12×11×10×9\displaystyle \opt{12} \times \opt{11} \times \opt{10} \times \opt{9}
Divide by r!\dup{r!} to cancel duplicate ordersBecause any 44 chosen toppings can be rearranged in 4!=4×3×2×1\dup{4!} = \dup{4} \times \dup{3} \times \dup{2} \times \dup{1} ways to make the exact same pizza, divide the top slots by 4!\dup{4!} and cancel common factors before multiplying.
(124)⏟12 choose 4=12×11×10×94×3×2×1=12×11×10 5×94×3×2×1=11×5×9=495\displaystyle \begin{aligned} \underbrace{\binom{12}{4}}_{\text{12 choose 4}} &= \frac{\opt{12} \times \opt{11} \times \opt{10} \times \opt{9}}{\dup{4} \times \dup{3} \times \dup{2} \times \dup{1}} \\ &= \frac{\cancel{\opt{12}} \times \opt{11} \times \cancel{\opt{10}}^{\,\opt{5}} \times \opt{9}}{\cancel{\dup{4} \times \dup{3}} \times \cancel{\dup{2}} \times \dup{1}} \\ &= \opt{11} \times \opt{5} \times \opt{9} = 495 \end{aligned}
Write with factorialsReplacing the top slots in (103)=10×9×83×2×1\binom{10}{3} = \frac{\opt{10} \times \opt{9} \times \opt{8}}{\dup{3} \times \dup{2} \times \dup{1}} with 10!7!\frac{10!}{\tail{7!}} puts both the 3!\dup{3!} duplicate orders and the 7!\tail{7!} people left behind in the denominator.
(103)=10×9×83!=10!3!⏟3 chosen×7!⏟7 left behind=7206=120\displaystyle \begin{aligned} \binom{10}{3} &= \frac{\opt{10} \times \opt{9} \times \opt{8}}{\dup{3!}} \\ &= \frac{10!}{\underbrace{\dup{3!}}_{\text{3 chosen}} \times \underbrace{\tail{7!}}_{\text{7 left behind}}} \\ &= \frac{720}{\dup{6}} = 120 \end{aligned}

So there are 120120 different groups of 33 box-carriers, and 495495 different 44-topping pizzas.

Combination of r items from n:nCr\displaystyle \text{Combination of } r \text{ items from } n: \quad {}_nC_r =(nr)\displaystyle = \binom{n}{r} =n!r!(n−r)!\displaystyle = \frac{n!}{\dup{r!}\tail{(n - r)!}}

The notation (nr)\binom{n}{r} is read "nn choose rr". There is no fraction bar inside the parentheses.

Swapping two people who are already in the 33 chosen slots just gives another one of the 3!=6\dup{3!} = \dup{6} arrangements of that same box-carrying group, whereas swapping in someone from the 7\tail{7} people left behind creates a new group with its own 6\dup{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!=10! = 1

What happens when we choose all 1010 friends for a van trip ((1010)\binom{10}{10}), or choose 00 of them ((100)\binom{10}{0})? Plugging r=10r = 10 or r=0r = 0 into the factorial formula leaves 0!0! in the denominator, so we need to see what 0!0! equals.

Choosing All or None: Why 0! = 1
(nr)=n!r! (n−r)!\dbinom{n}{r} = \dfrac{n!}{\htmlClass{lc-orange}{r!}\,\htmlClass{lc-violet}{(n-r)!}}
(1010)=?\dbinom{10}{10} = {?}
Text solution
Plug n=10n = 10 and r=10r = 10 into the factorial formulaSubtracting 10−10\tail{10 - 10} in the denominator gives 0!\tail{0!}.
(1010)\displaystyle \binom{10}{10} =10!10!(10−10)!\displaystyle = \frac{10!}{\dup{10!}\tail{(10 - 10)!}} =10!10!×0!\displaystyle = \frac{10!}{\dup{10!} \times \tail{0!}}
Cancel 10!10! and match the actual countSince there is only 11 way to take all 1010 friends (everyone gets in the van), 10!\frac{1}{\tail{0!}} must equal 11.
10!10!×0!\displaystyle \frac{\cancel{10!}}{\cancel{\dup{10!}} \times \tail{0!}} =10!\displaystyle = \frac{1}{\tail{0!}} =1⟹0!\displaystyle = 1 \quad \Longrightarrow \quad \tail{0!} =1\displaystyle = 1

So there is 11 way to choose all 1010 friends and 11 way to choose 00 friends, because 0!=10! = 1.

5

Permutation or Combination? Check the Labels

When we count ways to pick rr items from nn, we need to know whether to stop after multiplying the slots or divide by r!\dup{r!}. Let's compare two problems with a 2020-member club: electing a President, Vice President, and Treasurer, versus picking a 33-person committee to plan a party.

President\text{President}
Vice President\text{Vice President}
Treasurer\text{Treasurer}
Alice\htmlClass{lc-blue}{\text{Alice}}
Bob\htmlClass{lc-blue}{\text{Bob}}
swap\text{swap}
Bob is now President: a different outcome\htmlClass{lc-blue}{\text{Bob}}\text{ is now President: a different outcome}
Committee\text{Committee}
Committee\text{Committee}
Committee\text{Committee}
Alice\htmlClass{lc-blue}{\text{Alice}}
Bob\htmlClass{lc-blue}{\text{Bob}}
swap\text{swap}
still Alice and Bob: the same committee\text{still }\htmlClass{lc-blue}{\text{Alice}}\text{ and }\htmlClass{lc-blue}{\text{Bob}}\text{: the same committee}
Permutation or Combination? Check the Labels
20 people\text{20 people}
President\text{President}
Vice Pres.\text{Vice Pres.}
Treasurer\text{Treasurer}
=?= {?}
20 people\text{20 people}
Committee\text{Committee}
Committee\text{Committee}
Committee\text{Committee}
=?= {?}
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.
[20]⏟President×[19]⏟Vice President×[18]⏟Treasurer\displaystyle \underbrace{[\opt{20}]}_{\text{President}} \times \underbrace{[\opt{19}]}_{\text{Vice President}} \times \underbrace{[\opt{18}]}_{\text{Treasurer}} =6,840\displaystyle = 6{,}840
Same slot labels (divide by r!\dup{r!})All 33 slots have the same label ("Committee"), so swapping two chosen members changes nothing and we divide out the 3!\dup{3!} duplicates.
(203)\displaystyle \binom{20}{3} =20×19×18⏞Committee slots3×2×1⏟duplicates\displaystyle = \frac{\overbrace{\opt{20} \times \opt{19} \times \opt{18}}^{\text{Committee slots}}}{\underbrace{\dup{3} \times \dup{2} \times \dup{1}}_{\text{duplicates}}} =1,140\displaystyle = 1{,}140

So there are 6,8406{,}840 ways to elect the three officers, but only 1,1401{,}140 ways to form a 33-person committee.

6

Probability with Combinations

Now we can find probabilities when there are too many outcomes to list out. An animal shelter has 66 dogs and 55 cats (1111 animals total); if we randomly pick 44 animals to feature on a poster, what is the probability of picking 22 dogs and 22 cats?

Probability\displaystyle \prob{\text{Probability}} =ways to get what we wanttotal possible outcomes\displaystyle = \frac{\opt{\text{ways to get what we want}}}{\total{\text{total possible outcomes}}}
Probability with Combinations
6 dogs\text{6 dogs}
5 cats\text{5 cats}
pick 4\text{pick } 4
P(2 dogs and 2 cats)=?\htmlClass{lc-green}{P}(\text{2 dogs and 2 cats}) = {?}
Text solution
Count total possible groups for the denominatorPicking any 44 animals out of 1111 for the poster gives all 44 slots the same label ("on the poster"), so we use (114)\total{\binom{11}{4}}.
(114)=11×10×9×84×3×2×1=11×10×9 3×84×3×2×1=11×10×3=330\displaystyle \begin{aligned} \total{\binom{11}{4}} &= \frac{\opt{11} \times \opt{10} \times \opt{9} \times \opt{8}}{\dup{4} \times \dup{3} \times \dup{2} \times \dup{1}} \\ &= \frac{\opt{11} \times \opt{10} \times \cancel{\opt{9}}^{\,\opt{3}} \times \cancel{\opt{8}}}{\cancel{\dup{4}} \times \cancel{\dup{3}} \times \cancel{\dup{2}} \times \dup{1}} \\ &= \opt{11} \times \opt{10} \times \opt{3} = \total{330} \end{aligned}
Count the combinations for the dogs and the catsFind the ways to pick 22 dogs from the 66 dogs, and the ways to pick 22 cats from the 55 cats.
(62)=6×52×1=15 dog pairs,(52)=5×42×1=10 cat pairs\displaystyle \begin{aligned} \binom{6}{2} &= \frac{\opt{6} \times \opt{5}}{\dup{2} \times \dup{1}} = \opt{15} \text{ dog pairs}, \\ \binom{5}{2} &= \frac{\opt{5} \times \opt{4}}{\dup{2} \times \dup{1}} = \opt{10} \text{ cat pairs} \end{aligned}
Multiply the dog and cat combinations and divide by the totalBecause each of the 15\opt{15} dog pairs can be matched with any of the 10\opt{10} cat pairs, multiply them on top and divide by all 330\total{330} possible posters.
Probability=(62)×(52)(114)=15×10330=150330≈45.5%\displaystyle \begin{aligned} \prob{\text{Probability}} &= \frac{\opt{\binom{6}{2}} \times \opt{\binom{5}{2}}}{\total{\binom{11}{4}}} \\ &= \frac{\opt{15} \times \opt{10}}{\total{330}} \\ &= \frac{\opt{150}}{\total{330}} \approx \prob{45.5\%} \end{aligned}

So there is about a 45.5%\prob{45.5\%} chance that the poster features 22 dogs and 22 cats.

Each of the 15\opt{15} dog pairs can be paired with any of the 10\opt{10} cat pairs, giving 15×10=150\opt{15} \times \opt{10} = \opt{150} posters with 22 dogs and 22 cats out of the 330\total{330} possible 44-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 44-digit PIN using 00 through 99 has [10]×[10]×[10]×[10]=104=10,000[\opt{10}] \times [\opt{10}] \times [\opt{10}] \times [\opt{10}] = \opt{10}^4 = 10{,}000 outcomes). If repeats are not allowed, the options count down by 11 after each slot; arranging all nn items in nn spots multiplies all the way down to 11 (4!=4×3×2×1=244! = \opt{4} \times \opt{3} \times \opt{2} \times \opt{1} = 24, and 0!=10! = 1).

When you only fill rr slots out of nn 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 rr slots and stop:

10P3\displaystyle {}_{10}P_3 =10!(10−3)!\displaystyle = \frac{10!}{\tail{(10 - 3)!}} =10×9×8\displaystyle = \opt{10} \times \opt{9} \times \opt{8} =720\displaystyle = 720

Same label (Combination)

All slots share the exact same role (like a group, committee, or pizza toppings), so divide the rr top slots by r!\dup{r!} to cancel the duplicate rearrangements:

(103)\displaystyle \binom{10}{3} =10!3!(10−3)!\displaystyle = \frac{10!}{\dup{3!}\tail{(10 - 3)!}} =10×9×83×2×1\displaystyle = \frac{\opt{10} \times \opt{9} \times \opt{8}}{\dup{3} \times \dup{2} \times \dup{1}} =120\displaystyle = 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 ((62)×(52)(114)=15×10330\dfrac{\opt{\binom{6}{2}} \times \opt{\binom{5}{2}}}{\total{\binom{11}{4}}} = \dfrac{\opt{15} \times \opt{10}}{\total{330}}).

7

Practice

1

A luggage lock has 33 dials. The first dial has 44 letters (A, B, C, D), and the second and third dials each have the digits 00 through 99. Repeats are allowed on the digit dials. How many different lock codes are possible?

Draw 33 slots for the 33 dials. How many digits are in 00 through 99, 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 00 through 99 give 10\opt{10} choices, not 99, which would give 4×9×9=3244 \times 9 \times 9 = 324; and because repeats are allowed, the third slot stays at 10\opt{10} instead of dropping to 99 for 360360):
4×10×10\displaystyle \opt{4} \times \opt{10} \times \opt{10} =400\displaystyle = 400
2

Six different books are being placed side-by-side on a shelf. In how many different orders can all 66 books be arranged?

Draw 66 slots for the 66 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 66 to 11 (don't keep 66 in every slot for 66=46,6566^6 = 46{,}656, since the same book cannot sit in two spots at once):
6!\displaystyle 6! =6×5×4×3×2×1\displaystyle = \opt{6} \times \opt{5} \times \opt{4} \times \opt{3} \times \opt{2} \times \opt{1} =720\displaystyle = 720
3

An art contest has 99 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 the 33 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 33 slots from 99: divide 9!9! by (9−3)!=6!\tail{(9 - 3)!} = \tail{6!} for the 6\tail{6} paintings that do not win an award to cancel the factors from 6\tail{6} down to 1\tail{1} (do not divide by 3!3! to get 8484, because swapping two winning paintings changes which award they win):
9!(9−3)!\displaystyle \frac{9!}{\tail{(9 - 3)!}} =9!6!\displaystyle = \frac{9!}{\tail{6!}} =9×8×7\displaystyle = \opt{9} \times \opt{8} \times \opt{7} =504\displaystyle = 504
4

A chef has 99 different vegetables and wants to choose 44 of them to put together in a soup. How many different groups of 44 vegetables can the chef choose?

All 44 chosen vegetables go into the same soup pot. After writing the 44 slots on top, what do you divide by to cancel the duplicate orders?

All 44 slots have the same label ("in the soup"), so divide the 44 top slots by 4!\dup{4!} (stopping after the top slots gives 9×8×7×6=3,0249 \times 8 \times 7 \times 6 = 3{,}024, which counts every soup 24\dup{24} times):
9×8×7×64×3×2×1\displaystyle \frac{\opt{9} \times \opt{8} \times \opt{7} \times \opt{6}}{\dup{4} \times \dup{3} \times \dup{2} \times \dup{1}} =126\displaystyle = 126
5

A hiker has 77 snacks and decides to pack all 77 of them into a bag. Write 77 choose 77 using the factorial formula n!r!×(n−r)!\frac{n!}{\dup{r!} \times \tail{(n - r)!}} and simplify it to find the number of ways.

Plug n=7n = 7 and r=7r = 7 into the formula. What does (7−7)!\tail{(7 - 7)!} simplify to?

Cancel 7!7! from the top and bottom (remember that 0!=10! = 1, not 00, which would make the fraction undefined):
7!7!×0!\displaystyle \frac{7!}{\dup{7!} \times \tail{0!}} =10!\displaystyle = \frac{1}{\tail{0!}} =1\displaystyle = 1
6

A club has 88 members. It needs to elect 11 President and then choose a 22-person cleanup crew from the remaining members. How many different ways can these roles be filled?

Take the two roles one at a time: after 11 of the 88 members becomes President, how many members are left for the 22 cleanup crew slots, and do those 22 crew slots have the same label or different labels?

There are 8\opt{8} choices for President, leaving 77 members for the 22 cleanup crew slots, which have the same label, so we divide the crew slots by 2!\dup{2!} (forgetting to divide the crew slots by 2!\dup{2!} gives 8×7×6=3368 \times 7 \times 6 = 336, while dividing the whole product by 3!3! to get 5656 ignores that President is a different role from the crew):
8×7×62×1\displaystyle \opt{8} \times \frac{\opt{7} \times \opt{6}}{\dup{2} \times \dup{1}} =8×21\displaystyle = \opt{8} \times \opt{21} =168\displaystyle = 168
7

A box of 1010 lightbulbs contains 66 working bulbs and 44 burned-out bulbs. If you randomly grab 33 bulbs at once, what is the probability that you get 22 working bulbs and 11 burned-out bulb?

Find the combinations for the 22 working bulbs and the 11 burned-out bulb on top, and divide by the total combinations of grabbing any 33 bulbs from all 1010.

Multiply the (62)=15\opt{\binom{6}{2}} = \opt{15} pairs of working bulbs by the (41)=4\opt{\binom{4}{1}} = \opt{4} choices of a burned-out bulb on top, and divide by (103)=120\total{\binom{10}{3}} = \total{120} total groups (be careful to multiply 15×4=60\opt{15} \times \opt{4} = \opt{60} rather than adding 15+4=1915 + 4 = 19, which would give 19120≈15.8%\frac{19}{120} \approx 15.8\%):
(62)×(41)(103)\displaystyle \frac{\opt{\binom{6}{2}} \times \opt{\binom{4}{1}}}{\total{\binom{10}{3}}} =15×4120\displaystyle = \frac{\opt{15} \times \opt{4}}{\total{120}} =60120\displaystyle = \frac{\opt{60}}{\total{120}} =50%\displaystyle = \prob{50\%}
8

A 44-digit PIN is chosen at random from all possible 44-digit PINs using the digits 00 through 99 (where repeats are allowed). What is the probability that the PIN has no repeated digits?

Put the number of 44-digit PINs with no repeated digits on top, and the total number of 44-digit PINs (where repeats are allowed) on the bottom.

A PIN's 44 digit positions have different labels (Digit 1, Digit 2, Digit 3, Digit 4), so count down 10×9×8×7\opt{10} \times \opt{9} \times \opt{8} \times \opt{7} on top without dividing by 4!4! (dividing by 4!4! to get (104)=210\binom{10}{4} = 210 on top gives 2.1%2.1\%, which treats rearrangements of a PIN like 12341234 and 43214321 as the same code), and divide by the 104\total{10^4} total PINs:
10×9×8×710×10×10×10\displaystyle \frac{\opt{10} \times \opt{9} \times \opt{8} \times \opt{7}}{\total{10} \times \total{10} \times \total{10} \times \total{10}} =5,04010,000\displaystyle = \frac{\opt{5{,}040}}{\total{10{,}000}} =50.4%\displaystyle = \prob{50.4\%}