Chapter 3: Methods of Inference

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Geometry Chapter 2 Terms.
Biointelligence Lab School of Computer Sci. & Eng.
Inference Rules Universal Instantiation Existential Generalization
CHAPTER 13 Inference Techniques. Reasoning in Artificial Intelligence n Knowledge must be processed (reasoned with) n Computer program accesses knowledge.
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
13 Automated Reasoning 13.0 Introduction to Weak Methods in Theorem Proving 13.1 The General Problem Solver and Difference Tables 13.2 Resolution.
Logic.
Logic Concepts Lecture Module 11.
Chapter 4: Reasoning Under Uncertainty
Chapter 12: Expert Systems Design Examples
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Spring 2004.
1 Automated Reasoning Introduction to Weak Methods in Theorem Proving 13.1The General Problem Solver and Difference Tables 13.2Resolution Theorem.
Inference and Resolution for Problem Solving
TR1413: Discrete Mathematics For Computer Science Lecture 3: Formal approach to propositional logic.
Logical Agents Chapter 7 Feb 26, Knowledge and Reasoning Knowledge of action outcome enables problem solving –a reflex agent can only find way from.
Artificial Intelligence
Chapter 3: Methods of Inference Expert Systems: Principles and Programming, Fourth Edition.
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
Chapter 3: Methods of Inference
13: Inference Techniques
Methods of Inference. 2 Objectives Learn the definitions of trees, lattices, and graphs Learn about state and problem spaces Learn about AND-OR trees.
1 Program Correctness CIS 375 Bruce R. Maxim UM-Dearborn.
MATH 224 – Discrete Mathematics
 Predicate: A sentence that contains a finite number of variables and becomes a statement when values are substituted for the variables. ◦ Domain: the.
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
1 Chapter 8 Inference and Resolution for Problem Solving.
Chapter 1 Logic Section 1-1 Statements Open your book to page 1 and read the section titled “To the Student” Now turn to page 3 where we will read the.
1 CHAPTER 13 Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson 6th ed, Copyright 2001, Prentice Hall, Upper Saddle River,
Logical Agents Logic Propositional Logic Summary
1 Knowledge Representation. 2 Definitions Knowledge Base Knowledge Base A set of representations of facts about the world. A set of representations of.
CS 415 – A.I. Slide Set 5. Chapter 3 Structures and Strategies for State Space Search – Predicate Calculus: provides a means of describing objects and.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Machine Learning Chapter 5. Artificial IntelligenceChapter 52 Learning 1. Rote learning rote( โรท ) n. วิถีทาง, ทางเดิน, วิธีการตามปกติ, (by rote จากความทรงจำ.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 13 of 41 Monday, 20 September.
Logical Agents Chapter 7. Knowledge bases Knowledge base (KB): set of sentences in a formal language Inference: deriving new sentences from the KB. E.g.:
Philosophical Method  Logic: A Calculus For Good Reason  Clarification, Not Obfuscation  Distinctions and Disambiguation  Examples and Counterexamples.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Automated Reasoning Early AI explored how to automate several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Reasoning Under Uncertainty. 2 Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 14 of 41 Wednesday, 22.
1 Logical Inference Algorithms CS 171/271 (Chapter 7, continued) Some text and images in these slides were drawn from Russel & Norvig’s published material.
CS6133 Software Specification and Verification
ICS 253: Discrete Structures I Induction and Recursion King Fahd University of Petroleum & Minerals Information & Computer Science Department.
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
1 Chapter 3 Methods of Inference 2 Methods of Inferences Inferences Deduction Induction Intuition Heuristics Generate and test Abduction Default Autoepistemic.
第 1 6 章 谓词演算中的归结. 2 Outline Unification Predicate-Calculus Resolution Completeness and Soundness Converting Arbitrary wffs to Clause Form Using Resolution.
Chapter 4: Inference Techniques
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 14 of 42 Wednesday, 22.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Methods of Inference 1 Session 5 Course: T0273 – EXPERT SYSTEMS Year: 2014.
Chapter 3: Methods of Inference
Chapter 7. Propositional and Predicate Logic
Valid and Invalid Arguments
Methods of Inference 2 Session 6
Chapter 3: Methods of Inference
Reasoning Under Uncertainty in Expert System
Propositional Logic and Methods of Inference
Computer Security: Art and Science, 2nd Edition
This Lecture Substitution model
Presentation transcript:

Chapter 3: Methods of Inference Expert Systems: Principles and Programming, Fourth Edition

Objectives Learn the definitions of trees, lattices, and graphs Learn about state and problem spaces Learn about AND-OR trees and goals Explore different methods and rules of inference Learn the characteristics of first-order predicate logic and logic systems Expert Systems: Principles and Programming, Fourth Edition

Objectives Discuss the resolution rule of inference, resolution systems, and deduction Compare shallow and causal reasoning How to apply resolution to first-order predicate logic Learn the meaning of forward and backward chaining Expert Systems: Principles and Programming, Fourth Edition

Objectives Explore additional methods of inference Learn the meaning of Metaknowledge Explore the Markov decision process Expert Systems: Principles and Programming, Fourth Edition

Trees A tree is a hierarchical data structure consisting of: Nodes – store information Branches – connect the nodes The top node is the root, occupying the highest hierarchy. The leaves are at the bottom, occupying the lowest hierarcy. Expert Systems: Principles and Programming, Fourth Edition

Trees Every node, except the root, has exactly one parent. Every node may give rise to zero or more child nodes. A binary tree restricts the number of children per node to a maximum of two. Degenerate trees have only a single pathway from root to its one leaf. Expert Systems: Principles and Programming, Fourth Edition

Figure 3.1 Binary Tree Expert Systems: Principles and Programming, Fourth Edition

Graphs Graphs are sometimes called a network or net. A graph can have zero or more links between nodes – there is no distinction between parent and child. Sometimes links have weights – weighted graph; or, arrows – directed graph. Simple graphs have no loops – links that come back onto the node itself. Expert Systems: Principles and Programming, Fourth Edition

Graphs A circuit (cycle) is a path through the graph beginning and ending with the same node. Acyclic graphs have no cycles. Connected graphs have links to all the nodes. Digraphs are graphs with directed links. Lattice is a directed acyclic graph. Expert Systems: Principles and Programming, Fourth Edition

Figure 3.2 Simple Graphs Expert Systems: Principles and Programming, Fourth Edition

Making Decisions Trees / lattices are useful for classifying objects in a hierarchical nature. Trees / lattices are useful for making decisions. We refer to trees / lattices as structures. Decision trees are useful for representing and reasoning about knowledge. Expert Systems: Principles and Programming, Fourth Edition

Binary Decision Trees Every question takes us down one level in the tree. A binary decision tree having N nodes: All leaves will be answers. All internal nodes are questions. There will be a maximum of 2N answers for N questions. Decision trees can be self learning. Decision trees can be translated into production rules. Expert Systems: Principles and Programming, Fourth Edition

Decision Tree Example Expert Systems: Principles and Programming, Fourth Edition

State and Problem Spaces A state space can be used to define an object’s behavior. Different states refer to characteristics that define the status of the object. A state space shows the transitions an object can make in going from one state to another. Expert Systems: Principles and Programming, Fourth Edition

Finite State Machine A FSM is a diagram describing the finite number of states of a machine. At any one time, the machine is in one particular state. The machine accepts input and progresses to the next state. FSMs are often used in compilers and validity checking programs. Expert Systems: Principles and Programming, Fourth Edition

Using FSM to Solve Problems Characterizing ill-structured problems – one having uncertainties. Well-formed problems: Explicit problem, goal, and operations are known Deterministic – we are sure of the next state when an operator is applied to a state. The problem space is bounded. The states are discrete. Expert Systems: Principles and Programming, Fourth Edition

Figure 3.5 State Diagram for a Soft Drink Vending Machine Accepting Quarters (Q) and Nickels (N) Expert Systems: Principles and Programming, Fourth Edition

AND-OR Trees and Goals 1990s, PROLOG was used for commercial applications in business and industry. PROLOG uses backward chaining to divide problems into smaller problems and then solves them. AND-OR trees also use backward chaining. AND-OR-NOT lattices use logic gates to describe problems. Expert Systems: Principles and Programming, Fourth Edition

Types of Logic Deduction – reasoning where conclusions must follow from premises Induction – inference is from the specific case to the general Intuition – no proven theory Heuristics – rules of thumb based on experience Generate and test – trial and error Expert Systems: Principles and Programming, Fourth Edition

Types of Logic Abduction – reasoning back from a true condition to the premises that may have caused the condition Default – absence of specific knowledge Autoepistemic – self-knowledge Nonmonotonic – previous knowledge Analogy – inferring conclusions based on similarities with other situations Expert Systems: Principles and Programming, Fourth Edition

Deductive Logic Argument – group of statements where the last is justified on the basis of the previous ones Deductive logic can determine the validity of an argument. Syllogism – has two premises and one conclusion Deductive argument – conclusions reached by following true premises must themselves be true Expert Systems: Principles and Programming, Fourth Edition

Syllogisms vs. Rules Syllogism: IF-THEN rule: All basketball players are tall. Jason is a basketball player.  Jason is tall. IF-THEN rule: IF All basketball players are tall and Jason is a basketball player THEN Jason is tall. Expert Systems: Principles and Programming, Fourth Edition

Categorical Syllogism Premises and conclusions are defined using categorical statements of the form: Expert Systems: Principles and Programming, Fourth Edition

Categorical Syllogisms Expert Systems: Principles and Programming, Fourth Edition

Categorical Syllogisms Expert Systems: Principles and Programming, Fourth Edition

Proving the Validity of Syllogistic Arguments Using Venn Diagrams If a class is empty, it is shaded. Universal statements, A and E are always drawn before particular ones. If a class has at least one member, mark it with an *. If a statement does not specify in which of two adjacent classes an object exists, place an * on the line between the classes. If an area has been shaded, not * can be put in it. Expert Systems: Principles and Programming, Fourth Edition

Rules of Inference Venn diagrams are insufficient for complex arguments. Syllogisms address only a small portion of the possible logical statements. Propositional logic offers another means of describing arguments. Expert Systems: Principles and Programming, Fourth Edition

Direct Reasoning Modus Ponens Expert Systems: Principles and Programming, Fourth Edition

Truth Table Modus Ponens Expert Systems: Principles and Programming, Fourth Edition

Some Rules of Inference Expert Systems: Principles and Programming, Fourth Edition

Rules of Inference Expert Systems: Principles and Programming, Fourth Edition

Table 3.9 The Modus Meanings Expert Systems: Principles and Programming, Fourth Edition

Table 3.10 The Conditional and Its Variants Expert Systems: Principles and Programming, Fourth Edition

Limitations of Propositional Logic If an argument is invalid, it should be interpreted as such – that the conclusion is necessarily incorrect. An argument may be invalid because it is poorly concocted. An argument may not be provable using propositional logic, but may be provable using predicate logic. Expert Systems: Principles and Programming, Fourth Edition

First-Order Predicate Logic Syllogistic logic can be completely described by predicate logic. The Rule of Universal Instantiation states that an individual may be substituted for a universe. Expert Systems: Principles and Programming, Fourth Edition

Logic Systems A logic system is a collection of objects such as rules, axioms, statements, and so forth in a consistent manner. Each logic system relies on formal definitions of its axioms (postulates) which make up the formal definition of the system. Axioms cannot be proven from within the system. From axioms, it can be determined what can be proven. Expert Systems: Principles and Programming, Fourth Edition

Goals of a Logic System Be able to specify the forms of arguments – well formulated formulas – wffs. Indicate the rules of inference that are invalid. Extend itself by discovering new rules of inference that are valid, extending the range of arguments that can be proven – theorems. Expert Systems: Principles and Programming, Fourth Edition

Requirements of a Formal System An alphabet of symbols A set of finite strings of these symbols, the wffs. Axioms, the definitions of the system. Rules of inference, which enable a wff to be deduced as the conclusion of a finite set of other wffs – axioms or other theorems of the logic system. Expert Systems: Principles and Programming, Fourth Edition

Requirements of a FS Continued Completeness – every wff can either be proved or refuted. The system must be sound – every theorem is a logically valid wff. Expert Systems: Principles and Programming, Fourth Edition

Shallow and Causal Reasoning Experiential knowledge is based on experience. In shallow reasoning, there is little/no causal chain of cause and effect from one rule to another. Advantage of shallow reasoning is ease of programming. Frames are used for causal / deep reasoning. Causal reasoning can be used to construct a model that behaves like the real system. Expert Systems: Principles and Programming, Fourth Edition

Converting First-Order Predicate wffs to Clausal Form Eliminate conditionals. When possible, eliminate negations or reduce their scope. Standardize variables. Eliminate existential quantifiers using Skolem functions. Convert wff to prenex form. Expert Systems: Principles and Programming, Fourth Edition

Converting Convert the matrix to conjunctive normal form. Drop the universal quantifiers as necessary. Eliminate  signs by writing the wff as a set of clauses. Rename variables in clauses making unique. Expert Systems: Principles and Programming, Fourth Edition

Chaining Chain – a group of multiple inferences that connect a problem with its solution A chain that is searched / traversed from a problem to its solution is called a forward chain. A chain traversed from a hypothesis back to the facts that support the hypothesis is a backward chain. Problem with backward chaining is find a chain linking the evidence to the hypothesis. Expert Systems: Principles and Programming, Fourth Edition

Figure 3.21 Causal Forward Chaining Expert Systems: Principles and Programming, Fourth Edition

Table 3.14 Some Characteristics of Forward and Backward Chaining Expert Systems: Principles and Programming, Fourth Edition

Other Inference Methods Analogy – relating old situations (as a guide) to new ones. Generate-and-Test – generation of a likely solution then test to see if proposed meets all requirements. Abduction – Fallacy of the Converse Nonmonotonic Reasoning – theorems may not increase as the number of axioms increase. Expert Systems: Principles and Programming, Fourth Edition

Figure 3.14 Types of Inference Expert Systems: Principles and Programming, Fourth Edition

Metaknowledge The Markov decision process (MDP) is a good application to path planning. In the real world, there is always uncertainty, and pure logic is not a good guide when there is uncertainty. A MDP is more realistic in the cases where there is partial or hidden information about the state and parameters, and the need for planning. Expert Systems: Principles and Programming, Fourth Edition

Summary We have discussed the commonly used methods for inference for expert systems. Expert systems use inference to solve problems. We discussed applications of trees, graphs, and lattices for representing knowledge. Deductive logic, propositional, and first-order predicate logic were discussed. Truth tables were discussed as a means of proving theorems and statements. Expert Systems: Principles and Programming, Fourth Edition

Summary Characteristics of logic systems were discussed. Resolution as a means of proving theorems in propositional and first-order predicate logic. The nine steps to convert a wff to clausal form were covered. Expert Systems: Principles and Programming, Fourth Edition