CSE391-2005 PR 1 Reasoning - Rule-based and Probabilistic Representing relations with predicate logic Limitations of predicate logic Representing relations.

Slides:



Advertisements
Similar presentations
Probability: Review The state of the world is described using random variables Probabilities are defined over events –Sets of world states characterized.
Advertisements

Reasoning under Uncertainty: Marginalization, Conditional Prob., and Bayes Computer Science cpsc322, Lecture 25 (Textbook Chpt ) Nov, 6, 2013.
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 :
Uncertainty Everyday reasoning and decision making is based on uncertain evidence and inferences. Classical logic only allows conclusions to be strictly.
1 22c:145 Artificial Intelligence Bayesian Networks Reading: Ch 14. Russell & Norvig.
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.
Uncertainty Copyright, 1996 © Dale Carnegie & Associates, Inc. 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.
KI2 - 2 Kunstmatige Intelligentie / RuG Probabilities Revisited AIMA, Chapter 13.
1 Bayesian Reasoning Chapter 13 CMSC 471 Adapted from slides by Tim Finin and Marie desJardins.
Uncertainty Management for Intelligent Systems : for SEP502 June 2006 김 진형 KAIST
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.
Probability and Information Copyright, 1996 © Dale Carnegie & Associates, Inc. A brief review (Chapter 13)
Uncertainty Chapter 13.
Uncertainty Chapter 13.
Quiz 4: Mean: 7.0/8.0 (= 88%) Median: 7.5/8.0 (= 94%)
Methods in Computational Linguistics II Queens College Lecture 2: Counting Things.
Handling Uncertainty. Uncertain knowledge Typical example: Diagnosis. Consider:  x Symptom(x, Toothache)  Disease(x, Cavity). The problem is that this.
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.
Bayes Nets and Probabilities
CSCI 121 Special Topics: Bayesian Network Lecture #1: Reasoning Under Uncertainty.
An Introduction to Artificial Intelligence Chapter 13 & : Uncertainty & Bayesian Networks Ramin Halavati
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes March 13, 2012.
1 Chapter 13 Uncertainty. 2 Outline Uncertainty Probability Syntax and Semantics Inference Independence and Bayes' Rule.
Probability and naïve Bayes Classifier Louis Oliphant cs540 section 2 Fall 2005.
An Introduction to Artificial Intelligence Chapter 13 & : Uncertainty & Bayesian Networks Ramin Halavati
1 Reasoning Under Uncertainty Artificial Intelligence Chapter 9.
Mehdi Ghayoumi MSB rm 132 Ofc hr: Thur, a Machine Learning.
Reasoning Under Uncertainty: Conditioning, Bayes Rule & the Chain Rule Jim Little Uncertainty 2 Nov 3, 2014 Textbook §6.1.3.
Chapter 13 February 19, Acting Under Uncertainty Rational Decision – Depends on the relative importance of the goals and the likelihood of.
Uncertainty. Assumptions Inherent in Deductive Logic-based Systems All the assertions we wish to make and use are universally true. Observations of the.
Probability and Information Copyright, 1996 © Dale Carnegie & Associates, Inc. A brief review.
Reasoning under Uncertainty: Conditional Prob., Bayes and Independence Computer Science cpsc322, Lecture 25 (Textbook Chpt ) Nov, 5, 2012.
Uncertainty Chapter 13. Outline Uncertainty Probability Syntax and Semantics Inference Independence and Bayes' Rule.
Uncertainty Chapter 13. Outline Uncertainty Probability Syntax and Semantics Inference Independence and Bayes' Rule.
Computer Science CPSC 322 Lecture 27 Conditioning Ch Slide 1.
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.
1 Probability FOL fails for a domain due to: –Laziness: too much to list the complete set of rules, too hard to use the enormous rules that result –Theoretical.
Conditional Probability, Bayes’ Theorem, and Belief Networks CISC 2315 Discrete Structures Spring2010 Professor William G. Tanner, Jr.
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.
Uncertainty & Probability CIS 391 – Introduction to Artificial Intelligence AIMA, Chapter 13 Many slides adapted from CMSC 421 (U. Maryland) by Bonnie.
Anifuddin Azis UNCERTAINTY. 2 Introduction The world is not a well-defined place. There is uncertainty in the facts we know: What’s the temperature? Imprecise.
Matching ® ® ® Global Map Local Map … … … obstacle Where am I on the global map?                                   
Computer Science cpsc322, Lecture 25
CMPT 310 CHAPTER 13 Oliver Schulte
Chapter 10: Using Uncertain Knowledge
Uncertainty Chapter 13 Copyright, 1996 © Dale Carnegie & Associates, Inc.
Where are we in CS 440? Now leaving: sequential, deterministic reasoning Entering: probabilistic reasoning and machine learning.
Uncertainty Chapter 13.
Reasoning Under Uncertainty: Conditioning, Bayes Rule & Chain Rule
Conditional Probability, Bayes’ Theorem, and Belief Networks
Uncertainty.
Probability and Information
Uncertainty in AI.
Uncertainty in Environments
Representing Uncertainty
Probability and Information
CS 188: Artificial Intelligence Fall 2008
CS 188: Artificial Intelligence Fall 2007
Class #21 – Monday, November 10
Uncertainty Chapter 13.
Uncertainty Chapter 13.
Chapter 14 February 26, 2004.
Uncertainty Chapter 13.
basic probability and bayes' rule
Presentation transcript:

CSE PR 1 Reasoning - Rule-based and Probabilistic Representing relations with predicate logic Limitations of predicate logic Representing relations with probabilities

CSE PR 2 Causal Rules vs. Diagnostic (Evidential) Rules Cavity(tooth1) → Toothache(tooth1) –Model of the world, causal link Toothache(tooth1) ← Cavity(tooth1) –Typical symptom, might be due to typical cause

CSE PR 3 Dental Model – causal relations Cavity → Toothache Gum disease → Toothache Impacted Wisdom Teeth → Toothache Sinus Infection → Toothache Other causes?

CSE PR 4 Causal Relations Cavity → Toothache Cavity → X-ray shad Gum disease → Toothache Gum disease → Red gums Impacted Wisdom Teeth → Toothache Impacted Wisdom Teeth → X-ray shad Sinus Infection → Toothache Sinus infection → X-ray shad Sinus infection → Headache

CSE PR 5 Rule-based Inferencing – finding confirmatory evidence Cavity ← Toothache Cavity → X-ray shad Gum disease ← Toothache Gum disease ↔ Red gums Impacted Wisdom Teeth ← Toothache Impacted Wisdom Teeth → X-ray shad Sinus Infection ← Toothache Sinus infection → X-ray shad Sinus infection ↔ Headache

CSE PR 6 First Order Logic Fails because Exhaustive listings are too labor intensive and inflexible Medical theories are incomplete Knowledge of the patient’s condition is often incomplete

CSE PR 7 Artificial Intelligence Meets the Real World Search and Reasoning work well for clearly-defined problems with –Reliable axioms, complete knowledge –Accessible, Static The Real World isn’t like that –Medical Diagnosis –Refinery Control –Taxi Driving

CSE PR 8 Probabilistic* reasoning works because Don’t have to predetermine order of inferencing – Bayes “reverses arrows” Accommodates uncertainty and incomplete knowledge * AKA Bayesian reasoning, bayesian networks, belief networks

CSE PR 9 What are Belief Nets Used for? Dental diagnosis example – which disease is causing a toothache? cavity gum disease impacted wisdom T. sinus inf headache toothache S. X-ray Sh. Red, swollen gums T. X-ray Sh.

CSE PR 10 Probabilistic Reasoning Probabilities –Joint distributions –Conditional distributions –Chain Rule –Conditional Independence Belief networks –Conditional Probability Tables –Independence Relations –Inference

CSE PR 11 Probability Theory P(A) prior, unconditional probability P(cavity) = 0.05 P(A|B) conditional probability The probability of A given that all we know is B P(cavity|toothache) =.8

CSE PR 12 Axioms of Probability All probabilities are between 0 and 1 P(True) = 1, P(False) = 0 P(A \/ B) = P(A) + P(B) – P(A /\ B) derive P( ¬ A) = 1 - P(A)

CSE PR 13 Random Variables A term whose value isn’t necessarily known –Discrete r.v – values from a finite set –Boolean r.v. – values from {true,false} –Continuous r.v. – values from subset of real line

CSE PR 14 Random Variables (2) –Discrete s2_st “state of switch 2” {ok, upside-down, short, broken, intermittent} –Boolean 11_lt “light 11 is lit” {true,false} –Continuous current(w1) “current through wire 1” real value

CSE PR 15 Probabilistic Causal Rules.40 Cavity → Toothache.05 Gum disease → Toothache.10 Impacted Wisdom Teeth → Toothache.45 Sinus Infection → Toothache Empirical evidence, (approximate reality?) Subjective (based on beliefs)

CSE PR 16 Joint Probability Distributions cavity¬ cavity toothache ¬toothache P(cavity) = =.05 P(cavity  toothache) = =.11

CSE PR 17 Probability Distributions Joint distribution is written: P(X 1, X 2, X 3, …, X N ) N-dimensional table with 2 N entries P(X 1 =a, X 2 =b, X 3 =c, …, X N =q) is one entry of table Shorthand: P(a, b, c, …, q)

CSE PR 18 Finding a marginal probability P(cavity, toothache) =.04 P(cavity, ¬ toothache) =.01 P(cavity) =.05

CSE PR 19 Conditional Probability P(h) prior, unconditional probability P(Cavity= true) = P(cavity) = 0.05 P(Cavity= false) = P(¬ cavity) = 0.95 P(h|e) conditional probability The probability of h given that all we know is e P(toothache|cavity) =.8

CSE PR 20 Conditional Probability P(h|e) = P(h, e) P(e) P(cavity) =.05 P(cavity, toothache) =.04 P(toothache|cavity) =.04 = Think of each variable assignment as a possible world. Of all of the possible worlds in which “cavity” is true, in 4 out of 5 “toothache” is also true.

CSE PR 21 Conditional Probability Distributions cavity¬ cavity toothache ¬ toothache P(toothache|cavity) = P(toothache, cavity) P(cavity)

CSE PR 22 Decomposing Conjunctions via Conditional Probabilities - Chain Rule P(f 1, f 2, …, f n ) = P(f 1 ) * P(f 2 | f 1 ) * P(f 3 | f 1, f 2 ) *... P(f n | f 1, f 2,..., f n-1 )

CSE PR 23 Bayes’ Theorem Bayes’ Theorem relates conditional probability distributions: P(h | e) = P(e | h) * P(h) P(e) or with additional conditioning information: P(h | e, k) = P(e | h, k) * P(h | k) P(e | k)

CSE PR 24 Proof of Bayes P(h, e) = P(h | e) * P(e) (chain rule) = P(e | h) * P(h) (chain rule) P(h | e) = P(h, e) = P(e | h)  P(h) P(e) P(e) P(h, e | k) = P(h | e, k) * P(e | k) (chain rule) P(h | e, k) = P(e | k,h)  P(h | k) P(e | k)