Skip to main content

Foundations of Probability

Probability quantifies the likelihood of an event on a scale from 00 (impossible) to 11 (certain). When all outcomes in a sample space SS are equally likely:

P(E)=Number of favorable outcomesTotal number of possible outcomesP(E) = \frac{\text{Number of favorable outcomes}}{\text{Total number of possible outcomes}}

Three Core Probability Rules

  1. Complement Rule: P(not A)=1−P(A)P(\text{not } A) = 1 - P(A). Often it is much easier to compute the probability that something doesn’t happen and subtract from 11.
  2. Addition Rule: P(A or B)=P(A)+P(B)−P(A and B)P(A \text{ or } B) = P(A) + P(B) - P(A \text{ and } B) (Subtract P(A and B)P(A \text{ and } B) so overlapping outcomes are not double-counted.)
  3. Multiplication Rule:
    • Independent events: P(A and B)=P(A)⋅P(B)P(A \text{ and } B) = P(A) \cdot P(B)
    • Dependent events: P(A and B)=P(A)⋅P(B∣A)P(A \text{ and } B) = P(A) \cdot P(B \mid A)

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 mm choices and step 2 has nn choices, together there are m×nm \times n choices.

Factorials (n!=n×(n−1)×⋯×1n! = n \times (n-1) \times \dots \times 1) count how many ways nn distinct items can be ordered. When choosing rr items from nn distinct items without replacement:

MethodOrder Matters?FormulaExample Use Case
Permutation (nPrnPr)YesnPr=n!(n−r)!{}_nP_r = \dfrac{n!}{(n - r)!}1st, 2nd, 3rd place medals; PINs
Combination (nCrnCr)NonCr=n!r!(n−r)!{}_nC_r = \dfrac{n!}{r!(n - r)!}Poker hands, committees, lottery

Notice the exact relationship: nCr=nPrr!{}_nC_r = \frac{{}_nP_r}{r!}. We divide by r!r! because each group of rr chosen items can be rearranged in r!r! identical ways when order does not matter.

Try computing factorials, nPrnPr, and nCrnCr instantly in the Permutations & Combinations Calculator.

Conditional Probability & Bayes’ Theorem

Conditional probability P(A∣B)P(A \mid B) is the probability of event AA occurring given that event BB has already occurred:

P(A∣B)=P(A and B)P(B)(P(B)>0)P(A \mid B) = \frac{P(A \text{ and } B)}{P(B)} \qquad (P(B) > 0)

Rearranging this identity gives Bayes’ Theorem, the mathematical engine behind medical diagnostics, spam filters, and Bayesian machine learning:

P(A∣B)=P(B∣A)⋅P(A)P(B)P(A \mid B) = \frac{P(B \mid A) \cdot P(A)}{P(B)}

Progressive Worked Examples

Example 1 (Foundational): Choosing a Committee vs. Officers

From 1010 club members, how many ways can you:

  1. Choose a President, VP, and Secretary (order matters)? 10P3=10!7!=10×9×8=720{}_{10}P_3 = \frac{10!}{7!} = 10 \times 9 \times 8 = \mathbf{720}
  2. Choose a 33-person committee (order ignored)? 10C3=7203!=7206=120{}_{10}C_3 = \frac{720}{3!} = \frac{720}{6} = \mathbf{120}

Example 2 (Intermediate): “At Least One” via Complement Rule

A fair coin is flipped 44 times. What is the probability of getting at least one Heads?

  1. The opposite (complement) of “at least one Heads” is “all 44 Tails”.
  2. P(all 4 Tails)=(12)4=116P(\text{all 4 Tails}) = \left(\frac{1}{2}\right)^4 = \frac{1}{16}.
  3. Subtract from 11: P(at least 1 Heads)=1−116=1516=93.75%P(\text{at least 1 Heads}) = 1 - \frac{1}{16} = \mathbf{\frac{15}{16} = 93.75\%}

Example 3 (Applied): Drawing Cards Without Replacement

What is the probability of drawing 22 Aces in a row from a standard 5252-card deck without replacement?

  1. First card is an Ace: 452=113\frac{4}{52} = \frac{1}{13}.
  2. Given the first was an Ace, 33 Aces remain out of 5151 cards: 351=117\frac{3}{51} = \frac{1}{17}.
  3. Multiply: P(2 Aces)=113×117=1221≈0.45%P(\text{2 Aces}) = \frac{1}{13} \times \frac{1}{17} = \mathbf{\frac{1}{221} \approx 0.45\%}

Common Misconceptions

  • The Gambler’s Fallacy: After flipping 55 Heads in a row, a fair coin still has P(Tails)=0.50P(\text{Tails}) = 0.50 on the next flip—independent trials have no memory.
  • Using nPrnPr when order doesn’t matter: Always ask whether swapping two selected items produces a genuinely different result.

Quick Summary

  • Complement: P(not A)=1−P(A)P(\text{not } A) = 1 - P(A).
  • Permutations (nPrnPr): order matters; Combinations (nCrnCr): order ignored.
  • Conditional probability narrows the sample space to BB: P(A∣B)=P(A∩B)P(B)P(A \mid B) = \frac{P(A \cap B)}{P(B)}.

Practice Problems

Common Questions

Frequently Asked Questions