06 Uncertainty
06 Uncertainty
Chapter 13
Mausam
(Based on slides by UW-AI faculty)
Knowledge Representation
•© UW CSE AI Faculty •6
Axioms of Probability Theory
• All probabilities between 0 and 1
– 0 ≤ P(A) ≤ 1
– P(true) = 1
– P(false) = 0.
• The probability of disjunction is:
P( A B) P( A) P( B) P( A B)
A B
A
True
B
•© UW CSE AI Faculty •7
Prior Probability
A AB
True
P(toothache)=.108+.012+.016+.064
= .20 or 20%
•© UW CSE AI Faculty •13
Inference by Enumeration
P(toothachecavity) = .20 + ??
.072 + .008
.28
•© UW CSE AI Faculty •14
Inference by Enumeration
• Prohibitive!
P( A B) P( A) P( B)
•© UW CSE AI Faculty •17
Independence
posterior
P ( x, y ) P ( x | y ) P ( y ) P ( y | x ) P ( x )
P( y | x) P( x) likelihood prior
P( x y )
P( y ) evidence
P(M|S)
P ( x y ) P ( y | x ) P ( x )
posterior likelihood prior
Conditional Bayes Rule
P ( y | x, z ) P ( x | z )
P( x y, z )
P( y | z )
P ( y | x , z ) P ( x, z )
P( x y, z )
P ( y | x, z ) P ( x | z )
x
P ( x y , z ) P ( y | x , z ) P ( x | z )
Bayes’ Rule & Cond. Independence