skip to content

How can three events be pairwise independent but not mutually independent?

level: middleimportance: nice to knowfreq 28%

answer

  1. pairs are not the whole story
  2. count how many equations independence needs
  3. two fair coins plus a parity bit
  4. any two of the three fix the third
  5. the triple intersection is empty

basics

~20 s

Pairwise independence constrains only pairs; mutual independence also requires the three-way product rule. Flip two fair coins and take 'exactly one head' as a third event: every pair is independent, yet all three cannot occur together.

solid answer

~50 s

Mutual independence demands `P` of every sub-collection to factor, not just the pairs. The standard counterexample: flip two fair coins and define `A` = first is heads, `B` = second is heads, `C` = exactly one head, the XOR parity bit. Each event has probability 1/2. Every pair factors: `P(A and B) = P(HH) = 1/4`, `P(A and C) = P(HT) = 1/4`, `P(B and C) = P(TH) = 1/4`, each equal to `1/2 * 1/2`. But `A and B and C` is impossible, since two heads is not exactly one head, so `P(A and B and C) = 0` while `P(A)P(B)P(C) = 1/8`. Any two of the three determine the third, so pairwise checks miss that redundancy. For `n` events, mutual independence is `2^n - n - 1` product equations, one per subset of size at least two.

go deeper

for a junior

Know that independence of a group is defined by a product rule, and that checking pairs is not automatically the same as checking the whole group. Memorising the two-coin counterexample is enough here.

for a middle

Reproduce the counterexample with its arithmetic and state both definitions, including the three-way equation. Expect to be asked how many conditions mutual independence imposes on n events.

for a senior

Demonstrate that you know which results survive on pairwise independence alone, such as additivity of variance, versus which demand a fully factorising joint distribution.

for a principal

Be able to argue when weaker independence is a deliberate, cost-saving modelling choice and when assuming a joint factorises on pairwise evidence is a latent correctness risk in an analysis pipeline.

## The definitions, stated precisely **Pairwise independence** of a collection of events means that for every pair `i` and `j`, ``` P(Ai and Aj) = P(Ai) * P(Aj) ``` **Mutual independence** (often just called independence) is stronger: for *every* subset of size two or more, the probability of the intersection equals the product of the individual probabilities. For three events that means four equations — the three pairs *plus* ``` P(A and B and C) = P(A) * P(B) * P(C) ``` In general, `n` events have `2^n` subsets; subtracting the empty set and the `n` singletons leaves `2^n - n - 1` conditions. For `n = 3` that is `8 - 3 - 1 = 4`, matching the count above. Pairwise independence checks only `n(n-1)/2` of them, so for three events it verifies three of the four required equations and says nothing about the fourth. ## The canonical counterexample Flip two fair coins. The sample space is `{HH, HT, TH, TT}`, each outcome with probability 1/4. Define - `A` = the first flip is heads = `{HH, HT}`, `P(A) = 1/2` - `B` = the second flip is heads = `{HH, TH}`, `P(B) = 1/2` - `C` = exactly one head = `{HT, TH}`, `P(C) = 1/2` `C` is the XOR of the two flips: it is the parity bit that says whether the flips differ. Check the pairs: - `P(A and B) = P(HH) = 1/4 = (1/2)(1/2)` — independent. - `P(A and C) = P(HT) = 1/4 = (1/2)(1/2)` — independent. - `P(B and C) = P(TH) = 1/4 = (1/2)(1/2)` — independent. Now the triple. `A and B` forces `HH`, which has two heads, so it is not in `C`. The intersection is empty: ``` P(A and B and C) = 0, but P(A)P(B)P(C) = 1/8 ``` The three events are pairwise independent and not mutually independent. ## Why the intuition fails Each single flip tells you nothing about the parity bit: given that the first coin came up heads, the second is still fair, so 'the flips differ' still has probability 1/2. That is what pairwise independence records. But *any two* of the three events determine the third completely — knowing the first flip and the parity tells you the second flip with certainty. Total redundancy at the three-way level is invisible to every two-way check. So pairwise independence is a genuinely weaker property: 'no pair informs each other' does not imply 'no coalition informs the rest'. The same structure appears whenever a variable is a deterministic function of others while remaining marginally balanced. Parity bits are the cleanest source of such examples. ## Why anyone cares The distinction matters because several results need only the weaker condition while others need the full one. - **Variance of a sum** needs only that the terms are pairwise uncorrelated: `Var(X1 + ... + Xn) = Var(X1) + ... + Var(Xn)` holds under pairwise uncorrelatedness, which pairwise independence implies. Nothing three-way is required. - **Factorising a joint distribution** as a product of marginals needs mutual independence. Writing `P(A and B and C) = P(A)P(B)P(C)` after checking only pairs is exactly the error the counterexample punishes. - **Simulation and sampling** schemes sometimes deliberately use only pairwise-independent randomness because it is far cheaper to generate, and the estimator being computed only relies on second-moment properties. ## How to answer this in an interview State the two definitions and the fact that mutual independence is a condition on every subset, not just pairs. Then produce the two-coins-plus-parity example with the four short arithmetic checks — it takes about thirty seconds and is completely convincing. If the interviewer pushes, add the general count `2^n - n - 1` and the observation that any two events here pin down the third. One more direction is worth having ready: the failure can go the other way too. There exist collections where the full `n`-way product rule holds but some pair fails to factor, so the `n`-way equation alone is also not sufficient. That is why the definition insists on *all* subsets rather than picking a convenient one.

  • How many product equations must hold for n events to be mutually independent?
    One for every subset of size at least two, so `2^n - n - 1` equations. For three events that is four: the three pairs plus the triple. Checking only the `n(n-1)/2` pairs verifies a strict subset of them, which is why pairwise independence is genuinely weaker than mutual independence.
  • Is the n-way product rule on its own enough to give mutual independence?
    No. The full `n`-way equation can hold while some pair fails to factor, so it is not sufficient either. Neither the pairwise conditions nor the top-level condition implies the rest — the definition requires every subset of size two or more to satisfy the product rule.
  • Which results only need pairwise independence rather than the full condition?
    Additivity of variance is the standard one: the variance of a sum equals the sum of variances whenever the terms are pairwise uncorrelated, and pairwise independence gives that. Anything that factorises a full joint distribution into a product of marginals, by contrast, needs mutual independence.

Three people can each be strangers in every one-on-one meeting, yet any two of them together know exactly who the third is.

saying these in an interview costs you the question

  • Assumes checking every pair proves full independence
  • Says three events are independent if each pair is
  • Omits the three-way product from the definition
  • Confuses mutual independence with mutual exclusivity
  • Claims the n-way product rule alone suffices

context