Principles/Foundations of Artificial Intelligence.: Inferencing Methods
Principles/Foundations of Artificial Intelligence.: Inferencing Methods
Inferencing methods
Inferencing
Deduce
Figure out
Interpretation
Reason
Drawing conclusions
Goals of reasoning
Forward chaining
To chain forward, match data in working memory
Question:
Your pet Y croaks and eats flies
Use forward chain to determined the colour of the
pet?
Example: solution
Step one: convert verbs into symbols
Croaks=A, eats flies=B,frog =c ,chirps and sings=D, canary=E, green=F , yellow=
G
if A and B Then C
If C then F
If D then E
If E then G
Answer
FACTS : A, B ,
C→F
F=green
Solution
Goal : C
If A then B
If B then C
C →B Fires
Sub goal : B
B → A fires.
B-poor soil
A- Low nitrogen
Exercise
You are given an expert system with several rules
pertaining to the interpersonal skills of a job applicant
R1: if the applicant answers questions in straight
forward manner then she is easy to converse with.
R2: If the applicant seems honest then she answers in
straight forward manner.
Exercise
R3: If the applicant has item on her resume that are
found to be untrue then she is not honest.
R4: If the applicant is able to arrange an appointment
with the executive assistant then she is able to strike up a
conversation with the executive assistant.
R5: IF the applicant strikes up a conversation with the
executive assistant and the applicant is easy to converse
with then she is amiable.
R6: If the applicant has adequate interpersonal skills.
Then we will offer her the job.
Exercise
Solve the following problems:
a) assume that the applicant does not have any items
B) facts: A,
Goal:I
Backward Reasoning : I,H
– failure
- Could fire A as one of the facts
Exercise : solutions
C) KNOWN FACTS: E, C
GOAL =H
Forward Reasoning :E, C,A,F –failure
-Could fire H as one of the conclusions
No interpersonal skills.
Deductive Reasoning
Reasoning from the general to the specific
i.e. A general rule is concluded out of specific cases among which all the rules are
applicable
12 10
5 10 15 ?? ?? ?? ?? ?? ?? ?? ??
20 25 30 35 40 45 50 55
General Rule is:-
Increase by five
Or
F(x)=x+5
Inductive Reasoning
Example :
Examples :
Strongly unfavourable to the concept
undecided