Bayes Nets for representing and reasoning about uncertainty

Size: px
Start display at page:

Download "Bayes Nets for representing and reasoning about uncertainty"

Transcription

1 Bayes Nets for representing and reasoning about uncertainty Note to other teachers and users of these slides. ndrew would be delighted if you found this source material useful in giving your own lectures. Feel free to use these slides verbatim, or to modify them to fit your own needs. PowerPoint originals are available. If you make use of a significant portion of these slides in your own lecture, please include this message, or the following link to the source repository of ndrew s tutorials: Comments and corrections gratefully received. ndrew W. Moore Professor School of Computer Science Carnegie Mellon University awm@cs.cmu.edu What we ll discuss Recall the numerous and dramatic benefits of Joint Distributions for describing uncertain worlds Reel with terror at the problem with using Joint Distributions Discover how Bayes Net methodology allows us to built Joint Distributions in manageable chunks Discover there s still a lurking problem Start to solve that problem 2

2 Why this matters In ndrew s opinion, the most important technology in the Machine Learning / I field to have emerged in the last years. clean, clear, manageable language and methodology for expressing what you re certain and uncertain about lready, many practical applications in medicine, factories, helpdesks: this problem these symptoms) anomalousness of this observation choosing next diagnostic test these observations 3 Why this matters In ndrew s opinion, the most important technology in the Machine Learning / I field ctive to have Data emerged in the last years. Collection clean, clear, manageable language and methodology for expressing what you re Inference certain and uncertain about lready, many practical applications nomaly in medicine, factories, helpdesks: Detection this problem these symptoms) anomalousness of this observation choosing next diagnostic test these observations 4 2

3 Ways to deal with Uncertainty Three-valued logic: True / False / Maybe Fuzzy logic (truth values between and ) Non-monotonic reasoning (especially focused on Penguin informatics) Dempster-Shafer theory (and an extension known as quasi-bayesian theory) Possibabilistic Logic Probability 5 Discrete Random Variables is a Boolean-valued random variable if denotes an event, and there is some degree of uncertainty as to whether occurs. Examples The US president in 223 will be male You wake up tomorrow with a headache You have Ebola 6 3

4 Probabilities We write ) as the fraction of possible worlds in which is true We could at this point spend 2 hours on the philosophy of this. But we won t. 7 Visualizing Event space of all possible worlds Worlds in which is true ) rea of reddish oval Its area is Worlds in which is False 8 4

5 Interpreting the axioms < ) < True) False) or B) ) + B) - and B) The area of can t get any smaller than nd a zero area would mean no world could ever have true 9 Interpreting the axioms < ) < True) False) or B) ) + B) - and B) The area of can t get any bigger than nd an area of would mean all worlds will have true 5

6 Interpreting the axioms < ) < True) False) or B) ) + B) - and B) B Interpreting the axioms < ) < True) False) or B) ) + B) - and B) B or B) and B) B Simple addition and subtraction 2 6

7 These xioms are Not to be Trifled With There have been attempts to do different methodologies for uncertainty Fuzzy Logic Three-valued logic Dempster-Shafer Non-monotonic reasoning But the axioms of probability are the only system with this property: If you gamble using them you can t be unfairly exploited by an opponent using some other system [di Finetti 93] 3 Theorems from the xioms < ) <, True), False) or B) ) + B) - and B) From these we can prove: not ) ~) -) How? 4 7

8 Side Note I am inflicting these proofs on you for two reasons:. These kind of manipulations will need to be second nature to you if you use probabilistic analytics in depth 2. Suffering is good for you 5 nother important theorem < ) <, True), False) or B) ) + B) - and B) From these we can prove: ) ^ B) + ^ ~B) How? 6 8

9 Conditional Probability B) Fraction of worlds in which B is true that also have true H Have a headache F Coming down with Flu F H) / F) /4 H F) /2 H Headaches are rare and flu is rarer, but if you re coming down with flu there s a 5-5 chance you ll have a headache. 7 Conditional Probability F H F) Fraction of flu-inflicted worlds in which you have a headache H Have a headache F Coming down with Flu H) / F) /4 H F) /2 H #worlds with flu and headache #worlds with flu rea of H and F region rea of F region H ^ F) F) 8 9

10 Definition of Conditional Probability ^ B) B) B) Corollary: The Chain Rule ^ B) B) B) 9 Bayes Rule ^ B) B) B) B ) ) ) This is Bayes Rule Bayes, Thomas (763) n essay towards solving a problem in the doctrine of chances. Philosophical Transactions of the Royal Society of London, 53:

11 Using Bayes Rule to Gamble R R B B $. R B B The Win envelope has a dollar and four beads in it The Lose envelope has three beads and no money Trivial question: someone draws an envelope at random and offers to sell it to you. How much should you pay? 2 Using Bayes Rule to Gamble $. The Win envelope has a dollar and four beads in it The Lose envelope has three beads and no money Interesting question: before deciding, you are allowed to see one bead drawn from the envelope. Suppose it s black: How much should you pay? Suppose it s red: How much should you pay? 22

12 Calculation $. 23 Multivalued Random Variables Suppose can take on more than 2 values is a random variable with arity k if it can take on exactly one value out of {v,v 2,.. v k } Thus v P v v v ) if i j v ) i j ( 2 k 24 2

13 n easy fact about Multivalued Random Variables: Using the axioms of probability < ) <, True), False) or B) ) + B) - and B) nd assuming that obeys v P v It s easy to prove that v v ) if i v ) i j ( 2 k j v v2 v ) i i v j j ) 25 n easy fact about Multivalued Random Variables: Using the axioms of probability < ) <, True), False) or B) ) + B) - and B) nd assuming that obeys v P v It s easy to prove that v v ) if i v ) i j ( 2 k j v v2 v ) nd thus we can prove k j v j i i v j j ) ) 26 3

14 4 27 nother fact about Multivalued Random Variables: Using the axioms of probability < ) <, True), False) or B) ) + B) - and B) nd assuming that obeys It s easy to prove that j i v v P j i if ) ( ) ( 2 k v v v P ) ( ]) [ ( 2 i j i v j B P v v v B P 28 nother fact about Multivalued Random Variables: Using the axioms of probability < ) <, True), False) or B) ) + B) - and B) nd assuming that obeys It s easy to prove that j i v v P j i if ) ( ) ( 2 k v v v P ) ( ]) [ ( 2 i j i v j B P v v v B P nd thus we can prove ) ( ) ( k j v j B P B P

15 More General Forms of Bayes Rule B ) ) B) B ) ) + B ~ ) ~ ) B X) X) B X) B X) 29 More General Forms of Bayes Rule v i B) n k B v ) v ) B v i ) v ) k i k 3 5

16 Useful Easy-to-prove facts B) + B) n k v k B) 3 The Joint Distribution Recipe for making a joint distribution of M variables: Example: Boolean variables, B, C 32 6

17 The Joint Distribution Recipe for making a joint distribution of M variables:. Make a truth table listing all combinations of values of your variables (if there are M Boolean variables then the table will have 2 M rows). Example: Boolean variables, B, C B C 33 The Joint Distribution Recipe for making a joint distribution of M variables:. Make a truth table listing all combinations of values of your variables (if there are M Boolean variables then the table will have 2 M rows). 2. For each combination of values, say how probable it is. Example: Boolean variables, B, C B C Prob

18 The Joint Distribution Recipe for making a joint distribution of M variables:. Make a truth table listing all combinations of values of your variables (if there are M Boolean variables then the table will have 2 M rows). 2. For each combination of values, say how probable it is. 3. If you subscribe to the axioms of probability, those numbers must sum to. Example: Boolean variables, B, C B.5.25 C.5 Prob C.3 B. 35 Using the Joint Once you have the JD you can ask for the probability of any logical expression involving your attribute E) rows matching E row) 36 8

19 Using the Joint Poor Male).4654 E) rows matching E row) 37 Using the Joint Poor).764 E) rows matching E row) 38 9

20 Inference with the Joint E E 2 ) E E2) E ) 2 rows matching E and E rows matching E row) 2 2 row) 39 Inference with the Joint E E 2 ) E E2) E ) 2 rows matching E and E rows matching E row) 2 2 row) Male Poor).4654 /

21 Joint distributions Good news Once you have a joint distribution, you can ask important questions about stuff that involves a lot of uncertainty Bad news Impossible to create for more than about ten attributes because there are so many numbers needed when you build the damn thing. 4 Using fewer numbers Suppose there are two events: M: Manuela teaches the class (otherwise it s ndrew) S: It is sunny The joint p.d.f. for these events contain four entries. If we want to build the joint p.d.f. we ll have to invent those four numbers. OR WILL WE?? We don t have to specify with bottom level conjunctive events such as ~M^S) IF instead it may sometimes be more convenient for us to specify things like: M), S). But just M) and S) don t derive the joint distribution. So you can t answer all questions. 42 2

22 Using fewer numbers Suppose there are two events: M: Manuela teaches the class (otherwise it s ndrew) S: It is sunny The joint p.d.f. for these events contain four entries. If we want to build the joint p.d.f. we ll have to invent those four numbers. OR WILL WE?? We don t have to specify with bottom level conjunctive events such as ~M^S) IF instead it may sometimes be more convenient for us to specify things like: M), S). But just M) and S) don t derive the joint distribution. So you can t answer all questions. What extra assumption can you make? 43 Independence The sunshine levels do not depend on and do not influence who is teaching. This can be specified very simply: S M) S) This is a powerful statement! It required extra domain knowledge. different kind of knowledge than numerical probabilities. It needed an understanding of causation

23 Independence From S M) S), the rules of probability imply: (can you prove these?) ~S M) ~S) M S) M) M ^ S) M) S) ~M ^ S) ~M) S), (PM^~S) M)~S), ~M^~S) ~M)~S) 45 Independence From S M) S), the rules of probability imply: (can you prove these?) nd in general: ~S M) ~S) Mu ^ Sv) Mu) Sv) M S) M) for each of the four combinations of M ^ S) M) S) utrue/false vtrue/false ~M ^ S) ~M) S), (PM^~S) M)~S), ~M^~S) ~M)~S) 46 23

24 We ve stated: M).6 S).3 S M) S) Independence From these statements, we can derive the full joint pdf. T T F F M T F T F S Prob nd since we now have the joint pdf, we can make any queries we like. 47 more interesting case M : Manuela teaches the class S : It is sunny L : The lecturer arrives slightly late. ssume both lecturers are sometimes delayed by bad weather. ndrew is more likely to arrive late than Manuela

25 more interesting case M : Manuela teaches the class S : It is sunny L : The lecturer arrives slightly late. ssume both lecturers are sometimes delayed by bad weather. ndrew is more likely to arrive late than Manuela. Let s begin with writing down knowledge we re happy about: S M) S), S).3, M).6 Lateness is not independent of the weather and is not independent of the lecturer. 49 more interesting case M : Manuela teaches the class S : It is sunny L : The lecturer arrives slightly late. ssume both lecturers are sometimes delayed by bad weather. ndrew is more likely to arrive late than Manuela. Let s begin with writing down knowledge we re happy about: S M) S), S).3, M).6 Lateness is not independent of the weather and is not independent of the lecturer. We already know the Joint of S and M, so all we need now is L Su, Mv) in the 4 cases of u/v True/False. 5 25

26 more interesting case M : Manuela teaches the class S : It is sunny L : The lecturer arrives slightly late. ssume both lecturers are sometimes delayed by bad weather. ndrew is more likely to arrive late than Manuela. S M) S) S).3 M).6 L M ^ S).5 L M ^ ~S). L ~M ^ S). L ~M ^ ~S).2 Now we can derive a full joint p.d.f. with a mere six numbers instead of seven* *Savings are larger for larger numbers of variables. 5 more interesting case M : Manuela teaches the class S : It is sunny L : The lecturer arrives slightly late. ssume both lecturers are sometimes delayed by bad weather. ndrew is more likely to arrive late than Manuela. S M) S) S).3 M).6 L M ^ S).5 L M ^ ~S). L ~M ^ S). L ~M ^ ~S).2 Question: Express Lx ^ My ^ Sz) in terms that only need the above expressions, where x,y and z may each be True or False

27 bit of notation S M) S) S).3 M).6 L M ^ S).5 L M ^ ~S). L ~M ^ S). L ~M ^ ~S).2 s).3 S M M).6 L M^S).5 L M^~S). L ~M^S). L ~M^~S).2 L 53 S M) S) S).3 M).6 s).3 bit of notation L M ^ S).5 L M ^ ~S) Read. the absence of an arrow L ~M ^ S) between. S and M to mean it L ~M ^ ~S) would.2not help me predict M if I knew the value of S M).6 S M This kind of stuff will be thoroughly formalized later L M^S).5 L M^~S). L ~M^S). L ~M^~S).2 L Read the two arrows into L to mean that if I want to know the value of L it may help me to know M and to know S

28 n even cuter trick Suppose we have these three events: M : Lecture taught by Manuela L : Lecturer arrives late R : Lecture concerns robots Suppose: ndrew has a higher chance of being late than Manuela. ndrew has a higher chance of giving robotics lectures. What kind of independence can we find? How about: L M) L)? R M) R)? L R) L)? 55 Conditional independence Once you know who the lecturer is, then whether they arrive late doesn t affect whether the lecture concerns robots. R M,L) R M) and R ~M,L) R ~M) We express this in the following way: R and L are conditionally independent given M..which is also notated by the following diagram. L M R Given knowledge of M, knowing anything else in the diagram won t help us with L, etc

29 Conditional Independence formalized R and L are conditionally independent given M if for all x,y,z in {T,F}: Rx My ^ Lz) Rx My) More generally: Let S and S2 and S3 be sets of variables. Set-of-variables S and set-of-variables S2 are conditionally independent given S3 if for all assignments of values to the variables in the sets, S s assignments S 2 s assignments & S 3 s assignments) S s assignments S3 s assignments) 57 Example: Shoe-size is conditionally independent of Glove-size given height weight and age R and L are conditionally independent given M if means for all x,y,z in {T,F}: forall s,g,h,w,a Rx My ShoeSizes Heighth,Weightw,gea) ^ Lz) Rx My) ShoeSizes Heighth,Weightw,gea,GloveSizeg) More generally: Let S and S2 and S3 be sets of variables. Set-of-variables S and set-of-variables S2 are conditionally independent given S3 if for all assignments of values to the variables in the sets, S s assignments S 2 s assignments & S 3 s assignments) S s assignments S3 s assignments) 58 29

30 Example: Shoe-size is conditionally independent of Glove-size given height weight and age R and L are conditionally independent given M if does not mean for all x,y,z in {T,F}: forall s,g,h Rx My ^ Lz) ShoeSizes Heighth) Rx My) ShoeSizes Heighth, GloveSizeg) More generally: Let S and S2 and S3 be sets of variables. Set-of-variables S and set-of-variables S2 are conditionally independent given S3 if for all assignments of values to the variables in the sets, S s assignments S 2 s assignments & S 3 s assignments) S s assignments S3 s assignments) 59 Conditional independence L M R We can write down M). nd then, since we know L is only directly influenced by M, we can write down the values of L M) and L ~M) and know we ve fully specified L s behavior. Ditto for R. M).6 L M).85 L ~M).7 R M).3 R ~M).6 R and L conditionally independent given M 6 3

31 Conditional independence M M).6 L L M).85 L ~M).7 R M).3 R ~M).6 R Conditional Independence: R M,L) R M), R ~M,L) R ~M) gain, we can obtain any member of the Joint prob dist that we desire: Lx ^ Ry ^ Mz) 6 ssume five variables T: The lecture started by :35 L: The lecturer arrives late R: The lecture concerns robots M: The lecturer is Manuela S: It is sunny T only directly influenced by L (i.e. T is conditionally independent of R,M,S given L) L only directly influenced by M and S (i.e. L is conditionally independent of R given M & S) R only directly influenced by M (i.e. R is conditionally independent of L,S, given M) M and S are independent 62 3

32 Making a Bayes net T: The lecture started by :35 L: The lecturer arrives late R: The lecture concerns robots M: The lecturer is Manuela S: It is sunny S M L R T Step One: add variables. Just choose the variables you d like to be included in the net. 63 Making a Bayes net T: The lecture started by :35 L: The lecturer arrives late R: The lecture concerns robots M: The lecturer is Manuela S: It is sunny S M L R T Step Two: add links. The link structure must be acyclic. If node X is given parents Q,Q 2,..Q n you are promising that any variable that s a non-descendent of X is conditionally independent of X given {Q,Q 2,..Q n } 64 32

33 Making a Bayes net T: The lecture started by :35 L: The lecturer arrives late R: The lecture concerns robots M: The lecturer is Manuela S: It is sunny s).3 S M M).6 L M^S).5 L M^~S). L ~M^S). L ~M^~S).2 L T T L).3 T ~L).8 R R M).3 R ~M).6 Step Three: add a probability table for each node. The table for node X must list X Parent Values) for each possible combination of parent values 65 Making a Bayes net T: The lecture started by :35 L: The lecturer arrives late R: The lecture concerns robots M: The lecturer is Manuela S: It is sunny s).3 S M M).6 L M^S).5 L M^~S). L ~M^S). L ~M^~S).2 L T T L).3 T ~L).8 R R M).3 R ~M).6 Two unconnected variables may still be correlated Each node is conditionally independent of all nondescendants in the tree, given its parents. You can deduce many other conditional independence relations from a Bayes net. See the next lecture

34 Bayes Nets Formalized Bayes net (also called a belief network) is an augmented directed acyclic graph, represented by the pair V, E where: V is a set of vertices. E is a set of directed edges joining vertices. No loops of any length are allowed. Each vertex in V contains the following information: The name of a random variable probability distribution table indicating how the probability of this variable s values depends on all possible combinations of parental values. 67 Building a Bayes Net. Choose a set of relevant variables. 2. Choose an ordering for them 3. ssume they re called X.. X m (where X is the first in the ordering, X is the second, etc) 4. For i to m:. dd the X i node to the network 2. Set Parents(X i ) to be a minimal subset of {X X i- } such that we have conditional independence of X i and all other members of {X X i- } given Parents(X i ) 3. Define the probability table of X i k ssignments of Parents(X i ) )

35 Example Bayes Net Building Suppose we re building a nuclear power station. There are the following random variables: GRL : Gauge Reads Low. CTL : Core temperature is low. FG : Gauge is faulty. F : larm is faulty S : larm sounds If alarm working properly, the alarm is meant to sound if the gauge stops reading a low temp. If gauge working properly, the gauge is meant to read the temp of the core. 69 Computing a Joint Entry How to compute an entry in a joint distribution? E.G: What is S ^ ~M ^ L ~R ^ T)? s).3 S M M).6 L M^S).5 L M^~S). L ~M^S). L ~M^~S).2 L T T L).3 T ~L).8 R R M).3 R ~M)

36 s).3 L M^S).5 L M^~S). L ~M^S). L ~M^~S).2 Computing with Bayes Net S L T M T L).3 T ~L).8 M).6 R R M).3 R ~M).6 T ^ ~R ^ L ^ ~M ^ S) T ~R ^ L ^ ~M ^ S) * ~R ^ L ^ ~M ^ S) T L) * ~R ^ L ^ ~M ^ S) T L) * ~R L ^ ~M ^ S) * L^~M^S) T L) * ~R ~M) * L^~M^S) T L) * ~R ~M) * L ~M^S)*~M^S) T L) * ~R ~M) * L ~M^S)*~M S)*S) T L) * ~R ~M) * L ~M^S)*~M)*S). 7 The general case X x ^ X 2 x 2 ^.X n- x n- ^ X n x n ) X n x n ^ X n- x n- ^.X 2 x 2 ^ X x ) X n x n X n- x n- ^.X 2 x 2 ^ X x ) * X n- x n- ^. X 2 x 2 ^ X x ) X n x n X n- x n- ^.X 2 x 2 ^ X x ) * X n- x n-. X 2 x 2 ^ X x ) * X n-2 x n-2 ^. X 2 x 2 ^ X x ) : : n P X x X x K X x i n i P ( )(( ) ( ))) i i ( X x ) ssignment s of Parents( X )) i i i i So any entry in joint pdf table can be computed. nd so any conditional probability can be computed. i 72 36

37 Where are we now? We have a methodology for building Bayes nets. We don t require exponential storage to hold our probability table. Only exponential in the maximum number of parents of any node. We can compute probabilities of any given assignment of truth values to the variables. nd we can do it in time linear with the number of nodes. So we can also compute answers to any questions. s).3 L M^S).5 L M^~S). L ~M^S). L ~M^~S).2 E.G. What could we do to compute R T,~S)? S L T M T L).3 T ~L).8 M).6 R R M).3 R ~M).6 73 Where are we now? Step We : Compute have a methodology R ^ T ^ ~S) for building Bayes nets. We don t require exponential storage to hold our probability Step 2: Compute ~R ^ T ^ ~S) table. Only exponential in the maximum number of parents of any node. Step 3: Return We can compute probabilities of any given assignment of truth values to the variables. nd we can do it in time R ^ T ^ ~S) linear with the number of nodes R So we ^ T ^ can ~S)+ also ~R compute ^ T ^ ~S) answers to any questions. s).3 L M^S).5 L M^~S). L ~M^S). L ~M^~S).2 E.G. What could we do to compute R T,~S)? S L T M T L).3 T ~L).8 M).6 R R M).3 R ~M)

38 Where are we now? Step We : Compute have a methodology R ^ T ^ ~S) for building Sum Bayes of all the nets. rows in the Joint that match R ^ T ^ ~S We don t require exponential storage to hold our probability Step 2: Compute ~R ^ T ^ ~S) table. Only exponential in the maximum number of parents of any node. Sum of all the rows in the Joint Step 3: Return We can compute probabilities of any that given match assignment ~R ^ T ^ ~Sof truth values to the variables. nd we can do it in time R ^ T ^ ~S) linear with the number of nodes R So we ^ T ^ can ~S)+ also ~R compute ^ T ^ ~S) answers to any questions. s).3 L M^S).5 L M^~S). L ~M^S). L ~M^~S).2 E.G. What could we do to compute R T,~S)? S L T M T L).3 T ~L).8 M).6 R R M).3 R ~M).6 75 Where are we now? Step We : Compute have a methodology R ^ T ^ ~S) for building Sum Bayes of all the nets. rows in the Joint that match R ^ T ^ ~S We don t require exponential storage to hold our probability Step 2: Compute ~R ^ T ^ ~S) table. Only exponential in the maximum number of parents of any node. Sum of all the rows in the Joint Step 3: Return We can compute probabilities of any that given match assignment ~R ^ T ^ ~Sof truth values to the variables. nd we can do it in time R ^ T ^ ~S) linear with the number of nodes R So we ^ T ^ can ~S)+ also ~R compute ^ T ^ ~S) answers Each to any of these questions. obtained by the computing a joint s).3 S M M).6 probability entry method of the earlier slides L M^S).5 L M^~S). L ~M^S). L ~M^~S).2 L T T L).3 T ~L).8 E.G. What could we do to compute R T,~S)? R R M).3 R ~M).6 4 joint computes 4 joint computes 76 38

39 The good news We can do inference. We can compute any conditional probability: Some variable Some other variable values ) E E 2 ) E E2) E ) 2 joint entries matching E and E joint entries matching E joint entry) joint entry) The good news We can do inference. We can compute any conditional probability: Some variable Some other variable values ) E E 2 ) E E2) E ) 2 joint entries matching E and E joint entries matching E joint entry) joint entry) 2 2 Suppose you have m binary-valued variables in your Bayes Net and expression E 2 mentions k variables. How much work is the above computation? 78 39

40 The sad, bad news Conditional probabilities by enumerating all matching entries in the joint are expensive: Exponential in the number of variables. 79 The sad, bad news Conditional probabilities by enumerating all matching entries in the joint are expensive: Exponential in the number of variables. But perhaps there are faster ways of querying Bayes nets? In fact, if I ever ask you to manually do a Bayes Net inference, you ll find there are often many tricks to save you time. So we ve just got to program our computer to do those tricks too, right? 8 4

41 The sad, bad news Conditional probabilities by enumerating all matching entries in the joint are expensive: Exponential in the number of variables. But perhaps there are faster ways of querying Bayes nets? In fact, if I ever ask you to manually do a Bayes Net inference, you ll find there are often many tricks to save you time. So we ve just got to program our computer to do those tricks too, right? Sadder and worse news: General querying of Bayes nets is NP-complete. 8 Bayes nets inference algorithms poly-tree is a directed acyclic graph in which no two nodes have more than one path between them. S X X M 2 L T poly tree X 3 X 5 R X 4 S X X 2 M L X 3 R X 4 X T 5 Not a poly tree (but still a legal Bayes net) If net is a poly-tree, there is a linear-time algorithm (see a later ndrew lecture). The best general-case algorithms convert a general net to a polytree (often at huge expense) and calls the poly-tree algorithm. nother popular, practical approach (doesn t assume poly-tree): Stochastic Simulation. 82 4

42 Sampling from the Joint Distribution s).3 S M M).6 L M^S).5 L M^~S). L ~M^S). L ~M^~S).2 L T T L).3 T ~L).8 R R M).3 R ~M).6 It s pretty easy to generate a set of variable-assignments at random with the same probability as the underlying joint distribution. How? 83 Sampling from the Joint Distribution s).3 S M M).6 L M^S).5 L M^~S). L ~M^S). L ~M^~S).2 L T T L).3 T ~L).8 R R M).3 R ~M).6 It s pretty easy to generate a set of variable-assignments at random with the same probability as the underlying joint distribution. How? 84 42

43 85 Sampling from the Joint Distribution s).3 S M M).6 L M^S).5 L M^~S). L ~M^S). L ~M^~S).2 L T T L).3 T ~L).8 R R M).3 R ~M).6. Randomly choose S. S True with prob.3 2. Randomly choose M. M True with prob.6 3. Randomly choose L. The probability that L is true depends on the assignments of S and M. E.G. if steps and 2 had produced STrue, MFalse, then probability that L is true is. 4. Randomly choose R. Probability depends on M. 5. Randomly choose T. Probability depends on L 86 43

44 general sampling algorithm Let s generalize the example on the previous slide to a general Bayes Net. s in Slides 6-7, call the variables X.. X n, where Parents(X i ) must be a subset of {X.. X i- }. For i to n:. Find parents, if any, of X i. ssume n(i) parents. Call them X p(i,), X p(i,2), X p(i,n(i)). 2. Recall the values that those parents were randomly given: x p(i,), x p(i,2), x p(i,n(i)). 3. Look up in the lookup-table for: X i True X p(i,) x p(i,),x p(i,2) x p(i,2) X p(i,n(i)) x p(i,n(i)) ) 4. Randomly set x i True according to this probability x, x 2, x n are now a sample from the joint distribution of X, X 2, X n. 87 Stochastic Simulation Example Someone wants to know R True T True ^ S False ) We ll do lots of random samplings and count the number of occurrences of the following: N c : Num. samples in which TTrue and SFalse. N s : Num. samples in which RTrue, TTrue and SFalse. N : Number of random samplings Now if N is big enough: N c /N is a good estimate of TTrue and SFalse). N s /N is a good estimate of RTrue,TTrue, SFalse). R T^~S) R^T^~S)/T^~S), so N s / N c can be a good estimate of R T^~S)

45 General Stochastic Simulation Someone wants to know E E 2 ) We ll do lots of random samplings and count the number of occurrences of the following: N c : Num. samples in which E 2 N s : Num. samples in which E and E 2 N : Number of random samplings Now if N is big enough: N c /N is a good estimate of E 2 ). N s /N is a good estimate of E, E 2 ). E E 2 ) E ^ E 2 )/E 2 ), so N s / N c can be a good estimate of E E 2 ). 89 Likelihood weighting Problem with Stochastic Sampling: With lots of constraints in E, or unlikely events in E, then most of the simulations will be thrown away, (they ll have no effect on Nc, or Ns). Imagine we re part way through our simulation. In E2 we have the constraint Xi v We re just about to generate a value for Xi at random. Given the values assigned to the parents, we see that Xi v parents) p. Now we know that with stochastic sampling: we ll generate Xi v proportion p of the time, and proceed. nd we ll generate a different value proportion -p of the time, and the simulation will be wasted. Instead, always generate Xi v, but weight the answer by weight p to compensate. 9 45

46 Likelihood weighting Set N c :, N s :. Generate a random assignment of all variables that matches E 2. This process returns a weight w. 2. Define w to be the probability that this assignment would have been generated instead of an unmatching assignment during its generation in the original algorithm.fact: w is a product of all likelihood factors involved in the generation. 3. N c : N c + w 4. If our sample matches E then N s : N s + w 5. Go to gain, N s / N c estimates E E 2 ) 9 Case Study I Pathfinder system. (Heckerman 99, Probabilistic Similarity Networks, MIT Press, Cambridge M). Diagnostic system for lymph-node diseases. 6 diseases and symptoms and test-results. 4, probabilities Expert consulted to make net. 8 hours to determine variables. 35 hours for net topology. 4 hours for probability table values. pparently, the experts found it quite easy to invent the causal links and probabilities. Pathfinder is now outperforming the world experts in diagnosis. Being extended to several dozen other medical domains

47 Questions What are the strengths of probabilistic networks compared with propositional logic? What are the weaknesses of probabilistic networks compared with propositional logic? What are the strengths of probabilistic networks compared with predicate logic? What are the weaknesses of probabilistic networks compared with predicate logic? (How) could predicate logic and probabilistic networks be combined? 93 What you should know The meanings and importance of independence and conditional independence. The definition of a Bayes net. Computing probabilities of assignments of variables (i.e. members of the joint p.d.f.) with a Bayes net. The slow (exponential) method for computing arbitrary, conditional probabilities. The stochastic simulation method and likelihood weighting

Bayes Nets for representing and reasoning about uncertainty

Bayes Nets for representing and reasoning about uncertainty Bayes Nets for representing and reasoning about uncertainty Note to other teachers and users of these slides. ndrew would be delighted if you found this source material useful in giing your own lectures.

More information

Bayes Nets for representing

Bayes Nets for representing Bayes Nets for representing and reasoning about uncertainty Note to other teachers and users of these slides. Andrew would be delighted if you found this source material useful in giving your own lectures.

More information

Probabilistic and Bayesian Analytics

Probabilistic and Bayesian Analytics Probabilistic and Bayesian Analytics Note to other teachers and users of these slides. Andrew would be delighted if you found this source material useful in giving your own lectures. Feel free to use these

More information

Probability Basics. Robot Image Credit: Viktoriya Sukhanova 123RF.com

Probability Basics. Robot Image Credit: Viktoriya Sukhanova 123RF.com Probability Basics These slides were assembled by Eric Eaton, with grateful acknowledgement of the many others who made their course materials freely available online. Feel free to reuse or adapt these

More information

Sources of Uncertainty

Sources of Uncertainty Probability Basics Sources of Uncertainty The world is a very uncertain place... Uncertain inputs Missing data Noisy data Uncertain knowledge Mul>ple causes lead to mul>ple effects Incomplete enumera>on

More information

Machine Learning

Machine Learning Machine Learning 10-701 Tom M. Mitchell Machine Learning Department Carnegie Mellon University January 13, 2011 Today: The Big Picture Overfitting Review: probability Readings: Decision trees, overfiting

More information

Bayes Networks. CS540 Bryan R Gibson University of Wisconsin-Madison. Slides adapted from those used by Prof. Jerry Zhu, CS540-1

Bayes Networks. CS540 Bryan R Gibson University of Wisconsin-Madison. Slides adapted from those used by Prof. Jerry Zhu, CS540-1 Bayes Networks CS540 Bryan R Gibson University of Wisconsin-Madison Slides adapted from those used by Prof. Jerry Zhu, CS540-1 1 / 59 Outline Joint Probability: great for inference, terrible to obtain

More information

PROBABILISTIC REASONING SYSTEMS

PROBABILISTIC REASONING SYSTEMS PROBABILISTIC REASONING SYSTEMS In which we explain how to build reasoning systems that use network models to reason with uncertainty according to the laws of probability theory. Outline Knowledge in uncertain

More information

Lecture 10: Introduction to reasoning under uncertainty. Uncertainty

Lecture 10: Introduction to reasoning under uncertainty. Uncertainty Lecture 10: Introduction to reasoning under uncertainty Introduction to reasoning under uncertainty Review of probability Axioms and inference Conditional probability Probability distributions COMP-424,

More information

CS 331: Artificial Intelligence Probability I. Dealing with Uncertainty

CS 331: Artificial Intelligence Probability I. Dealing with Uncertainty CS 331: Artificial Intelligence Probability I Thanks to Andrew Moore for some course material 1 Dealing with Uncertainty We want to get to the point where we can reason with uncertainty This will require

More information

Machine Learning

Machine Learning Machine Learning 10-601 Tom M. Mitchell Machine Learning Department Carnegie Mellon University August 30, 2017 Today: Decision trees Overfitting The Big Picture Coming soon Probabilistic learning MLE,

More information

Machine Learning

Machine Learning Machine Learning 10-601 Tom M. Mitchell Machine Learning Department Carnegie Mellon University January 14, 2015 Today: The Big Picture Overfitting Review: probability Readings: Decision trees, overfiting

More information

Probabilistic and Bayesian Analytics Based on a Tutorial by Andrew W. Moore, Carnegie Mellon University

Probabilistic and Bayesian Analytics Based on a Tutorial by Andrew W. Moore, Carnegie Mellon University robabilistic and Bayesian Analytics Based on a Tutorial by Andrew W. Moore, Carnegie Mellon Uniersity www.cs.cmu.edu/~awm/tutorials Discrete Random Variables A is a Boolean-alued random ariable if A denotes

More information

CISC 4631 Data Mining

CISC 4631 Data Mining CISC 4631 Data Mining Lecture 06: ayes Theorem Theses slides are based on the slides by Tan, Steinbach and Kumar (textbook authors) Eamonn Koegh (UC Riverside) Andrew Moore (CMU/Google) 1 Naïve ayes Classifier

More information

Algorithms for Playing and Solving games*

Algorithms for Playing and Solving games* Algorithms for Playing and Solving games* Andrew W. Moore Professor School of Computer Science Carnegie Mellon University www.cs.cmu.edu/~awm awm@cs.cmu.edu 412-268-7599 * Two Player Zero-sum Discrete

More information

Modeling and reasoning with uncertainty

Modeling and reasoning with uncertainty CS 2710 Foundations of AI Lecture 18 Modeling and reasoning with uncertainty Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square KB systems. Medical example. We want to build a KB system for the diagnosis

More information

CS 188: Artificial Intelligence. Bayes Nets

CS 188: Artificial Intelligence. Bayes Nets CS 188: Artificial Intelligence Probabilistic Inference: Enumeration, Variable Elimination, Sampling Pieter Abbeel UC Berkeley Many slides over this course adapted from Dan Klein, Stuart Russell, Andrew

More information

A [somewhat] Quick Overview of Probability. Shannon Quinn CSCI 6900

A [somewhat] Quick Overview of Probability. Shannon Quinn CSCI 6900 A [somewhat] Quick Overview of Probability Shannon Quinn CSCI 6900 [Some material pilfered from http://www.cs.cmu.edu/~awm/tutorials] Probabilistic and Bayesian Analytics Note to other teachers and users

More information

Announcements. CS 188: Artificial Intelligence Fall Causality? Example: Traffic. Topology Limits Distributions. Example: Reverse Traffic

Announcements. CS 188: Artificial Intelligence Fall Causality? Example: Traffic. Topology Limits Distributions. Example: Reverse Traffic CS 188: Artificial Intelligence Fall 2008 Lecture 16: Bayes Nets III 10/23/2008 Announcements Midterms graded, up on glookup, back Tuesday W4 also graded, back in sections / box Past homeworks in return

More information

Bayesian Networks: Construction, Inference, Learning and Causal Interpretation. Volker Tresp Summer 2016

Bayesian Networks: Construction, Inference, Learning and Causal Interpretation. Volker Tresp Summer 2016 Bayesian Networks: Construction, Inference, Learning and Causal Interpretation Volker Tresp Summer 2016 1 Introduction So far we were mostly concerned with supervised learning: we predicted one or several

More information

Bayes and Naïve Bayes Classifiers CS434

Bayes and Naïve Bayes Classifiers CS434 Bayes and Naïve Bayes Classifiers CS434 In this lectre 1. Review some basic probability concepts 2. Introdce a sefl probabilistic rle - Bayes rle 3. Introdce the learning algorithm based on Bayes rle (ths

More information

Bayes Nets III: Inference

Bayes Nets III: Inference 1 Hal Daumé III (me@hal3.name) Bayes Nets III: Inference Hal Daumé III Computer Science University of Maryland me@hal3.name CS 421: Introduction to Artificial Intelligence 10 Apr 2012 Many slides courtesy

More information

Axioms of Probability? Notation. Bayesian Networks. Bayesian Networks. Today we ll introduce Bayesian Networks.

Axioms of Probability? Notation. Bayesian Networks. Bayesian Networks. Today we ll introduce Bayesian Networks. Bayesian Networks Today we ll introduce Bayesian Networks. This material is covered in chapters 13 and 14. Chapter 13 gives basic background on probability and Chapter 14 talks about Bayesian Networks.

More information

CS 4649/7649 Robot Intelligence: Planning

CS 4649/7649 Robot Intelligence: Planning CS 4649/7649 Robot Intelligence: Planning Probability Primer Sungmoon Joo School of Interactive Computing College of Computing Georgia Institute of Technology S. Joo (sungmoon.joo@cc.gatech.edu) 1 *Slides

More information

Bayesian networks. Soleymani. CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2018

Bayesian networks. Soleymani. CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2018 Bayesian networks CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2018 Soleymani Slides have been adopted from Klein and Abdeel, CS188, UC Berkeley. Outline Probability

More information

CS 5522: Artificial Intelligence II

CS 5522: Artificial Intelligence II CS 5522: Artificial Intelligence II Bayes Nets: Independence Instructor: Alan Ritter Ohio State University [These slides were adapted from CS188 Intro to AI at UC Berkeley. All materials available at http://ai.berkeley.edu.]

More information

Bayesian Approaches Data Mining Selected Technique

Bayesian Approaches Data Mining Selected Technique Bayesian Approaches Data Mining Selected Technique Henry Xiao xiao@cs.queensu.ca School of Computing Queen s University Henry Xiao CISC 873 Data Mining p. 1/17 Probabilistic Bases Review the fundamentals

More information

Bayesian Networks. Axioms of Probability Theory. Conditional Probability. Inference by Enumeration. Inference by Enumeration CSE 473

Bayesian Networks. Axioms of Probability Theory. Conditional Probability. Inference by Enumeration. Inference by Enumeration CSE 473 ayesian Networks CSE 473 Last Time asic notions tomic events Probabilities Joint distribution Inference by enumeration Independence & conditional independence ayes rule ayesian networks Statistical learning

More information

Basic Probability and Statistics

Basic Probability and Statistics Basic Probability and Statistics Yingyu Liang yliang@cs.wisc.edu Computer Sciences Department University of Wisconsin, Madison [based on slides from Jerry Zhu, Mark Craven] slide 1 Reasoning with Uncertainty

More information

CS 188: Artificial Intelligence Spring Announcements

CS 188: Artificial Intelligence Spring Announcements CS 188: Artificial Intelligence Spring 2011 Lecture 14: Bayes Nets II Independence 3/9/2011 Pieter Abbeel UC Berkeley Many slides over the course adapted from Dan Klein, Stuart Russell, Andrew Moore Announcements

More information

Bayes Nets: Independence

Bayes Nets: Independence Bayes Nets: Independence [These slides were created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley. All CS188 materials are available at http://ai.berkeley.edu.] Bayes Nets A Bayes

More information

Bayesian belief networks

Bayesian belief networks CS 2001 Lecture 1 Bayesian belief networks Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square 4-8845 Milos research interests Artificial Intelligence Planning, reasoning and optimization in the presence

More information

Informatics 2D Reasoning and Agents Semester 2,

Informatics 2D Reasoning and Agents Semester 2, Informatics 2D Reasoning and Agents Semester 2, 2017 2018 Alex Lascarides alex@inf.ed.ac.uk Lecture 23 Probabilistic Reasoning with Bayesian Networks 15th March 2018 Informatics UoE Informatics 2D 1 Where

More information

Bayesian Networks: Independencies and Inference

Bayesian Networks: Independencies and Inference Bayesian Networks: Independencies and Inference Scott Davies and Andrew Moore Note to other teachers and users of these slides. Andrew and Scott would be delighted if you found this source material useful

More information

Probabilistic Reasoning. (Mostly using Bayesian Networks)

Probabilistic Reasoning. (Mostly using Bayesian Networks) Probabilistic Reasoning (Mostly using Bayesian Networks) Introduction: Why probabilistic reasoning? The world is not deterministic. (Usually because information is limited.) Ways of coping with uncertainty

More information

CS 188: Artificial Intelligence Fall 2008

CS 188: Artificial Intelligence Fall 2008 CS 188: Artificial Intelligence Fall 2008 Lecture 14: Bayes Nets 10/14/2008 Dan Klein UC Berkeley 1 1 Announcements Midterm 10/21! One page note sheet Review sessions Friday and Sunday (similar) OHs on

More information

Announcements. Inference. Mid-term. Inference by Enumeration. Reminder: Alarm Network. Introduction to Artificial Intelligence. V22.

Announcements. Inference. Mid-term. Inference by Enumeration. Reminder: Alarm Network. Introduction to Artificial Intelligence. V22. Introduction to Artificial Intelligence V22.0472-001 Fall 2009 Lecture 15: Bayes Nets 3 Midterms graded Assignment 2 graded Announcements Rob Fergus Dept of Computer Science, Courant Institute, NYU Slides

More information

Bayesian Networks: Construction, Inference, Learning and Causal Interpretation. Volker Tresp Summer 2014

Bayesian Networks: Construction, Inference, Learning and Causal Interpretation. Volker Tresp Summer 2014 Bayesian Networks: Construction, Inference, Learning and Causal Interpretation Volker Tresp Summer 2014 1 Introduction So far we were mostly concerned with supervised learning: we predicted one or several

More information

Bayesian Networks BY: MOHAMAD ALSABBAGH

Bayesian Networks BY: MOHAMAD ALSABBAGH Bayesian Networks BY: MOHAMAD ALSABBAGH Outlines Introduction Bayes Rule Bayesian Networks (BN) Representation Size of a Bayesian Network Inference via BN BN Learning Dynamic BN Introduction Conditional

More information

An AI-ish view of Probability, Conditional Probability & Bayes Theorem

An AI-ish view of Probability, Conditional Probability & Bayes Theorem An AI-ish view of Probability, Conditional Probability & Bayes Theorem Review: Uncertainty and Truth Values: a mismatch Let action A t = leave for airport t minutes before flight. Will A 15 get me there

More information

10/18/2017. An AI-ish view of Probability, Conditional Probability & Bayes Theorem. Making decisions under uncertainty.

10/18/2017. An AI-ish view of Probability, Conditional Probability & Bayes Theorem. Making decisions under uncertainty. An AI-ish view of Probability, Conditional Probability & Bayes Theorem Review: Uncertainty and Truth Values: a mismatch Let action A t = leave for airport t minutes before flight. Will A 15 get me there

More information

Uncertainty. Introduction to Artificial Intelligence CS 151 Lecture 2 April 1, CS151, Spring 2004

Uncertainty. Introduction to Artificial Intelligence CS 151 Lecture 2 April 1, CS151, Spring 2004 Uncertainty Introduction to Artificial Intelligence CS 151 Lecture 2 April 1, 2004 Administration PA 1 will be handed out today. There will be a MATLAB tutorial tomorrow, Friday, April 2 in AP&M 4882 at

More information

CS 343: Artificial Intelligence

CS 343: Artificial Intelligence CS 343: Artificial Intelligence Bayes Nets: Sampling Prof. Scott Niekum The University of Texas at Austin [These slides based on those of Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley.

More information

Basic Probabilistic Reasoning SEG

Basic Probabilistic Reasoning SEG Basic Probabilistic Reasoning SEG 7450 1 Introduction Reasoning under uncertainty using probability theory Dealing with uncertainty is one of the main advantages of an expert system over a simple decision

More information

Probability Review Lecturer: Ji Liu Thank Jerry Zhu for sharing his slides

Probability Review Lecturer: Ji Liu Thank Jerry Zhu for sharing his slides Probability Review Lecturer: Ji Liu Thank Jerry Zhu for sharing his slides slide 1 Inference with Bayes rule: Example In a bag there are two envelopes one has a red ball (worth $100) and a black ball one

More information

Bayesian Networks. Motivation

Bayesian Networks. Motivation Bayesian Networks Computer Sciences 760 Spring 2014 http://pages.cs.wisc.edu/~dpage/cs760/ Motivation Assume we have five Boolean variables,,,, The joint probability is,,,, How many state configurations

More information

Lecture 8. Probabilistic Reasoning CS 486/686 May 25, 2006

Lecture 8. Probabilistic Reasoning CS 486/686 May 25, 2006 Lecture 8 Probabilistic Reasoning CS 486/686 May 25, 2006 Outline Review probabilistic inference, independence and conditional independence Bayesian networks What are they What do they mean How do we create

More information

CMPT Machine Learning. Bayesian Learning Lecture Scribe for Week 4 Jan 30th & Feb 4th

CMPT Machine Learning. Bayesian Learning Lecture Scribe for Week 4 Jan 30th & Feb 4th CMPT 882 - Machine Learning Bayesian Learning Lecture Scribe for Week 4 Jan 30th & Feb 4th Stephen Fagan sfagan@sfu.ca Overview: Introduction - Who was Bayes? - Bayesian Statistics Versus Classical Statistics

More information

Bayesian Reasoning. Adapted from slides by Tim Finin and Marie desjardins.

Bayesian Reasoning. Adapted from slides by Tim Finin and Marie desjardins. Bayesian Reasoning Adapted from slides by Tim Finin and Marie desjardins. 1 Outline Probability theory Bayesian inference From the joint distribution Using independence/factoring From sources of evidence

More information

Approximate Inference

Approximate Inference Approximate Inference Simulation has a name: sampling Sampling is a hot topic in machine learning, and it s really simple Basic idea: Draw N samples from a sampling distribution S Compute an approximate

More information

COMP5211 Lecture Note on Reasoning under Uncertainty

COMP5211 Lecture Note on Reasoning under Uncertainty COMP5211 Lecture Note on Reasoning under Uncertainty Fangzhen Lin Department of Computer Science and Engineering Hong Kong University of Science and Technology Fangzhen Lin (HKUST) Uncertainty 1 / 33 Uncertainty

More information

Probabilistic Models

Probabilistic Models Bayes Nets 1 Probabilistic Models Models describe how (a portion of) the world works Models are always simplifications May not account for every variable May not account for all interactions between variables

More information

Outline. CSE 473: Artificial Intelligence Spring Bayes Nets: Big Picture. Bayes Net Semantics. Hidden Markov Models. Example Bayes Net: Car

Outline. CSE 473: Artificial Intelligence Spring Bayes Nets: Big Picture. Bayes Net Semantics. Hidden Markov Models. Example Bayes Net: Car CSE 473: rtificial Intelligence Spring 2012 ayesian Networks Dan Weld Outline Probabilistic models (and inference) ayesian Networks (Ns) Independence in Ns Efficient Inference in Ns Learning Many slides

More information

CS 188: Artificial Intelligence Spring Announcements

CS 188: Artificial Intelligence Spring Announcements CS 188: Artificial Intelligence Spring 2011 Lecture 16: Bayes Nets IV Inference 3/28/2011 Pieter Abbeel UC Berkeley Many slides over this course adapted from Dan Klein, Stuart Russell, Andrew Moore Announcements

More information

Bayesian Networks. Distinguished Prof. Dr. Panos M. Pardalos

Bayesian Networks. Distinguished Prof. Dr. Panos M. Pardalos Distinguished Prof. Dr. Panos M. Pardalos Center for Applied Optimization Department of Industrial & Systems Engineering Computer & Information Science & Engineering Department Biomedical Engineering Program,

More information

Machine Learning. CS Spring 2015 a Bayesian Learning (I) Uncertainty

Machine Learning. CS Spring 2015 a Bayesian Learning (I) Uncertainty Machine Learning CS6375 --- Spring 2015 a Bayesian Learning (I) 1 Uncertainty Most real-world problems deal with uncertain information Diagnosis: Likely disease given observed symptoms Equipment repair:

More information

1 Probabilities. 1.1 Basics 1 PROBABILITIES

1 Probabilities. 1.1 Basics 1 PROBABILITIES 1 PROBABILITIES 1 Probabilities Probability is a tricky word usually meaning the likelyhood of something occuring or how frequent something is. Obviously, if something happens frequently, then its probability

More information

Dealing with Uncertainty. CS 331: Artificial Intelligence Probability I. Outline. Random Variables. Random Variables.

Dealing with Uncertainty. CS 331: Artificial Intelligence Probability I. Outline. Random Variables. Random Variables. Dealing with Uncertainty CS 331: Artificial Intelligence Probability I We want to get to the point where we can reason with uncertainty This will require using probability e.g. probability that it will

More information

Probabilistic representation and reasoning

Probabilistic representation and reasoning Probabilistic representation and reasoning Applied artificial intelligence (EDA132) Lecture 09 2017-02-15 Elin A. Topp Material based on course book, chapter 13, 14.1-3 1 Show time! Two boxes of chocolates,

More information

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 16, 6/1/2005 University of Washington, Department of Electrical Engineering Spring 2005 Instructor: Professor Jeff A. Bilmes Uncertainty & Bayesian Networks

More information

CS 188: Artificial Intelligence. Our Status in CS188

CS 188: Artificial Intelligence. Our Status in CS188 CS 188: Artificial Intelligence Probability Pieter Abbeel UC Berkeley Many slides adapted from Dan Klein. 1 Our Status in CS188 We re done with Part I Search and Planning! Part II: Probabilistic Reasoning

More information

Probabilistic Models. Models describe how (a portion of) the world works

Probabilistic Models. Models describe how (a portion of) the world works Probabilistic Models Models describe how (a portion of) the world works Models are always simplifications May not account for every variable May not account for all interactions between variables All models

More information

Probabilistic representation and reasoning

Probabilistic representation and reasoning Probabilistic representation and reasoning Applied artificial intelligence (EDAF70) Lecture 04 2019-02-01 Elin A. Topp Material based on course book, chapter 13, 14.1-3 1 Show time! Two boxes of chocolates,

More information

Announcements. CS 188: Artificial Intelligence Spring Probability recap. Outline. Bayes Nets: Big Picture. Graphical Model Notation

Announcements. CS 188: Artificial Intelligence Spring Probability recap. Outline. Bayes Nets: Big Picture. Graphical Model Notation CS 188: Artificial Intelligence Spring 2010 Lecture 15: Bayes Nets II Independence 3/9/2010 Pieter Abbeel UC Berkeley Many slides over the course adapted from Dan Klein, Stuart Russell, Andrew Moore Current

More information

Introduction to Bayes Nets. CS 486/686: Introduction to Artificial Intelligence Fall 2013

Introduction to Bayes Nets. CS 486/686: Introduction to Artificial Intelligence Fall 2013 Introduction to Bayes Nets CS 486/686: Introduction to Artificial Intelligence Fall 2013 1 Introduction Review probabilistic inference, independence and conditional independence Bayesian Networks - - What

More information

Directed Graphical Models or Bayesian Networks

Directed Graphical Models or Bayesian Networks Directed Graphical Models or Bayesian Networks Le Song Machine Learning II: Advanced Topics CSE 8803ML, Spring 2012 Bayesian Networks One of the most exciting recent advancements in statistical AI Compact

More information

Objectives. Probabilistic Reasoning Systems. Outline. Independence. Conditional independence. Conditional independence II.

Objectives. Probabilistic Reasoning Systems. Outline. Independence. Conditional independence. Conditional independence II. Copyright Richard J. Povinelli rev 1.0, 10/1//2001 Page 1 Probabilistic Reasoning Systems Dr. Richard J. Povinelli Objectives You should be able to apply belief networks to model a problem with uncertainty.

More information

Probability. CS 3793/5233 Artificial Intelligence Probability 1

Probability. CS 3793/5233 Artificial Intelligence Probability 1 CS 3793/5233 Artificial Intelligence 1 Motivation Motivation Random Variables Semantics Dice Example Joint Dist. Ex. Axioms Agents don t have complete knowledge about the world. Agents need to make decisions

More information

Uncertainty and Bayesian Networks

Uncertainty and Bayesian Networks Uncertainty and Bayesian Networks Tutorial 3 Tutorial 3 1 Outline Uncertainty Probability Syntax and Semantics for Uncertainty Inference Independence and Bayes Rule Syntax and Semantics for Bayesian Networks

More information

Quantifying uncertainty & Bayesian networks

Quantifying uncertainty & Bayesian networks Quantifying uncertainty & Bayesian networks CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2016 Soleymani Artificial Intelligence: A Modern Approach, 3 rd Edition,

More information

Probabilistic Reasoning Systems

Probabilistic Reasoning Systems Probabilistic Reasoning Systems Dr. Richard J. Povinelli Copyright Richard J. Povinelli rev 1.0, 10/7/2001 Page 1 Objectives You should be able to apply belief networks to model a problem with uncertainty.

More information

Recall from last time: Conditional probabilities. Lecture 2: Belief (Bayesian) networks. Bayes ball. Example (continued) Example: Inference problem

Recall from last time: Conditional probabilities. Lecture 2: Belief (Bayesian) networks. Bayes ball. Example (continued) Example: Inference problem Recall from last time: Conditional probabilities Our probabilistic models will compute and manipulate conditional probabilities. Given two random variables X, Y, we denote by Lecture 2: Belief (Bayesian)

More information

CS 188: Artificial Intelligence Fall 2009

CS 188: Artificial Intelligence Fall 2009 CS 188: Artificial Intelligence Fall 2009 Lecture 14: Bayes Nets 10/13/2009 Dan Klein UC Berkeley Announcements Assignments P3 due yesterday W2 due Thursday W1 returned in front (after lecture) Midterm

More information

Bayesian Networks Representation

Bayesian Networks Representation Bayesian Networks Representation Machine Learning 10701/15781 Carlos Guestrin Carnegie Mellon University March 19 th, 2007 Handwriting recognition Character recognition, e.g., kernel SVMs a c z rr r r

More information

Introduction to Machine Learning

Introduction to Machine Learning Introduction to Machine Learning CS4375 --- Fall 2018 Bayesian a Learning Reading: Sections 13.1-13.6, 20.1-20.2, R&N Sections 6.1-6.3, 6.7, 6.9, Mitchell 1 Uncertainty Most real-world problems deal with

More information

VC-dimension for characterizing classifiers

VC-dimension for characterizing classifiers VC-dimension for characterizing classifiers Note to other teachers and users of these slides. Andrew would be delighted if you found this source material useful in giving your own lectures. Feel free to

More information

Introduction to Artificial Intelligence. Unit # 11

Introduction to Artificial Intelligence. Unit # 11 Introduction to Artificial Intelligence Unit # 11 1 Course Outline Overview of Artificial Intelligence State Space Representation Search Techniques Machine Learning Logic Probabilistic Reasoning/Bayesian

More information

Probabilistic Classification

Probabilistic Classification Bayesian Networks Probabilistic Classification Goal: Gather Labeled Training Data Build/Learn a Probability Model Use the model to infer class labels for unlabeled data points Example: Spam Filtering...

More information

Introduction to Machine Learning

Introduction to Machine Learning Uncertainty Introduction to Machine Learning CS4375 --- Fall 2018 a Bayesian Learning Reading: Sections 13.1-13.6, 20.1-20.2, R&N Sections 6.1-6.3, 6.7, 6.9, Mitchell Most real-world problems deal with

More information

VC-dimension for characterizing classifiers

VC-dimension for characterizing classifiers VC-dimension for characterizing classifiers Note to other teachers and users of these slides. Andrew would be delighted if you found this source material useful in giving your own lectures. Feel free to

More information

Recall from last time. Lecture 3: Conditional independence and graph structure. Example: A Bayesian (belief) network.

Recall from last time. Lecture 3: Conditional independence and graph structure. Example: A Bayesian (belief) network. ecall from last time Lecture 3: onditional independence and graph structure onditional independencies implied by a belief network Independence maps (I-maps) Factorization theorem The Bayes ball algorithm

More information

Discrete Probability and State Estimation

Discrete Probability and State Estimation 6.01, Fall Semester, 2007 Lecture 12 Notes 1 MASSACHVSETTS INSTITVTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science 6.01 Introduction to EECS I Fall Semester, 2007 Lecture 12 Notes

More information

Our learning goals for Bayesian Nets

Our learning goals for Bayesian Nets Our learning goals for Bayesian Nets Probability background: probability spaces, conditional probability, Bayes Theorem, subspaces, random variables, joint distribution. The concept of conditional independence

More information

Product rule. Chain rule

Product rule. Chain rule Probability Recap CS 188: Artificial Intelligence ayes Nets: Independence Conditional probability Product rule Chain rule, independent if and only if: and are conditionally independent given if and only

More information

Implementing Machine Reasoning using Bayesian Network in Big Data Analytics

Implementing Machine Reasoning using Bayesian Network in Big Data Analytics Implementing Machine Reasoning using Bayesian Network in Big Data Analytics Steve Cheng, Ph.D. Guest Speaker for EECS 6893 Big Data Analytics Columbia University October 26, 2017 Outline Introduction Probability

More information

CS 5100: Founda.ons of Ar.ficial Intelligence

CS 5100: Founda.ons of Ar.ficial Intelligence CS 5100: Founda.ons of Ar.ficial Intelligence Probabilistic Inference Prof. Amy Sliva November 3, 2011 Outline Discuss Midterm Class presentations start next week! Reasoning under uncertainty Probability

More information

Bayesian Networks. Vibhav Gogate The University of Texas at Dallas

Bayesian Networks. Vibhav Gogate The University of Texas at Dallas Bayesian Networks Vibhav Gogate The University of Texas at Dallas Intro to AI (CS 6364) Many slides over the course adapted from either Dan Klein, Luke Zettlemoyer, Stuart Russell or Andrew Moore 1 Outline

More information

CS 5522: Artificial Intelligence II

CS 5522: Artificial Intelligence II CS 5522: Artificial Intelligence II Bayes Nets Instructor: Alan Ritter Ohio State University [These slides were adapted from CS188 Intro to AI at UC Berkeley. All materials available at http://ai.berkeley.edu.]

More information

Review: Bayesian learning and inference

Review: Bayesian learning and inference Review: Bayesian learning and inference Suppose the agent has to make decisions about the value of an unobserved query variable X based on the values of an observed evidence variable E Inference problem:

More information

CSE 473: Artificial Intelligence Autumn 2011

CSE 473: Artificial Intelligence Autumn 2011 CSE 473: Artificial Intelligence Autumn 2011 Bayesian Networks Luke Zettlemoyer Many slides over the course adapted from either Dan Klein, Stuart Russell or Andrew Moore 1 Outline Probabilistic models

More information

Intelligent Systems (AI-2)

Intelligent Systems (AI-2) Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 11 Oct, 3, 2016 CPSC 422, Lecture 11 Slide 1 422 big picture: Where are we? Query Planning Deterministic Logics First Order Logics Ontologies

More information

Bayes Nets: Sampling

Bayes Nets: Sampling Bayes Nets: Sampling [These slides were created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley. All CS188 materials are available at http://ai.berkeley.edu.] Approximate Inference:

More information

Uncertainty. Logic and Uncertainty. Russell & Norvig. Readings: Chapter 13. One problem with logical-agent approaches: C:145 Artificial

Uncertainty. Logic and Uncertainty. Russell & Norvig. Readings: Chapter 13. One problem with logical-agent approaches: C:145 Artificial C:145 Artificial Intelligence@ Uncertainty Readings: Chapter 13 Russell & Norvig. Artificial Intelligence p.1/43 Logic and Uncertainty One problem with logical-agent approaches: Agents almost never have

More information

Artificial Intelligence Bayes Nets: Independence

Artificial Intelligence Bayes Nets: Independence Artificial Intelligence Bayes Nets: Independence Instructors: David Suter and Qince Li Course Delivered @ Harbin Institute of Technology [Many slides adapted from those created by Dan Klein and Pieter

More information

1 Probabilities. 1.1 Basics 1 PROBABILITIES

1 Probabilities. 1.1 Basics 1 PROBABILITIES 1 PROBABILITIES 1 Probabilities Probability is a tricky word usually meaning the likelyhood of something occuring or how frequent something is. Obviously, if something happens frequently, then its probability

More information

Learning Bayesian Networks (part 1) Goals for the lecture

Learning Bayesian Networks (part 1) Goals for the lecture Learning Bayesian Networks (part 1) Mark Craven and David Page Computer Scices 760 Spring 2018 www.biostat.wisc.edu/~craven/cs760/ Some ohe slides in these lectures have been adapted/borrowed from materials

More information

Uncertainty. Chapter 13

Uncertainty. Chapter 13 Uncertainty Chapter 13 Outline Uncertainty Probability Syntax and Semantics Inference Independence and Bayes Rule Uncertainty Let s say you want to get to the airport in time for a flight. Let action A

More information

CS 343: Artificial Intelligence

CS 343: Artificial Intelligence CS 343: Artificial Intelligence Bayes Nets Prof. Scott Niekum The University of Texas at Austin [These slides based on those of Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley. All CS188

More information

Information Gain. Andrew W. Moore Professor School of Computer Science Carnegie Mellon University.

Information Gain. Andrew W. Moore Professor School of Computer Science Carnegie Mellon University. te to other teachers and users of these slides. Andrew would be delighted if you found this source material useful in giving your own lectures. Feel free to use these slides verbatim, or to modify them

More information

Bayes Networks 6.872/HST.950

Bayes Networks 6.872/HST.950 Bayes Networks 6.872/HST.950 What Probabilistic Models Should We Use? Full joint distribution Completely expressive Hugely data-hungry Exponential computational complexity Naive Bayes (full conditional

More information