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

1
⟳restrict the sample space to and renormalize so that ; the ratio achieves exactly this.

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:

2
⟳clear the denominator in [1], then write [1] with and swapped and equate the joints.

Generalized to events:

3
⟳telescope [2] by peeling off one conditioning event at a time, .

Independence

Events and are independent iff

4
⟳substitute [4] into [1]; when this is equivalent to , i.e. conditioning is informationally inert.

A family is mutually independent iff for every finite subset ,

5
⟳pairwise independence checks only ; mutual independence demands the product rule for all subsets simultaneously — a strictly stronger condition.

Law of Total Probability

If is a partition of (disjoint, exhaustive, each ), then for any event ,

6
⟳write as a disjoint union, apply countable additivity, then [2] to each term.

Bayes' Theorem

For events with ,

7
⟳equate the two products in [2] and solve for .

With a partition , expanding the denominator via [6]:

8
⟳apply [7] with , then replace by the total-probability sum [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

  1. By definition [1], assuming and :
  1. The joint is symmetric — it is the same number in both expressions. Solve the second for it:
  1. Substitute into the first:
which is [7].

Law of Total Probability

  1. Since partitions , the sets are pairwise disjoint and their union is :
  1. By (countable) additivity of on disjoint sets:
  1. 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$

Ω A B A∩B P(A | B) = area(A∩B) / area(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:
  1. Total probability of a positive test [6]:
  1. Bayes' theorem [7]:
Answer:
Despite a "99% accurate" test, a positive result indicates disease only ~9% of the time — because true positives ( per 1000) are swamped by false positives ( per 1000). This is the base-rate fallacy.

Mutual vs. Pairwise Independence

Given: Toss two fair coins. Let first is heads, second is heads, the two coins match. Each has probability . Steps:
  1. Check pairwise. ✓
✓ ✓ — all three pairs independent.
  1. Check mutual independence via [5] for :
But
  1. Since , the triple product rule fails.
Answer:
Indeed is fully determined by and together — knowing both fixes whether they match.

Common Misconceptions

Six Frequent Errors

  1. Confusing the direction: in general (the "prosecutor's fallacy"). They differ by the factor .
  2. Ignoring the base rate: treating as if it equals the test's sensitivity .
  3. Confusing independent with mutually exclusive: if are disjoint with positive probability, they are dependent, since .
  4. Assuming pairwise independence implies mutual independence (see counterexample above).
  5. Conditioning on a null event: is undefined when (needs regular conditional probability / measure theory to repair).
  6. 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

  1. Medical diagnostics: computing post-test disease probability from sensitivity, specificity, and prevalence — exactly the base-rate example. Used in screening guidelines (mammography, HIV testing).
  2. Spam filtering: the Naive Bayes classifier assigns by treating word occurrences as conditionally independent given the class.
  3. 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).
  4. 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).
  5. Machine learning: Bayesian inference, Kalman filters (recursive Bayes for linear-Gaussian systems), and Hidden Markov Models all rest on conditional/Bayesian updating.
  6. Insurance and credit scoring: updating risk estimates conditional on policyholder or applicant features.
  7. 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.

Subtleties & Limits

Conditioning on null events. The elementary definition [1] breaks when — yet we routinely condition on continuous events like , each of measure zero. The resolution, regular conditional probability via the Radon–Nikodym theorem and the disintegration theorem, is subtle and (in pathological measurable spaces) not always guaranteed to exist nicely. The Borel–Kolmogorov paradox shows that "the probability conditional on a measure-zero event" can depend on how one approaches that event (which limiting family of positive-measure sets is used), so the naive limit is ambiguous. Foundationally, the meaning of subjective vs. objective probability, the choice of priors (objective/Jeffreys vs. subjective), and the philosophical status of the likelihood principle remain actively debated at the boundary between probability and statistics.

See Also

Probability Axioms · Bayesian Inference · Conditional Expectation · Law of Large Numbers · Central Limit Theorem · Markov Chains · Random Variables · Naive Bayes Classifiers · Borel–Kolmogorov Paradox

Before this

Where this leads