CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
1
Uncertainty CS 486/686 University of Waterloo Sept 30, 2008 1 - - PowerPoint PPT Presentation
Uncertainty CS 486/686 University of Waterloo Sept 30, 2008 1 CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart A Decision Making Scenario You are considering to buy a used car Is it in good condition? How much are
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
1
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
2
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
3
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
4
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
5
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
6
incorporation of new evidence
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
7
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
8
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
9
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
10
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
11
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
12
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
13
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
14
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
15
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
16
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
17
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
18
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
19
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
20
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
21
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
22
0.064 0.016 ~headache 0.012 0.108 headache ~cold cold 0.576 0.144 ~headache 0.008 0.072 headache ~cold cold sunny ~sunny P(headacheΛsunnyΛcold) = 0.108 P(~headacheΛsunnyΛ~cold) = 0.064 P(headacheVsunny) = 0.108 + 0.012 + 0.072 + 0.008 + 0.016 + 0.064 = 0.28 P(headache) = 0.108 + 0.012 + 0.072 + 0.008 = 0.2 marginalization
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
23
H F
H=“Have headache” F=“Have Flu” P(H)=1/10 P(F)=1/40 P(H|F)=1/2 Headaches are rare and flu is rarer, but if you have the flu, then there is a 50-50 chance you will have a headache
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
24
H F
H=“Have headache” F=“Have Flu” P(H)=1/10 P(F)=1/40 P(H|F)=1/2 P(H|F)= Fraction of flu inflicted worlds in which you have a headache =(# worlds with flu and headache)/ (# worlds with flu) = (Area of “H and F” region)/ (Area of “F” region) = P(H Λ F)/ P(F)
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
25
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
26
H F
H=“Have headache” F=“Have Flu” P(H)=1/10 P(F)=1/40 P(H|F)=1/2 One day you wake up with a
headaches so I must have a 50- 50 chance of coming down with the flu”
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
27
H F
H=“Have headache” F=“Have Flu” P(H)=1/10 P(F)=1/40 P(H|F)=1/2 One day you wake up with a
headaches so I must have a 50- 50 chance of coming down with the flu”
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
28
H F
H=“Have headache” F=“Have Flu” P(H)=1/10 P(F)=1/40 P(H|F)=1/2 One day you wake up with a
headaches so I must have a 50- 50 chance of coming down with the flu”
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
29
0.064 0.016 ~headache 0.012 0.108 headache ~cold cold 0.576 0.144 ~headache 0.008 0.072 headache ~cold cold sunny ~sunny P(headache Λ cold | sunny) = P(headache Λ cold Λ sunny) / P(sunny) = 0.108/(0.108+0.012+0.016+0.064) = 0. 54 P(headache Λ cold | ~sunny) = P(headache Λ cold Λ ~sunny) / P(~sunny) = 0.072/(0.072+0.008+0.144+0.576) = 0.09
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
30
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
31
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
32
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
33
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
34
She knows that if a person is selected at random from the population, they have a 10-7 chance of having Asian flu. 1 in 100 people suffer from a fever
fever?
Evidence = Symptom (F) Hypothesis = Cause (A)
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
35
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
36
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
37
n
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
38
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
39
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
40
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
41
Such a probability distribution is sometimes called a naïve Bayes model. In practice, they work well – even when the independence assumption is not true
CS486/686 Lecture Slides (c) 2008 K. Larson and P. Poupart
42