SlideShare a Scribd company logo
Bayesian networks
Chapter 14
Section 1 – 2
Outline
• Syntax
• Semantics
Bayesian networks
• A simple, graphical notation for conditional
independence assertions and hence for compact
specification of full joint distributions
• Syntax:
– a set of nodes, one per variable
– a directed, acyclic graph (link ≈ "directly influences")
– a conditional distribution for each node given its parents:
P (Xi | Parents (Xi))
• In the simplest case, conditional distribution represented
as a conditional probability table (CPT) giving the
distribution over Xi for each combination of parent values
–
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
Example contd.
Compactness
• A CPT for Boolean Xi with k Boolean parents has 2k
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 · 2k
) 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. 25
-1 = 31)
Semantics
The full joint distribution is defined as the product of the local
conditional distributions:
P (X1, … ,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
Constructing Bayesian networks
• 1. Choose an ordering of variables X1, … ,Xn
• 2. For i = 1 to n
– add Xi to the network
– select parents from X1, … ,Xi-1 such that
P (Xi | Parents(Xi)) = P (Xi | X1, ... Xi-1)
This choice of parents guarantees:
P (X1, … ,Xn) = πi =1 P (Xi | X1, … , Xi-1)
= πi =1P (Xi | Parents(Xi))
(by construction)
(chain rule)
•
–
n
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)?
P(A | J, M) = P(A | J)? P(A | J, M) = P(A)?
• No
•
Example
• Suppose we choose the ordering M, J, A, B, E
P(J | M) = P(J)?
P(A | J, M) = P(A | J)? P(A | J, M) = P(A)? No
P(B | A, J, M) = P(B | A)?
P(B | A, J, M) = P(B)?
• No
•
Example
• Suppose we choose the ordering M, J, A, B, E
P(J | M) = P(J)?
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)?
P(E | B, A, J, M) = P(E | A, B)?
• No
•
Example
• Suppose we choose the ordering M, J, A, B, E
P(J | M) = P(J)?
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
P(E | B, A, J, M) = P(E | A, B)? Yes
• No
•
Example
Example contd.
• Deciding conditional independence is hard in noncausal directions
• (Causal models and conditional independence seem hardwired for
humans!)
• Network is less compact: 1 + 2 + 4 + 2 + 4 = 13 numbers needed
•
•
•
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

More Related Content

PDF
BayesianNetwork-converted.pdf
PPT
Bayesnetwork
PPTX
620054032-20220209112111-PPT06-Probabilistic-Reasoning.pptx
PPT
Unit IV UNCERTAINITY AND STATISTICAL REASONING in AI K.Sundar,AP/CSE,VEC
PDF
Lecture 5 Baysian Networks by Marco Chiarandini
PPT
AIML unit-2(1).ppt
PDF
Bayes 6
PDF
STATE SPACE REPRESENTATION OF A CLASS OF MIMO SYSTEMS VIA POSITIVE SYSTEMS
BayesianNetwork-converted.pdf
Bayesnetwork
620054032-20220209112111-PPT06-Probabilistic-Reasoning.pptx
Unit IV UNCERTAINITY AND STATISTICAL REASONING in AI K.Sundar,AP/CSE,VEC
Lecture 5 Baysian Networks by Marco Chiarandini
AIML unit-2(1).ppt
Bayes 6
STATE SPACE REPRESENTATION OF A CLASS OF MIMO SYSTEMS VIA POSITIVE SYSTEMS

Similar to bayesian networks simple graphical notation (20)

PDF
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...
PDF
Variational inference
PDF
ABC-Gibbs
PDF
Convergence of ABC methods
PDF
Bayes Belief Networks
PPTX
GAN for Bayesian Inference objectives
PDF
NBBC15, Reyjavik, June 08, 2015
PDF
PMED Transition Workshop - Non-parametric Techniques for Estimating Tumor Het...
PDF
ABC-Gibbs
PPTX
Bayesian Neural Networks
PDF
BAYSM'14, Wien, Austria
PDF
Probability distributions for ml
PPTX
PPT
cps170_bayes_nets.ppt
PPTX
Elements of Statistical Learning 読み会 第2章
PPT
ch8Bayes.ppt
PPTX
Bayesian probabilistic interference
PPTX
Bayesian probabilistic interference
PDF
PCB_Lect02_Pairwise_allign (1).pdf
PDF
Clustering:k-means, expect-maximization and gaussian mixture model
Application of Bayesian and Sparse Network Models for Assessing Linkage Diseq...
Variational inference
ABC-Gibbs
Convergence of ABC methods
Bayes Belief Networks
GAN for Bayesian Inference objectives
NBBC15, Reyjavik, June 08, 2015
PMED Transition Workshop - Non-parametric Techniques for Estimating Tumor Het...
ABC-Gibbs
Bayesian Neural Networks
BAYSM'14, Wien, Austria
Probability distributions for ml
cps170_bayes_nets.ppt
Elements of Statistical Learning 読み会 第2章
ch8Bayes.ppt
Bayesian probabilistic interference
Bayesian probabilistic interference
PCB_Lect02_Pairwise_allign (1).pdf
Clustering:k-means, expect-maximization and gaussian mixture model
Ad

Recently uploaded (20)

PPTX
CPAR7 ARTS GRADE 112 LITERARY ARTS OR LI
PDF
630895715-Romanesque-Architecture-ppt.pdf
PDF
Arts and Crats of Cagayan and Central Luzon.pdf
PPTX
Green and Blue Illustrative Earth Day Presentation.pptx
PDF
Dating-Courtship-Marriage-and-Responsible-Parenthood.pdf
PPSX
Multiple scenes in a single painting.ppsx
PPTX
Lung Cancer - Bimbingan.pptxmnbmbnmnmn mn mn
PDF
Ricardo Salinas Pliego Accused of Acting as A Narcotics Kingpin
PPTX
Socio ch 1 characteristics characteristics
PPTX
DIMAYUGA ANDEA MAE P. BSED ENG 3-2 (CHAPTER 7).pptx
PPTX
Presentation on tradtional textiles of kutch
PPTX
Physical Education and Health Q4-CO4-TARPAPEL
PDF
Chapter 3 about The site of the first mass
PPTX
4277547e-f8e2-414e-8962-bf501ea91259.pptx
PPTX
Brown and Beige Vintage Scrapbook Idea Board Presentation.pptx.pptx
PPTX
Slide_Egg-81850-About Us PowerPoint Template Free.pptx
PPTX
G10 HOMEROOM PARENT-TEACHER ASSOCIATION MEETING SATURDAY.pptx
PPTX
573393963-choose-your-own-adventure(2).pptx
PDF
Slide_BIS 2020 v2.pdf....................................
PPTX
unit5-servicesrelatedtogeneticsinnursing-241221084421-d77c4adb.pptx
CPAR7 ARTS GRADE 112 LITERARY ARTS OR LI
630895715-Romanesque-Architecture-ppt.pdf
Arts and Crats of Cagayan and Central Luzon.pdf
Green and Blue Illustrative Earth Day Presentation.pptx
Dating-Courtship-Marriage-and-Responsible-Parenthood.pdf
Multiple scenes in a single painting.ppsx
Lung Cancer - Bimbingan.pptxmnbmbnmnmn mn mn
Ricardo Salinas Pliego Accused of Acting as A Narcotics Kingpin
Socio ch 1 characteristics characteristics
DIMAYUGA ANDEA MAE P. BSED ENG 3-2 (CHAPTER 7).pptx
Presentation on tradtional textiles of kutch
Physical Education and Health Q4-CO4-TARPAPEL
Chapter 3 about The site of the first mass
4277547e-f8e2-414e-8962-bf501ea91259.pptx
Brown and Beige Vintage Scrapbook Idea Board Presentation.pptx.pptx
Slide_Egg-81850-About Us PowerPoint Template Free.pptx
G10 HOMEROOM PARENT-TEACHER ASSOCIATION MEETING SATURDAY.pptx
573393963-choose-your-own-adventure(2).pptx
Slide_BIS 2020 v2.pdf....................................
unit5-servicesrelatedtogeneticsinnursing-241221084421-d77c4adb.pptx
Ad

bayesian networks simple graphical notation

  • 3. Bayesian networks • A simple, graphical notation for conditional independence assertions and hence for compact specification of full joint distributions • Syntax: – a set of nodes, one per variable – a directed, acyclic graph (link ≈ "directly influences") – a conditional distribution for each node given its parents: P (Xi | Parents (Xi)) • In the simplest case, conditional distribution represented as a conditional probability table (CPT) giving the distribution over Xi for each combination of parent values –
  • 4. Example • Topology of network encodes conditional independence assertions: • Weather is independent of the other variables • Toothache and Catch are conditionally independent given Cavity
  • 5. 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
  • 7. Compactness • A CPT for Boolean Xi with k Boolean parents has 2k 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 · 2k ) 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. 25 -1 = 31)
  • 8. Semantics The full joint distribution is defined as the product of the local conditional distributions: P (X1, … ,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
  • 9. Constructing Bayesian networks • 1. Choose an ordering of variables X1, … ,Xn • 2. For i = 1 to n – add Xi to the network – select parents from X1, … ,Xi-1 such that P (Xi | Parents(Xi)) = P (Xi | X1, ... Xi-1) This choice of parents guarantees: P (X1, … ,Xn) = πi =1 P (Xi | X1, … , Xi-1) = πi =1P (Xi | Parents(Xi)) (by construction) (chain rule) • – n n
  • 10. • Suppose we choose the ordering M, J, A, B, E P(J | M) = P(J)? • • Example
  • 11. • Suppose we choose the ordering M, J, A, B, E P(J | M) = P(J)? P(A | J, M) = P(A | J)? P(A | J, M) = P(A)? • No • Example
  • 12. • Suppose we choose the ordering M, J, A, B, E P(J | M) = P(J)? P(A | J, M) = P(A | J)? P(A | J, M) = P(A)? No P(B | A, J, M) = P(B | A)? P(B | A, J, M) = P(B)? • No • Example
  • 13. • Suppose we choose the ordering M, J, A, B, E P(J | M) = P(J)? 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)? P(E | B, A, J, M) = P(E | A, B)? • No • Example
  • 14. • Suppose we choose the ordering M, J, A, B, E P(J | M) = P(J)? 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 P(E | B, A, J, M) = P(E | A, B)? Yes • No • Example
  • 15. Example contd. • Deciding conditional independence is hard in noncausal directions • (Causal models and conditional independence seem hardwired for humans!) • Network is less compact: 1 + 2 + 4 + 2 + 4 = 13 numbers needed • • •
  • 16. 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