Independence and Conditional Independence
Independence means learning one thing teaches you nothing about another. Conditional independence means that stays true once the shared cause is known.
Why Does This Exist?
Multiplying probabilities is the move everyone wants to make and few earn. The chance of two events together equals the product of their chances only when they are independent, and assuming independence without checking is how naive Bayes earns the word naive, how risk models underprice joint failures, and how test accuracy gets misread as deployment certainty.
Conditional independence is the subtler sibling that runs modern ML. Features are rarely independent outright, but they are often independent given the label: symptoms correlate with each other until you know the disease, at which point each adds its own evidence. That structure is what makes Bayes' theorem computations factor and what graphical models encode. The combining rules underneath live in probability foundations; this page teaches the two independence notions plus the trap between pairwise and mutual.
The one idea you need first
The joint chance is the fraction of outcomes where both happen. Independence is the claim that restricting to leaves 's fraction unchanged: , equivalently . Everything here is that factorization, with and without a given third event.
Think of It Like This
Two newspapers, one wire service
Two local papers print the same national story. Reading one tells you exactly what the other says: dependent, through a shared cause. Now suppose you already read the wire copy both drew from. The leftover differences, local typos and headlines, are independent given the wire. Knowing the common cause screened off the connection.
That screening is conditional independence: and correlate until is known, then factor. Naive Bayes bets each word is independent given the topic. It is wrong in the way the analogy suggests, shared causes beyond the label always leak, but useful because factoring turns an impossible joint table into one probability per word.
The analogy stops at direction. Screening works when the known variable is the common cause. Condition on a common effect instead, like knowing both papers sold out, and you couple them rather than separate them: explaining-away creates dependence instead of removing it.
How It Actually Works
Two events are independent when their joint chance factors:
In plain words: the fraction where both happen is the product of the separate fractions. Equivalently, learning never moves 's chance. Three events are mutually independent when every sub-collection factors, all three pairs and the triple. Pairwise alone is weaker, as the worked example proves.
Events are conditionally independent given when they factor inside every slice of :
In plain words: once is known, learning teaches nothing further about . Note the double dissociation people trip over. Independence does not imply conditional independence: two independent coin flips become coupled given their sum, since a sum of 1 forces them apart. And conditional independence does not imply independence: two symptoms correlate overall yet factor given the disease.
Worked example
Flip two fair coins and , and set when they differ (the XOR).
Each pair is independent. and , since two of four outcomes differ. Their meeting is exactly the outcome , chance . Same for the other pairs. Pairwise, everything factors.
But the triple does not: , because equal coins never differ, while the product . Pairwise independent, mutually dependent. Any two determine the third, so the trio carries less information than independence would claim, and any model multiplying all three double-counts.
Watch Out For
Multiplying because the product looks available
Joint tables factor only under independence, yet pipelines multiply classifier scores, sensor readings, and annotator votes by default. Correlated inputs make the product overconfident: two tests sharing a failure mode are barely more evidence than one. Before multiplying, name the shared causes and check whether conditioning on them restores the factorization.
Confusing uncorrelated with independent
Zero correlation means no straight-line relationship, while independence means no relationship of any kind. A symmetric U-shape has zero correlation with loud dependence, and distance correlation or mutual information catch what Pearson misses. Passing a correlation check never licenses the product rule.
The Quick Version
- Independence means the joint chance factors, so learning one event moves nothing.
- Conditional independence restores factoring once the shared cause is known, and naive Bayes is exactly this bet.
- Conditioning on a shared cause screens off; conditioning on a shared effect couples.
- Pairwise independence does not imply mutual independence: two coins and their XOR prove it.
- Uncorrelated is far weaker than independent, so correlation checks never license multiplying.