Math for Causal Inference
All simulators

Factorisation & Independence

Chains, forks and colliders on binary variables: the joint table from the factorisation and the independences it implies.

Day 47: Factorisation & the Markov Property
ZXY
P(z, x, y) = P(z) P(x | z) P(y | x)
zxyP(z, x, y)
100
0.108
101
0.012
110
0.112
111
0.168
000
0.432
001
0.048
010
0.048
011
0.072
Z → Y overall
0.250
P(Y|Z=1) − P(Y|Z=0)
within X = 0
0.000
within X = 1
0.000
parameters, factorised
1 + 2 + 2 = 5
parameters, unrestricted
2³ − 1 = 7

Three binary variables with X in the middle. The joint table is built from the factorisation. Compare how Z predicts Y overall and within each value of X: chains and forks make the within-X differences zero; a collider makes the overall difference zero instead. (In the collider, Y is a fair coin and the sliders set how Z and Y raise X.)