1
Bayes Net s (cont )
CS 486/ 686 Univer sit y of Wat erloo May 31, 2005
CS486/686 Lecture Slides (c) 2005 C. Boutilier, P. Poupart & K. Larson
2
Out line
- Wrap up d-separ at ion
- I nf erence in Bayes Net s
- Variable Eliminat ion
CS486/686 Lecture Slides (c) 2005 C. Boutilier, P. Poupart & K. Larson
3
D-Separat ion: I nt uit ions
CS486/686 Lecture Slides (c) 2005 C. Boutilier, P. Poupart & K. Larson
4
D-Separat ion: I nt uit ions
- Subway and Therm are dependent ; but are independent
given Flu (since Flu blocks t he only pat h)
- Aches and Fever are dependent ; but are independent
given Flu (since Flu blocks t he only pat h). Similarly f or Aches and Therm (dependent , but indep. given Flu).
- Flu and Mal are indep. (given no evidence): Fever blocks
t he pat h, since it is not in evidence, nor is it s descendant
- Therm. Flu,Mal are dependent given Fever (or given
Therm): not hing blocks pat h now.
- Subway,Exot icTrip are indep.; t hey are dependent given
Therm; t hey are indep. given Therm and Malaria. This f or exact ly t he same reasons f or Flu/ Mal above.
CS486/686 Lecture Slides (c) 2005 C. Boutilier, P. Poupart & K. Larson
5
I nf erence in Bayes Net s
- The independence sanct ioned by D-
separat ion (and ot her met hods) allows us t o comput e prior and post erior probabilit ies quit e ef f ect ively.
- We' ll look at a couple simple examples
t o illust rat e. We' ll f ocus on net works wit hout loops. (A loop is a cycle in t he underlying undir ect ed gr aph. Recall t he dir ect ed gr aph has no cycles.)
CS486/686 Lecture Slides (c) 2005 C. Boutilier, P. Poupart & K. Larson
6
Simple Forwar d I nf erence (Chain)
- Comput ing prior require simple f orward
“propagat ion” of probabilit ies
- Not e: all (f inal) t erms are CPTs in t he BN
Not e: only ancest ors of J considered P(J )=ΣM,ET P(J |M,ET)P(M,ET)
(marginalizat ion)
P(J )=ΣM,ET P(J |M)P(M|ET)P(ET)
(chain rule and independence)
P(J )=ΣMP(J |M)ΣETP(M|ET)P(ET)
(dist ribut ion of sum)