Download Bayesian Networks: Graphical Depiction of Independence and Joint Distributions and more Slides Artificial Intelligence in PDF only on Docsity!
Bayesian networks
Chapter 14
Section 1 – 2
Outline
• Syntax
• Semantics
Example
- Topology of network encodes conditional independence
assertions:
- Weather is independent of the other variables
- Toothache and Catch are conditionally independent
given Cavity
Example
- I'm at work, neighbor John calls to say my alarm is ringing, but neighbor Mary doesn't call. Sometimes it's set off by minor earthquakes. Is there a burglar?
- Variables: Burglary , Earthquake , Alarm , JohnCalls , MaryCalls
- Network topology reflects "causal" knowledge:
- A burglar can set the alarm off
- An earthquake can set the alarm off
- The alarm can cause Mary to call
- The alarm can cause John to call
Compactness
- A CPT for Boolean X (^) i with k Boolean parents has 2 k^ rows for the combinations of parent values
- Each row requires one number p for Xi = true (the number for Xi = false is just 1-p )
- If each variable has no more than k parents, the complete network requires O(n · 2 k) numbers
- I.e., grows linearly with n , vs. O(2n^ ) for the full joint distribution
- For burglary net, 1 + 1 + 4 + 2 + 2 = 10 numbers (vs. 2 5 -1 = 31)
Semantics
The full joint distribution is defined as the product of the local conditional distributions:
P (X 1 , … ,Xn ) = πi = 1 P (Xi | Parents(Xi ))
e.g., P (j ∧ m ∧ a ∧ ¬ b ∧ ¬ e)
= P (j | a) P (m | a) P (a | ¬ b, ¬ e) P ( ¬ b) P ( ¬ e)
n
- Suppose we choose the ordering M, J, A, B, E
P (J | M) = P (J)?
Example
- Suppose we choose the ordering M, J, A, B, E
P (J | M) = P (J)?
No
P (A | J, M) = P (A | J)? P (A | J, M) = P (A)?
Example
- Suppose we choose the ordering M, J, A, B, E
P (J | M) = P (J)?
No
P (A | J, M) = P (A | J)? P (A | J, M) = P (A)? No
P (B | A, J, M) = P (B | A)? Yes
P (B | A, J, M) = P (B)? No
P (E | B, A ,J, M) = P (E | A)?
Example
Docsity.com
- Suppose we choose the ordering M, J, A, B, E
P (J | M) = P (J)?
No
P (A | J, M) = P (A | J)? P (A | J, M) = P (A)? No
P (B | A, J, M) = P (B | A)? Yes
P (B | A, J, M) = P (B)? No
P (E | B, A ,J, M) = P (E | A)? No
Example
Docsity.com
Summary
• Bayesian networks provide a natural
representation for (causally induced)
conditional independence
• Topology + CPTs = compact
representation of joint distribution
• Generally easy for domain experts to
construct