For Friday Read 14.1-14.2 Homework: –Chapter 10, exercise 22 I strongly encourage you to tackle this together. You may work in groups of up to 4 people.

Slides:



Advertisements
Similar presentations
Big Ideas in Cmput366. Search Blind Search State space representation Iterative deepening Heuristic Search A*, f(n)=g(n)+h(n), admissible heuristics Local.
Advertisements

A Tutorial on Learning with Bayesian Networks
BAYESIAN NETWORKS Ivan Bratko Faculty of Computer and Information Sc. University of Ljubljana.
Naïve Bayes. Bayesian Reasoning Bayesian reasoning provides a probabilistic approach to inference. It is based on the assumption that the quantities of.
Bayesian Network and Influence Diagram A Guide to Construction And Analysis.
Default Reasoning the problem: in FOL, universally-quantified rules cannot have exceptions –  x bird(x)  can_fly(x) –bird(tweety) –bird(opus)  can_fly(opus)
1 DCP 1172 Introduction to Artificial Intelligence Chang-Sheng Chen Topics Covered: Introduction to Nonmonotonic Logic.
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.
For Monday Read chapter 18, sections 1-2 Homework: –Chapter 14, exercise 8 a-d.
For Friday Finish chapter 10 No homework (get started on program 2)
For Monday Finish chapter 14 Homework: –Chapter 13, exercises 8, 15.
5/17/20151 Probabilistic Reasoning CIS 479/579 Bruce R. Maxim UM-Dearborn.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Probability.
Bayesian Networks Chapter 2 (Duda et al.) – Section 2.11
1 Chapter 12 Probabilistic Reasoning and Bayesian Belief Networks.
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.
Ai in game programming it university of copenhagen Welcome to... the Crash Course Probability Theory Marco Loog.
Lecture 05 Rule-based Uncertain Reasoning
1 Bayesian Networks Chapter ; 14.4 CS 63 Adapted from slides by Tim Finin and Marie desJardins. Some material borrowed from Lise Getoor.
CS Bayesian Learning1 Bayesian Learning. CS Bayesian Learning2 States, causes, hypotheses. Observations, effect, data. We need to reconcile.
Uncertainty Chapter 13.
For Monday after Spring Break Read Homework: –Chapter 13, exercise 6 and 8 May be done in pairs.
Jeff Howbert Introduction to Machine Learning Winter Classification Bayesian Classifiers.
Probabilistic Reasoning
Quiz 4: Mean: 7.0/8.0 (= 88%) Median: 7.5/8.0 (= 94%)
1 Naïve Bayes A probabilistic ML algorithm. 2 Axioms of Probability Theory All probabilities between 0 and 1 True proposition has probability 1, false.
An Introduction to Artificial Intelligence Chapter 13 & : Uncertainty & Bayesian Networks Ramin Halavati
For Friday Exam 1. For Monday No reading Take home portion of exam due.
1 CS 343: Artificial Intelligence Probabilistic Reasoning and Naïve Bayes Raymond J. Mooney University of Texas at Austin.
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.
Visibility Graph. Voronoi Diagram Control is easy: stay equidistant away from closest obstacles.
Bayesian networks. Motivation We saw that the full joint probability can be used to answer any question about the domain, but can become intractable as.
For Wednesday Read chapter 13 Homework: –Chapter 10, exercise 5 (part 1 only, don’t redo) Progress for program 2 due.
For Wednesday Read Chapter 11, sections 1-2 Program 2 due.
1 CS 391L: Machine Learning: Bayesian Learning: Naïve Bayes Raymond J. Mooney University of Texas at Austin.
Temporal Reasoning and Planning in Medicine Frame-Based Representations and Description Logics Yuval Shahar, M.D., Ph.D.
1 Reasoning Under Uncertainty Artificial Intelligence Chapter 9.
CSE PR 1 Reasoning - Rule-based and Probabilistic Representing relations with predicate logic Limitations of predicate logic Representing relations.
Bayesian Classification. Bayesian Classification: Why? A statistical classifier: performs probabilistic prediction, i.e., predicts class membership probabilities.
Classification Techniques: Bayesian Classification
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.
Uncertainty Management in Rule-based Expert Systems
METU Informatics Institute Min720 Pattern Classification with Bio-Medical Applications Lecture notes 9 Bayesian Belief Networks.
1 Chapter 12 Probabilistic Reasoning and Bayesian Belief Networks.
4 Proposed Research Projects SmartHome – Encouraging patients with mild cognitive disabilities to use digital memory notebook for activities of daily living.
Computer Science CPSC 322 Lecture 27 Conditioning Ch Slide 1.
Uncertainty in AI. Birds can fly, right? Seems like common sense knowledge.
For Friday Read Chapter 11, sections 1 and 2 Homework: –Chapter 10, exercises 1 and 5.
For Wednesday Read chapter 13 No homework. Program 2 Any questions?
Textbook Basics of an Expert System: – “Expert systems: Design and Development,” by: John Durkin, 1994, Chapters 1-4. Uncertainty (Probability, Certainty.
1 CMSC 671 Fall 2001 Class #20 – Thursday, November 8.
CSE 473 Uncertainty. © UW CSE AI Faculty 2 Many Techniques Developed Fuzzy Logic Certainty Factors Non-monotonic logic Probability Only one has stood.
Review of Probability.
Limitations of First-Order Logic
Chapter 10: Using Uncertain Knowledge
Quick Review Probability Theory
Quick Review Probability Theory
Reasoning Under Uncertainty: Conditioning, Bayes Rule & Chain Rule
Uncertainty in AI.
Class #21 – Monday, November 10
Class #16 – Tuesday, October 26
Hankz Hankui Zhuo Bayesian Networks Hankz Hankui Zhuo
Chapter 14 February 26, 2004.
basic probability and bayes' rule
Presentation transcript:

For Friday Read Homework: –Chapter 10, exercise 22 I strongly encourage you to tackle this together. You may work in groups of up to 4 people.

Program 2 Any questions?

Homework

Special rules for handling belief: –If I believe something, I believe that I believe it. –Need to still provide a way to indicate that two names refer to the same thing.

Knowledge and Belief How are they related? Knowing whether something is true Knowing what

And Besides Logic? Semantic networks Frames

Semantic Networks Use graphs to represent concepts and the relations between them. Simplest networks are ISA hierarchies Must be careful to make a type/token distinction: Garfield isa Cat Cat(Garfield) Cat isa Feline  x (Cat (x)  Feline(x)) Restricted shorthand for a logical representation.

Semantic Nets/Frames Labeled links can represent arbitrary relations between objects and/or concepts. Nodes with links can also be viewed as frames with slots that point to other objects and/or concepts.

First Order Representation Rel(Alive,Animals,T) Rel(Flies,Animals,F) Birds  Animals Mammals  Animals Rel(Flies,Birds,T) Rel(Legs,Birds,2) Rel(Legs,Mammals,4) Penguins  Birds Cats  Mammals Bats  Mammals Rel(Flies,Penguins,F) Rel(Legs,Bats,2) Rel(Flies,Bats,T) Opus  Penguins Bill  Cats Pat  Bats Name(Opus,"Opus") Name(Bill,"Bill") Friend(Opus,Bill) Friend(Bill,Opus) Name(Pat,"Pat")

Inheritance Inheritance is a specific type of inference that allows properties of objects to be inferred from properties of categories to which the object belongs. –Is Bill alive? –Yes, since Bill is a cat, cats are mammals, mammals are animals, and animals are alive. Such inference can be performed by a simple graph traversal algorithm and implemented very efficiently. However, it is basically a form of logical inference  x (Cat(x)  Mammal(x))  x (Mammal(x)  Animal(x))  x (Animal(x)  Alive(x)) Cat(Bill) |- Alive(Bill)

Backward or Forward Can work either way Either can be inefficient Usually depends on branching factors

Semantic of Links Must be careful to distinguish different types of links. Links between tokens and tokens are different than links between types and types and links between tokens and types.

Link Types

Inheritance with Exceptions Information specified for a type gives the default value for a relation, but this may be over­ridden by a more specific type. –Tweety is a bird. Does Tweety fly? Birds fly. Yes. –Opus is a penguin. Does Opus fly? Penguins don't fly. No.

Multiple Inheritance If hierarchy is not a tree but a directed acyclic graph (DAG) then different inheritance paths may result in different defaults being inherited. Nixon Diamond

Nonmonotonicity In normal monotonic logic, adding more sentences to a KB only entails more conclusions. if KB |- P then KB  {S} |- P Inheritance with exceptions is not monotonic (it is nonmonotonic) –Bird(Opus) –Fly(Opus)? yes –Penguin(Opus) –Fly(Opus)? no

Nonmonotonic logics attempt to formalize default reasoning by allow default rules of the form: –If P and concluding Q is consistent, then conclude Q. –If Bird(X) then if consistent Fly(x)

Defaults with Negation as Failure Prolog negation as failure can be used to implement default inference. fly(X) :­ bird(X), not(ab(X)). ab(X) :­ penguin(X). ab(X) :­ ostrich(X). bird(opus). ? fly(opus). Yes penguin(opus). ? fly(opus). No

Uncertainty Everyday reasoning and decision making is based on uncertain evidence and inferences. Classical logic only allows conclusions to be strictly true or strictly false We need to account for this uncertainty and the need to weigh and combine conflicting evidence.

Coping with Uncertainty Straightforward application of probability theory is impractical since the large number of conditional probabilities required are rarely, if ever, available. Therefore, early expert systems employed fairly ad hoc methods for reasoning under uncertainty and for combining evidence. Recently, methods more rigorously founded in probability theory that attempt to decrease the amount of conditional probabilities required have flourished.

Probability Probabilities are real numbers 0­1 representing the a priori likelihood that a proposition is true. P(Cold) = 0.1 P(¬Cold) = 0.9 Probabilities can also be assigned to all values of a random variable (continuous or discrete) with a specific range of values (domain), e.g. low, normal, high. P(temperature=normal)=0.99 P(temperature=98.6) = 0.99

Probability Vectors The vector form gives probabilities for all values of a discrete variable, or its probability distribution. P(temperature) = This indicates the prior probability, in which no information is known.

Conditional Probability Conditional probability specifies the probability given that the values of some other random variables are known. P(Sneeze | Cold) = 0.8 P(Cold | Sneeze) = 0.6 The probability of a sneeze given a cold is 80%. The probability of a cold given a sneeze is 60%.

Cond. Probability cont. Assumes that the given information is all that is known, so all known information must be given. P(Sneeze | Cold  Allergy) = 0.95 Also allows for conditional distributions P(X |Y) gives 2­D array of values for all P(X=x i |Y=y j ) Defined as P (A | B) = P (A  B) P(B)

Axioms of Probability Theory All probabilities are between 0 and 1. 0  P(A)  1 Necessarily true propositions have probability 1, necessarily false have probability 0. P(true) = 1 P(false) = 0 The probability of a disjunction is given by P(A  B) = P(A) + P(B) - P(A  B)

Joint Probability Distribution The joint probability distribution for a set of random variables X 1 …X n gives the probability of every combination of values (an n­dimensional array with vn values if each variable has v values) P(X 1,...,X n ) Sneeze ¬Sneeze Cold ¬Cold The probability of all possible cases (assignments of values to some subset of variables) can be calculated by summing the appropriate subset of values from the joint distribution. All conditional probabilities can therefore also be calculated

Bayes Theorem P(H | e) = P(e | H) P(H) P(e) Follows from definition of conditional probability: P (A | B) = P (A  B) P(B)

Other Basic Theorems If events A and B are independent then: P(A  B) = P(A)P(B) If events A and B are incompatible then: P(A  B) = P(A) + P(B)

Simple Bayesian Reasoning If we assume there are n possible disjoint diagnoses, d 1 … d n P(d i | e) = P(e | d i ) P(d i ) P(e) P(e) may not be known but the total probability of all diagnoses must always be 1, so all must sum to 1 Thus, we can determine the most probable without knowing P(e).

Efficiency This method requires that for each disease the probability it will cause any possible combination of symptoms and the number of possible symptom sets, e, is exponential in the number of basic symptoms. This huge amount of data is usually not available.

Bayesian Reasoning with Independence (“Naïve” Bayes) If we assume that each piece of evidence (symptom) is independent given the diagnosis (conditional independence), then given evidence e as a sequence {e 1,e 2,…,e d } of observations, P(e | d i ) is the product of the probabilities of the observations given d i. The conditional probability of each individual symptom for each possible diagnosis can then be computed from a set of data or estimated by the expert. However, symptoms are usually not independent and frequently correlate, in which case the assumptions of this simple model are violated and it is not guaranteed to give reasonable results.

Bayes Independence Example Imagine there are diagnoses ALLERGY, COLD, and WELL and symptoms SNEEZE, COUGH, and FEVER Prob Well Cold Allergy P(d) P(sneeze|d) P(cough | d) P(fever | d)

If symptoms sneeze & cough & no fever: P(well | e) = (0.9)(0.1)(0.1)(0.99)/P(e) = /P(e) P(cold | e) = (.05)(0.9)(0.8)(0.3)/P(e) = 0.01/P(e) P(allergy | e) = (.05)(0.9)(0.7)(0.6)/P(e) = 0.019/P(e) Diagnosis: allergy P(e) = =.0379 P(well | e) =.23 P(cold | e) =.26 P(allergy | e) =.50

Problems with Probabilistic Reasoning If no assumptions of independence are made, then an exponential number of parameters is needed for sound probabilistic reasoning. There is almost never enough data or patience to reliably estimate so many very specific parameters. If a blanket assumption of conditional independence is made, efficient probabilistic reasoning is possible, but such a strong assumption is rarely warranted.