Let G=(V,E) be a DAG and Xv, v∈V, random variables. A probability distribution P factorizes according to G if
P(XV)=v∈V∏P(XvXpa(v))
The factors are local probability models.
Sprinkler exampleX is the season (0 dry, 1 wet), S the sprinkler, R rain, W wet grass, with edges X→S, X→R, S→W, R→W.
P(X,S,R,W)=P(W∣S,R)P(S∣X)P(R∣X)P(X)
Independence
A DAG G=(V,E) encodes, for all v∈V,
Xv⊥XSvXpa(v),Sv=({v}∪desc(v)∪pa(v))c=ancestors (other than parents)∪incomparable nodes
P factorizes over G iff it satisfies these independence assertions.
d-Separation
For three nodes on a path through B:
Causal chainA→B→C or A←B←C: knowing B blocks the path, A⊥C∣B.
Common causeA←B→C: knowing the shared parent B blocks the path, A⊥C∣B.
CollisionA→B←C: the path is blocked when nothing is known, so A⊥C, but knowing B or any descendant of B unblocks it, A⊥C∣B.
If all paths between X and Y are blocked given Z, then X⊥Y∣Z.
Compactness
For n random variables with support {1,…,r}, the full joint needs rn−1=O(rn) parameters. If it factors with maximum in-degree d, it needs at most nrd(r−1)=O(nrd+1). If d≪n, factorization is much better.