Step 2 of 6 in Statistics & Probability
Probability Theory
Sample spaces, conditioning, and Bayes' rule. Citation needed
The whole, before the parts
Probability is bookkeeping for uncertainty: write down everything that could happen, assign each outcome a share of certainty that adds up to one, and from then on every question is answered by adding up shares. The single idea that carries the subject is conditioning — recomputing those shares when something becomes known — and nearly every famous blunder in reasoning about chance is a conditioning done backwards or not at all. Citation needed
Terminology and core concepts
-
Sample spaces and events
The sample space is the set of all possible outcomes of an experiment, and an event is any subset of it — the event "happens" when the actual outcome falls inside the subset. Citation needed
- What is the sample space for two coin flips?
- {HH, HT, TH, TT} Citation needed
- As a subset, what is the event "at least one head"?
- {HH, HT, TH} Citation needed
- When has an event occurred?
- when the outcome lies in its subset Citation needed
- Why must the sample space be written before computing anything?
- probabilities are shares of its outcomes Citation needed
-
The rules of probability
A probability assigns each event a number between 0 and 1; the whole sample space gets 1, and the probability of either of two events that cannot co-occur is the sum of their probabilities. Citation needed
- What is the probability of the whole sample space?
- 1 Citation needed
- When may you add two events' probabilities directly?
- when they cannot both occur Citation needed
- What is P(not A)?
- 1 − P(A) Citation needed
- What does P(A or B) subtract from P(A) + P(B)?
- P(A and B) Citation needed
- Why subtract P(A and B) when calculating P(A or B)?
- the overlap was counted twice Citation needed
- For equally likely outcomes, what is P(A)?
- outcomes in A divided by all outcomes Citation needed
-
Counting the outcomes
When outcomes are equally likely, probability reduces to counting, and the counting tools are the multiplication principle, permutations for ordered picks, and combinations for unordered ones. Citation needed
- How many outcomes do three choices with 4, 5, 2 options give?
- 40 Citation needed
- When do you use a combination rather than a permutation?
- when the order of the picks does not matter Citation needed
- How many 2-card hands come from 5 cards?
- 10 Citation needed
- What trick computes "at least one" probabilities fastest?
- 1 minus the probability of none Citation needed
-
Conditional probability
P(A | B), the probability of A given B, is the share of B's probability that also lies in A — conditioning shrinks the sample space to B and renormalizes. Citation needed
- What is the formula for P(A | B)?
- P(A and B) / P(B) Citation needed
- What does conditioning on B do to the sample space?
- shrinks it to B Citation needed
- Given two flips landed differently, what is P(first was heads)?
- 1/2 Citation needed
- Are P(A | B) and P(B | A) generally equal?
- no Citation needed
- What everyday error treats P(A | B) as P(B | A)?
- confusing P(evidence | innocent) with P(innocent | evidence) Citation needed
-
Independence
Events are independent when learning one does not change the probability of the other — P(A | B) = P(A) — and only then does P(A and B) factor into P(A)P(B). Citation needed
- What is the test for independence of A and B?
- P(A and B) = P(A)P(B) Citation needed
- Are "mutually exclusive" and "independent" the same?
- no — exclusive events are maximally dependent Citation needed
- Does a fair coin remember five heads in a row?
- no — the next flip is still 1/2 Citation needed
- What is the gambler's fallacy?
- expecting independent trials to self-correct Citation needed
- Are two draws without replacement independent?
- no — the first changes the pool Citation needed
-
The multiplication rule and chains
P(A and B) = P(A) × P(B | A) always, and longer chains multiply on, each factor conditioned on everything before it — this is how sequential experiments are priced. Citation needed
- What is P(two aces) drawing twice from 52 cards without replacement?
- 4/52 × 3/51 = 1/221 Citation needed
- What is each factor in a chain conditioned on?
- all the events before it Citation needed
- When does the chain collapse to a plain product of marginals?
- when the events are independent Citation needed
- What diagram organizes a chain computation?
- a probability tree Citation needed
-
The law of total probability
If scenarios B₁, B₂, … split the sample space without overlap, then P(A) is the weighted average of P(A | Bᵢ) with weights P(Bᵢ) — compute the hard event scenario by scenario. Citation needed
- What must the scenarios Bᵢ do to the sample space?
- cover it all with no overlap Citation needed
- What is P(A) in terms of two scenarios B and not-B?
- P(A|B)P(B) + P(A|not B)P(not B) Citation needed
- What kind of average is the law of total probability?
- a weighted average over scenarios Citation needed
- Two factories make 60% and 40% of parts with defect rates 1% and 5%; overall defect rate?
- 0.6 × 0.01 + 0.4 × 0.05 = 2.6% Citation needed
-
Bayes' rule
Bayes' rule reverses a conditional: P(B | A) = P(A | B)P(B) / P(A). It is how evidence updates belief, and the prior P(B) — the base rate — is the term intuition habitually drops. Citation needed
- Which conditional does Bayes' rule convert P(A | B) into?
- P(B | A) Citation needed
- What is the base rate in a diagnostic problem?
- the prevalence of the condition before testing Citation needed
- What is base rate neglect?
- judging from the test alone, ignoring prevalence Citation needed
- What usually computes the denominator P(A)?
- the law of total probability Citation needed
- Why can a reliable test still yield mostly false alarms?
- when the condition is rare, false positives dominate Citation needed
Problems that prove it
-
Two fair dice are rolled. Find P(sum = 7) and P(sum = 7 | first die shows 3).
Drills: writing the sample space, then shrinking it by conditioning.
Derivation steps
- The sample space has 36 equally likely pairs.
- Sum 7: (1,6), (2,5), (3,4), (4,3), (5,2), (6,1) — six pairs, so P = 6/36 = 1/6.
- Condition on first die = 3: the space shrinks to six pairs (3,1)…(3,6).
- Of those, only (3,4) sums to 7, so P = 1/6.
- The two answers agree — the sum's chance of being 7 is independent of the first die.
Citation needed
-
What is the probability of at least one six in four rolls of a die?
Drills: the complement trick plus independence.
Derivation steps
- Compute the complement: no six in four rolls.
- Rolls are independent, so P(no six four times) = (5/6)⁴.
- (5/6)⁴ = 625/1296 ≈ 0.482.
- P(at least one six) = 1 − 0.482 ≈ 0.518.
Citation needed
-
A disease affects 1 in 1000 people. A test catches 99% of cases and false-alarms on 5% of the healthy. Given a positive test, what is the chance of disease?
Drills: Bayes' rule with the base rate kept honest.
Derivation steps
- Imagine 100,000 people: 100 have the disease, 99,900 do not.
- True positives: 99% of 100 = 99.
- False positives: 5% of 99,900 = 4,995.
- P(disease | positive) = 99 / (99 + 4,995) ≈ 0.019.
- Under 2% — the rarity of the disease outweighs the quality of the test.
Citation needed
-
An urn holds 3 red and 2 blue balls. Two are drawn without replacement. Find P(second is red).
Drills: the law of total probability over the first draw.
Derivation steps
- Scenario 1: first red (P = 3/5), then P(second red) = 2/4.
- Scenario 2: first blue (P = 2/5), then P(second red) = 3/4.
- Total: 3/5 × 2/4 + 2/5 × 3/4 = 6/20 + 6/20 = 12/20 = 3/5.
- Same as the first draw — symmetry: with nothing observed, every position is alike.
Citation needed
-
A and B are independent with P(A) = 0.3, P(B) = 0.5. Find P(A or B).
Drills: the overlap subtraction, with independence supplying the overlap.
Derivation steps
- Independence gives P(A and B) = 0.3 × 0.5 = 0.15.
- P(A or B) = P(A) + P(B) − P(A and B).
- = 0.3 + 0.5 − 0.15 = 0.65.
- Check by complement: P(neither) = 0.7 × 0.5 = 0.35, and 1 − 0.35 = 0.65. ✓
Citation needed
Sources
- Joseph Blitzstein and Jessica Hwang, Introduction to Probability — conditioning as the soul of the subject.
- William Feller, An Introduction to Probability Theory and Its Applications, Vol. 1 — the classic sample-space-first treatment.
- Charles Grinstead and J. Laurie Snell, Introduction to Probability — worked examples at exactly this level.
Learning path
Continue through Statistics & Probability in order, using the concepts above to connect this topic to the next.