01 / 21
\( n! \)

Counting for
Probability

Learn how permutations and combinations let you count outcomes systematically and compute probabilities with confidence.

Finite Mathematics

Why Counting Matters

Probability is fundamentally about comparing favorable outcomes to total outcomes. To compute \( P(E) = \frac{|E|}{|S|} \), you need reliable ways to count both the event set \( E \) and the sample space \( S \).

The Fundamental Counting Principle

If a task consists of sequential stages, and stage 1 can be done in \( n_1 \) ways, stage 2 in \( n_2 \) ways, and so on, then the total number of ways to complete the task is:

Stage 1 3 ways × Stage 2 4 ways × Stage 3 2 ways = 24 total
\( 3 \times 4 \times 2 = 24 \) total outcomes

The Factorial Function

The factorial of a non-negative integer \( n \), written \( n! \), is the product of all positive integers from 1 to \( n \). It counts how many ways you can arrange \( n \) distinct objects in a line.

\( 3! \)
\( 3 \times 2 \times 1 = \) 6
\( 5! \)
\( 5 \times 4 \times 3 \times 2 \times 1 = \) 120
\( 10! \)
\( = \) 3,628,800

What Are Permutations?

A permutation is an arrangement of objects where order matters. Choosing a president, then a vice president from 5 candidates is different from choosing a vice president, then a president.

Think of it as filling \( r \) ordered slots. The first slot has \( n \) choices, the second has \( n-1 \), and so on, giving \( n \times (n-1) \times \cdots \times (n-r+1) \).

Permutations: Slots Filling

Choose 3 officers (President, VP, Secretary) from 5 people. Each slot reduces the available pool by one:

President 5 choices × Vice Pres 4 choices × Secretary 3 choices Total:
\( 5 \times 4 \times 3 = \) 60 permutations

What Are Combinations?

A combination is a selection of objects where order does not matter. Choosing 3 committee members from 5 people gives the same committee regardless of the order you pick them.

We divide by \( r! \) because every group of \( r \) items was counted \( r! \) times in the permutation formula (once for each internal rearrangement).

Permutations vs Combinations

Permutations \( P(n,r) \) Combinations \( C(n,r) \)
Order Matters Does not matter
Formula \( \frac{n!}{(n-r)!} \) \( \frac{n!}{r!(n-r)!} \)
Keyword clues arrange, rank, order choose, select, group
Example 1st, 2nd, 3rd place Pick a team of 3
Relationship \( P(n,r) = C(n,r) \times r! \)

Counting Meets Probability

When all outcomes in a sample space are equally likely, counting lets you compute probability directly:

Numerator
Count outcomes in event \( E \) using permutations or combinations
Denominator
Count all outcomes in sample space \( S \) using the same method

Step-by-Step Strategy

1
Identify the sample space. What is the full set of possible outcomes?
2
Ask: does order matter? If yes, use permutations. If no, use combinations.
3
Count the total outcomes \( |S| \) using the appropriate formula.
4
Count the favorable outcomes \( |E| \) the same way.
5
Compute the probability: \( P(E) = \frac{|E|}{|S|} \). Simplify if possible.

Example 1: Committee Selection

A club has 10 members. A committee of 4 is chosen at random. What is the probability that two specific members, Alice and Bob, are both on the committee?

1
Total committees: Order doesn't matter, so \( |S| = \binom{10}{4} = \frac{10!}{4!\,6!} = \) 210
2
Favorable: Fix Alice and Bob. Choose 2 more from the remaining 8: \( |E| = \binom{8}{2} = \frac{8!}{2!\,6!} = \) 28
3
Probability: \( P = \frac{28}{210} = \frac{2}{15} \approx \) 0.133

Example 2: Arranging Letters

The letters of the word MATH are arranged at random. What is the probability the arrangement starts with M?

1
Total arrangements: 4 distinct letters, order matters: \( |S| = 4! = \) 24
2
Favorable: Fix M in position 1. Arrange remaining 3 letters: \( |E| = 3! = \) 6
3
Probability: \( P = \frac{6}{24} = \frac{1}{4} = \) 0.25

Example 3: Poker Hands

A 5-card hand is dealt from a standard 52-card deck. What is the probability of getting exactly 2 kings?

1
Total hands: \( |S| = \binom{52}{5} = \) 2,598,960
2
Choose 2 kings from 4: \( \binom{4}{2} = \) 6
3
Choose 3 non-kings from 48: \( \binom{48}{3} = \) 17,296
4
Favorable: \( |E| = 6 \times 17{,}296 = \) 103,776
5
Probability: \( P = \frac{103{,}776}{2{,}598{,}960} \approx \) 0.0399 (about 4%)

Multi-Part Events: Multiply the Counts

When a favorable outcome has independent parts, count each part separately and multiply. The poker example used this: choosing kings AND choosing non-kings are separate tasks.

Part A ways to pick kings × Part B ways to pick others =
\( |E| \)
Count each part, then multiply

Common Mistakes

✕ Wrong formula choice
Using \( P(n,r) \) when order doesn't matter, or \( C(n,r) \) when it does. Always ask: "Does rearranging the same items give a different outcome?"
✕ Forgetting to divide
Computing \( |E| \) but forgetting to divide by \( |S| \). The count alone is not a probability: it must be a fraction between 0 and 1.
✕ Overcounting
Counting the same outcome multiple times. This often happens when you mix ordered and unordered methods in the numerator and denominator.

Quick Reference Summary

Concept Formula When to Use
Factorial \( n! \) Arranging all \( n \) items
Permutation \( \frac{n!}{(n-r)!} \) Ordered selection of \( r \) from \( n \)
Combination \( \frac{n!}{r!(n-r)!} \) Unordered selection of \( r \) from \( n \)
Probability \( \frac{|E|}{|S|} \) Equally likely outcomes
Multi-part count \( |A| \times |B| \times \cdots \) Independent constraints

Question 1 of 5

A lock has a 4-digit code where each digit is from 0 to 9 and digits may repeat. How many possible codes are there?

Question 2 of 5

How many ways can you choose a president, vice president, and treasurer from a group of 8 people?

Question 3 of 5

A bag contains 6 red and 4 blue marbles. You draw 3 marbles at random. What is the probability that all 3 are red?

Question 4 of 5

What is the value of \( \dfrac{P(n,r)}{C(n,r)} \)?

Question 5 of 5

A pizza shop offers 12 toppings. You can choose exactly 3. How many different pizzas can you make?