Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Updating on new information
You roll two dice but can’t see them. The chance the total is at least 10 is 6 out of 36, or 1/6. Then a friend peeks and says “the first die is a 6”. Now only 6 outcomes are possible, and 3 of them (6+4, 6+5, 6+6) reach 10. The chance jumped to 3/6 = 1/2. That’s conditional probability: throw away the outcomes that can’t happen anymore, and recount.
Sometimes new information changes nothing. Learning that a coin landed heads tells you nothing about a separate coin. Those events are independent.
Spacecraft carry three of the same computer so one failure isn’t fatal. That only works if failures are independent. A shared power supply or a shared software bug makes all three fail together. Conditional probability is how engineers model this.
- 1. A bag has 3 red and 2 blue balls. P(draw red) = ?
- 2. Given the first die is 6, P(sum = 12) = ?
- 3. Two fair coins: P(both heads) = ?
Level 1: Beginner
★★☆☆☆ Basic⏱ 15 minSecondary-school mathematics: arithmetic and elementary algebra.Definitions
- Chain (multiplication) rule: . More generally, .
- Independence: , equivalently .
Examples:
- Two aces in a row without replacement: .
- With two dice, “first die is 6” and “sum is 7” turn out to be independent: .
- “First die is 6” and “sum ≥ 10” are not independent.
Warning: in general. P(fever | flu) is high. P(flu | fever) may be low. Confusing them is the “prosecutor’s fallacy”.
- 1. P(B) = 0.4 and P(A | B) = 0.5. P(A ∩ B) = ?
- 2. Independent, P(A) = 0.3, P(B) = 0.6. P(A ∩ B) = ?
- 3. Is P(A | B) always equal to P(B | A)?
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.Law of total probability
If partition , then
Break a hard probability into cases. In the demo, .
Independence of many events
are mutually independent if for every subset . Pairwise independence is weaker. Take two fair bits and their XOR: each pair is independent, but any two determine the third (Practice Code 4).
Conditional independence
and are independent given if . Two smoke detectors are conditionally independent given “fire” or “no fire”. They’re not independent unconditionally: one alarming makes fire likelier, so the other is likelier to alarm too. Conditional independence is the basic assumption of Bayesian networks, hidden Markov models, Kalman filters and naïve Bayes.
Simpson’s paradox
A treatment can win in every subgroup and still lose overall. In a kidney-stone study, treatment A had higher success rates for both small and large stones, yet a lower overall rate. A was given mostly to the harder, large-stone cases (Charig et al., 1986; Practice Code 5). The overall rate mixes different . Which conditioning is right is a causal question, not a statistical one (Pearl, 2009).
- 1. P(B) = 0.3, P(A|B) = 0.8, P(A|not B) = 0.2. P(A) = ?
- 2. Two bits and their XOR are…
- 3. Simpson's paradox is resolved by…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Proofs
- Total probability. , so . ∎
- Independence passes to complements. . ∎
- is a probability measure. It’s non-negative, , and countably additive. So every theorem from A4.1-1 holds conditionally.
Independence is not disjointness
Disjoint events with positive probabilities are maximally dependent: if happens, can’t, so .
Why redundancy works, and when it doesn’t
A 2-of-3 voting system of independent units, each failing with probability , fails with probability . For that’s about 30× better than one unit. But suppose a fraction of failures is a common cause that takes out all units at once (the beta-factor model). Then failure is at least , and with this dominates (Exercise 2).
Exercise 3.1: If A and B are independent, are A and B^c independent?
Yes: .
- 1. Disjoint events with positive probability are…
- 2. P(· | B) satisfies the probability axioms?
- 3. A 2-of-3 independent system with p = 0.01 fails with probability about…
Level 4: Expert
★★★★★ Expert⏱ 45 minResearchers: original papers and open problems.Redundancy and common-cause failures
Spacecraft and aircraft rely on redundancy: triple-redundant flight computers, dual-string avionics, voting IMUs. Probabilistic risk assessment explicitly models dependent failures, because shared power buses, environments, radiation and especially identical software can fail redundant units together. The β-factor and multiple-Greek-letter models are standard (Mosleh et al., NUREG/CR-5485; Stamatelatos et al., 2011). The 1996 Ariane 5 failure is the classic warning: both inertial reference systems ran the same software and failed identically (Lions, 1996).
Conditional independence in AI and robotics
- Markov property. A robot’s next state is independent of the past given the present state and action. That’s the assumption behind MDPs (A3.5-1), Kalman and particle filters, and SLAM’s factor graphs.
- Sensor fusion. Combining several sensors by multiplying likelihoods assumes their noises are conditionally independent given the true state. Correlated errors, like two cameras sharing a lighting artifact, make fused estimates overconfident. Covariance intersection exists for unknown correlations (Julier and Uhlmann, 1997).
- Graphical models encode conditional independences in a graph, so a huge joint distribution factorizes into small pieces (Koller and Friedman, 2009).
- Fairness and causality. Simpson-style reversals appear in real ML audits. Causal graphs decide which conditional comparison answers the question (Pearl, 2009).
References
- D. Bertsekas, J. Tsitsiklis (2008). Introduction to Probability, 2nd ed., Ch. 1. Athena Scientific.
- C. R. Charig, D. R. Webb, S. R. Payne, J. E. Wickham (1986). “Comparison of treatment of renal calculi by open surgery, percutaneous nephrolithotomy, and extracorporeal shockwave lithotripsy.” BMJ, 292.
- J. Pearl (2009). Causality, 2nd ed. Cambridge.
- A. Mosleh et al. (1998). Guidelines on Modeling Common-Cause Failures in Probabilistic Risk Assessment. NUREG/CR-5485. US NRC.
- M. Stamatelatos et al. (2011). Probabilistic Risk Assessment Procedures Guide for NASA Managers and Practitioners. NASA/SP-2011-3421.
- J.-L. Lions et al. (1996). Ariane 5 Flight 501 Failure: Report by the Inquiry Board. ESA.
- S. Julier, J. Uhlmann (1997). “A non-divergent estimation algorithm in the presence of unknown correlations.” American Control Conference.
- D. Koller, N. Friedman (2009). Probabilistic Graphical Models. MIT Press.