Bayesian Networks. Why Joint Distributions are Important. CompSci 570 Ron Parr Department of Computer Science Duke University
|
|
- Anissa Griffin
- 5 years ago
- Views:
Transcription
1 Bayesian Networks CompSci 570 Ron Parr Department of Computer Science Duke University Why Joint Distributions are Important Joint distribu6ons gives P(X 1 X n ) Classifica6on/Diagnosis Suppose X 1 =disease X 2 X n = symptoms Co-occurrence Suppose X 3 =lung cancer X 5 =smoking Rare event Detec6on Suppose X 1 X n = parameters of a credit card transac6on Call card holder if P(X 1 X n ) is below threshold? 1
2 Modeling Joint Distributions To do this correctly, we need a full assignment of probabili<es to all atomic events Unwieldy in general for discrete variables: n binary variables = 2 n atomic events Independence makes this tractable, but too strong (rarely holds) Condi<onal independence is a good compromise: Weaker than independence, but s<ll has great poten<al to simplify things Overview Conditional independence Bayesian networks Variable Elimination Sampling 2
3 Condi&onal Independence Suppose we know the following: The flu causes sinus inflammation Allergies cause sinus inflammation inflammation causes a runny nose inflammation causes headaches How are these connected? Example 1: Simple graphical structure Flu Allergy Knowing sinus separates the variables from each other. 3
4 Example 2: Naïve Bayes Spam Filter S P(S) P(W 1 S) P(W n S) W 1 W 2 W n We will see later why this is a particularly convenient representation. (Does it make a correct assumption?) Condi&onal Independence We say that two variables, A and B, are conditionally independent given C if: P(A BC) = P(A C) P(AB C) = P(A C)P(B C) How does this help? We store only a conditional probability table (CPT) of each variable given its parents Naïve Bayes (e.g. Spam Assassin) is a special case of this! 4
5 Notation Reminder P(A B) is a condi6onal prob. distribu6on It is a func6on! P(A=true B=true), P(A=true B=false), P(A=false B=True), P(A=false B=true) P(A b) is a probability distribu6on, func6on P(a B) is a func6on, not a distribu6on P(a b) is a number What is Bayes Net? A directed acyclic graph (DAG) Given parents, each variable is independent of non-descendants Joint probability decomposes: P(x 1...x n ) = P(x i parents(x i ))!! i For each node X i, store P(X i parents(x i )) Call this a CondiFonal Probability Table (CPT) CPT size is exponenfal in number of parents 5
6 Real Applications of Bayes Nets Diagnosis of lymph node disease Used by robots to iden;fy meteorites to study Study the human genome: Alex Hartemink et al. Used in MS Windows Many other applica;ons Space Efficiency Flu Allergy Entire joint distribution as 32 (31) entries P(H S),P(N S) have 4 (2) P(S AF) has 8 (4) P(A) has 2 (1) Total is 20 (10) This can require exponentially less space Space problem is solved for most problems 6
7 Naïve Bayes Space Efficiency S P(S) P(W 1 S) P(W n S) W 1 W 2 W n Entire Joint distribution has 2 n+1 (2 n+1-1) numbers vs. 4n+2 (2n+1) (Non)Uniqueness of Bayes Nets I Suppose you have two variables that are NOT independent Two possible networks: A is parent of B B is parent of A Which is right? There is no wrong answer! Each network can express arbitrary P(AB) Network does NOT encode causal or temporal dynamics 7
8 (Non)Uniqueness of Bayes Nets Can construct valid Bayes net by adding variables incrementally For each new variable, connect all influencing variables as parents new variables never become parents of existing variables (how does this ensure that all variables are conditionally independent of non-descendents given parents?) Different order can lead to different Bayesian networks for the same distribution Suppose A and B are uniform, C=(A B) A B C P P(A) A P(C AB) C P(B) B P(a)=P(a )=P(b)=P(b9)=0.5 P(c)=0.75,P(c )=0.25 P(ab)=P(ab9)=P(a b)=p(a b9)=0.25 P(c ab)=p(c ab9)=p(c a b)=1.0, P(c a b9)=0 (only showing c=true case) Add A, then B, then C case 8
9 Suppose A and B are uniform, C=(A B) A B C P P(A) A C P(B) B P(c)=0.75,P(c )=0.25 P(ac)=0.5, P(ac )=0, P(a c)=p(a c )=0.25 P(a c)=2/3, P(a c)=1/3, P(a c )= P(a c )=0 P(b ac)=1/2, P(b ac )=P(b a c )=0, P(b a c)=1 (only showing b=true case) Add C, then A, then B case Atomic Event Probabili1es P(x 1...x n ) = P(x i parents(x i ))!! i Flu Allergy Recall that this is guaranteed true if we construct net incrementally, so that for each new variable added, we connect all influencing variables as parents 9
10 Doing Things the Hard Way P(f h) = P(fh) P(h) = SAN SANF P( fhsan) = P(hSANF) SAN SANF P( f)p(a)p(s Af)P(h S)P(N S) P(F)P(A)P(S AF)P(h S)P(N S) defn. of conditional probability P(hSANF) = x p(x parents(x))!! = P(h S)P(N S)P(S AF)P(A)P(F) Doing this naïvely, we need to sum over all atomic events defined over these variables. There are exponen?ally many of these. Working Smarter Flu Allergy P(h) =!! SANF P(hSANF) = P(h S)P(N S)P(S AF)P(A)P(F) SANF = P(h S)P(N S) NS AF = P(h S) P(N S) S N AF P(S AF)P(A)P(F) P(S AF)P(A)P(F) Poten:al for exponen:al reduc:on in computa:on. 10
11 Understanding Nota.on Flu Allergy P(h) =!! SANF P(hSANF) = P(h S)P(N S)P(S AF)P(A)P(F) SANF = P(h S)P(N S) NS AF = P(h S) P(N S) S N P(S AF)P(A)P(F) AF P(S AF)P(A)P(F) 8 combina.ons 3 binary variables 2 variables summed out Result is a func.on of S Understanding Notation Flu Allergy P(h) =!! SANF P(hSANF) = P(h S)P(N S)P(S AF)P(A)P(F) SANF = P(h S)P(N S) NS AF = P(h S) P(N S) S N P(S AF)P(A)P(F) AF P(S AF)P(A)P(F) 4 combina:ons 2 binary variables 1 variable summed out Result is a func:on of S 11
12 Understanding Notation Flu Allergy P(h) =!! SANF P(hSANF) = P(h S)P(N S)P(S AF)P(A)P(F) SANF = P(h S)P(N S) NS AF = P(h S) P(N S) S N P(S AF)P(A)P(F) 2 combina:ons of 1 binary variables 1 variable summed out Result is a number AF P(S AF)P(A)P(F) Computa(onal Efficiency P(hSANF) = P(h S)P(N S)P(S AF)P(A)P(F) SANF SANF = P(h S) P(N S)!! S N AF P(S AF)P(A)P(F) The distribu(ve law allows us to decompose the sum. AKA: Variable elimina(on Analogous to Gaussian elimina(on but exponen(ally more expensive Potential for an exponential reduction in computation costs. 12
13 Naïve Bayes Efficiency S P(S) P(W 1 S) P(W n S) W 1 W 2 W n Given a set of words, we want to know which is larger: P(s W 1 W n ) or P( s W 1 W n ). Use Bayes Rule: P(S W 1...W n ) = P(W...W S)P(S) 1 n!! P(W 1...W n ) Naïve Bayes Efficiency II P(W 1 S) S P(S) P(S W 1...W n ) = P(W...W S)P(S) 1 n!! P(W 1...W n ) W 1 W 2 W n Observa;on 1: We can ignore P(W 1 W n ) Observa;on 2: P(S) is given n Observa;on 3: P(W 1 W n S) is easy: P(W 1...W n S) = P(W i S)!! i=1 Note: Can also do variable elimina;on by summing out leaves first. 13
14 Checkpoint BNs can give us an exponen1al reduc1on in the space required to represent a joint distribu1on. Storage is exponen1al in largest parent set. Claim: Parent sets are o@en reasonable. Claim: Inference cost is o@en reasonable. Ques1on: Can we quan1fy rela1onship between structure and inference cost? Now the Bad News In full generality: Computing P(X) is NPhard Decision problem: Is P(X)>0? We reduce from 3SAT 3SAT variables map to BN variables Clauses become variables with the corresponding SAT variables as parents 14
15 Reduction!! (X! X X ) (X! X X ) X1 X2 X3 C1 C2 Problem: What if we have a large number of clauses? How does this fit into our decision problem framework? X4 And Trees We could make a single variable which is the AND of all of our clauses, but this would have CPT that is exponen@al in the number of clauses. X1 X2 C1 A1 Implement as a tree of ANDs. This is polynomial. X3 C2 A3 X4 A2 15
16 Is BN Inference NP Complete? Can show that BN inference is #P hard #P is counting the number of satisfying assignments Idea: Assign variables uniform probability Probability of conjunction of clauses tells us how many assignments are satisfying Checkpoint BNs can be very compact Worst case: Inference is intractable Hope that worst case is: Avoidable (frequently, but no free lunch) Easily characterized in some way 16
17 Clues in the Graphical Structure Q: How does graphical structure relate to our ability to push in summa<ons over variables? A: We relate summa<ons to graph opera<ons Summing out a variable = Removing node(s) from DAG Crea<ng new replacement node Relate graph proper<es to computa<onal efficiency Variable Elimination as Graph Operations We can think of summing out a variable as creating a new super variable which contains all of that variable s neighbors 17
18 Another Example Network Cloudy!! P(c) = 0.5 P(s c) = 0.1!! P(s c!) = 0.5 Sprinkler Rain P(r c) = 0.8!! P(r c!) = 0.2 P(w sr) = 0.99 P(w sr!) = 0.9 P(w s!r) = 0.9!! P(w s!r!) = 0.0 W. Grass Marginal Probabilities Suppose we want P(W): P(W) = P( CSRW)!! CSR = P( C)P(S C)P(R C)P(W RS) CSR SR C = P(W RS) P(S C)P(C)P(R C) 18
19 P(C)=0.5 Sprinkler Eliminating Cloudy Cloudy P(sr) = 0.5*0.1* *0.5*0.2 = 0.09 P(sr!) = 0.5*0.1* *0.5*0.8 = 0.21 P(s!r) = 0.5*0.9* *0.5*0.2 = 0.41 Rain!! P(s!r!) = 0.5*0.9* *0.5*0.8 = 0.29 P(S C) = 0.1!! P(S C!) = 0.5 W. Grass P(R C) = 0.8!! P(R C!) = 0.2 Sprinkler Rain P(W) = P( CSRW)!! CSR = P( C)P(S C)P(R C)P(W RS) CSR SR C = P(W RS) P(S C)P(C)P(R C) W. Grass Elimina'ng Sprinkler/Rain P(sr) = 0.09 Sprinkler Rain P(sr!) = 0.21 P(s!r) = 0.41!! P(s!r!) = 0.29 W. Grass P(w sr) = 0.99 P(w sr!) = 0.9 P(w s!r) = 0.9!! P(w s!r!) = 0.0 P(w) = P(w RS)P(RS) SR = 0.09* * * *0!! =
20 Dealing With Evidence Suppose we have observed that the grass is wet? What is the probability that it has rained? P(R W) = αp(rw)!! = α P( CSRW) CS = α P( C)P(S C)P(R C)P(W RS) CS C = α P(R C)P(C) P(S C)P(W RS) Is there a more clever way to deal with w? Only keep the relevant parts. S Efficiency of Variable Elimina1on Exponential in the largest domain size of new variables created Equivalently: Exponential in largest function created by pushing in summations (sum-product algorithm) Linear for trees Almost linear for almost trees J 20
21 Naïve Bayes Efficiency S P(S) P(W 1 S) P(W n S) W 1 W 2 W n Another way to understand why Naïve Bayes is efficient: It s a tree! Facts About Variable Elimination Picking variables in op9mal order is NP hard For some networks, there will be no elimina9on ordering that results in a poly 9me solu9on (Must be the case unless P=NP) Polynomial for trees Need to get a liele fancier if there are a large number of query variables or evidence variables 21
22 Beyond Variable Elimina0on Variable elimination must be rerun for every new query Possible to compile a Bayes net into a new data structure to make repeated queries more efficient Recall that inference in trees is linear Define a cluster tree where Clusters = sets of original variables Can infer original probs from cluster probs For networks w/o good elimination schemes Sampling (discussed briefly) Cutsets (not covered in this class) Variational methods (not covered in this class) Loopy belief propagation (not covered in this class) Sampling A Bayes net is an example of a genera&ve model of a probability distribu8on Genera8ve models allow one to generate samples from a distribu8on in a natural way Sampling algorithm: Do n 8mes: While some variables are not sampled Pick variable x with no unsampled parents Assign this variable a value from p(x parents(x)) Compute P(a) by coun8ng in what frac8on a is true 22
23 Sampling Example Suppose you want to compute P(H) Start with the parentless nodes: Flip a coin to decide F based on P(F) Flu Allergy F=true Flu Allergy F=true Flu Allergy Flip a coin to decide A based on P(A) F=true A=false F=true A=false Flu Allergy Flip a coin to decide S based on P(S fa ) Flu Allergy 23
24 F=true Flu A=false Allergy F=true Flu A=false Allergy S=true S=true Flip a coin to decide H based on P(H s) This now becomes a single sample for H. Need to repeat encre process man Cmes to escmate P(H)! H=true F=true Flu S=true A=false Allergy No need to sample N for this query Sampling with Observed Evidence Suppose you know H=true Want to know P(F h)? How can we use sampling? F=true Flu S=true A=false Allergy Count fraction of times F is true/false when H is also true H=true But what if we flip a coin For H and it turns out false? 24
25 Comments on Sampling Sampling is the easiest algorithm to implement Can compute marginal or condi5onal distribu5ons by coun5ng Not efficient in general Problem: How do we handle observed values? Rejec5on sampling: Quit and start over when mismatches occur Importance sampling: Use a reweigh5ng trick to compensate for mismatches Low probability events are s5ll a problem (low importance weights mean that you need many samples to get a good es5mate of probability) Much more clever approaches to sampling are possible, though mismatch between sampling (proposal) distribu5on and reality is a constant concern Other Algorithms Exact: Can compile a non-tree BN into an equivalent factor graph by clustering variables No free lunch: Factors may be very large Approximate: If factors get too large, can approximate by splifng them mini-bucket or variahonal approximahons Usually equivalent to making some sort of independence assumphon that may or may not be reasonable Loopy belief propagahon treats non-tree Bayesian networks like trees iterahve algorithm that converges in some cases to something close to the correct answer 25
26 Bayes Net Summary Bayes net = data structure for joint distribution Can give exponential reduction in storage Variable elimination and variants for tree-ish networks: simple, elegant methods efficient for many networks For some networks, must use approximation BNs are a major success story for modern AI BNs do the right thing (no ugly approximations) Exploit structure in problem to reduce storage/computation Not always efficient, but inefficient cases are well understood Work and used in practice 26
Bayesian Networks. CompSci 270 Duke University Ron Parr. Why Joint Distributions are Important
Bayesian Networks CompSci 270 Duke University Ron Parr Why Joint Distributions are Important Joint distributions gives P(X 1 X n ) Classification/Diagnosis Suppose X1=disease X2 Xn = symptoms Co-occurrence
More informationDirected 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 informationBayesian 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 informationPROBABILISTIC 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 informationIntelligent 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 informationCS 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 informationProbability. 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 informationCS 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 informationAnnouncements. 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 informationProbabilistic Graphical Models and Bayesian Networks. Artificial Intelligence Bert Huang Virginia Tech
Probabilistic Graphical Models and Bayesian Networks Artificial Intelligence Bert Huang Virginia Tech Concept Map for Segment Probabilistic Graphical Models Probabilistic Time Series Models Particle Filters
More informationQuantifying 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 informationDirected Graphical Models
Directed Graphical Models Instructor: Alan Ritter Many Slides from Tom Mitchell Graphical Models Key Idea: Conditional independence assumptions useful but Naïve Bayes is extreme! Graphical models express
More informationIntroduc)on to Ar)ficial Intelligence
Introduc)on to Ar)ficial Intelligence Lecture 13 Approximate Inference CS/CNS/EE 154 Andreas Krause Bayesian networks! Compact representa)on of distribu)ons over large number of variables! (OQen) allows
More informationImplementing 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 informationAxioms 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 informationGraphical Models. Lecture 10: Variable Elimina:on, con:nued. Andrew McCallum
Graphical Models Lecture 10: Variable Elimina:on, con:nued Andrew McCallum mccallum@cs.umass.edu Thanks to Noah Smith and Carlos Guestrin for some slide materials. 1 Last Time Probabilis:c inference is
More informationStochastic inference in Bayesian networks, Markov chain Monte Carlo methods
Stochastic inference in Bayesian networks, Markov chain Monte Carlo methods AI: Stochastic inference in BNs AI: Stochastic inference in BNs 1 Outline ypes of inference in (causal) BNs Hardness of exact
More informationObjectives. 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 informationUncertainty 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 informationBayes 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 informationProbabilistic 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 informationBayes 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 informationCS6220: DATA MINING TECHNIQUES
CS6220: DATA MINING TECHNIQUES Chapter 8&9: Classification: Part 3 Instructor: Yizhou Sun yzsun@ccs.neu.edu March 12, 2013 Midterm Report Grade Distribution 90-100 10 80-89 16 70-79 8 60-69 4
More informationSoft Computing. Lecture Notes on Machine Learning. Matteo Matteucci.
Soft Computing Lecture Notes on Machine Learning Matteo Matteucci matteucci@elet.polimi.it Department of Electronics and Information Politecnico di Milano Matteo Matteucci c Lecture Notes on Machine Learning
More informationIntelligent Systems: Reasoning and Recognition. Reasoning with Bayesian Networks
Intelligent Systems: Reasoning and Recognition James L. Crowley ENSIMAG 2 / MoSIG M1 Second Semester 2016/2017 Lesson 13 24 march 2017 Reasoning with Bayesian Networks Naïve Bayesian Systems...2 Example
More informationA Brief Introduction to Graphical Models. Presenter: Yijuan Lu November 12,2004
A Brief Introduction to Graphical Models Presenter: Yijuan Lu November 12,2004 References Introduction to Graphical Models, Kevin Murphy, Technical Report, May 2001 Learning in Graphical Models, Michael
More informationBayesian networks. Independence. Bayesian networks. Markov conditions Inference. by enumeration rejection sampling Gibbs sampler
Bayesian networks Independence Bayesian networks Markov conditions Inference by enumeration rejection sampling Gibbs sampler Independence if P(A=a,B=a) = P(A=a)P(B=b) for all a and b, then we call A and
More informationCSE 473: Ar+ficial Intelligence. Hidden Markov Models. Bayes Nets. Two random variable at each +me step Hidden state, X i Observa+on, E i
CSE 473: Ar+ficial Intelligence Bayes Nets Daniel Weld [Most slides were created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley. All CS188 materials are available at hnp://ai.berkeley.edu.]
More informationProbability and Structure in Natural Language Processing
Probability and Structure in Natural Language Processing Noah Smith Heidelberg University, November 2014 Introduc@on Mo@va@on Sta@s@cal methods in NLP arrived ~20 years ago and now dominate. Mercer was
More informationComputational Complexity of Inference
Computational Complexity of Inference Sargur srihari@cedar.buffalo.edu 1 Topics 1. What is Inference? 2. Complexity Classes 3. Exact Inference 1. Variable Elimination Sum-Product Algorithm 2. Factor Graphs
More informationDirected Graphical Models
CS 2750: Machine Learning Directed Graphical Models Prof. Adriana Kovashka University of Pittsburgh March 28, 2017 Graphical Models If no assumption of independence is made, must estimate an exponential
More informationCS6220: DATA MINING TECHNIQUES
CS6220: DATA MINING TECHNIQUES Matrix Data: Classification: Part 2 Instructor: Yizhou Sun yzsun@ccs.neu.edu September 21, 2014 Methods to Learn Matrix Data Set Data Sequence Data Time Series Graph & Network
More informationProbabilistic 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 informationLecture 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 informationWhy Probability? It's the right way to look at the world.
Probability Why Probability? It's the right way to look at the world. Discrete Random Variables We denote discrete random variables with capital letters. A boolean random variable may be either true or
More informationBayesian 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 informationBayes 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 informationBayesian 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 informationBayesian networks. Chapter Chapter
Bayesian networks Chapter 14.1 3 Chapter 14.1 3 1 Outline Syntax Semantics Parameterized distributions Chapter 14.1 3 2 Bayesian networks A simple, graphical notation for conditional independence assertions
More informationLecture 6: Graphical Models
Lecture 6: Graphical Models Kai-Wei Chang CS @ Uniersity of Virginia kw@kwchang.net Some slides are adapted from Viek Skirmar s course on Structured Prediction 1 So far We discussed sequence labeling tasks:
More informationReview: 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 informationCOMP5211 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 informationStephen Scott.
1 / 28 ian ian Optimal (Adapted from Ethem Alpaydin and Tom Mitchell) Naïve Nets sscott@cse.unl.edu 2 / 28 ian Optimal Naïve Nets Might have reasons (domain information) to favor some hypotheses/predictions
More informationAn 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 information10/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 informationOutline. CSE 573: Artificial Intelligence Autumn Agent. Partial Observability. Markov Decision Process (MDP) 10/31/2012
CSE 573: Artificial Intelligence Autumn 2012 Reasoning about Uncertainty & Hidden Markov Models Daniel Weld Many slides adapted from Dan Klein, Stuart Russell, Andrew Moore & Luke Zettlemoyer 1 Outline
More informationConditional Independence
Conditional Independence Sargur Srihari srihari@cedar.buffalo.edu 1 Conditional Independence Topics 1. What is Conditional Independence? Factorization of probability distribution into marginals 2. Why
More informationBayesian 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 informationIntroduction to Bayesian Networks
Introduction to Bayesian Networks Ying Wu Electrical Engineering and Computer Science Northwestern University Evanston, IL 60208 http://www.eecs.northwestern.edu/~yingwu 1/23 Outline Basic Concepts Bayesian
More information14 PROBABILISTIC REASONING
228 14 PROBABILISTIC REASONING A Bayesian network is a directed graph in which each node is annotated with quantitative probability information 1. A set of random variables makes up the nodes of the network.
More informationOutline. CSE 573: Artificial Intelligence Autumn Bayes Nets: Big Picture. Bayes Net Semantics. Hidden Markov Models. Example Bayes Net: Car
CSE 573: Artificial Intelligence Autumn 2012 Bayesian Networks Dan Weld Many slides adapted from Dan Klein, Stuart Russell, Andrew Moore & Luke Zettlemoyer Outline Probabilistic models (and inference)
More informationRecall 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 informationAnnouncements. 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 informationProbabilistic 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 informationBayesian 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 informationRepresentation. Stefano Ermon, Aditya Grover. Stanford University. Lecture 2
Representation Stefano Ermon, Aditya Grover Stanford University Lecture 2 Stefano Ermon, Aditya Grover (AI Lab) Deep Generative Models Lecture 2 1 / 32 Learning a generative model We are given a training
More informationCh.6 Uncertain Knowledge. Logic and Uncertainty. Representation. One problem with logical approaches: Department of Computer Science
Ch.6 Uncertain Knowledge Representation Hantao Zhang http://www.cs.uiowa.edu/ hzhang/c145 The University of Iowa Department of Computer Science Artificial Intelligence p.1/39 Logic and Uncertainty One
More informationIntroduction 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 informationEvents A and B are independent P(A) = P(A B) = P(A B) / P(B)
Events A and B are independent A B U P(A) = P(A B) = P(A B) / P(B) 1 Alternative Characterization of Independence a) P(A B) = P(A) b) P(A B) = P(A) P(B) Recall P(A B) = P(A B) / P(B) (if P(B) 0) So P(A
More informationToday. Why do we need Bayesian networks (Bayes nets)? Factoring the joint probability. Conditional independence
Bayesian Networks Today Why do we need Bayesian networks (Bayes nets)? Factoring the joint probability Conditional independence What is a Bayes net? Mostly, we discuss discrete r.v. s What can you do with
More information{ p if x = 1 1 p if x = 0
Discrete random variables Probability mass function Given a discrete random variable X taking values in X = {v 1,..., v m }, its probability mass function P : X [0, 1] is defined as: P (v i ) = Pr[X =
More informationBayes 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 informationInformatics 2D Reasoning and Agents Semester 2,
Informatics 2D Reasoning and Agents Semester 2, 2018 2019 Alex Lascarides alex@inf.ed.ac.uk Lecture 25 Approximate Inference in Bayesian Networks 19th March 2019 Informatics UoE Informatics 2D 1 Where
More informationBayesian networks Lecture 18. David Sontag New York University
Bayesian networks Lecture 18 David Sontag New York University Outline for today Modeling sequen&al data (e.g., =me series, speech processing) using hidden Markov models (HMMs) Bayesian networks Independence
More informationCS 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 informationCS 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 informationOur Status. We re done with Part I Search and Planning!
Probability [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.] Our Status We re done with Part
More informationBayesian 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 informationUncertainty. 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 informationBayesian networks. Instructor: Vincent Conitzer
Bayesian networks Instructor: Vincent Conitzer Rain and sprinklers example raining (X) sprinklers (Y) P(X=1) =.3 P(Y=1) =.4 grass wet (Z) Each node has a conditional probability table (CPT) P(Z=1 X=0,
More informationT Machine Learning: Basic Principles
Machine Learning: Basic Principles Bayesian Networks Laboratory of Computer and Information Science (CIS) Department of Computer Science and Engineering Helsinki University of Technology (TKK) Autumn 2007
More informationIntroduction 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 informationCMPSCI 240: Reasoning about Uncertainty
CMPSCI 240: Reasoning about Uncertainty Lecture 17: Representing Joint PMFs and Bayesian Networks Andrew McGregor University of Massachusetts Last Compiled: April 7, 2017 Warm Up: Joint distributions Recall
More informationCS 2750: Machine Learning. Bayesian Networks. Prof. Adriana Kovashka University of Pittsburgh March 14, 2016
CS 2750: Machine Learning Bayesian Networks Prof. Adriana Kovashka University of Pittsburgh March 14, 2016 Plan for today and next week Today and next time: Bayesian networks (Bishop Sec. 8.1) Conditional
More information6.047 / Computational Biology: Genomes, Networks, Evolution Fall 2008
MIT OpenCourseWare http://ocw.mit.edu 6.047 / 6.878 Computational Biology: Genomes, Networks, Evolution Fall 2008 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
More informationLecture 8: Bayesian Networks
Lecture 8: Bayesian Networks Bayesian Networks Inference in Bayesian Networks COMP-652 and ECSE 608, Lecture 8 - January 31, 2017 1 Bayes nets P(E) E=1 E=0 0.005 0.995 E B P(B) B=1 B=0 0.01 0.99 E=0 E=1
More informationBayesian 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 informationBayesian networks. Chapter 14, Sections 1 4
Bayesian networks Chapter 14, Sections 1 4 Artificial Intelligence, spring 2013, Peter Ljunglöf; based on AIMA Slides c Stuart Russel and Peter Norvig, 2004 Chapter 14, Sections 1 4 1 Bayesian networks
More informationIntroduction to Probabilistic Reasoning. Image credit: NASA. Assignment
Introduction to Probabilistic Reasoning Brian C. Williams 16.410/16.413 November 17 th, 2010 11/17/10 copyright Brian Williams, 2005-10 1 Brian C. Williams, copyright 2000-09 Image credit: NASA. Assignment
More informationRapid Introduction to Machine Learning/ Deep Learning
Rapid Introduction to Machine Learning/ Deep Learning Hyeong In Choi Seoul National University 1/32 Lecture 5a Bayesian network April 14, 2016 2/32 Table of contents 1 1. Objectives of Lecture 5a 2 2.Bayesian
More informationBayesian Network. Outline. Bayesian Network. Syntax Semantics Exact inference by enumeration Exact inference by variable elimination
Outline Syntax Semantics Exact inference by enumeration Exact inference by variable elimination s A simple, graphical notation for conditional independence assertions and hence for compact specication
More informationDirected and Undirected Graphical Models
Directed and Undirected Davide Bacciu Dipartimento di Informatica Università di Pisa bacciu@di.unipi.it Machine Learning: Neural Networks and Advanced Models (AA2) Last Lecture Refresher Lecture Plan Directed
More informationLearning P-maps Param. Learning
Readings: K&F: 3.3, 3.4, 16.1, 16.2, 16.3, 16.4 Learning P-maps Param. Learning Graphical Models 10708 Carlos Guestrin Carnegie Mellon University September 24 th, 2008 10-708 Carlos Guestrin 2006-2008
More informationStructure Learning: the good, the bad, the ugly
Readings: K&F: 15.1, 15.2, 15.3, 15.4, 15.5 Structure Learning: the good, the bad, the ugly Graphical Models 10708 Carlos Guestrin Carnegie Mellon University September 29 th, 2006 1 Understanding the uniform
More informationIntroduction to Bayesian Networks. Probabilistic Models, Spring 2009 Petri Myllymäki, University of Helsinki 1
Introduction to Bayesian Networks Probabilistic Models, Spring 2009 Petri Myllymäki, University of Helsinki 1 On learning and inference Assume n binary random variables X1,...,X n A joint probability distribution
More informationMachine Learning and Data Mining. Bayes Classifiers. Prof. Alexander Ihler
+ Machine Learning and Data Mining Bayes Classifiers Prof. Alexander Ihler A basic classifier Training data D={x (i),y (i) }, Classifier f(x ; D) Discrete feature vector x f(x ; D) is a con@ngency table
More informationIntroduction to Bayesian Networks
Introduction to Bayesian Networks The two-variable case Assume two binary (Bernoulli distributed) variables A and B Two examples of the joint distribution P(A,B): B=1 B=0 P(A) A=1 0.08 0.02 0.10 A=0 0.72
More informationBayesian Networks. Machine Learning, Fall Slides based on material from the Russell and Norvig AI Book, Ch. 14
Bayesian Networks Machine Learning, Fall 2010 Slides based on material from the Russell and Norvig AI Book, Ch. 14 1 Administrativia Bayesian networks The inference problem: given a BN, how to make predictions
More informationOutline. Spring It Introduction Representation. Markov Random Field. Conclusion. Conditional Independence Inference: Variable elimination
Probabilistic Graphical Models COMP 790-90 Seminar Spring 2011 The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Outline It Introduction ti Representation Bayesian network Conditional Independence Inference:
More informationArtificial 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 informationBayesian Networks. Vibhav Gogate The University of Texas at Dallas
Bayesian Networks Vibhav Gogate The University of Texas at Dallas Intro to AI (CS 4365) Many slides over the course adapted from either Dan Klein, Luke Zettlemoyer, Stuart Russell or Andrew Moore 1 Outline
More informationGraphical Models - Part I
Graphical Models - Part I Oliver Schulte - CMPT 726 Bishop PRML Ch. 8, some slides from Russell and Norvig AIMA2e Outline Probabilistic Models Bayesian Networks Markov Random Fields Inference Outline Probabilistic
More informationCOS402- Artificial Intelligence Fall Lecture 10: Bayesian Networks & Exact Inference
COS402- Artificial Intelligence Fall 2015 Lecture 10: Bayesian Networks & Exact Inference Outline Logical inference and probabilistic inference Independence and conditional independence Bayes Nets Semantics
More informationCSE 473: Artificial Intelligence Probability Review à Markov Models. Outline
CSE 473: Artificial Intelligence Probability Review à Markov Models Daniel Weld University of Washington [These slides were created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley.
More informationBayes 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 informationLecture 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 informationOur Status in CSE 5522
Our Status in CSE 5522 We re done with Part I Search and Planning! Part II: Probabilistic Reasoning Diagnosis Speech recognition Tracking objects Robot mapping Genetics Error correcting codes lots more!
More informationCS 484 Data Mining. Classification 7. Some slides are from Professor Padhraic Smyth at UC Irvine
CS 484 Data Mining Classification 7 Some slides are from Professor Padhraic Smyth at UC Irvine Bayesian Belief networks Conditional independence assumption of Naïve Bayes classifier is too strong. Allows
More informationApproximate 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 informationCSE 473: Artificial Intelligence
CSE 473: Artificial Intelligence Probability Steve Tanimoto University of Washington [These slides were created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley. All CS188 materials
More information