Lecture Overview. Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 11: Uncertainty. Uncertainty.

Similar documents
Uncertainty. Chapter 13

Uncertainty. Outline

Quantifying uncertainty & Bayesian networks

Artificial Intelligence

Artificial Intelligence Uncertainty

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

Chapter 13 Quantifying Uncertainty

Uncertainty. Chapter 13

Uncertainty. Chapter 13, Sections 1 6

Quantifying Uncertainty & Probabilistic Reasoning. Abdulla AlKhenji Khaled AlEmadi Mohammed AlAnsari

CS 5100: Founda.ons of Ar.ficial Intelligence

Probability and Decision Theory

Where are we in CS 440?

Basic Probability and Decisions

Uncertain Knowledge and Reasoning

n How to represent uncertainty in knowledge? n Which action to choose under uncertainty? q Assume the car does not have a flat tire

Uncertainty. 22c:145 Artificial Intelligence. Problem of Logic Agents. Foundations of Probability. Axioms of Probability

Course Introduction. Probabilistic Modelling and Reasoning. Relationships between courses. Dealing with Uncertainty. Chris Williams.

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

Reasoning with Uncertainty. Chapter 13

Probabilistic Reasoning

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.

Probabilistic Reasoning

UNCERTAINTY. In which we see what an agent should do when not all is crystal-clear.

Where are we in CS 440?

Uncertainty. Russell & Norvig Chapter 13.

Uncertainty. Chapter 13. Chapter 13 1

Artificial Intelligence Programming Probability

13.4 INDEPENDENCE. 494 Chapter 13. Quantifying Uncertainty

Uncertainty (Chapter 13, Russell & Norvig) Introduction to Artificial Intelligence CS 150 Lecture 14

Probabilistic Robotics

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

Pengju XJTU 2016

Uncertainty (Chapter 13, Russell & Norvig)

Resolution or modus ponens are exact there is no possibility of mistake if the rules are followed exactly.

Web-Mining Agents Data Mining

CS 561: Artificial Intelligence

CS 188: Artificial Intelligence Fall 2009

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

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

ARTIFICIAL INTELLIGENCE. Uncertainty: probabilistic reasoning

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

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

Reasoning under Uncertainty: Intro to Probability

Cartesian-product sample spaces and independence

Probabilistic representation and reasoning

Probability Foundations. Rudolf Kruse, Alexander Dockhorn Bayesian Networks 34

Probabilistic Reasoning. Kee-Eung Kim KAIST Computer Science

Reasoning Under Uncertainty

Probability theory: elements

Cogs 14B: Introduction to Statistical Analysis

CS 361: Probability & Statistics

Basic Probability and Statistics

CSE 473: Artificial Intelligence

Lecture 2. Conditional Probability

Brief Intro. to Bayesian Networks. Extracted and modified from four lectures in Intro to AI, Spring 2008 Paul S. Rosenbloom

Computer Science CPSC 322. Lecture 18 Marginalization, Conditioning

P (A B) P ((B C) A) P (B A) = P (B A) + P (C A) P (A) = P (B A) + P (C A) = Q(A) + Q(B).

Pengju

Machine Learning: Probability Theory

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

Probability: Part 1 Naima Hammoud

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

PROBABILISTIC REASONING Outline

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

Reasoning Under Uncertainty

Artificial Intelligence CS 6364

Uncertainty. CmpE 540 Principles of Artificial Intelligence Pınar Yolum Uncertainty. Sources of Uncertainty

Uncertainty and Bayesian Networks

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

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

COMP9414: Artificial Intelligence Reasoning Under Uncertainty

Probabilistic Models

Probabilistic representation and reasoning

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 10

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

Reasoning under Uncertainty: Intro to Probability

Lecture 1: Review of Probability

CS 188: Artificial Intelligence. Our Status in CS188

Probability Theory. Prof. Dr. Martin Riedmiller AG Maschinelles Lernen Albert-Ludwigs-Universität Freiburg.

Uncertainty in the World. Representing Uncertainty. Uncertainty in the World and our Models. Uncertainty

Conditional probability

Y. Xiang, Inference with Uncertain Knowledge 1

Joint, Conditional, & Marginal Probabilities

18.600: Lecture 3 What is probability?

Bayesian networks (1) Lirong Xia

Lecture 3 Probability Basics

2.4 Conditional Probability

CS 188: Artificial Intelligence Fall 2009

Discrete Probability and State Estimation

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

CMPSCI 240: Reasoning about Uncertainty

Econ 325: Introduction to Empirical Economics

Ch.6 Uncertain Knowledge. Logic and Uncertainty. Representation. One problem with logical approaches: Department of Computer Science

Fusion in simple models

Lecture 10: Introduction to reasoning under uncertainty. Uncertainty

Probabilistic models

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

STAT509: Probability

Transcription:

Lecture Overview COMP 3501 / COMP 4704-4 Lecture 11: Uncertainty Return HW 1/Midterm Short HW 2 discussion Uncertainty / Probability Prof. JGH 318 Uncertainty Previous approaches dealt with relatively certain worlds Couldn t make sensible moves in a card game with reasonably large stochasticity Cannot handle the uncertainty of the real world What if we get hit by a meteor? What if the sun goes supernova? What if my car breaks down/explodes/get stolen? Uncertainty Rational behavior must depend on quantifying uncertainty and acting accordingly Don t need to make contingency plans for a supernova Example: Toothache Cavity Toothache Cavity GumProblem Abscess Casual rule: Cavity Toothache

Example A toothache doesn t mean a cavity, and a cavity doesn t mean a toothache Cannot strictly reason in this way Need a degree of belief If I have a toothache, how certain should I be that I have a cavity? If I have toothaches, how certain should I be that I don t have a cavity? Probability Probability summarizes the uncertainty we have about the world [eg from ignorance] Probability could come from measured sources or expert judgement Probability represents changes given current knowledge of the world We either have a cavity or don t [ground truth] What do we believe about it given just that our tooth hurts? Probability and Rationality Basic Probability Do we always want a plan that maximizes the probability of success? Each plan has a cost associated with it The true cost may depend on the user How much money & time do you have? Utility represents preferences between costs and outcomes Choose plan with the maximum expected utility In logic, we talked about models of the world In probability, we also have models Each model has a probability The sum of probabilities over all models is 1 X P (w) =1 w2 Example: throw a die

Basic Probability A proposition or an event represents the set of possibilities/worlds over which we measure probability For a proposition,p( )= X w2 Example: roll two 6-sided dice P (w) P(Sum=11) = P([5, 6]) + P([6, 5]) = 1/36 + 1/36 = 1/18 Can perform calculation independent of other probabilities Prior Probabilities The prior probability of an event is the probability in the absence of other information What is the prior probability of rolling doubles? What is the prior probability of rolling doubles sixes? Example Problems Conditional Probability What is the prior probability of any given 5-card hand? What is the probability of a royal flush? What is the probability of a straight flush? What is the probability of 4 of a kind? What is the probability of getting exactly one pair? The conditional probability is the probability of an event given other information about the world P(roll doubles die 1 is a 6) P(roll double 3 die 1 is a 6) Note that the conditional information doesn t change the prior probability A women has 10 daughters. What is the chance that her 11 th child is a daughter? What is the probability of a women having all 11 children be daughters?

Conditional probabilities Conditional probabilities can be computed from joint distributions and prior probabilities P(a b) = P(a b) / P(b) [as long as P(b) > 0] P(double die 1 is a 5) = P(doubles die 1 is a 5) / P(die 1 is a 5) Product rule: P(a b) = P(a b) P(b) Examples Given that you have seen your first card, the A of Hearts What is the probability of a royal flush? What is the probability of a straight flush? What is the probability of 4 of a kind? What is the probability of getting exactly one pair? Propositions and Probability Foundations of probability Variables are called random variables [upper case] Can talk about all probabilities for a random variable P(Weather) = <0.6, 0.1, 0.29, 0.01> P(Weather = sunny) = 0.6 P(Weather = rain) = 0.1 P(Weather = cloudy) = 0.29 P(Weather = snow) = 0.01 P(Weather, Cavity) is a joint probability distribution Kolmogorov s axioms: X P (w) =1 w2 P (a _ b) =P (a)+p (b) P (a ^ b) If an agent has beliefs that aren t consistent with these axioms, then the agent will not act rationally

Inference Given a full joint distribution, how can we answer queries? toothache toothache catch catch catch catch cavity 0.108 0.012 0.072 0.008 cavity 0.016 0.064 0.144 0.576 Marginalization Marginalization is the process of summing given possible values for other variables P(Y) = z Z P(Y, z) Conditioning is similarly defined with conditional distributions P(Y) = z P(Y z) P(z) What is P(cavity toothache)? What is P(cavity)? Examples Independence What is the probability of a cavity, given a toothache? P(cavity toothache ) = P( cavity toothache ) / P(toothache) What is the probability of no cavity, given a toothache? P( cavity toothache ) = P( cavity toothache ) / P(toothache) P(toothache) is just used for normalization Can computed probabilities without it! Sometimes variables do not have a relationship P(toothache, catch, cavity, cloudy) = P(cloudy toothache, catch, cavity) P(toothache, catch, cavity) P(toothache, catch, cavity, cloudy) = P(cloudy) P(toothache, catch, cavity) a and b are independent if P(a b) = P(a); P(a b) = P(a) P(b)

Bayes Rule P(a b) = P(a b) P(b) = P(b a) P(a) P(b a) = P(a b)p(b) / P(a) Useful for determining unknown probabilities P(cause effect) = P(effect cause)p(cause) / P(effect) Meningitis causes a stiff neck. What is the probability a patient has meningitis given a stiff neck? P(s m) = 0.7; P(m) = 1/50000; P(s) = 0.01 Homework: The Monty Hall Problem In this game there are three doors to choose between. Behind one door is a prize. You choose a door, and then the host shows you that the prize is not behind one of the doors you did not select. You can then choose to keep your same door or switch to another door. After this, your door is opened, and you either win the prize or win nothing. What is the best policy for playing this game? (Switch doors or keep the same door.) Why? (Prove this using probability/bayes theorem)