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.

Slides:



Advertisements
Similar presentations
UNIT IV: UNCERTAIN KNOWLEDGE AND REASONING
Advertisements

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 :
Uncertainty Everyday reasoning and decision making is based on uncertain evidence and inferences. Classical logic only allows conclusions to be strictly.
FT228/4 Knowledge Based Decision Support Systems
Knowledge Representation and Reasoning
Paula Matuszek CSC 8520, Fall, 2005 Dealing with Uncertainty.
CPSC 422 Review Of Probability Theory.
Probability.
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.
University College Cork (Ireland) Department of Civil and Environmental Engineering Course: Engineering Artificial Intelligence Dr. Radu Marinescu Lecture.
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)
AI Principles, Lecture on Reasoning Under Uncertainty Reasoning Under Uncertainty (A statistical approach) Jeremy Wyatt.
Uncertainty Chapter 13.
Uncertainty Chapter 13.
Methods in Computational Linguistics II Queens College Lecture 2: Counting Things.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Feb 28 and March 13-15, 2012.
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.
An Introduction to Artificial Intelligence Chapter 13 & : Uncertainty & Bayesian Networks Ramin Halavati
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.
Uncertainty Chapter 13. 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
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 Management in Rule-based Expert Systems
Uncertainty. Assumptions Inherent in Deductive Logic-based Systems All the assertions we wish to make and use are universally true. Observations of the.
Uncertainty in Expert Systems
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.
Reasoning with Uncertainty دكترمحسن كاهاني
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.
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.
DEALING WITH UNCERTAINTY (1) WEEK 5 CHAPTER 3. Introduction The world is not a well-defined place. There is uncertainty in the facts we know: – What’s.
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.
Computer Science cpsc322, Lecture 25
Bayesian Reasoning Chapter 13 Thomas Bayes,
Bayesian Reasoning Chapter 13 Thomas Bayes,
Review of Probability.
Chapter 4 Probability.
Quick Review Probability Theory
Quick Review Probability Theory
REASONING WITH UNCERTANITY
Uncertainty Chapter 13.
Uncertainty Chapter 13.
Conditional Probability, Bayes’ Theorem, and Belief Networks
Uncertainty.
Probability and Information
Uncertainty in Environments
Probability and Information
Professor Marie desJardins,
Class #21 – Monday, November 10
Bayesian Reasoning Chapter 13 Thomas Bayes,
Bayesian Reasoning Chapter 13 Thomas Bayes,
Uncertainty Chapter 13.
Uncertainty Chapter 13.
Uncertainty Chapter 13.
Uncertainty Chapter 13.
basic probability and bayes' rule
Presentation transcript:

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 measures Is Bush a good president? Imprecise definitions Where is the pit? Imprecise knowledge There is uncertainty in our inferences If I have a blistery, itchy rash and was gardening all weekend I probably have poison ivy People make successful decisions all the time anyhow.

3 Sources of Uncertainty Uncertain data missing data, unreliable, ambiguous, imprecise representation, inconsistent, subjective, derived from defaults, noisy… Uncertain knowledge Multiple causes lead to multiple effects Incomplete knowledge of causality in the domain Probabilistic/stochastic effects Uncertain knowledge representation restricted model of the real system limited expressiveness of the representation mechanism inference process Derived result is formally correct, but wrong in the real world New conclusions are not well-founded (eg, inductive reasoning) Incomplete, default reasoning methods

4 Reasoning Under Uncertainty So how do we do reasoning under uncertainty and with inexact knowledge? heuristics ways to mimic heuristic knowledge processing methods used by experts empirical associations experiential reasoning based on limited observations probabilities objective (frequency counting) subjective (human experience )

5 Basics of Probability Theory mathematical approach for processing uncertain information sample space set X = {x1, x2, …, xn} collection of all possible events can be discrete or continuous probability number P(xi): likelihood of an event xi to occur non-negative value in [0,1] total probability of the sample space is 1 for mutually exclusive events, the probability for at least one of them is the sum of their individual probabilities experimental probability based on the frequency of events subjective probability based on expert assessment

6 Compound Probabilities describes independent events do not affect each other in any way joint probability of two independent events A and B P(A  B) = P(A) * P (B) union probability of two independent events A and B P(A  B) = P(A) + P(B) - P(A  B) =P(A) + P(B) - P(A) * P (B)

Type of Probability

8 Probability theory Random variables Domain Atomic event: complete specification of state Prior probability: degree of belief without any other evidence Joint probability: matrix of combined probabilities of a set of variables Alarm, Burglary, Earthquake Boolean (like these), discrete, continuous Alarm=True  Burglary=True  Earthquake=False alarm  burglary  earthquake P(Burglary) =.1 P(Alarm, Burglary) = alarm¬alarm burglary ¬burglary.1.8

9 Probability theory (cont.) Conditional probability: probability of effect given causes Computing conditional probs: P(a | b) = P(a  b) / P(b) P(b): normalizing constant Product rule: P(a  b) = P(a | b) P(b) Marginalizing: P(B) = Σ a P(B, a) P(B) = Σ a P(B | a) P(a) (conditioning) P(burglary | alarm) =.47 P(alarm | burglary) =.9 P(burglary | alarm) = P(burglary  alarm) / P(alarm) =.09 /.19 =.47 P(burglary  alarm) = P(burglary | alarm) P(alarm) =.47 *.19 =.09 P(alarm) = P(alarm  burglary) + P(alarm  ¬burglary) = =.19

Axioms of probability For any propositions A, B 0 ≤ P(A) ≤ 1 P(true) = 1 and P(false) = 0 P(A  B) = P(A) + P(B) - P(A  B)

Prior probability Prior or unconditional probabilities of propositions e.g., P(Cavity = true) = 0.1 and P(Weather = sunny) = 0.72 correspond to belief prior to arrival of any (new) evidence Joint probability distribution for a set of random variables gives the probability of every atomic event on those random variables P(Weather,Cavity) = a 4 × 2 matrix of values: Weather =sunnyrainycloudysnow Cavity = true Cavity = false Every question about a domain can be answered by the joint distribution

12 Conditional Probabilities describes dependent events affect each other in some way conditional probability of event a given that event B has already occurred P(A|B) = P(A  B) / P(B) Hukum Multiplicative dari probabilitas untuk dua kejadian P (A  B) = P (A l B) P(B) Atau P (A  B) = P (B l A) P(A) Atau P(A  B  C) =P(A l B  C) P(B l C) P(C)

Example

Probabilitas kerusakan disket merk X & bukan merk X: P(C ) = 0.7 Probabilitas yang tidak rusak dari ruang contoh : P(C’) = 0.3 Probabilitas digunakannya merk X : P(X) = 0.8 Probabilitas tidak digunakannya merk X : P(X’) = 0.2 Probabilitas rusak dan menggunakan merk X : P(C  X) = 0.6

Probabilitas rusak & merk X yang sedang digunakan: P(C|X) = P(C  X) = 0.6 = 0.75 P(X) 0.8 Probabilitas rusak & merk bukan X yang sedang digunakan: P(C|X’) = P(C  X’) = 0.1 = 0.50 P(X’) 0.2 Interpretasi dari no. 5 : Jika suatu disket diambil secara acak, maka kemungkinan 0.6 kalinya yang terambil adalah merk X dan mengalami kerusakan Interpretasi dari no. 6 : Jika suatu merk X diambil, maka kemungkinan 0.75 kali disket tersebut mengalami kerusakan.

16 Bayesian Approaches derive the probability of an event given another event Often useful for diagnosis: If X are (observed) effects and Y are (hidden) causes, We may have a model for how causes lead to effects (P(X | Y)) We may also have prior beliefs (based on experience) about the frequency of occurrence of effects (P(Y)) Which allows us to reason abductively from effects to causes (P(Y | X)). has gained importance recently due to advances in efficiency more computational power available better methods

Bayes' Rule P(a  b) = P(a | b) P(b) = P(b | a) P(a)  Bayes' rule: P(a | b) = P(b | a) P(a) / P(b) Useful for assessing diagnostic probability from causal probability: P(Cause|Effect) = P(Effect|Cause) P(Cause) / P(Effect) E.g., let M be meningitis, S be stiff neck: P(m|s) = P(s|m) P(m) / P(s) = 0.8 × / 0.1 = Note: posterior probability of meningitis still very small!

18 Bayes Example: Diagnosing Meningitis Suppose we know that Stiff neck is a symptom in 50% of meningitis cases Meningitis (m) occurs in 1/50,000 patients Stiff neck (s) occurs in 1/20 patients Then P(s|m)= 0.5, P(m) = 1/50000, P(s) = 1/20 P(m|s)= (P(s|m) P(m))/P(s) = (0.5 x 1/50000) / 1/20 =.0002 So we expect that one in 5000 patients with a stiff neck to have meningitis.

Bayes Theorem h i – hypotheses (i=1,k); e 1,…,e n - evidence P(h i ) P(h i | e 1,…,e n ) P(e 1,…,e n | h i ) 19

20 Bayes’ Rule for Single Event single hypothesis H, single event E P(H|E) = (P(E|H) * P(H)) / P(E) or P(H|E) = (P(E|H) * P(H) / (P(E|H) * P(H) + P(E|  H) * P(  H) ) Teorema Bayes : P(H i |E) = P(E  H i ) P(E  H j ) = P(E|H i ) P(H i ) P(E|H j ) P(H j ) = P(E|H i ) P(H i ) P(E)