





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






material from: Michael Jordan, Nir Friedman and Daphne Koller
P ( e )=∑ ∑ x 1
x k
∑ ′
x
This query is useful in many cases:
= (^) ∑ z
We can use MAP for:
Cautionary note:
x y P(x,y) 0 0 0. 0 1 0. 1 0 0. 1 1 0.
Thm: Computing P(X = x) in a Bayesian network is NP-hard
Not surprising, since we can simulate Boolean gates.
d c b
d c b a
d c
d c b
d c b
General idea:
x k x x i
3 2
Visit to Asia Smoking
Tuberculosis Lung Cancer
Abnormality in Chest Bronchitis
X-Ray Dyspnea
V S
T L
A B
X D
P(v)P(s)P(t|v)P(l|s)P(b|s)P(a|t,l)P(x|a)P(d|a,b )
Initial factors
V S
T L
A B
X D
P(v)P(s)P(t|v)P(l|s)P(b|s)P(a|t,l)P(x|a)P(d|a,b )
Initial factors
Eliminate: v
Note: f (^) v (t) = P(t) In general, result of elimination is not necessarily a probability term
Compute: =∑ v
V S
T L
A B
X D
In general, result of elimination may be a function of several variables
Compute: =∑ s
V S
T L
A B
X D
Compute: =∑ x
V S
T L
A B
X D
Compute: =∑ t
V S
T L
A B
X D
Compute: =∑ l
V S
T L
A B
X D
Compute: =∑ = ∑ b
b a a
V S
T L
A B
X D
fP(v)fP(s)fP(l|s)( l)fP(b|s)(b)ft(a,l)fx(a)fP(d|a,b)(a,b)
V S
T L
A B
X D
= ∑ x
fx ( y 1 , K,yk) f'x(x,y 1 ,K,yk)
m
i l
f (^) x xy yk fixy yi 1 1 ,
This requires
Complexity is exponential in number of variables in the intermediate factor
i
m Val(X) Val(Yi)
i
Val(X ) Val(Yi)
= ∑ ∑∏ 1
y y i
k i n
PxKx K f Z i
Graph:
T L
A B
X
V S
D
V S
T L
A B
X D
Thm
Thm:
A
B C
D E
F G
H