








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A lecture note from cs 2710 foundations of ai course, focusing on the topic of modeling uncertainty using probabilities. The lecture covers the concept of uncertainty in disease-symptoms relations, two types of uncertainty, and methods for representing uncertainty using probability theory. It also discusses unconditional and joint probability distributions, conditional probabilities, and bayes rule.
Typology: Lab Reports
1 / 14
This page cannot be seen from the preview
Don't miss anything!









CS 2710 Foundations of AI
Milos Hauskrecht [email protected] 5329 Sennott Square
We want to build a KB system for the diagnosis of pneumonia.
Problem description:
Representation of a patient case:
E.g:
Diagnostic task: we want to decide whether the patient suffers from the pneumonia or not given the symptoms
Fever = True Cough = False WBCcount= High
CS 2710 Foundations of AI
To make diagnostic inference possible we need to represent knowledge (axioms) that relate symptoms and diagnosis
Problem: disease/symptoms relations are not deterministic
Pneumonia
Paleness Fever Cough WBC count
Two types of uncertainty:
CS 2710 Foundations of AI
Probability theory
Facts (propositional statements)
Example: is a random variable values: True and False
P ( Pneumonia = True )= 0. 001 P ( WBCcount = high )= 0. 005
Pneumonia
For any two propositions A, B.
P ( True )= 1 and P ( False )= 0 P ( A ∨ B )= P ( A )+ P ( B )− P ( A ∧ B )
CS 2710 Foundations of AI
Probabilistic extension of propositional logic.
Pneumonia iseither True , False
Pain is oneof { Nopain , Mild , Moderate , Severe }
Random variable Values
Random variable Values
HeartRate isavaluein < 0 ; 250 > Random variable (^) Values
Unconditional probabilities (prior probabilities)
Probability distribution
P ( Pneumonia )= 0. 001 P ( Pneumonia = True )= 0. 001
P ( WBCcount = high )= 0. 005
or
P ( Pneumonia = True )= 0. 001 P ( Pneumonia = False )= 0. 999
Pneumonia P ( Pneumonia ) True False
P ( Pneumonia = False )= 0. 999
CS 2710 Foundations of AI
Marginalization
P ( WBCcount )
P ( pneumonia , WBCcount )
high normal^ low
Pneumonia True False
WBCcount
P ( Pneumonia )
Marginalization (here summing of columns or rows)
2 × 3 matrix
Example: pneumonia diagnosis Variables: Pneumonia, Fever, Paleness, WBCcount, Cough Full joint defines the probability for all possible assignments of values to Pneumonia, Fever, Paleness, WBCcount, Cough
P ( Pneumonia = T , WBCcount = High , Fever = T , Cough = T , Paleness = F )
P ( Pneumonia = T , WBCcount = High , Fever = T , Cough = F , Paleness = T )
P ( Pneumonia = T , WBCcount = High , Fever = T , Cough = T , Paleness = T )
CS 2710 Foundations of AI
Conditional probability distribution
PPneumonia falseWBCcount high
P Pneumonia true WBCcount high
P ( Pneumonia | WBCcount )
high normal^ low
Pneumonia True False
WBCcount
3 element vector of 2 elements
P ( Pneumonia = true | WBCcount = high )
Conditional probability
s.t. ( ) 0 ( )
CS 2710 Foundations of AI
Assume a variable A with multiple values Bayes rule can be rewritten as:
( )
( | ) ( ) ( | ) PB b
P B b A a P A a P A aj B b j j =
= = = = = =
a 1 , a 2 ,K a k
( | ) ( )
( | ) ( )
∑ (^) = 1 = = =
= = = = (^) k i j j
j j PB b A a P A a
P B b A a PA a
P ( A | B = b ) for all values of a 1^ ,^ a 2 ,K ak
Used in practice when we want to compute:
Device status
Sensor reading
P (Device status)
0.9 0.
normal malfunctioning
Device\Sensor high low normal 0.1 0. malfunctioning 0.6 0.
P (Sensor reading| Device status)
CS 2710 Foundations of AI
P ( Device status |Sensor reading = high )=?
= =
(Devicestatus |Sensorreading )
(Devicestatus |Sensorreading ) P malfunctioning high
P normal high
Various inference tasks :
CS 2710 Foundations of AI
Problems:
O (d n)
O (d n )
P ( Pneumonia = T ) =
∈ ∈ = ∈
i TFj TFk hnluTF
P Fever iCough jWBCcount k Pale u , , , , ,
CS 2710 Foundations of AI
Bayesian belief networks.