Artificial Intelligence - Module 4
Artificial Intelligence - Module 4
Intelligence
Module - 4
Syllabus
BOOKS and
REFERENCES
TEXT BOOKS:
[1] Peter Norvig, Stuart J. Russell, Artificial
Intelligence A Modern Approach, Prentice Hall, 2015,
ISBN-13: 978-9332543515
REFERENCES:
[1] Kevin Knight, Elaine Rich, Artificial Intelligence,
McGraw Hill Education, 2017, ISBN13: 978-
0070087705
[2] Nils Nilsson, Morgan Kaufmann, Artificial
Agents may need to handle uncertainty, whether due to partial observability, nondeterminism,
or a combination of the two. An agent may never know for certain what state it’s in or where it
will end up after a sequence of actions.
Let’s consider an example of uncertain reasoning: diagnosing a dental patient’s toothache.
Diagnosis—whether for medicine, automobile repair, or whatever—almost always involves
uncertainty.
Let us try to write rules for dental diagnosis using propositional logic, so that we can see how
the logical approach breaks down.
Consider the following simple rule:
Toothache ⇒ Cavity .
The problem is that this rule is wrong. Not all patients with toothaches have cavities; some of
them have gum disease, an abscess, or one of several other problems:
Toothache ⇒ Cavity ∨ GumProblem ∨ Abscess . . .
Unfortunately, in order to make the rule true, we have to add an almost unlimited list of possible
problems. We could try turning the rule into a causal rule:
Cavity ⇒ Toothache .
But this rule is not right either; not all cavities cause pain.
QUANTIFYING UNCERTAINTY
The only way to fix the rule is to make it logically exhaustive: to augment
the left-hand side with all the qualifications required for a cavity to cause a
toothache.
Trying to use logic to cope with a domain like medical diagnosis thus fails
for three main reasons:
Laziness: It is too much work to list the complete set of antecedents or
consequents needed to ensure an exceptionless rule and too hard to use such
rules.
Theoretical ignorance: Medical science has no complete theory for the
domain.
Practical ignorance: Even if we know all the rules, we might be uncertain
about a particular patient because not all the necessary tests have been or
can be run.
QUANTIFYING UNCERTAINTY
Probabilities such as P(Total =11) and P(doubles) are called unconditional or prior
probabilities (and sometimes just “priors” for short); they refer to degrees of belief in
propositions in the absence of any other information.
Most of the time, however, we have some information, usually called evidence, that has
already been revealed.
For example, the first die may already be showing a 5 and we are waiting with bated
breath for the other one to stop spinning. In that case, we are interested not in the
unconditional probability of rolling doubles, but the conditional or posterior probability
(or just “posterior” for short) of rolling doubles given that the first die is a 5.
This probability is written P(doubles | Die1 =5), where the “ | ” is pronounced “given.”
Similarly, if I am going to the dentist for a regular checkup, the probability P(cavity)=0.2
might be of interest; but if I go to the dentist because I have a toothache, it’s P(cavity |
toothache)=0.6 that matters.
Note that the precedence of “ | ” is such that any expression of the form P(. . . | . . .)
always means P((. . .)|(. . .)).
BASIC PROBABILITY NOTATION