Methods of Inference: Chapter - 4
Methods of Inference: Chapter - 4
Chapter – 4
Reasoning
• The reasoning is the mental process of deriving logical conclusion and
making predictions from available knowledge, facts, and beliefs.
• "Reasoning is a way to infer facts from existing data.”
• It is a general process of thinking rationally, to find valid conclusions.
• The reasoning is essential so that the machine can also think rationally as a
human brain, and can perform like a human.
The Process of Reasoning
• Reasoning: The process of drawing inferences or conclusions; moving from
what is known (fact) to what is unknown (inference).
• Types of Reasoning:
1. Reasoning from signs:
2. Cause and effect:
3. Reasoning by analogy:
4. Reasoning by example
Reasoning from signs
• The sign, busy signal is used to infer (conclude) that someone is on the
phone.
Example: Mende has an approval rating of 40%, which is 15% more them his
closest challenger so he will be elected in the next election.”
Premise: All of the pigeons we have seen in the zoo are white.
Conclusion: Therefore, we can expect all the pigeons to be white.
Example:
Conclusion It is raining.
Common Sense Reasoning
• Common sense reasoning is an informal form of reasoning, which can be gained
through experiences.
• Common Sense reasoning simulates the human ability to make presumptions
about events which occurs on every day.
• It relies on good judgment rather than exact logic and operates on heuristic
knowledge and heuristic rules.
Example:
1. One person can be at one place at a time.
2. If I put my hand in a fire, then it will burn.
• The above two statements are the examples of common sense reasoning which a
human mind can easily understand and assume.
Monotonic Reasoning
• In monotonic reasoning, once the conclusion is taken, then it will remain the same
even if we add some other information to existing information in our knowledge
base.
• In monotonic reasoning, adding knowledge does not decrease the set of
prepositions that can be derived.
• To solve monotonic problems, we can derive the valid conclusion from the
available facts only, and it will not be affected by new facts.
• Monotonic reasoning is not useful for the real-time systems, as in real time, facts
get changed, so we cannot use monotonic reasoning.
• Monotonic reasoning is used in conventional reasoning systems, and a logic-based
system is monotonic.
• Any theorem proving is an example of monotonic reasoning.
Cont.
Example
• Earth revolves around the Sun.
• It is a true fact, and it cannot be changed even if we add another sentence in
knowledge base like, "The moon revolves around the earth" Or "Earth is not round,"
etc.
• Advantages of Monotonic Reasoning:
• In monotonic reasoning, each old proof will always remain valid.
• If we deduce some facts from available facts, then it will remain valid for always.
• Disadvantages of Monotonic Reasoning:
• We cannot represent the real world scenarios using Monotonic reasoning.
• Hypothesis knowledge cannot be expressed with monotonic reasoning, which means
facts should be true.
• Since we can only derive conclusions from the old proofs, so new knowledge from
the real world cannot be added.
Non-monotonic Reasoning
• In Non-monotonic reasoning, some conclusions may be invalidated if we
add some more information to our knowledge base.
• Logic will be said as non-monotonic if some conclusions can be invalidated
by adding more knowledge into our knowledge base.
• Non-monotonic reasoning deals with incomplete and uncertain models.
• "Human perceptions for various things in daily life, "is a general example of
non-monotonic reasoning.
Non-monotonic Reasoning
• In Non-monotonic reasoning, some conclusions may be invalidated if we
add some more information to our knowledge base.
• Logic will be said as non-monotonic if some conclusions can be invalidated
by adding more knowledge into our knowledge base.
• Non-monotonic reasoning deals with incomplete and uncertain models.
• "Human perceptions for various things in daily life, "is a general example of
non-monotonic reasoning.
Example
• Let suppose the knowledge base contains the following knowledge:
• Birds can fly
• Penguins cannot fly
• Pitty is a bird
• So from the above sentences, we can conclude that Pitty can fly.
• However, if we add one another sentence into knowledge base "Pitty is a
penguin", which concludes "Pitty cannot fly", so it invalidates the above
conclusion.
Cont.
• Advantages of Non-monotonic reasoning
• For real-world systems such as Robot navigation, we can use non-monotonic
reasoning.
• In Non-monotonic reasoning, we can choose probabilistic facts or can make
assumptions.
• Disadvantages of Non-monotonic Reasoning
• In non-monotonic reasoning, the old facts may be invalidated by adding new
sentences.
• It cannot be used for theorem proving.
Rules of Inference
• Inference rules are the templates for generating valid arguments.
• Inference rules are applied to derive proofs in artificial intelligence, and the proof is
a sequence of the conclusion that leads to the desired goal.
• In inference rules, the implication among all the connectives plays an important role.
• Implication: It is one of the logical connectives which can be represented as P → Q. It is a
Boolean expression.
• Converse: The converse of implication, which means the right-hand side proposition goes to
the left-hand side and vice-versa. It can be written as Q → P.
• Contrapositive: The negation of converse is termed as contrapositive, and it can be represented
as ¬ Q → ¬ P.
• Inverse: The negation of implication is called inverse. It can be represented as ¬ P → ¬ Q.
Cont..
Hence from the above truth table, we can prove that P → Q is equivalent to
¬ Q → ¬ P and Q→ P is equivalent to ¬ P → ¬ Q.
Types of Inference rules
1. Modus Ponens:
• The Modus Ponens rule is one of the most important rules of inference, and it states that
if P and P → Q is true, then we can infer that Q will be true. It can be represented as:
Example:
Statement-1: "If I am sleepy then I go to bed" ==> P→ Q
Statement-2: "I am sleepy" ==> P
Conclusion: "I go to bed." ==> Q.
Hence, we can say that, if P→ Q is true and P is true then Q will be true.
Cont.
Example:
• Statement: I have a vanilla ice-cream. ==> P
• Statement-2: I have Chocolate ice-cream.
• Conclusion: I have vanilla or chocolate ice-cream. ==> (P∨Q)
Cont.
Proof by truth table
Cont.
6. Simplification:
• The simplification rule state that if P∧ Q is true, then Q or P will also be
true. It can be represented as
Proof by Truth-Table
Cont.
7. Resolution:
• The Resolution rule state that if P∨Q and ¬ P∧R is true, then Q∨R will
also be true. It can be represented as
Proof by Truth-Table:
Predicate Logic (First Order Logic)
• First-order logic is also known as Predicate logic or First-order predicate logic.
• Predicate Logic allows more flexible and compact representation of knowledge.
• First-order logic is a powerful language that develops information about the objects
in a more easy way and can also express the relationship between those objects.
• First-order logic (like natural language) does not only assume that the world
contains facts like propositional logic but also assumes the following things in the
world:
• Objects: people, houses, numbers, colors, wares
• Relations: brother of , bigger than, inside, part of
• Properties: red, round, long, short,,,
• Functions: father of, best friend, one more than
Cont.
Example
• “One Plus Two Equals Three “
Objects: One, Two, Three, One Plus Two
Relations: Equals
Functions: Plus
• “Congratulation Letter written with Blue Pen“
Objects: Letter, Pen
Relations: written with
Properties: Blue, Congratulation
Basic Elements of First-order logic
• Compatibility
contradictions between rules
subsumption
one rule is a more general version of another one
redundancy
missing rules
data fusion
integration of data from multiple sources