Textbook Basics of an Expert System: – “Expert systems: Design and Development,” by: John Durkin, 1994, Chapters 1-4. Uncertainty (Probability, Certainty.

Slides:



Advertisements
Similar presentations
© Negnevitsky, Pearson Education, Introduction, or what is uncertainty? Introduction, or what is uncertainty? Basic probability theory Basic probability.
Advertisements

FT228/4 Knowledge Based Decision Support Systems
Lahore University of Management Sciences, Lahore, Pakistan Dr. M.M. Awais- Computer Science Department 1 Lecture 12 Dealing With Uncertainty Probabilistic.
 Negnevitsky, Pearson Education, Lecture 3 Uncertainty management in rule- based expert systems n Introduction, or what is uncertainty? n Basic.
Rulebase Expert System and Uncertainty. Rule-based ES Rules as a knowledge representation technique Type of rules :- relation, recommendation, directive,
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 :
Hypothesis Testing A hypothesis is a claim or statement about a property of a population (in our case, about the mean or a proportion of the population)
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
COUNTING AND PROBABILITY
5/17/20151 Probabilistic Reasoning CIS 479/579 Bruce R. Maxim UM-Dearborn.
CS 484 – Artificial Intelligence1 Announcements Homework 8 due today, November 13 ½ to 1 page description of final project due Thursday, November 15 Current.
Certainty and Evidence
AI – CS364 Uncertainty Management Introduction to Uncertainty Management 21 st September 2006 Dr Bogdan L. Vrusias
Uncertain Reasoning CPSC 315 – Programming Studio Spring 2009 Project 2, Lecture 6.
KETIDAKPASTIAN (UNCERTAINTY) Yeni Herdiyeni – “Uncertainty is defined as the lack of the exact knowledge that would enable.
Introduction to Probabilities Farrokh Alemi, Ph.D. Saturday, February 21, 2004.
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 6.1 Chapter Six Probability.
CSNB234 ARTIFICIAL INTELLIGENCE
Slides are based on Negnevitsky, Pearson Education, Lecture 3 Uncertainty management in rule- based expert systems n Introduction, or what is uncertainty?
1 Chapter 12 Probabilistic Reasoning and Bayesian Belief Networks.
Chapter 4 Probability.
Lecture 05 Rule-based Uncertain Reasoning
Inference.ppt - © Aki Taanila1 Sampling Probability sample Non probability sample Statistical inference Sampling error.
BCOR 1020 Business Statistics
Uncertainty Chapter 13.
Does Naïve Bayes always work?
For Monday after Spring Break Read Homework: –Chapter 13, exercise 6 and 8 May be done in pairs.
Chapter 4 Probability Copyright © 2014 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
Chapter 4 Probability See.
Chapter 8 Probability Section R Review. 2 Barnett/Ziegler/Byleen Finite Mathematics 12e Review for Chapter 8 Important Terms, Symbols, Concepts  8.1.
“PROBABILITY” Some important terms Event: An event is one or more of the possible outcomes of an activity. When we toss a coin there are two possibilities,
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes March 13, 2012.
Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 4 Probability.
LECTURE 15 THURSDAY, 15 OCTOBER STA 291 Fall
ECE 8443 – Pattern Recognition LECTURE 07: MAXIMUM LIKELIHOOD AND BAYESIAN ESTIMATION Objectives: Class-Conditional Density The Multivariate Case General.
1 Reasoning Under Uncertainty Artificial Intelligence Chapter 9.
Uncertainty Uncertain Knowledge Probability Review Bayes’ Theorem Summary.
Chapter 4 Probability ©. Sample Space sample space.S The possible outcomes of a random experiment are called the basic outcomes, and the set of all basic.
Uncertainty Management in Rule-based Expert Systems
Uncertainty in Expert Systems
1 Chapter 12 Probabilistic Reasoning and Bayesian Belief Networks.
Artificial Intelligence CIS 342 The College of Saint Rose David Goldschmidt, Ph.D.
Probability You’ll probably like it!. Probability Definitions Probability assignment Complement, union, intersection of events Conditional probability.
Uncertainty ECE457 Applied Artificial Intelligence Spring 2007 Lecture #8.
Uncertainty  Most intelligent systems have some degree of uncertainty associated with them.  The types of uncertainty that can occur in KBS may be caused.
Lecture 7 Dustin Lueker. 2STA 291 Fall 2009 Lecture 7.
+ Chapter 5 Overview 5.1 Introducing Probability 5.2 Combining Events 5.3 Conditional Probability 5.4 Counting Methods 1.
UNIVERSITI TENAGA NASIONAL 1 CCSB354 ARTIFICIAL INTELLIGENCE Chapter 8.2 Certainty Factors Chapter 8.2 Certainty Factors Instructor: Alicia Tang Y. C.
Chapter 4 Probability Concepts Events and Probability Three Helpful Concepts in Understanding Probability: Experiment Sample Space Event Experiment.
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.
Probability. Randomness When we produce data by randomized procedures, the laws of probability answer the question, “What would happen if we did this.
BUSA Probability. Probability – the bedrock of randomness Definitions Random experiment – observing the close of the NYSE and the Nasdaq Sample.
Module #1 - Logic 1 Based on Rosen, Discrete Mathematics & Its Applications. Prepared by (c) , Michael P. Frank and Modified By Mingwu Chen Probability.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 4 Probability.
Chapter 12 Certainty Theory (Evidential Reasoning) 1.
REASONING UNDER UNCERTAINTY: CERTAINTY THEORY
Bayes’ Theorem Suppose we have estimated prior probabilities for events we are concerned with, and then obtain new information. We would like to a sound.
CHAPTER 5 Handling Uncertainty BIC 3337 EXPERT SYSTEM.
Does Naïve Bayes always work?
Chapter 4 Probability.
MAT 446 Supplementary Note for Ch 2
Module #16: Probability Theory
Basic Probabilistic Reasoning
Module #16: Probability Theory
CHAPTER 4 PROBABILITY Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
28th September 2005 Dr Bogdan L. Vrusias
Module #16: Probability Theory
Certainty Factor Model
basic probability and bayes' rule
Presentation transcript:

Textbook Basics of an Expert System: – “Expert systems: Design and Development,” by: John Durkin, 1994, Chapters 1-4. Uncertainty (Probability, Certainty factor & Fuzzy): – “Expert systems: Design and Development,” by: John Durkin, 1994, Chapters – “Artificial intelligence: a guide to intelligent systems,” by: Michael Negnevitsky, 2005, Chapters 3,4. 1

Chapter 11 Bayesian approach to inexact reasoning 2

What is Uncertainty? Information can be incomplete, inconsistent, uncertain, or all three. Uncertainty: lack of the exact knowledge to reach a perfectly reliable conclusion. Classical logic permits only exact reasoning. IF A is true THEN A is not false IF A is false THEN A is not true 3

Sources of uncertain knowledge Weak implications: Need for concrete correlations between IF and THEN parts handling vague associations is required Imprecise language: Our natural language is ambiguous and imprecise. (i.e. often and sometimes, frequently and hardly ever) In 1944, Ray Simpson asked 355 high school and college students to place 20 terms on a scale between 1 and 100. In 1968, Milton Hakel repeated this experiment.

Quantification of ambiguous and imprecise terms 5

Sources of uncertain knowledge (continued.) Unknown data: When the data is incomplete or missing, the only solution is to accept the value “unknown” and proceed to an approximate reasoning with this value. Combining the views of different experts: Large expert systems usually combine the knowledge and expertise of a number of experts. Unfortunately, experts often have contradictory opinions and produce conflicting rules. To resolve the conflict, attaching a weight to each expert 6

Solutions to Handle Uncertainty Probability approach Durkin, Ch.11 & Negnevitsky Ch. 3 Certainty Factor Durkin Ch. 12 & Negnevitsky Ch. 3 Fuzzy Logic (Durkin Ch. 13 & Negnevitsky Ch. 4 7

Basic probability theory Probability provides an exact approach for inexact reasoning The probability of an event is the proportion of cases in which the event occurs. A scientific measure of chance. A range between 0 (impossibility) to 1 (certainty). 8

Basic probability theory s: success; f :failure throwing a coin, the probability of getting a head s the probability of getting a tail f P(s) = p(f) =0.5

Conditional Probability Let A, B be two events in the world A and B are not mutually exclusive (A∩B ≠ null) The probability that event A will occur if event B occurs is called the conditional probability. p(A|B): Conditional probability of event A occurring given that event B has occurred. 10

Conditional Probability P(A∩B): Joint Probability Similarly, Hence, 11

Bayesian Rule where: p(A|B) is the conditional probability that event A occurs given that event B has occurred; p(B|A) is the conditional probability of event B occurring given that event A has occurred; p(A) is the probability of event A occurring; p(B) is the probability of event B occurring. 12

Bayesian Rule 13

Example: Chest Pain 14

Joint Probability on a number of mutually exclusive and exhaustive events 15

Bayesian rule with mutually exclusive and exhaustive events Replacing in Bayesian rule 16

Bayesian Reasoning Suppose all rules in the knowledge base are represented in the following form: If E is true, then H is true {with probability p} This rule implies that if event E occurs, then the probability that event H will occur is p. H: hypothesis E: evidence 17

The Bayesian rule in terms of hypotheses and evidence 18

The Bayesian rule in expert systems 19

The Bayesian rule with multiple hypothesis and multiple evidences 20

The Bayesian rule with multiple hypothesis and multiple evidences assumption: conditional independency among different evidences 21

Example: Ranking potentially true hypothesis Suppose an expert, given three conditionally independent evidences E1, E2 and E3, creates three mutually exclusive and exhaustive hypotheses H1, H2 and H3. 22 H1: Cold H2: Allergy H3: Flu E1: Cough E2: Fever E3: runny nose

Example: Ranking potentially true hypothesis Assume that we first observe evidence E3. The expert system computes the posterior probabilities for all hypotheses as After evidence E3 is observed, belief in hypothesis H1 decreases and becomes equal to belief in hypothesis H2. Belief in hypothesis H3 increases and even nearly reaches beliefs in hypotheses H1 and H2. 23 H1: Cold H2: Allergy H3: Flu E1: Cough E2: Fever E3: runny nose

Example: Ranking potentially true hypothesis Suppose now that we observe evidence E1. The posterior probabilities are calculated as Hypothesis H2 has now become the most likely one. 24 H1: Cold H2: Allergy H3: Flu E1: Cough E2: Fever E3: runny nose

Example: Ranking potentially true hypothesis After observing evidence E2, the final posterior probabilities for all hypotheses are calculated: Although the initial ranking was H1, H2 and H3, only hypotheses H1 and H3 remain under consideration after all evidences (E1, E2 and E3) were observed. 25

Uncertain Evidence (LS & LN) 26 If E {LS, LN}, then H LS (likelihood of sufficiency): represents a measure of the expert belief in hypothesis H if evidence E is present. LN (likelihood of necessity): a measure of discredit to hypothesis H, if evidence E is missing.

Uncertain Evidence (LS & LN) Note that LN cannot be derived from LS. The domain expert must provide both values independently High values of LS (LS>>1) indicate that the rule strongly supports the hypothesis if the evidence is observed, and low values of LN (0<LN<1) suggest that the rule also strongly opposes the hypothesis if the evidence is missing. 27 Review

Uncertain Evidence (LS & LN) Usually (but not always): Example: FORCAST expert system of London: 28 Review

Effects of LS and LN on Hypothesis 29 Review

How to calculate posterior probabilities from LS & LN 30 Review Q: Prove that the above equations are the same Bayesian rule.

Example: the weather forecasting 31

Example: the weather forecasting (non-probabilistic solution) 32 Simple non-probabilistic knowledge base: Rule: 1 IF today is rain, THEN tomorrow is rain Rule: 2 IF today is dry, THEN tomorrow is dry Using these rules we will make only ten mistakes

Example: the weather forecasting (probabilistic solution) 33 Simple Probabilistic knowledge base:

Example: the weather forecasting p(tomorrow is rain | today is rain) 34

Example: the weather forecasting Complete knowledge base 35

Assignment 3, (Durkin, ch. 11) Due Date: 93/8/29 36