Probability BasicsTopic #10 of 33

Counting Principles

Permutations, combinations, factorial notation, and the multiplication principle.

Overview

Counting principles provide methods to determine the number of ways events can occur, which is essential for calculating probabilities.

Fundamental Counting Principle

If there are n1n_1 ways to do task 1 AND n2n_2 ways to do task 2, then:

Total ways=n1×n2××nk\text{Total ways} = n_1 \times n_2 \times \cdots \times n_k

Example

Choosing an outfit: 4 shirts and 3 pants

Total outfits=4×3=12\text{Total outfits} = 4 \times 3 = 12

Factorial

The factorial of nn (n!n!) is the product of all positive integers up to nn:

n!=n×(n1)×(n2)××2×1n! = n \times (n-1) \times (n-2) \times \cdots \times 2 \times 1

Special cases:

0!=1,1!=10! = 1, \quad 1! = 1
nnn!n!
01
11
22
36
424
5120
6720
103,628,800

Permutations

Arrangements where order matters.

All Objects

Arranging nn distinct objects:

P(n)=n!P(n) = n!

Subset of Objects

Arranging rr objects from nn distinct objects:

P(n,r)=n!(nr)!P(n,r) = \frac{n!}{(n-r)!}

With Repetition

Arranging nn objects where some are identical:

n!n1!×n2!××nk!\frac{n!}{n_1! \times n_2! \times \cdots \times n_k!}

Where n1,n2,,nkn_1, n_2, \ldots, n_k are counts of each identical type.

Combinations

Selections where order doesn't matter.

Formula

Choosing rr objects from nn distinct objects:

C(n,r)=n!r!(nr)!=P(n,r)r!C(n,r) = \frac{n!}{r!(n-r)!} = \frac{P(n,r)}{r!}

Also written as:

(nr)=n!r!(nr)!\binom{n}{r} = \frac{n!}{r!(n-r)!}

Properties

C(n,0)=1C(n,0) = 1 C(n,n)=1C(n,n) = 1 C(n,r)=C(n,nr)C(n,r) = C(n, n-r) C(n,r)=C(n1,r1)+C(n1,r)(Pascal’s Triangle)C(n,r) = C(n-1,r-1) + C(n-1,r) \quad \text{(Pascal's Triangle)}

Comparison

AspectPermutationCombination
OrderMattersDoesn't matter
Formulan!/(nr)!n!/(n-r)!n!/[r!(nr)!]n!/[r!(n-r)!]
NotationP(n,r)P(n,r) or nPr_nP_rC(n,r)C(n,r) or (nr)\binom{n}{r}
ExampleArranging booksSelecting committee

When to Use Which

ScenarioUse
Passwords, arrangementsPermutation
Committees, teamsCombination
Rankings, placementsPermutation
Lottery numbersCombination
Seat assignmentsPermutation
Card handsCombination

Examples

Example 1: Permutation (All Objects)

Arrange 5 books on a shelf:

P(5)=5!=120 waysP(5) = 5! = 120 \text{ ways}

Example 2: Permutation (Subset)

Select president, VP, secretary from 10 candidates:

P(10,3)=10!(103)!=10!7!=10×9×8=720 waysP(10,3) = \frac{10!}{(10-3)!} = \frac{10!}{7!} = 10 \times 9 \times 8 = 720 \text{ ways}

Example 3: Permutation (Repetition)

Arrange letters in "MISSISSIPPI":

11 letters: 1M, 4I, 4S, 2P

Ways=11!1!×4!×4!×2!=34,650\text{Ways} = \frac{11!}{1! \times 4! \times 4! \times 2!} = 34{,}650

Example 4: Combination

Choose 3 students from 10 for a committee:

C(10,3)=10!3!×7!=120 waysC(10,3) = \frac{10!}{3! \times 7!} = 120 \text{ ways}

Example 5: Lottery

Pick 6 numbers from 49 (order doesn't matter):

C(49,6)=49!6!×43!=13,983,816 combinationsC(49,6) = \frac{49!}{6! \times 43!} = 13{,}983{,}816 \text{ combinations} P(winning)=113,983,8160.0000000715P(\text{winning}) = \frac{1}{13{,}983{,}816} \approx 0.0000000715

Example 6: Poker Hands

5 cards from 52:

Total hands: C(52,5)=2,598,960\text{Total hands: } C(52,5) = 2{,}598{,}960

Flush (5 same suit):

4×C(13,5)=5,1484 \times C(13,5) = 5{,}148 P(flush)=5,1482,598,9600.00198P(\text{flush}) = \frac{5{,}148}{2{,}598{,}960} \approx 0.00198

Combined Problems

Cards Example

P(exactly 2 aces in 5-card hand)P(\text{exactly 2 aces in 5-card hand}):

C(4,2)×C(48,3)C(52,5)=6×17,2962,598,960=103,7762,598,9600.040\frac{C(4,2) \times C(48,3)}{C(52,5)} = \frac{6 \times 17{,}296}{2{,}598{,}960} = \frac{103{,}776}{2{,}598{,}960} \approx 0.040