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

Similar documents
Product rule. Chain rule

Bayes Nets: Independence

CS 5522: Artificial Intelligence II

Artificial Intelligence Bayes Nets: Independence

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

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

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

Bayesian Networks. Vibhav Gogate The University of Texas at Dallas

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

CSE 473: Artificial Intelligence Autumn 2011

Bayesian Networks. Vibhav Gogate The University of Texas at Dallas

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

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

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

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

CS 188: Artificial Intelligence Spring Announcements

CS 343: Artificial Intelligence

CS 188: Artificial Intelligence Spring Announcements

Bayesian networks (1) Lirong Xia

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

CS 188: Artificial Intelligence. Bayes Nets

CS 5522: Artificial Intelligence II

CS 343: Artificial Intelligence

CSEP 573: Artificial Intelligence

Bayes Nets III: Inference

CS 188: Artificial Intelligence Fall 2008

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

CS 188: Artificial Intelligence Fall 2009

CS 188: Artificial Intelligence

CS188 Outline. CS 188: Artificial Intelligence. Today. Inference in Ghostbusters. Probability. We re done with Part I: Search and Planning!

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

Probabilistic Models

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

CSE 473: Artificial Intelligence

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

CS 343: Artificial Intelligence

CS188 Outline. We re done with Part I: Search and Planning! Part II: Probabilistic Reasoning. Part III: Machine Learning

CS 343: Artificial Intelligence

CS 188: Artificial Intelligence. Our Status in CS188

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

CSE 473: Artificial Intelligence

Bayesian networks. Chapter Chapter

Bayes Nets: Sampling

Uncertainty and Bayesian Networks

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS

CS 343: Artificial Intelligence

Our Status. We re done with Part I Search and Planning!

Introduction to Artificial Intelligence Belief networks

Directed Graphical Models

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

Bayesian Networks. Machine Learning, Fall Slides based on material from the Russell and Norvig AI Book, Ch. 14

Bayesian networks. Chapter 14, Sections 1 4

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

CS 188: Artificial Intelligence Fall 2011

CS Lecture 3. More Bayesian Networks

CS 343: Artificial Intelligence

Directed Graphical Models or Bayesian Networks

CS 188: Artificial Intelligence Spring Announcements

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

Tópicos Especiais em Modelagem e Análise - Aprendizado por Máquina CPS863

Probability. CS 3793/5233 Artificial Intelligence Probability 1

Probabilistic Reasoning. (Mostly using Bayesian Networks)

CS 188: Artificial Intelligence Spring Announcements

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

Our Status in CSE 5522

Directed and Undirected Graphical Models

Directed Graphical Models

Intelligent Systems (AI-2)

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

Review: Bayesian learning and inference

Stochastic inference in Bayesian networks, Markov chain Monte Carlo methods

Artificial Intelligence Bayes Nets

Reinforcement Learning Wrap-up

Bayesian Networks BY: MOHAMAD ALSABBAGH

Artificial Intelligence

Random Variables. A random variable is some aspect of the world about which we (may) have uncertainty

Part I. C. M. Bishop PATTERN RECOGNITION AND MACHINE LEARNING CHAPTER 8: GRAPHICAL MODELS

Learning from Sensor Data: Set II. Behnaam Aazhang J.S. Abercombie Professor Electrical and Computer Engineering Rice University

Bayesian Belief Network

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

Bayesian Networks. Characteristics of Learning BN Models. Bayesian Learning. An Example

CS 5522: Artificial Intelligence II

CS 5522: Artificial Intelligence II

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

Bayes Networks 6.872/HST.950

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

Introduction to Artificial Intelligence. Unit # 11

Probabilistic Reasoning Systems

Based on slides by Richard Zemel

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

Introduction to Probabilistic Reasoning. Image credit: NASA. Assignment

Maximum Likelihood (ML), Expectation Maximization (EM) Pieter Abbeel UC Berkeley EECS

CMPSCI 240: Reasoning about Uncertainty

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

CS 188: Artificial Intelligence Fall 2009

Artificial Intelligence Chapter 7: Logical Agents

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

Reasoning Under Uncertainty: More on BNets structure and construction

Quantifying uncertainty & Bayesian networks

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

Transcription:

CS 473: Artificial Intelligence ayes Nets: Independence A ayes net is an efficient encoding of a probabilistic model of a domain ecap: ayes Nets Questions we can ask: Inference: given a fixed N, what is P( e)? epresentation: given a N graph, what kinds of distributions can it encode? ieter Fox Modeling: what N is most appropriate for a given domain? [hese slides were created by an Klein and Pieter Abbeel for CS188 Intro to AI at UC erkeley. All CS188 materials are available at http://ai.berkeley.edu.] ayes Nets epresentation Conditional Independences Probabilistic Inference Learning ayes Nets from ata Conditional Independence and are independent if and are conditionally independent given (Conditional) independence is a property of a distribution ayes Nets: Assumptions Assumptions we are required to make to define the ayes net when given the graph: P (xi x1 xi 1) =P (xi parents(i)) eyond above chain rule à ayes net conditional independence assumptions Often additional conditional independences hey can be read off the graph Important for modeling: understand assumptions made when choosing a ayes net graph Independence in a N Important question about a N: Are two nodes independent given certain evidence? If yes, can prove using algebra (tedious in general) If no, can prove with a counter example Question: are and necessarily independent? Answer: no. Example: low pressure causes rain, which causes traffic. can influence, can influence (via ) Addendum: they could be independent: how? 1

-separation: Outline -separation: Outline Study independence properties for triples Analyze complex cases in terms of member triples -separation: a condition / algorithm for answering such queries Causal Chains Causal Chains his configuration is a causal chain Guaranteed independent of? No! One example set of CPs for which is not independent of is sufficient to show this independence is not guaranteed. his configuration is a causal chain Guaranteed independent of given? Low pressure causes rain causes traffic, high pressure causes no rain causes no traffic : Low pressure : ain : raffic In numbers: P( +y +x ) = 1, P( -y - x ) = 1, P( +z +y ) = 1, P( -z -y ) = 1 : Low pressure : ain : raffic es! Evidence along the chain blocks the influence Common Cause his configuration is a common cause Guaranteed independent of? No! Common Cause his configuration is a common cause Guaranteed and independent given? : Project due One example set of CPs for which is not independent of is sufficient to show this independence is not guaranteed. : Project due Project due causes both forums busy and lab full : Forums busy : Lab full In numbers: P( +x +y ) = 1, P( -x -y ) = 1, P( +z +y ) = 1, P( -z -y ) = 1 : Forums busy : Lab full es! Observing the cause blocks influence between effects. 2

Common Effect he General Case Last configuration: two causes of one effect (v-structures) : aining : allgame Are and independent? es: the ballgame and the rain cause traffic, but they are not correlated Still need to prove they must be (try it!) Are and independent given? No: seeing traffic puts the rain and the ballgame in competition as explanation. his is backwards from the other cases : raffic Observing an effect activates influence between possible causes. he General Case eachability General question: in a given N, are two variables independent (given evidence)? Solution: analyze the graph Any complex example can be broken into repetitions of the three canonical cases ecipe: shade evidence nodes, look for paths in the resulting graph Attempt 1: if two nodes are connected by an undirected path not blocked by a shaded node, then they are not 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 L Active / Inactive Paths -Separation Question: Are and conditionally independent given evidence variables {}? es, if and d-separated by Consider all (undirected) paths from to No active paths = independence! A path is active if each triple is active: 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 All it takes to block a path is a single inactive segment Active riples Inactive riples Query: Check all (undirected!) paths between and If one or more active, then independence not guaranteed Otherwise (i.e. if all paths are inactive), then independence is guaranteed? 3

Example Example L es es es es Example Structure Implications Variables: : aining : raffic : oof drips S: I m sad Questions: es S Given a ayes net structure, can run d- separation algorithm to build a complete list of conditional independences that are necessarily true of the form his list determines the set of probability distributions that can be represented Computing All Independences opology Limits istributions 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 Full conditioning can encode any distribution {} 4

ayes Nets epresentation Summary ayes nets compactly encode joint distributions Guaranteed independencies of distributions can be deduced from N graph structure -separation gives precise conditional independence guarantees from graph alone A ayes net s joint distribution may have further (conditional) independence that is not detectable until you inspect its specific distribution epresentation ayes Nets Conditional Independences Probabilistic Inference Enumeration (exact, exponential complexity) Variable elimination (exact, worst-case exponential complexity, often better) Probabilistic inference is NP-complete Sampling (approximate) Learning ayes Nets from ata 5