Lecture 4
Uncertainty
Marco Chiarandini
Department of Mathematics & Computer Science University of Southern Denmark
Uncertainty Marco Chiarandini Department of Mathematics & - - PowerPoint PPT Presentation
Lecture 4 Uncertainty Marco Chiarandini Department of Mathematics & Computer Science University of Southern Denmark Slides by Stuart Russell and Peter Norvig Knowledge-based Agents Logic in General Probability Calculus Outline Example:
Department of Mathematics & Computer Science University of Southern Denmark
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
2
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
3
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
4
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
Breeze Breeze Breeze Breeze Breeze Stench Stench Breeze
PIT PIT PIT
1 2 3 4 1 2 3 4 START
Gold Stench
6
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
Breeze Breeze Breeze Breeze Breeze Stench Stench Breeze
PIT PIT PIT
1 2 3 4 1 2 3 4
START
Gold Stench
7
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
8
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
A B OK OK OK A B A P? P? P? P?
9
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
10
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
11
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
12
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
x x x x x x x x x x x x x x x x x x x x x x x x x xx x x x x x x x x x x xx x x x x x x x x
13
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
A A B
14
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
1 2 3 1 2 Breeze PIT 1 2 3 1 2 Breeze PIT 1 2 3 1 2 Breeze PIT PIT PIT 1 2 3 1 2 Breeze PIT PIT 1 2 3 1 2 Breeze PIT 1 2 3 1 2 Breeze PIT PIT 1 2 3 1 2 Breeze PIT PIT 1 2 3 1 2 Breeze
15
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
1 2 3 1 2 Breeze PIT 1 2 3 1 2 Breeze PIT 1 2 3 1 2 Breeze PIT PIT PIT 1 2 3 1 2 Breeze PIT PIT 1 2 3 1 2 Breeze PIT 1 2 3 1 2 Breeze PIT PIT 1 2 3 1 2 Breeze PIT PIT 1 2 3 1 2 Breeze
16
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
1 2 3 1 2 Breeze PIT 1 2 3 1 2 Breeze PIT 1 2 3 1 2 Breeze PIT PIT PIT 1 2 3 1 2 Breeze PIT PIT 1 2 3 1 2 Breeze PIT 1 2 3 1 2 Breeze PIT PIT 1 2 3 1 2 Breeze PIT PIT 1 2 3 1 2 Breeze
1
17
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
1 2 3 1 2 Breeze PIT 1 2 3 1 2 Breeze PIT 1 2 3 1 2 Breeze PIT PIT PIT 1 2 3 1 2 Breeze PIT PIT 1 2 3 1 2 Breeze PIT 1 2 3 1 2 Breeze PIT PIT 1 2 3 1 2 Breeze PIT PIT 1 2 3 1 2 Breeze
18
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
1 2 3 1 2 Breeze PIT 1 2 3 1 2 Breeze PIT 1 2 3 1 2 Breeze PIT PIT PIT 1 2 3 1 2 Breeze PIT PIT 1 2 3 1 2 Breeze PIT 1 2 3 1 2 Breeze PIT PIT 1 2 3 1 2 Breeze PIT PIT 1 2 3 1 2 Breeze
2
19
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
20
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
21
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
22
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
23
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
24
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
25
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
26
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
27
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
28
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
29
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
30
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
31
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
32
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
33
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
>
A B True A B
34
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
35
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
36
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
dx→0 P(20.5 ≤ X ≤ 20.5 + dx)/dx = 0.125
37
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
1 √ 2πσe−(x−µ)2/2σ2
38
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
a Pr(B, A = a)
a Pr(B|A = a) Pr(A = a)
Pr(B)
i=1(Ai | Ai−1, Ai−2, . . . , A1)
Pr(E)
40
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
41
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
i = 1 Pr(Xi|X1, . . . , Xi−1)
42
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
ω:ω| =φP(ω)
43
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
ω:ω| =φP(ω)
44
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
ω:ω| =φP(ω)
45
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
46
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
47
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
48
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
49
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
51
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
decomposes into
52
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
53
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
54
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
55
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
56
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
1,1 2,1 3,1 4,1 1,2 2,2 3,2 4,2 1,3 2,3 3,3 4,3 1,4 2,4
3,4 4,4
57
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
i,j = 1,1 Pr(Pi,j) = 0.2n × 0.816−n
58
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
unknown Pr(P1,3, unknown, known, b)
59
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
1,1 2,1 3,1 4,1 1,2 2,2 3,2 4,2 1,3 2,3 3,3 4,3 1,4 2,4 3,4 4,4 KNOWN FRINGE QUERY OTHER
60
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
61
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
OK 1,1 2,1 3,1 1,2 2,2 1,3 OK OK B B OK 1,1 2,1 3,1 1,2 2,2 1,3 OK OK B B OK 1,1 2,1 3,1 1,2 2,2 1,3 OK OK B B
0.2 x 0.2 = 0.04 0.2 x 0.8 = 0.16 0.8 x 0.2 = 0.16
OK 1,1 2,1 3,1 1,2 2,2 1,3 OK OK B B OK 1,1 2,1 3,1 1,2 2,2 1,3 OK OK B B
0.2 x 0.2 = 0.04 0.2 x 0.8 = 0.16
62
Knowledge-based Agents Logic in General Probability Calculus Example: Wumpus World
63