Reasoning Under Uncertainty: Conditional Probability

Similar documents
Reasoning Under Uncertainty: Conditioning, Bayes Rule & the Chain Rule

Computer Science CPSC 322. Lecture 18 Marginalization, Conditioning

Reasoning Under Uncertainty: Introduction to Probability

Reasoning Under Uncertainty: Introduction to Probability

Reasoning under Uncertainty: Intro to Probability

Reasoning Under Uncertainty: Belief Network Inference

Reasoning under Uncertainty: Intro to Probability

Propositional Logic: Semantics and an Example

CSE 473: Artificial Intelligence

Probability. CS 3793/5233 Artificial Intelligence Probability 1

CS 188: Artificial Intelligence. Our Status in CS188

Our Status in CSE 5522

CS 188: Artificial Intelligence Fall 2011

Pengju XJTU 2016

Reasoning Under Uncertainty: Variable Elimination

Probability Hal Daumé III. Computer Science University of Maryland CS 421: Introduction to Artificial Intelligence 27 Mar 2012

CS 188: Artificial Intelligence Fall 2009

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

Propositional Logic: Bottom-Up Proofs

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

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

Uncertainty and Bayesian Networks

Pengju

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

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

Lecture 02: Summations and Probability. Summations and Probability

CS 343: Artificial Intelligence

PROBABILITY AND INFERENCE

Bayesian decision theory. Nuno Vasconcelos ECE Department, UCSD

Probabilistic representation and reasoning

Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs

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

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

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

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

In today s lecture. Conditional probability and independence. COSC343: Artificial Intelligence. Curse of dimensionality.

PROBABILITY. Inference: constraint propagation

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

Introduction to Artificial Intelligence. Unit # 11

Probabilistic Reasoning

CS 188: Artificial Intelligence Fall 2009

This lecture. Reading. Conditional Independence Bayesian (Belief) Networks: Syntax and semantics. Chapter CS151, Spring 2004

Basic Probability. Robert Platt Northeastern University. Some images and slides are used from: 1. AIMA 2. Chris Amato

Reasoning Under Uncertainty: Bayesian networks intro

Uncertainty. Chapter 13

CS 188: Artificial Intelligence Spring Announcements

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

Uncertainty and Belief Networks. Introduction to Artificial Intelligence CS 151 Lecture 1 continued Ok, Lecture 2!

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

Modeling and reasoning with uncertainty

Quantifying uncertainty & Bayesian networks

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

Outline. Uncertainty. Methods for handling uncertainty. Uncertainty. Making decisions under uncertainty. Probability. Uncertainty

Reinforcement Learning Wrap-up

Basic Probability and Statistics

CSC384: Intro to Artificial Intelligence Reasoning under Uncertainty-II

Uncertainty. Outline

Probabilistic Reasoning. (Mostly using Bayesian Networks)

Uncertainty. Outline. Probability Syntax and Semantics Inference Independence and Bayes Rule. AIMA2e Chapter 13

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

Artificial Intelligence CS 6364

PROBABILISTIC REASONING SYSTEMS

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

Consider an experiment that may have different outcomes. We are interested to know what is the probability of a particular set of outcomes.

CS 188: Artificial Intelligence Spring Announcements

Probabilistic representation and reasoning

Lecture 10: Introduction to reasoning under uncertainty. Uncertainty

Intelligent Systems (AI-2)

CS 188: Artificial Intelligence Fall 2008

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

CS 188: Artificial Intelligence Spring Announcements

Probabilistic Models

Decision Theory Intro: Preferences and Utility

COMP9414/ 9814/ 3411: Artificial Intelligence. 14. Uncertainty. Russell & Norvig, Chapter 13. UNSW c AIMA, 2004, Alan Blair, 2012

Probabilistic Reasoning

Bayesian networks. Chapter 14, Sections 1 4

CS 188: Artificial Intelligence. Bayes Nets

Uncertainty. Chapter 13. Chapter 13 1

Cartesian-product sample spaces and independence

Bayesian belief networks

Uncertainty. Chapter 13, Sections 1 6

Uncertainty. Variables. assigns to each sentence numerical degree of belief between 0 and 1. uncertainty

Probabilistic Robotics. Slides from Autonomous Robots (Siegwart and Nourbaksh), Chapter 5 Probabilistic Robotics (S. Thurn et al.

CS 5522: Artificial Intelligence II

Probabilistic Robotics

Uncertainty. Chapter 13

Artificial Intelligence Uncertainty

Reasoning Under Uncertainty: More on BNets structure and construction

Decision Theory: Q-Learning

CS 343: Artificial Intelligence

Why Probability? It's the right way to look at the world.

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

Refresher on Probability Theory

CMPSCI 240: Reasoning Under Uncertainty

Decision Theory: Markov Decision Processes

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS

Joint, Conditional, & Marginal Probabilities

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

CS 561: Artificial Intelligence

CS 5100: Founda.ons of Ar.ficial Intelligence

Transcription:

Reasoning Under Uncertainty: Conditional Probability CPSC 322 Uncertainty 2 Textbook 6.1 Reasoning Under Uncertainty: Conditional Probability CPSC 322 Uncertainty 2, Slide 1

Lecture Overview 1 Recap 2 Probability Distributions 3 Conditional Probability 4 Bayes Theorem Reasoning Under Uncertainty: Conditional Probability CPSC 322 Uncertainty 2, Slide 2

Possible Worlds Semantics A random variable is a variable that is randomly assigned one of a number of different values. The domain of a variable X, written dom(x), is the set of values X can take. A possible world specifies an assignment of one value to each random variable. w = φ means the proposition φ is true in world w. Let Ω be the set of all possible worlds. Define a nonnegative measure µ(w) to each world w so that the measures of the possible worlds sum to 1. The probability of proposition φ is defined by: P (φ) = w =φ µ(w). Reasoning Under Uncertainty: Conditional Probability CPSC 322 Uncertainty 2, Slide 3

Lecture Overview 1 Recap 2 Probability Distributions 3 Conditional Probability 4 Bayes Theorem Reasoning Under Uncertainty: Conditional Probability CPSC 322 Uncertainty 2, Slide 4

Probability Distributions Consider the case where possible worlds are simply assignments to one random variable. Definition (probability distribution) A probability distribution P on a random variable X is a function dom(x) [0, 1] such that x P (X = x). When dom(x) is infinite we need a probability density function. Reasoning Under Uncertainty: Conditional Probability CPSC 322 Uncertainty 2, Slide 5

Joint Distribution When there are multiple random variables, their joint distribution is a probability distribution over the variables Cartesian product E.g., P (X, Y, Z) means P ( X, Y, Z ). Think of a joint distribution over n variables as an n-dimensional table Each entry, indexed by X 1 = x 1,..., X n = x n, corresponds to P (X 1 = x 1... X n = x n ). The sum of entries across the whole table is 1. Reasoning Under Uncertainty: Conditional Probability CPSC 322 Uncertainty 2, Slide 6

Joint Distribution Example Consider the following example, describing what a given day might be like in Vancouver. we have two random variables: weather, with domain {Sunny, Cloudy}; temperature, with domain {Hot, Mild, Cold}. Then we have the joint distribution P (weather, temperature) given as follows: weather temperature Hot Mild Cold Sunny 0.10 0.20 0.10 Cloudy 0.05 0.35 0.20 Reasoning Under Uncertainty: Conditional Probability CPSC 322 Uncertainty 2, Slide 7

Marginalization Given the joint distribution, we can compute distributions over smaller sets of variables through marginalization: E.g., P (X, Y ) = z dom(z) P (X, Y, Z = z). This corresponds to summing out a dimension in the table. The new table still sums to 1. Reasoning Under Uncertainty: Conditional Probability CPSC 322 Uncertainty 2, Slide 8

Marginalization Example weather temperature Hot Mild Cold Sunny 0.10 0.20 0.10 Cloudy 0.05 0.35 0.20 If we marginalize out weather, we get Hot Mild Cold P (temperature) = 0.15 0.55 0.30 If we marginalize out temperature, we get Sunny Cloudy P (weather) = 0.40 0.60 Reasoning Under Uncertainty: Conditional Probability CPSC 322 Uncertainty 2, Slide 9

Lecture Overview 1 Recap 2 Probability Distributions 3 Conditional Probability 4 Bayes Theorem Reasoning Under Uncertainty: Conditional Probability CPSC 322 Uncertainty 2, Slide 10

Conditioning Probabilistic conditioning specifies how to revise beliefs based on new information. You build a probabilistic model taking all background information into account. This gives the prior probability. All other information must be conditioned on. If evidence e is all of the information obtained subsequently, the conditional probability P (h e) of h given e is the posterior probability of h. Reasoning Under Uncertainty: Conditional Probability CPSC 322 Uncertainty 2, Slide 11

Semantics of Conditional Probability Evidence e rules out possible worlds incompatible with e. We can represent this using a new measure, µ e, over possible worlds µ e (ω) = { 1 P (e) µ(ω) if ω = e 0 if ω = e Definition The conditional probability of formula h given evidence e is P (h e) = ω =h µ e (w) = P (h e) P (e) Reasoning Under Uncertainty: Conditional Probability CPSC 322 Uncertainty 2, Slide 12

Conditional Probability Example weather temperature Hot Mild Cold Sunny 0.10 0.20 0.10 Cloudy 0.05 0.35 0.20 If we condition on weather = Sunny, we get Hot Mild Cold P (temperature W eather = Sunny) = 0.25 0.50 0.25 Conditioning on temperature, we get P (weather temperature): temperature Hot Mild Cold Sunny 0.67 0.36 0.33 weather Cloudy 0.33 0.64 0.67 Note that each column now sums to one. Reasoning Under Uncertainty: Conditional Probability CPSC 322 Uncertainty 2, Slide 13

Chain Rule Definition (Chain Rule) P (f 1 f 2... f n ) = P (f n f 1 f n 1 ) P (f 1 f n 1 ) = P (f n f 1 f n 1 ) P (f n 1 f 1 f n 2 ) P (f 1 f n 2 ) = P (f n f 1 f n 1 ) P (f n 1 f 1 f n 2 ) = P (f 3 f 1 f 2 ) P (f 2 f 1 ) P (f 1 ) n P (f i f 1 f i 1 ) i=1 E.g., P (weather, temperature) = P (weather temperature) P (temperature). Reasoning Under Uncertainty: Conditional Probability CPSC 322 Uncertainty 2, Slide 14

Lecture Overview 1 Recap 2 Probability Distributions 3 Conditional Probability 4 Bayes Theorem Reasoning Under Uncertainty: Conditional Probability CPSC 322 Uncertainty 2, Slide 15

Bayes theorem The chain rule and commutativity of conjunction (h e is equivalent to e h) gives us: P (h e) = P (h e) P (e) = P (e h) P (h). If P (e) 0, you can divide the right hand sides by P (e), giving us Bayes theorem. Definition (Bayes theorem) P (h e) = P (e h) P (h). P (e) Reasoning Under Uncertainty: Conditional Probability CPSC 322 Uncertainty 2, Slide 16

Why is Bayes theorem interesting? Often you have causal knowledge: P (symptom disease) P (light is off status of switches and switch positions) P (alarm fire) P (image looks like a tree is in front of a car)...and you want to do evidential reasoning: P (disease symptom) P (status of switches light is off and switch positions) P (fire alarm). P (a tree is in front of a car image looks like ) Reasoning Under Uncertainty: Conditional Probability CPSC 322 Uncertainty 2, Slide 17