Conditional Probability, Bayes' Theorem, Independence
Conditional probability measures the probability of event given that has occurred; it is the cornerstone of probabilistic reasoning. Bayes' theorem inverts conditionals, letting us update beliefs from evidence. Independence is the special case where conditioning changes nothing: . Applies wherever uncertainty is updated by information — statistics, machine learning, medicine, forensics. Formalized by Kolmogorov (1933), with Bayes' rule due to Thomas Bayes (posth. 1763) and Laplace.Conditional probability rescales the probability of an event to the new sample space defined by a conditioning event , dividing the overlap by . It matters because almost all real inference is conditional: we never observe a system in total ignorance but always relative to some evidence. Bayes' theorem is the algebraic engine that reverses the direction of conditioning, turning — which models give us — into — which we actually want. Independence captures informational irrelevance and underpins everything from product measures to the law of large numbers. The surprising fact most students stumble over: a test that is 99% accurate for a rare disease can still mean a positive result is more likely false than true — the base rate dominates.
The Core Insight
Conditioning on is nothing more than renormalizing the probability measure to live inside . The whole machinery — Bayes, independence, the chain rule, total probability — follows mechanically from the single defining ratio . Bayes' theorem is just this definition written twice and equated through the shared joint probability .
Formal Statement
Conditional Probability
Let be a probability space and let with . The conditional probability of given is
Symbols: is the sample space; the -algebra of events; a probability measure; the joint event "both and "; the prior weight of the conditioning event, required positive so the ratio is defined.
The Multiplication (Chain) Rule
Rearranging [1] gives the joint probability as a product:
Generalized to events:
Independence
Events and are independent iff
A family is mutually independent iff for every finite subset ,
Law of Total Probability
If is a partition of (disjoint, exhaustive, each ), then for any event ,
Bayes' Theorem
For events with ,
With a partition , expanding the denominator via [6]:
Here is the prior, the likelihood, the posterior, and the denominator the evidence (marginal likelihood / normalizing constant).
Why It Holds / Derivation
Bayes' Theorem from the Multiplication Rule
- By definition [1], assuming and :
- The joint is symmetric — it is the same number in both expressions. Solve the second for it:
- Substitute into the first:
Law of Total Probability
- Since partitions , the sets are pairwise disjoint and their union is :
- By (countable) additivity of on disjoint sets:
- Apply the multiplication rule [2] to each term: , yielding [6].
Thomas Bayes | c. 1701–1761
A Presbyterian minister and Fellow of the Royal Society, Bayes left an unpublished essay solving the "inverse probability" problem: given an observed number of successes, what can be said about the underlying chance? His friend Richard Price edited and read it posthumously to the Royal Society in 1763 ("An Essay towards solving a Problem in the Doctrine of Chances"). Bayes treated only the uniform-prior case for a binomial parameter; the general theorem and its systematic use were developed independently and far more powerfully by Pierre-Simon Laplace from 1774 onward. The modern measure-theoretic foundation came from Kolmogorov in 1933.
Building Intuition
Picture probability as area on a unit-area dartboard . Event is a region; conditioning on means throwing away the rest of the board and asking what fraction of the remaining region also lies in . That is why we divide by : we are recomputing area as a fraction of the new, smaller universe.
Independence means occupies the same fraction of as it does of the whole board — knowing you landed in tells you nothing about whether you also landed in . Bayes is the bookkeeping that lets you trade for once you know how big the two regions are individually. The deep point: the direction of a conditional matters enormously. "Probability of a rash given measles" and "probability of measles given a rash" are wildly different numbers, related only through the prevalence (prior) of measles.Conditional probability as renormalized area: $P(A\mid B)$ is the shaded overlap as a fraction of region $B$
Worked Examples
Medical Test and the Base-Rate Effect
Given: A disease has prevalence (1 in 1000). A test has sensitivity and specificity , so the false-positive rate is . A patient tests positive. Find . Steps:- Total probability of a positive test [6]:
- Bayes' theorem [7]:
Mutual vs. Pairwise Independence
Given: Toss two fair coins. Let first is heads, second is heads, the two coins match. Each has probability . Steps:- Check pairwise. ✓
- Check mutual independence via [5] for :
- Since , the triple product rule fails.
Common Misconceptions
Six Frequent Errors
- Confusing the direction: in general (the "prosecutor's fallacy"). They differ by the factor .
- Ignoring the base rate: treating as if it equals the test's sensitivity .
- Confusing independent with mutually exclusive: if are disjoint with positive probability, they are dependent, since .
- Assuming pairwise independence implies mutual independence (see counterexample above).
- Conditioning on a null event: is undefined when (needs regular conditional probability / measure theory to repair).
- Forgetting that independence is relative to the measure : the same events can be independent under one and dependent under another.
Mutually Exclusive Is the Opposite of Independent
Roll one fair die. Let roll is and roll is . These are mutually exclusive: , so . Yet . Knowing occurred makes impossible — maximal dependence. Students who hear " and can't both happen" and conclude "they don't influence each other" have it exactly backwards.
Connections
Conditional probability is the gateway to nearly all of probability theory. It specializes to Conditional Expectation when we condition random variables rather than events, and to the Conditional Density in the continuous case. Independence of events generalizes to independence of Random Variables (factorization of joint distributions) and underlies the Law of Large Numbers and Central Limit Theorem, both of which assume i.i.d. samples. Bayes' theorem is the foundation of Bayesian Inference, the engine of Markov Chains (via conditional transition rules), and the backbone of Naive Bayes Classifiers. The chain rule [3] structures Probabilistic Graphical Models and Bayesian networks.
Real-World Applications
- Medical diagnostics: computing post-test disease probability from sensitivity, specificity, and prevalence — exactly the base-rate example. Used in screening guidelines (mammography, HIV testing).
- Spam filtering: the Naive Bayes classifier assigns by treating word occurrences as conditionally independent given the class.
- Forensic science & DNA matching: likelihood ratios update the probability of a suspect's guilt; misuse causes the "prosecutor's fallacy" in real trials (e.g., the Sally Clark case).
- Search and rescue: the U.S. Coast Guard's SAROPS system uses Bayesian updating of a probability map as search areas are cleared (famously located the 1968 lost submarine USS Scorpion via Bayesian search by John Craven).
- Machine learning: Bayesian inference, Kalman filters (recursive Bayes for linear-Gaussian systems), and Hidden Markov Models all rest on conditional/Bayesian updating.
- Insurance and credit scoring: updating risk estimates conditional on policyholder or applicant features.
- A/B testing and clinical trials: Bayesian sequential analysis updates the posterior on a treatment effect as data accrue.
Historical Development
- 1654 — Pascal and Fermat correspond on the problem of points, implicitly using conditional reasoning about unfinished games.
- 1713 — Jacob Bernoulli's Ars Conjectandi (posthumous) states the law of large numbers, framing how evidence accumulates.
- 1763 — Richard Price reads Thomas Bayes' essay to the Royal Society, solving inverse probability for the binomial with a uniform prior.
- 1774 — Laplace independently formulates the general principle of inverse probability ("Mémoire sur la probabilité des causes").
- 1812 — Laplace's Théorie analytique des probabilités systematizes Bayesian methods and applies them to astronomy and demography.
- 1900s–1920s — Frequentists (Fisher, Neyman, Pearson) challenge "inverse probability," sidelining Bayesian methods for decades.
- 1933 — Kolmogorov's Grundbegriffe der Wahrscheinlichkeitsrechnung gives the axiomatic, measure-theoretic definition of conditional probability and independence.
- 1950s–60s — Revival of Bayesian statistics through Jeffreys, Savage, and de Finetti (subjective probability and exchangeability).
- 1990s–present — Computational power (MCMC, Gibbs sampling) makes Bayesian inference practical, fueling modern statistics and machine learning.