Bayesian Networks
In §4.1 we found that a full joint distribution answers any probabilistic question, but needs \(2^n\) numbers. That's fine for 3 variables and hopeless for 30. Bayesian networks fix this. They use the fact that most variables only directly depend on a few others, and they draw those dependencies as a graph. The result is compact, readable and efficient to reason with. Judea Pearl received the Turing Award largely for this idea.
- §7.1 Representing uncertain knowledge: nodes, arrows, CPTs, the factorization of the joint, and how to build a network.
- §7.2 Conditional independence and d-separation: reading independencies straight off the graph, including the strange phenomenon of "explaining away."
- §7.3 Exact inference: enumeration and variable elimination, worked by hand, with an interactive network.
- §7.4 Approximate inference and learning: rejection sampling, likelihood weighting, Gibbs sampling, and learning CPTs from data.
Bolt has an anti-theft alarm. It is triggered by attempted thefts, and sometimes by small earthquakes that shake the campus. Two hostel residents, John and Mary, call security when they hear it. John sometimes confuses Bolt's alarm with a phone ringtone. Mary often has headphones on. Tonight both called. How worried should security be that someone is stealing Bolt? And if the news reports a small earthquake, how much should that calm everyone down?
This chapter combines nearly everything: probability and Bayes' rule (Ch 4) are its language, conditional independence (§4.2) is its foundation, decision networks (§5.1) are Bayes nets plus decisions and utilities, naive Bayes (§4.2) is its simplest special case, POMDP belief updates (§5.5) are inference in a dynamic Bayes net, and learning CPTs from data is ML with the overfitting issues of Ch 2.