Uncertainty1 Uncertainty Russell and Norvig: Chapter 14 Russell and Norvig: Chapter 13 CS121 – Winter 2003.

Slides:



Advertisements
Similar presentations
Uncertainty. environment Uncertain Agent agent ? sensors actuators ? ? ? model.
Advertisements

ICS-171:Notes 8: 1 Notes 8: Uncertainty, Probability and Optimal Decision-Making ICS 171, Winter 2001.
Probability: Review The state of the world is described using random variables Probabilities are defined over events –Sets of world states characterized.
PROBABILITY. Uncertainty  Let action A t = leave for airport t minutes before flight from Logan Airport  Will A t get me there on time ? Problems :
Uncertain Knowledge Representation CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
1 Chapter 13 Uncertainty Types of uncertainty Predicate logic and uncertainty Nonmonotonic logics Truth Maintenance Systems Fuzzy sets.
1 Reasoning in Uncertain Situations 9 9.0Introduction 9.1Logic-Based Abductive Inference 9.2Abduction: Alternatives to Logic 9.3The Stochastic Approach.
This lecture: Read Chapter 13 Next Lecture: Read Chapter
Where are we in CS 440? Now leaving: sequential, deterministic reasoning Entering: probabilistic reasoning and machine learning.
Uncertainty Russell and Norvig: Chapter 13 CMCS424 Fall 2003 based on material from Jean-Claude Latombe, Daphne Koller and Nir Friedman.
Uncertain knowledge and reasoning
Reasoning under Uncertainty: Conditional Prob., Bayes and Independence Computer Science cpsc322, Lecture 25 (Textbook Chpt ) March, 17, 2010.
CPSC 422 Review Of Probability Theory.
Probability.
1 Reasoning in Uncertain Situations 8a 8.0Introduction 8.1Logic-Based Abductive Inference 8.2Abduction: Alternatives to Logic 8.3The Stochastic Approach.
Uncertainty Chapter 13. Uncertainty Let action A t = leave for airport t minutes before flight Will A t get me there on time? Problems: 1.partial observability.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 12 Jim Martin.
A/Prof Geraint Lewis A/Prof Peter Tuthill
KI2 - 2 Kunstmatige Intelligentie / RuG Probabilities Revisited AIMA, Chapter 13.
Uncertainty Management for Intelligent Systems : for SEP502 June 2006 김 진형 KAIST
Probabilistic Robotics Introduction Probabilities Bayes rule Bayes filters.
Representing Uncertainty CSE 473. © Daniel S. Weld 2 Many Techniques Developed Fuzzy Logic Certainty Factors Non-monotonic logic Probability Only one.
Ai in game programming it university of copenhagen Welcome to... the Crash Course Probability Theory Marco Loog.
Uncertainty Logical approach problem: we do not always know complete truth about the environment Example: Leave(t) = leave for airport t minutes before.
Uncertainty Chapter 13.
Uncertainty Chapter 13.
Uncertainty Chapter 13. Uncertainty Let action A t = leave for airport t minutes before flight Will A t get me there on time? Problems: 1.partial observability.
An Introduction to Artificial Intelligence Chapter 13 & : Uncertainty & Bayesian Networks Ramin Halavati
Uncertainty Russell and Norvig: Chapter 14, 15 Koller article on BNs CMCS424 Spring 2002 April 23.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes March 13, 2012.
Uncertainty Chapter 13. Outline Uncertainty Probability Syntax and Semantics Inference Independence and Bayes' Rule.
1 Chapter 13 Uncertainty. 2 Outline Uncertainty Probability Syntax and Semantics Inference Independence and Bayes' Rule.
Probabilistic Belief States and Bayesian Networks (Where we exploit the sparseness of direct interactions among components of a world) R&N: Chap. 14, Sect.
An Introduction to Artificial Intelligence Chapter 13 & : Uncertainty & Bayesian Networks Ramin Halavati
CSE PR 1 Reasoning - Rule-based and Probabilistic Representing relations with predicate logic Limitations of predicate logic Representing relations.
Uncertainty Uncertain Knowledge Probability Review Bayes’ Theorem Summary.
Chapter 13 February 19, Acting Under Uncertainty Rational Decision – Depends on the relative importance of the goals and the likelihood of.
Uncertainty Chapter 13. Outline Uncertainty Probability Syntax and Semantics Inference Independence and Bayes' Rule.
4 Proposed Research Projects SmartHome – Encouraging patients with mild cognitive disabilities to use digital memory notebook for activities of daily living.
Uncertainty Chapter 13. Outline Uncertainty Probability Syntax and Semantics Inference Independence and Bayes' Rule.
Uncertainty ECE457 Applied Artificial Intelligence Spring 2007 Lecture #8.
Uncertainty in AI. Birds can fly, right? Seems like common sense knowledge.
Introduction to Artificial Intelligence CS 438 Spring 2008 Today –AIMA, Ch. 13 –Reasoning with Uncertainty Tuesday –AIMA, Ch. 14.
Uncertainty Let action A t = leave for airport t minutes before flight Will A t get me there on time? Problems: 1.partial observability (road state, other.
Probabilistic Robotics Introduction Probabilities Bayes rule Bayes filters.
CSE 473 Uncertainty. © UW CSE AI Faculty 2 Many Techniques Developed Fuzzy Logic Certainty Factors Non-monotonic logic Probability Only one has stood.
Uncertainty Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Outline [AIMA Ch 13] 1 Uncertainty Probability Syntax and Semantics Inference Independence and Bayes' Rule.
Uncertainty & Probability CIS 391 – Introduction to Artificial Intelligence AIMA, Chapter 13 Many slides adapted from CMSC 421 (U. Maryland) by Bonnie.
Matching ® ® ® Global Map Local Map … … … obstacle Where am I on the global map?                                   
ECE457 Applied Artificial Intelligence Fall 2007 Lecture #8
Quick Review Probability Theory
Quick Review Probability Theory
Where are we in CS 440? Now leaving: sequential, deterministic reasoning Entering: probabilistic reasoning and machine learning.
Uncertainty Chapter 13.
Uncertainty Chapter 13.
Where are we in CS 440? Now leaving: sequential, deterministic reasoning Entering: probabilistic reasoning and machine learning.
Uncertainty.
Uncertainty in Environments
Representing Uncertainty
CSE-490DF Robotics Capstone
CS 188: Artificial Intelligence Fall 2008
CS 188: Artificial Intelligence Fall 2007
Uncertainty Logical approach problem: we do not always know complete truth about the environment Example: Leave(t) = leave for airport t minutes before.
Probabilistic reasoning
Uncertainty Chapter 13.
Uncertainty Chapter 13.
Uncertainty Chapter 13.
Uncertainty Chapter 13.
ECE457 Applied Artificial Intelligence Spring 2008 Lecture #8
Presentation transcript:

Uncertainty1 Uncertainty Russell and Norvig: Chapter 14 Russell and Norvig: Chapter 13 CS121 – Winter 2003

Uncertainty2 environment Uncertain Agent agent ? sensors actuators ? ? ? model

Uncertainty3 An Old Problem …

Uncertainty4 Types of Uncertainty Uncertainty in prior knowledge E.g., some causes of a disease are unknown and are not represented in the background knowledge of a medical-assistant agent

Uncertainty5 Types of Uncertainty Uncertainty in prior knowledge E.g., some causes of a disease are unknown and are not represented in the background knowledge of a medical-assistant agent Uncertainty in actions E.g., actions are represented with relatively short lists of preconditions, while these lists are in fact arbitrary long For example, to drive my car in the morning: It must not have been stolen during the night It must not have flat tires There must be gas in the tank The battery must not be dead The ignition must work I must not have lost the car keys No truck should obstruct the driveway I must not have suddenly become blind or paralytic Etc… Not only would it not be possible to list all of them, but would trying to do so be efficient?

Uncertainty6 Types of Uncertainty Uncertainty in prior knowledge E.g., some causes of a disease are unknown and are not represented in the background knowledge of a medical-assistant agent Uncertainty in actions E.g., actions are represented with relatively short lists of preconditions, while these lists are in fact arbitrary long Uncertainty in perception E.g., sensors do not return exact or complete information about the world; a robot never knows exactly its position Courtesy R. Chatila

Uncertainty7 Types of Uncertainty Uncertainty in prior knowledge E.g., some causes of a disease are unknown and are not represented in the background knowledge of a medical-assistant agent Uncertainty in actions E.g., actions are represented with relatively short lists of preconditions, while these lists are in fact arbitrary long Uncertainty in perception E.g., sensors do not return exact or complete information about the world; a robot never knows exactly its position Sources of uncertainty: 1.Laziness (efficiency?) 2.Ignorance What we call uncertainty is a summary of all that is not explicitly taken into account in the agent’s KB

Uncertainty8 Questions How to represent uncertainty in knowledge? How to perform inferences with uncertain knowledge? Which action to choose under uncertainty?

Uncertainty9 Handling Uncertainty Approaches: 1. Default reasoning [Optimistic] 2. Worst-case reasoning [Pessimistic] 3. Probabilistic reasoning [Realist]

Uncertainty10 Default Reasoning Rationale: The world is fairly normal. Abnormalities are rare So, an agent assumes normality, until there is evidence of the contrary E.g., if an agent sees a bird x, it assumes that x can fly, unless it has evidence that x is a penguin, an ostrich, a dead bird, a bird with broken wings, …

Uncertainty11 Representation in Logic BIRD(x)   AB F (x)  FLIES(x) PENGUINS(x)  AB F (x) BROKEN-WINGS(x)  AB F (x) BIRD(Tweety) … Default rule: Unless AB F (Tweety) can be proven True, assume it is False [unsound inference rule] But what to do if several defaults are contradictory? Which ones to keep? Which one to reject? Very active research field in the 80’s  Non-monotonic logics: defaults, circumscription, closed-world assumptions Applications to databases

Uncertainty12 Worst-Case Reasoning Rationale: Just the opposite! The world is ruled by Murphy’s Law Uncertainty is defined by sets, e.g., the set possible outcomes of an action, the set of possible positions of a robot The agent assumes the worst case, and chooses the actions that maximizes a utility function in this case Example: Adversarial search (next lecture)

Uncertainty13 Probabilistic Reasoning Rationale: The world is not divided between “normal” and “abnormal”, nor is it adversarial. Possible situations have various likelihoods (probabilities) The agent has probabilistic beliefs – pieces of knowledge with associated probabilities (strengths) – and chooses its actions to maximize the expected value of some utility function

Uncertainty14 Target Tracking Example Maximization of worst-case value of utility vs. of expected value of utility target robot Utility = escape time of target

Uncertainty15 Forthcoming Classes 1. Problem-solving with worst-case uncertainty (adversarial search) 2. Problem solving with probabilistic uncertainty (2 classes)

Uncertainty16 Axioms of probability Notion of Probability The probability of a proposition A is a real number P(A) between 0 and 1 P(True) = 1 and P(False) = 0 P(AvB) = P(A) + P(B) - P(A  B) You drive on 101 to SFO often, and you notice that 70% of the times there is a traffic slowdown at the exit to highway 92. The next time you plan to drive on 101, you will believe that the proposition “there is a slowdown at the exit to 92” is True with probability 0.7 P(Av  A) = 1 = P(A) + P(  A) So: P(A) = 1 - P(  A)

Uncertainty17 Frequency Interpretation Draw a ball from a bag containing n balls of the same size, r red and s yellow. The probability that the proposition A = “the ball is red” is true corresponds to the relative frequency with which we expect to draw a red ball  P(A) = r/n

Uncertainty18 Subjective Interpretation There are many situations in which there is no objective frequency interpretation: On a windy day, just before paragliding from the top of El Capitan, you say “there is probability 0.05 that I am going to die” You have worked hard on your AI class and you believe that the probability that you will get an A is 0.9

Uncertainty19 Random Variables A proposition that takes the value True with probability p and False with probability 1-p is a random variable with distribution (p,1-p) If a bag contains balls having 3 possible colors – red, yellow, and blue – the color of a ball picked at random from the bag is a random variable with 3 possible values The (probability) distribution of a random variable X with n values x 1, x 2, …, x n is: (p 1, p 2, …, p n ) with P(X=x i ) = p i and  i=1,…,n p i = 1

Uncertainty20 Expected Value Random variable X with n values x 1,…,x n and distribution (p 1,…,p n ) E.g.: X is the state reached after doing an action A under uncertainty Function U of X E.g., U is the utility of a state The expected value of U after doing A is E[U] =  i=1,…,n p i U(x i )

Uncertainty21 Joint Distribution k random variables X 1, …, X k The joint distribution of these variables is a table in which each entry gives the probability of one combination of values of X 1, …, X k Example: P(Cavity  Toothache) P(  Cavity  Toothache) Toothache  Toothache Cavity  Cavity

Uncertainty22 Joint Distribution Says It All P( Toothache ) = P( (Toothache  Cavity) v (Toothache  Cavity) ) = P( Toothache  Cavity ) + P( Toothache  Cavity ) = = 0.05 P( Toothache v Cavity ) = P( (Toothache  Cavity) v (Toothache  Cavity) v (  Toothache  Cavity) ) = = 0.11 Toothache  Toothache Cavity  Cavity

Uncertainty23 Conditional Probability Definition: P(A  B) = P(A|B) P(B) Read P(A|B): Probability of A given that we know B P(A) is called the prior probability of A P(A|B) is called the posterior or conditional probability of A given B

Uncertainty24 Example P( Cavity  Toothache ) = P( Cavity|Toothache ) P( Toothache ) P( Cavity ) = 0.1 P( Cavity|Toothache ) = P( Cavity  Toothache ) / P( Toothache ) = 0.04/0.05 = 0.8 Toothache  Toothache Cavity  Cavity

Uncertainty25 Generalization P(A  B  C) = P(A|B,C) P(B|C) P(C)

Uncertainty26 Conditional Independence Propositions A and B are (conditionally) independent iff: P(A|B) = P(A)  P(A  B) = P(A) P(B) A and B are independent given C iff: P(A|B,C) = P(A|C)  P(A  B|C) = P(A|C) P(B|C)

Uncertainty27 Car Example Three propositions: Gas Battery Starts P(Battery|Gas) = P(Battery) Gas and Battery are independent P(Battery|Gas,  Starts) ≠ P(Battery|  Starts) Gas and Battery are not independent given  Starts

Uncertainty28 Conditional Independence Let A and B be independent, i.e.: P(A|B) = P(A) P(A  B) = P(A) P(B) What about A and  B?

Uncertainty29 Conditional Independence Let A and B be independent, i.e.: P(A|B) = P(A) P(A  B) = P(A) P(B) What about A and  B? P(A|  B) = P(A  B)/P(  B)

Uncertainty30 Conditional Independence Let A and B be independent, i.e.: P(A|B) = P(A) P(A  B) = P(A) P(B) What about A and  B? P(A|  B) = P(A  B)/P(  B) A = (A  B) v (A  B) P(A) = P(A  B) + P(A  B)

Uncertainty31 Conditional Independence Let A and B be independent, i.e.: P(A|B) = P(A) P(A  B) = P(A) P(B) What about A and  B? P(A|  B) = P(A  B)/P(  B) A = (A  B) v (A  B) P(A) = P(A  B) + P(A  B) P(A  B) = P(A) x (1-P(B)) P(  B) = 1-P(B)

Uncertainty32 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)

Uncertainty33 Example Given: P(Cavity) = 0.1 P(Toothache) = 0.05 P(Cavity|Toothache) = 0.8 Bayes’ rule tells: P(Toothache|Cavity) = (0.8 x 0.05)/0.1 = 0.4

Uncertainty34 Generalization P(A  B  C) = P(A  B|C) P(C) = P(A|B,C) P(B|C) P(C) P(A  B  C) = P(A  B|C) P(C) = P(B|A,C) P(A|C) P(C) P(B|A,C) = P(A|B,C) P(B|C) P(A|C)

Uncertainty35 Summary Types of uncertainty Default/worst-case/probabilistic reasoning Probability Random variable/expected value Joint distribution Conditional probability Conditional independence Bayes’ rule