Announcements. CS 188: Artificial Intelligence Fall Example Bayes Net. Bayes Nets. Example: Traffic. Bayes Net Semantics

Similar documents
Bayes Nets. CS 188: Artificial Intelligence Fall Example: Alarm Network. Bayes Net Semantics. Building the (Entire) Joint. Size of a Bayes Net

Recap: Bayes Nets. CS 473: Artificial Intelligence Bayes Nets: Independence. Conditional Independence. Bayes Nets. Independence in a BN

Product rule. Chain rule

CS 5522: Artificial Intelligence II

Bayes Nets: Independence

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

Artificial Intelligence Bayes Nets: Independence

Announcements. CS 188: Artificial Intelligence Spring Bayes Net Semantics. Probabilities in BNs. All Conditional Independences

CS 188: Artificial Intelligence Fall 2008

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

CSE 473: Artificial Intelligence Autumn 2011

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

Bayesian Networks. Vibhav Gogate The University of Texas at Dallas

Bayesian Networks. Vibhav Gogate The University of Texas at Dallas

CS 188: Artificial Intelligence Fall 2009

CS 188: Artificial Intelligence Spring Announcements

CS 343: Artificial Intelligence

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

CS 5522: Artificial Intelligence II

CS 188: Artificial Intelligence Spring Announcements

Probabilistic Models

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

Bayesian networks (1) Lirong Xia

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

Bayes Nets III: Inference

CSE 473: Ar+ficial Intelligence. Hidden Markov Models. Bayes Nets. Two random variable at each +me step Hidden state, X i Observa+on, E i

CS 343: Artificial Intelligence

Based on slides by Richard Zemel

Review: Bayesian learning and inference

CS 188: Artificial Intelligence. Bayes Nets

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

Directed Graphical Models

Probability. CS 3793/5233 Artificial Intelligence Probability 1

Bayesian Networks BY: MOHAMAD ALSABBAGH

Bayesian Networks. Semantics of Bayes Nets. Example (Binary valued Variables) CSC384: Intro to Artificial Intelligence Reasoning under Uncertainty-III

CSE 473: Artificial Intelligence Probability Review à Markov Models. Outline

CS 188: Artificial Intelligence Fall 2009

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

CS Lecture 3. More Bayesian Networks

15-780: Graduate Artificial Intelligence. Bayesian networks: Construction and inference

Cavities. Independence. Bayes nets. Why do we care about variable independence? P(W,CY,T,CH) = P(W )P(CY)P(T CY)P(CH CY)

Bayesian belief networks. Inference.

CS 2750: Machine Learning. Bayesian Networks. Prof. Adriana Kovashka University of Pittsburgh March 14, 2016

Directed Graphical Models

CSEP 573: Artificial Intelligence

Probabilistic Reasoning. (Mostly using Bayesian Networks)

Bayes Net Representation. CS 188: Artificial Intelligence. Approximate Inference: Sampling. Variable Elimination. Sampling.

PROBABILISTIC REASONING SYSTEMS

Bayesian networks. Chapter Chapter

Lecture 10: Introduction to reasoning under uncertainty. Uncertainty

Midterm II. Introduction to Artificial Intelligence. CS 188 Spring ˆ You have approximately 1 hour and 50 minutes.

Midterm 2 V1. Introduction to Artificial Intelligence. CS 188 Spring 2015

Bayesian networks. Chapter 14, Sections 1 4

CMPSCI 240: Reasoning about Uncertainty

Cognitive Systems 300: Probability and Causality (cont.)

What Causality Is (stats for mathematicians)

Lecture 4 October 18th

Informatics 2D Reasoning and Agents Semester 2,

CPSC 540: Machine Learning

ˆ The exam is closed book, closed calculator, and closed notes except your one-page crib sheet.

COS402- Artificial Intelligence Fall Lecture 10: Bayesian Networks & Exact Inference

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

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

Artificial Intelligence Bayes Nets

Bayesian belief networks

Introduction to Causal Calculus

Another look at Bayesian. inference

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Algorithms For Inference Fall 2014

Representing Knowledge. CS 188: Artificial Intelligence Fall Properties of BNs. Independence? Reachability (the Bayes Ball) Example

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

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

Uncertainty and Bayesian Networks

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

CS839: Probabilistic Graphical Models. Lecture 2: Directed Graphical Models. Theo Rekatsinas

CS 188: Artificial Intelligence

Midterm II. Introduction to Artificial Intelligence. CS 188 Fall You have approximately 3 hours.

Markov Chains and Related Matters

CS 380: ARTIFICIAL INTELLIGENCE UNCERTAINTY. Santiago Ontañón

CS 188: Artificial Intelligence. Our Status in CS188

Probabilistic Classification

Bayesian Networks 3 D-separation. D-separation

Conditional Independence and Factorization

CS 484 Data Mining. Classification 7. Some slides are from Professor Padhraic Smyth at UC Irvine

last two digits of your SID

Chapter 7: Sampling Distributions

Conditional probabilities and graphical models

Extensions of Bayesian Networks. Outline. Bayesian Network. Reasoning under Uncertainty. Features of Bayesian Networks.

Guest Speaker. CS 416 Artificial Intelligence. First-order logic. Diagnostic Rules. Causal Rules. Causal Rules. Page 1

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS

Quantifying uncertainty & Bayesian networks

Our learning goals for Bayesian Nets

Outline. CSE 573: Artificial Intelligence Autumn Agent. Partial Observability. Markov Decision Process (MDP) 10/31/2012

2 : Directed GMs: Bayesian Networks

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

Bayesian Belief Network

14 PROBABILISTIC REASONING

qfundamental Assumption qbeyond the Bayes net Chain rule conditional independence assumptions,

Bayesian Network. Outline. Bayesian Network. Syntax Semantics Exact inference by enumeration Exact inference by variable elimination

Probabilistic Reasoning Systems

Probabilistic Graphical Models and Bayesian Networks. Artificial Intelligence Bert Huang Virginia Tech

Transcription:

CS 188: Artificial Intelligence Fall 2008 ecture 15: ayes Nets II 10/16/2008 Announcements Midterm 10/21: see prep page on web Split rooms! ast names A-J go to 141 McCone, K- to 145 winelle One page note sheet, non-programmable calculators eview sessions Friday and Sunday (similar) opics may include previous class but not this one No section next week! an Klein UC erkeley Next reading needs login/password 1 2 ayes Net ayes Nets A ayes net is an efficient encoding of a probabilistic model of a domain Questions we can ask: Inference: given a fixed N, what is P( e)? epresentation: given a fixed N, what kinds of distributions can it encode? Modeling: what N is most appropriate for a given domain? 3 4 : raffic ayes Net Semantics Variables : raffic : It rains : ow pressure : oof drips : allgame A ayes net: A set of nodes, one per variable A directed, acyclic graph A conditional distribution of each variable conditioned on its parents (the parameters θ) Semantics: A N defines a joint probability distribution over its variables: A 1 A n 5 6 1

uilding the (Entire) Joint : Alarm Network We can take a ayes net and build any entry from the full joint distribution it encodes ypically, there s no reason to build A of it We build what we need on the fly o emphasize: every N over a domain implicitly defines a joint distribution over that domain, specified by local probabilities and graph structure 7 8 Size of a ayes Net How big is a joint distribution over N oolean variables? How big is an N-node net if nodes have k parents? oth give you the power to calculate Ns: Huge space savings! Also easier to elicit local CPs Also turns out to be faster to answer queries (next class) 9 ayes Nets So far: What is a ayes net? What joint distribution does it encode? Next: how to answer queries about that distribution Key idea: conditional independence ast class: assembled Ns using an intuitive notion of conditional independence as causality oday: formalize these ideas Main goal: answer queries about conditional independence and influence After that: how to answer numerical queries (inference) 10 Conditional Independence eminder: independence and are independent if : Independence For this graph, you can fiddle with θ (the CPs) all you want, but you won t be able to represent any distribution in which the flips are dependent! and are conditionally independent given 1 2 (Conditional) independence is a property of a distribution 11 All distributions 12 2

opology imits istributions Independence in a N Given some graph topology G, only certain joint distributions can be encoded he graph structure guarantees certain (conditional) independences (here might be more independence) Adding arcs increases the set of distributions, but has several costs 13 Important question about a N: Are two nodes independent given certain evidence? If yes, can calculate using algebra (really tedious) If no, can prove with a counter example : Question: are and independent? Answer: not necessarily, we ve seen examples otherwise: low pressure causes rain which causes traffic. can influence, can influence (via ) Addendum: they could be independent: how? 14 Causal Chains Common Cause his configuration is a causal chain : ow pressure : ain : raffic Another basic configuration: two effects of the same cause Are and independent? Are and independent given? Is independent of given? : Project due : Newsgroup busy es! : ab full es! Evidence along the chain blocks the influence 15 Observing the cause blocks influence between effects. 16 Common Effect he General Case ast configuration: two causes of one effect (v-structures) Are and independent? es: remember the ballgame and the rain causing traffic, no correlation? Still need to prove they must be (try it!) Are and independent given? No: remember that seeing traffic put the rain and the ballgame in competition? his is backwards from the other cases Observing the effect enables influence between effects. : aining : allgame : raffic 17 Any complex example can be analyzed using these three canonical cases General question: in a given N, are two variables independent (given evidence)? Solution: analyze the graph 18 3

eachability eachability (-Separation) ecipe: shade evidence nodes Attempt 1: if two nodes are connected by an undirected path not blocked by a shaded node, they are conditionally independent Almost works, but not quite Where does it break? Answer: the v-structure at doesn t count as a link in a path unless active Question: Are and conditionally independent given evidence variables {}? ook for active paths from to No active paths = independence! A path is active if each triple is either a: Causal chain A C where is unobserved (either direction) Common cause A C where is unobserved Common effect (aka v-structure) A C where or one of its descendents is observed Active riples Inactive riples 19 21 es es es es 22 23 Causality? Variables: : aining : raffic : oof drips S: I m sad Questions: es S When ayes nets reflect the true causal patterns: Often simpler (nodes have fewer parents) Often easier to think about Often easier to elicit from experts Ns need not actually be causal Sometimes no causal net exists over the domain E.g. consider the variables raffic and rips End up with arrows that reflect correlation, not causation What do the arrows really mean? opology may happen to encode causal structure opology only guaranteed to encode conditional independence 24 25 4

: raffic asic traffic net et s multiply out the joint : everse raffic everse causality? r 1/4 r 3/4 r t 3/4 t 1/4 r t 3/16 r t 1/16 r t 6/16 r t 6/16 t 9/16 t 7/16 t r 1/3 r 2/3 r t 3/16 r t 1/16 r t 6/16 r t 6/16 r t 1/2 t 1/2 26 t r 1/7 r 6/7 27 : Coins Alternate Ns Extra arcs don t prevent representing independence, just allow non-independence 1 2 1 2 h t h t 28 29 Summary ayes nets compactly encode joint distributions Guaranteed independencies of distributions can be deduced from N graph structure he ayes ball algorithm (aka d-separation) A ayes net may have other independencies that are not detectable until you inspect its specific distribution 30 5