n1. Choose an ordering of variables X1, …
,Xn
n2. For i = 1 to n
nadd Xi to the
network
nselect parents from X1, … ,Xi-1 such that
n P (Xi |
Parents(Xi)) = P (Xi | X1, ... Xi-1)
n
nThis choice of parents
guarantees:
nP (X1, … ,Xn)
= πi =1 P (Xi | X1, … , Xi-1)
(chain rule)
n = πi =1P (Xi | Parents(Xi))
(by construction)