Algorithms for Reasoning with graphical models
Slides Set 6:
Rina Dechter
slides6 828X 2019
Darwiche chapters 5,
Slides Set 6: Building Bayesian Networks Rina Dechter Darwiche - - PowerPoint PPT Presentation
Algorithms for Reasoning with graphical models Slides Set 6: Building Bayesian Networks Rina Dechter Darwiche chapters 5, slides6 828X 2019 Queries: Different queries may be relevant for different scenarios http://reasoning.cs.ucla.edu/samiam
slides6 828X 2019
Darwiche chapters 5,
Queries: Different queries may be relevant for different scenarios
For other tools see class page http://reasoning.cs.ucla.edu/samiam
Other type of evidence: We may want to know the probability that the patient has either a positive X-ray or dyspnoea, X =yes or D=yes.
C= lung cancer
P(V=yes|E=yes) P(V=yes|E=no) =2 Define a CPT for V that satisfies this constraint
Soft evidence of Positive x-ray or Dyspnoea (X=yes or D = yes) with odds
Modelling: Add E variable and Add V to model soft evidence.
MPE is also called MAP
MPE is also called MAP
MAP is also called Marginal Map (MMAP)
What about the boundary strata?
Intuition: The causes of X can serve as the parents
Variables? Arcs? Try it.
What about?
A naive Bayes structure has the following edges C -> A1, . . . , C -> Am, where C is called the class variable and A1; : : : ;Am are called the attributes.
Learn the model from data
Learning the model
Try it: Variables and values? Structure? CPTs?
Read in the book. We will not cover this.
Try it: Variables? Values? Structure?
Variables? Values? Structure?
Try it: Variables, values, structure?
What queries should we use here? P(Y not equal U) = 0.01
WER (word error rate), BER (bit error rate) MAP (MPE) minimizes WER, PM minimize BER… What do you think?
Notice: Odds: o(x) = P(x)\P(bar(x)) K =Bayes factor = o’(x)\o(x) … the posterior odds after observing divided by prior odds For Gausian x: evidence on Y=y can be emulated with soft evidence on x with K =f(y|x) \f(y|bar(x)) = the expression above.
152
153
S23m L21f L21m L23m X21 S23f L22f L22m L23f X22 X23 S13m L11f L11m L13m X11 S13f L12f L12m L13f X12 X13 y3 y2 y1
t t
13 23
Locus 1 Locus 2
Deterministic relationships Probabilistic relationships
154
L11m L11f X11 L12m L12f X12 L13m L13f X13 L14m L14f X14 L15m L15f X15 L16m L16f X16 S13m S15m S16m S15m S15m S15m L21m L21f X21 L22m L22f X22 L23m L23f X23 L24m L24f X24 L25m L25f X25 L26m L26f X26 S23m S25m S26m S25m S25m S25m L31m L31f X31 L32m L32f X32 L33m L33f X33 L34m L34f X34 L35m L35f X35 L36m L36f X36 S33m S35m S36m S35m S35m S35m