Conditional independence

Two random variables and are conditionally independent given a third random variable :

This means that once we know , knowing doesn’t give us any more information about (and vice versa).

Independence != conditional independence

Independent but not conditionally independent (common effect):
Sprinkler and rain are independent, but given that the grass is wet, they become dependent: If the sprinkler was on, it’s more likely it didn’t rain.

Conditionally independent but not independent (common cause):
Shoe size and reading level are correlated across children. Both are caused by age. Condition on age and the correlation vanishes: among 8-year-olds specifically, shoe size tells you nothing about reading level.

Common cause vs Common effect

common cause (“fork”) … causes both and . They’re marginally correlated (shared cause), but conditionally independent.
common effect (“collider”) … is caused by both and . They’re marginally independent, but conditionally dependent!!
chain (“mediator”) … causes which causes . They’re marginally dependent, but conditionally independent.