Professional Documents
Culture Documents
03 Bayesian Networks Solution
03 Bayesian Networks Solution
8. May 2017
1.2 - a)
P (C B J) =
P (C) P (B) P (J|C, B) =
0.4 0.1 0.05 = 0.002
1.2 - b)
P (C B J P J) =
(1 P (C)) (1 P (B)) P (J|C, B) P (P J|J) =
0.6 0.9 0.15 0.85 = 0.06885
likesFruit
likesLemonIce
2.1)
User likes Fruit and Lemons, doesnt like Ice and Apple, and likes
LemonIce.
P (F, L, I, A, LI)
= P (F ) P (L | F ) P (I) P (A | F ) P (LI | L, I)
= 0.7 0.8 (1 0.9) (1 0.8) 0.3 = 0.00336
3)
User likes Fruit, if he likes Apple.
Hint: for this, we need to make use of Bayes Rule.
P (A|F )
P (F |A) = P (F )
P (A)
P (A|F )
P (F |A) = P (F )
P (A)
P (A|F )
= P (F )
P (A|F ) P (F ) + P (A|F ) (P (F )
0.8
= 0.7
0.8 0.7 + 0.05 0.3
0.8
= 0.7 = 0.97
0.56 + 0.015