Table of Contents11 sections
Foundations of Probability
Probability quantifies the likelihood of an event on a scale from (impossible) to (certain). When all outcomes in a sample space are equally likely:
Three Core Probability Rules
- Complement Rule: . Often it is much easier to compute the probability that something doesn’t happen and subtract from .
- Addition Rule: (Subtract so overlapping outcomes are not double-counted.)
- Multiplication Rule:
- Independent events:
- Dependent events:
Counting Principles: Permutations vs. Combinations
To compute probabilities of complex events, we need fast ways to count outcomes without listing every possibility. The Fundamental Counting Principle says that if step 1 has choices and step 2 has choices, together there are choices.
Factorials () count how many ways distinct items can be ordered. When choosing items from distinct items without replacement:
| Method | Order Matters? | Formula | Example Use Case |
|---|---|---|---|
| Permutation () | Yes | 1st, 2nd, 3rd place medals; PINs | |
| Combination () | No | Poker hands, committees, lottery |
Notice the exact relationship: . We divide by because each group of chosen items can be rearranged in identical ways when order does not matter.
Choosing 2 items from {A, B, C}: Permutations give 6 ordered pairs; Combinations divide by 2! = 2 to give 3 sets.
Try computing factorials, , and instantly in the Permutations & Combinations Calculator.
Conditional Probability & Bayes’ Theorem
Conditional probability is the probability of event occurring given that event has already occurred:
Rearranging this identity gives Bayes’ Theorem, the mathematical engine behind medical diagnostics, spam filters, and Bayesian machine learning:
Progressive Worked Examples
Example 1 (Foundational): Choosing a Committee vs. Officers
From club members, how many ways can you:
- Choose a President, VP, and Secretary (order matters)?
- Choose a -person committee (order ignored)?
Example 2 (Intermediate): “At Least One” via Complement Rule
A fair coin is flipped times. What is the probability of getting at least one Heads?
- The opposite (complement) of “at least one Heads” is “all Tails”.
- .
- Subtract from :
Example 3 (Applied): Drawing Cards Without Replacement
What is the probability of drawing Aces in a row from a standard -card deck without replacement?
- First card is an Ace: .
- Given the first was an Ace, Aces remain out of cards: .
- Multiply:
Common Misconceptions
- The Gambler’s Fallacy: After flipping Heads in a row, a fair coin still has on the next flip—independent trials have no memory.
- Using when order doesn’t matter: Always ask whether swapping two selected items produces a genuinely different result.
Quick Summary
- Complement: .
- Permutations (): order matters; Combinations (): order ignored.
- Conditional probability narrows the sample space to : .
Practice Problems
1. How many 5-card poker hands can be dealt from a 52-card deck?
Answer: 2,598,960
Order in a hand doesn’t matter, so ₅₂C₅ = (52×51×50×49×48) / 5! = 2,598,960.
2. Two fair 6-sided dice are rolled. What is the probability their sum is 7?
Answer: 1/6
Out of 36 total outcomes, 6 sum to 7: (1,6), (2,5), (3,4), (4,3), (5,2), (6,1). P = 6/36 = 1/6.
3. How many distinct 4-letter codes can be made from {A, B, C, D, E, F} without repetition?
Answer: 360
Order matters in a code, so ₆P₄ = 6 × 5 × 4 × 3 = 360.
Frequently Asked Questions
How do I decide between a permutation (nPr) and a combination (nCr)?
Ask: 'Does rearranging the same chosen items create a different outcome?' If yes (rankings, PIN codes, passwords), use Permutations. If no (committees, lottery tickets, pizza toppings), use Combinations.
Why does 0! equal 1?
0! = 1 because there is exactly 1 way to arrange zero objects (the empty arrangement), and it keeps formulas like nCn = n! / (n! · 0!) = 1 consistent.
What is the difference between independent and mutually exclusive events?
Mutually exclusive events cannot happen together (P(A and B) = 0). Independent events can happen together, and knowing A occurred does not change the probability of B: P(A and B) = P(A) · P(B).
What does Bayes' Theorem compute?
Bayes' Theorem updates the probability of a hypothesis A after observing new evidence B: P(A|B) = P(B|A)P(A) / P(B).