Independence and Conditional Independence

GATE Relevance: High

🎯 Learning Objectives

  • Define statistical independence and verify it mathematically
  • Distinguish pairwise from mutual independence
  • Define conditional independence and its notation
  • Understand why conditional independence is crucial for Bayesian networks

1. Statistical Independence

Independent Events

Events A and B are independent if and only if:

P(A ∩ B) = P(A) × P(B)

Equivalently: P(A|B) = P(A), meaning knowing B gives no information about A.

Example 1 — Coin Tosses

Two fair coins are tossed. Let A = "1st coin is Head", B = "2nd coin is Head".
P(A) = 1/2, P(B) = 1/2, P(A ∩ B) = 1/4 = (1/2)(1/2). ✓ Independent.

Example 2 — Cards (Not Independent)

Draw two cards without replacement. A = "1st is Ace", B = "2nd is Ace".
P(A) = 4/52, P(B) = 4/52, P(A ∩ B) = (4/52)(3/51) ≠ (4/52)(4/52). ✗ Not independent.

2. Pairwise vs Mutual Independence

Pairwise Independence

Events A, B, C are pairwise independent if each pair is independent: P(A ∩ B) = P(A)P(B), P(A ∩ C) = P(A)P(C), P(B ∩ C) = P(B)P(C).

Mutual Independence

Events A, B, C are mutually independent if pairwise independence holds AND:
P(A ∩ B ∩ C) = P(A) × P(B) × P(C)

GATE Trap

Pairwise independence does NOT imply mutual independence. Classic counterexample: Two fair coins. A = "Coin 1 is H", B = "Coin 2 is H", C = "Both same". These are pairwise independent but not mutually independent because P(A ∩ B ∩ C) = 1/4 ≠ P(A)P(B)P(C) = 1/8.

3. Conditional Independence

Conditional Independence

A and B are conditionally independent given C, written A ⊥ B | C, if:

P(A ∩ B | C) = P(A|C) × P(B|C)

Equivalently: P(A | B, C) = P(A | C)

Key Insight

Conditional independence does not imply marginal independence, and vice versa. Two variables can be marginally independent but conditionally dependent (the "explaining away" effect), or marginally dependent but conditionally independent (mediated through a common cause).

Example 3 — Sprinkler, Rain, Wet Grass

Let R = Rain, S = Sprinkler, W = Wet grass. Knowing whether the grass is wet (W) makes R and S dependent (if it's not raining, the sprinkler probably caused the wet grass — explaining away). But without knowing W, R and S may be independent.

4. Why Conditional Independence Matters for Bayesian Networks

A joint distribution over n binary variables requires 2n − 1 parameters. Conditional independence assumptions encoded in a Bayesian network reduce this dramatically.

Example 4 — Parameter Savings

For 10 binary variables with no independence: 210 − 1 = 1023 parameters.
With a Bayesian network where each node has at most 2 parents: roughly 10 × 22 = 40 parameters. A reduction of over 25×!

The Markov Condition

In a Bayesian network, each variable is conditionally independent of its non-descendants given its parents. This single assumption, combined with the chain rule, gives the compact factored representation.

Summary

  • Independence: P(A ∩ B) = P(A)P(B)
  • Conditional independence: P(A ∩ B|C) = P(A|C)P(B|C)
  • Pairwise independence ≠ mutual independence
  • Marginal independence ≠ conditional independence (and vice versa)
  • Conditional independence is the key structural assumption in Bayesian networks