1. Home
  2. Explore
  3. Mathematics
  4. Intuitive Probability Mastery

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Intuitive Probability Mastery

Probability Study Notes

Introduction: The Core Idea

Probability is fundamentally about events, not individual outcomes. An event is a set of outcomes from the sample space. The sample space (SSS) is the set of all possible outcomes of an experiment. For example, flipping two coins has a sample space of {HH,HT,TH,TT}\{HH, HT, TH, TT\}{HH,HT,TH,TT}. An event like "at least one head" is the set {HH,HT,TH}\{HH, HT, TH\}{HH,HT,TH}.

The probability of an event EEE is:

P(E)=number of outcomes in Etotal number of outcomes in SP(E) = \frac{\text{number of outcomes in } E}{\text{total number of outcomes in } S}P(E)=total number of outcomes in Snumber of outcomes in E​

Key insight: Most mistakes come from thinking probability is about single outcomes. It is about collections of outcomes — sets.


The Three Axioms of Probability

All probability calculations rest on three fundamental axioms:

  1. Non-negativity: P(E)≥0P(E) \ge 0P(E)≥0 for any event EEE.

  2. Normalization: P(S)=1P(S) = 1P(S)=1 — the entire sample space has probability 1.

  3. Additivity: If events AAA and BBB are disjoint (cannot happen together), then P(A∪B)=P(A)+P(B)P(A \cup B) = P(A) + P(B)P(A∪B)=P(A)+P(B).

Example with a die roll:

  • Event AAA: rolling less than 3 → outcomes {1,2}\{1,2\}{1,2}, P(A)=26P(A) = \frac{2}{6}P(A)=62​.

  • Event BBB: rolling a 5 → outcome {5}\{5\}{5}, P(B)=16P(B) = \frac{1}{6}P(B)=61​.

  • AAA and BBB are disjoint, so P(A∪B)=26+16=36=12P(A \cup B) = \frac{2}{6} + \frac{1}{6} = \frac{3}{6} = \frac{1}{2}P(A∪B)=62​+61​=63​=21​.


Set Operations and the Addition Rule

Complement

The complement of event AAA (written AcA^cAc or "not AAA") contains all outcomes not in AAA. The complement rule:

P(Ac)=1−P(A)P(A^c) = 1 - P(A)P(Ac)=1−P(A)

Example: Probability of not drawing a king from a standard 52‑card deck: P(king)=452P(\text{king}) = \frac{4}{52}P(king)=524​, so P(not king)=1−452=4852P(\text{not king}) = 1 - \frac{4}{52} = \frac{48}{52}P(not king)=1−524​=5248​.

Intersection ("and")

The intersection A∩BA \cap BA∩B contains outcomes that are in both AAA and BBB.

Example: King and heart → only the King of Hearts: P(king∩heart)=152P(\text{king} \cap \text{heart}) = \frac{1}{52}P(king∩heart)=521​.

Union ("or") and the Addition Rule

For any two events AAA and BBB:

P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B)P(A∪B)=P(A)+P(B)−P(A∩B)

This avoids double‑counting the overlap.

Example: Probability of drawing a king or a heart:

  • P(king)=452P(\text{king}) = \frac{4}{52}P(king)=524​, P(heart)=1352P(\text{heart}) = \frac{13}{52}P(heart)=5213​, P(king∩heart)=152P(\text{king} \cap \text{heart}) = \frac{1}{52}P(king∩heart)=521​.

  • P(king∪heart)=452+1352−152=1652P(\text{king} \cup \text{heart}) = \frac{4}{52} + \frac{13}{52} - \frac{1}{52} = \frac{16}{52}P(king∪heart)=524​+5213​−521​=5216​.

Special case: If AAA and BBB are disjoint, P(A∩B)=0P(A \cap B) = 0P(A∩B)=0, so P(A∪B)=P(A)+P(B)P(A \cup B) = P(A) + P(B)P(A∪B)=P(A)+P(B).

More complex example: Red card or face card:

  • Red cards: 26 (hearts + diamonds). Face cards: 12 (jacks, queens, kings × 4 suits).

  • Overlap: red face cards = 6 (hearts: J,Q,K; diamonds: J,Q,K).

  • P(red∪face)=2652+1252−652=3252≈61.5%P(\text{red} \cup \text{face}) = \frac{26}{52} + \frac{12}{52} - \frac{6}{52} = \frac{32}{52} \approx 61.5\%P(red∪face)=5226​+5212​−526​=5232​≈61.5%.

Complement trick for "at least one": For three coin flips, P(at least one head)=1−P(all tails)=1−(12)3=1−18=78P(\text{at least one head}) = 1 - P(\text{all tails}) = 1 - \left(\frac{1}{2}\right)^3 = 1 - \frac{1}{8} = \frac{7}{8}P(at least one head)=1−P(all tails)=1−(21​)3=1−81​=87​.


Counting: Permutations and Combinations

When the sample space is huge, we need systematic counting. Two key questions:

  1. Can items repeat?

  2. Does order matter?

Factorial Notation

n!=n×(n−1)×⋯×1n! = n \times (n-1) \times \cdots \times 1n!=n×(n−1)×⋯×1. Example: 4!=4×3×2×1=244! = 4 \times 3 \times 2 \times 1 = 244!=4×3×2×1=24.

When Repetition Is Allowed (and Order Matters)

Simply multiply: nkn^knk, where nnn is number of choices each time and kkk is number of slots.

Example: 4‑digit PIN (digits 0‑9, repetition allowed): 104=10 00010^4 = 10\,000104=10000 possibilities.

When Repetition Is Not Allowed

Now we must decide if order matters.

Permutations (Order Matters)

The number of ways to choose kkk items from nnn without repetition and with ordering:

P(n,k)=n×(n−1)×⋯×(n−k+1)P(n,k) = n \times (n-1) \times \cdots \times (n-k+1)P(n,k)=n×(n−1)×⋯×(n−k+1)

Or equivalently, P(n,k)=n!(n−k)!P(n,k) = \frac{n!}{(n-k)!}P(n,k)=(n−k)!n!​.

Example: Choosing a president, VP, and secretary from 10 people: 10×9×8=72010 \times 9 \times 8 = 72010×9×8=720 ways.

Combinations (Order Does Not Matter)

The number of ways to choose kkk items from nnn without repetition and ignoring order:

C(n,k)=(nk)=n!k!(n−k)!C(n,k) = \binom{n}{k} = \frac{n!}{k!(n-k)!}C(n,k)=(kn​)=k!(n−k)!n!​

Think: permutations divided by the number of ways to reorder the chosen items (k!k!k!).

Example: Choosing a 3‑person committee from 10 people: (103)=10!3!7!=10×9×83×2×1=120\binom{10}{3} = \frac{10!}{3!7!} = \frac{10 \times 9 \times 8}{3 \times 2 \times 1} = 120(310​)=3!7!10!​=3×2×110×9×8​=120 committees.

Decision Tree for Counting Problems

  • Can I repeat?

    • Yes → nkn^knk (order matters by default)

    • No → Does order matter?

      • Yes → Permutation (multiply down kkk times)

      • No → Combination (permutation divided by k!k!k!)

Quick test: A password must use 4 different digits. How many passwords?

  • No repetition, order matters → permutation: 10×9×8×7=504010 \times 9 \times 8 \times 7 = 504010×9×8×7=5040.


Conditional Probability

When we gain information, the sample space shrinks. The probability of AAA given BBB (written P(A∣B)P(A \mid B)P(A∣B)) is:

P(A∣B)=P(A∩B)P(B)P(A \mid B) = \frac{P(A \cap B)}{P(B)}P(A∣B)=P(B)P(A∩B)​

Intuition: "Out of all the times BBB happens, how often does AAA also happen?" We restrict attention to the part of the sample space where BBB occurs.

Example: Draw a marble from a bag with 5 red, 3 blue, 2 green. First marble is blue. What's the probability the second is red (without replacement)?

  • After first draw, 9 marbles left, all 5 red remain.

  • P(second red∣first blue)=59P(\text{second red} \mid \text{first blue}) = \frac{5}{9}P(second red∣first blue)=95​.

  • Using formula: P(first blue and second red)=310×59=1590=16P(\text{first blue and second red}) = \frac{3}{10} \times \frac{5}{9} = \frac{15}{90} = \frac{1}{6}P(first blue and second red)=103​×95​=9015​=61​; P(first blue)=310P(\text{first blue}) = \frac{3}{10}P(first blue)=103​; dividing gives 1/63/10=59\frac{1/6}{3/10} = \frac{5}{9}3/101/6​=95​.

Example: Draw a card and see it is a king. What's the probability it is the king of hearts?

  • New universe: just the 4 kings. Only 1 is the king of hearts → P=14P = \frac{1}{4}P=41​.

  • Formula: P(king of hearts∣king)=1/524/52=14P(\text{king of hearts} \mid \text{king}) = \frac{1/52}{4/52} = \frac{1}{4}P(king of hearts∣king)=4/521/52​=41​.

Two‑child problem: A family has two children. At least one is a girl. Probability both are girls?

  • Sample space: {BB,BG,GB,GG}\{BB, BG, GB, GG\}{BB,BG,GB,GG}.

  • Given at least one girl: {BG,GB,GG}\{BG, GB, GG\}{BG,GB,GG} (3 outcomes). Only {GG}\{GG\}{GG} has both girls → P=13P = \frac{1}{3}P=31​.


Joint and Marginal Probabilities

When tracking two events simultaneously, we use a joint probability table.

Example: Midterm and final results for 100 students:


Pass Final

Fail Final

Total

Pass Midterm

50

10

60

Fail Midterm

5

35

40

Total

55

45

100

  • Joint probabilities (cells): P(pass both)=0.50P(\text{pass both}) = 0.50P(pass both)=0.50, P(pass midterm, fail final)=0.10P(\text{pass midterm, fail final}) = 0.10P(pass midterm, fail final)=0.10, etc.

  • Marginal probabilities (totals): P(pass midterm)=0.60P(\text{pass midterm}) = 0.60P(pass midterm)=0.60, P(pass final)=0.55P(\text{pass final}) = 0.55P(pass final)=0.55.

Marginals are obtained by summing over the other event.

Independence

Two events AAA and BBB are independent if and only if:

P(A∩B)=P(A)×P(B)P(A \cap B) = P(A) \times P(B)P(A∩B)=P(A)×P(B)

Equivalently, P(A∣B)=P(A)P(A \mid B) = P(A)P(A∣B)=P(A) and P(B∣A)=P(B)P(B \mid A) = P(B)P(B∣A)=P(B). Knowing one does not change the probability of the other.

Check independence using joint table: For the exam data,

  • P(pass midterm)=0.60P(\text{pass midterm}) = 0.60P(pass midterm)=0.60, P(pass final)=0.55P(\text{pass final}) = 0.55P(pass final)=0.55.

  • If independent, P(pass both)P(\text{pass both})P(pass both) would be 0.60×0.55=0.330.60 \times 0.55 = 0.330.60×0.55=0.33, but actual is 0.500.500.50 → dependent.

Independent example: Flip a coin and roll a die.

  • P(heads)=1/2P(\text{heads}) = 1/2P(heads)=1/2, P(six)=1/6P(\text{six}) = 1/6P(six)=1/6, P(heads and six)=1/12=(1/2)×(1/6)P(\text{heads and six}) = 1/12 = (1/2) \times (1/6)P(heads and six)=1/12=(1/2)×(1/6) → independent.

False independence: Wearing a jacket and having a cold — both are influenced by season, so they are dependent even if not directly causal.

Key: Before multiplying probabilities for "and", always check independence. If dependent, use conditional probability.


Random Variables and Expected Value

A random variable is a function that assigns a number to each outcome in the sample space. It translates random events into numerical quantities.

Example: Flip two coins, win 5 per head, lose 2 per tail. Let XXX be total winnings:

  • HHHHHH: 101010

  • HTHTHT, THTHTH: 333

  • TTTTTT: −4-4−4

P(X=3)=2/4=0.5P(X=3) = 2/4 = 0.5P(X=3)=2/4=0.5, P(money)=P(X>0)=3/4=0.75P(\text{money}) = P(X>0) = 3/4 = 0.75P(money)=P(X>0)=3/4=0.75.

Expected Value

The expected value E[X]E[X]E[X] is the long‑run average (weighted average of all possible values):

E[X]=∑x⋅P(X=x)E[X] = \sum x \cdot P(X=x)E[X]=∑x⋅P(X=x)

Example: Die game — roll a 6 win 12, roll 4 or 5 win 3, roll 1–3 lose 6.

  • P(6)=1/6P(6) = 1/6P(6)=1/6, P(4 or 5)=1/3P(4\text{ or }5) = 1/3P(4 or 5)=1/3, P(1–3)=1/2P(1\text{–}3) = 1/2P(1–3)=1/2.

  • E[X]=12⋅16+3⋅13+(−6)⋅12=2+1−3=0E[X] = 12 \cdot \frac{1}{6} + 3 \cdot \frac{1}{3} + (-6) \cdot \frac{1}{2} = 2 + 1 - 3 = 0E[X]=12⋅61​+3⋅31​+(−6)⋅21​=2+1−3=0.

This is a fair game (expected value zero). Casinos design games with negative expected value for players.

Linearity of Expectation

For any two random variables XXX and YYY (even dependent ones):

E[X+Y]=E[X]+E[Y]E[X+Y] = E[X] + E[Y]E[X+Y]=E[X]+E[Y]

Example: Roll a die. Let XXX = winnings ( 4 for 1–3, 8 for 4–6). Let YYY = number rolled.

  • E[X]=4⋅12+8⋅12=6E[X] = 4 \cdot \frac{1}{2} + 8 \cdot \frac{1}{2} = 6E[X]=4⋅21​+8⋅21​=6.

  • E[Y]=(1+2+3+4+5+6)/6=3.5E[Y] = (1+2+3+4+5+6)/6 = 3.5E[Y]=(1+2+3+4+5+6)/6=3.5.

  • E[X+Y]=6+3.5=9.5E[X+Y] = 6 + 3.5 = 9.5E[X+Y]=6+3.5=9.5. The dependence between XXX and YYY doesn't matter for addition.

Important: Linearity holds for addition only. For multiplication, independence is required.


Continuous Distributions

Continuous random variables take values in an interval (e.g., height, time). Probabilities are defined over intervals, not exact points.

Probability Density Function (PDF)

For continuous variables, we use a PDF f(x)f(x)f(x) such that:

  • Total area under f(x)f(x)f(x) equals 1.

  • P(a≤X≤b)=∫abf(x) dxP(a \le X \le b) = \int_a^b f(x) \,dxP(a≤X≤b)=∫ab​f(x)dx (area under the curve between aaa and bbb).

  • P(X=c)=0P(X = c) = 0P(X=c)=0 for any exact value ccc.

Uniform distribution example: A bread slicer produces lengths uniformly between 14 and 18 inches.

  • The PDF is a rectangle of width 4 and height 1/41/41/4 (since total area = 4×1/4=14 \times 1/4 = 14×1/4=1).

  • P(length between 15 and 17)=area=(17−15)×1/4=2×1/4=0.5P(\text{length between 15 and 17}) = \text{area} = (17-15) \times 1/4 = 2 \times 1/4 = 0.5P(length between 15 and 17)=area=(17−15)×1/4=2×1/4=0.5.

Discrete vs. Continuous

  • Discrete: Use probability mass function (PMF) — P(X=x)P(X=x)P(X=x) can be >0. Sum over values.

  • Continuous: Use PDF — P(X=x)=0P(X=x)=0P(X=x)=0 for exact values. Integrate over intervals.

Integration is the continuous analog of summation.


Law of Total Probability

When an event can happen through multiple distinct scenarios, break the problem into mutually exclusive paths.

P(B)=∑iP(Ai)⋅P(B∣Ai)P(B) = \sum_{i} P(A_i) \cdot P(B \mid A_i)P(B)=∑i​P(Ai​)⋅P(B∣Ai​)

where the AiA_iAi​ form a partition of the sample space.

Example: Two bags of marbles.

  • Bag A: 5 red, 5 blue. Bag B: 1 red, 7 blue.

  • Choose bag with P(A)=0.70P(A)=0.70P(A)=0.70, P(B)=0.30P(B)=0.30P(B)=0.30.

  • What is P(blue)P(\text{blue})P(blue)?

    • Path 1: choose A then blue: 0.70×0.50=0.350.70 \times 0.50 = 0.350.70×0.50=0.35.

    • Path 2: choose B then blue: 0.30×(7/8)=0.30×0.875=0.26250.30 \times (7/8) = 0.30 \times 0.875 = 0.26250.30×(7/8)=0.30×0.875=0.2625.

    • Total P(blue)=0.35+0.2625=0.6125P(\text{blue}) = 0.35 + 0.2625 = 0.6125P(blue)=0.35+0.2625=0.6125.


Bayes' Rule

Bayes' Rule tells us how to update our beliefs given evidence:

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

Intuition: The probability of AAA after seeing BBB equals (likelihood × prior) / evidence.

Classic Disease Test Example

  • Disease prevalence: 1% (P(disease)=0.01P(\text{disease}) = 0.01P(disease)=0.01).

  • Test accuracy: 99% sensitive (if disease, positive 99% of the time) and 99% specific (if no disease, negative 99% of the time).

  • You test positive. What is P(disease∣positive)P(\text{disease} \mid \text{positive})P(disease∣positive)?

Using numbers (1,000 people):

  • 10 have disease; 9.9 test positive (≈10 true positives).

  • 990 do not have disease; 1% false positive = 9.9 false positives.

  • Total positives ≈ 20; only 10 are true.

  • P(disease∣positive)≈10/20=0.50P(\text{disease} \mid \text{positive}) \approx 10/20 = 0.50P(disease∣positive)≈10/20=0.50 (not 99%).

Formula:

P(disease∣pos)=0.99×0.010.99×0.01+0.01×0.99=0.00990.0099+0.0099=0.5P(\text{disease} \mid \text{pos}) = \frac{0.99 \times 0.01}{0.99 \times 0.01 + 0.01 \times 0.99} = \frac{0.0099}{0.0099+0.0099} = 0.5P(disease∣pos)=0.99×0.01+0.01×0.990.99×0.01​=0.0099+0.00990.0099​=0.5

Bag Example (Updated)

We had P(A)=0.70P(A)=0.70P(A)=0.70, P(blue∣A)=0.50P(\text{blue} \mid A)=0.50P(blue∣A)=0.50, P(blue)=0.6125P(\text{blue})=0.6125P(blue)=0.6125. If we draw a blue marble, what's P(A∣blue)P(A \mid \text{blue})P(A∣blue)?

P(A∣blue)=P(blue∣A)⋅P(A)P(blue)=0.50×0.700.6125≈0.571P(A \mid \text{blue}) = \frac{P(\text{blue} \mid A) \cdot P(A)}{P(\text{blue})} = \frac{0.50 \times 0.70}{0.6125} \approx 0.571P(A∣blue)=P(blue)P(blue∣A)⋅P(A)​=0.61250.50×0.70​≈0.571

The probability dropped from 0.70 to 0.57 because blue is stronger evidence for bag B.


Recursive Thinking in Probability

For problems with an infinite number of possible sequences, recursion provides an elegant algebraic solution.

Example: Expected number of coin flips to get first heads. Let EEE be the expected number of flips.

  • First flip: always costs 1.

  • With probability 1/21/21/2, we get heads and stop; with probability 1/21/21/2, we get tails and need EEE more flips.

    E=1+12⋅0+12⋅E  ⟹  E=1+E2  ⟹  E2=1  ⟹  E=2.E = 1 + \frac{1}{2} \cdot 0 + \frac{1}{2} \cdot E \implies E = 1 + \frac{E}{2} \implies \frac{E}{2} = 1 \implies E = 2.E=1+21​⋅0+21​⋅E⟹E=1+2E​⟹2E​=1⟹E=2.

Two heads in a row: Let EEE = expected flips from start; EHE_HEH​ = expected additional flips after one head.

  • From start: E=1+12E+12EHE = 1 + \frac{1}{2}E + \frac{1}{2}E_HE=1+21​E+21​EH​.

  • From one head: EH=1+12⋅0+12⋅EE_H = 1 + \frac{1}{2} \cdot 0 + \frac{1}{2} \cdot EEH​=1+21​⋅0+21​⋅E (if tails, back to start). Solve: EH=1+E2E_H = 1 + \frac{E}{2}EH​=1+2E​, substitute: E=1+E2+12(1+E2)=1+E2+12+E4=32+3E4E = 1 + \frac{E}{2} + \frac{1}{2}\left(1 + \frac{E}{2}\right) = 1 + \frac{E}{2} + \frac{1}{2} + \frac{E}{4} = \frac{3}{2} + \frac{3E}{4}E=1+2E​+21​(1+2E​)=1+2E​+21​+4E​=23​+43E​. Then E−3E4=32  ⟹  E4=32  ⟹  E=6E - \frac{3E}{4} = \frac{3}{2} \implies \frac{E}{4} = \frac{3}{2} \implies E = 6E−43E​=23​⟹4E​=23​⟹E=6.

Recursion simplifies infinite sums into solvable equations.


This comprehensive framework — from events and axioms to Bayes' rule and recursion — provides the foundation for understanding probability. The key to mastery is repeated practice with problems that challenge the intuition.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent