Ch-5 Uncertain Knowledge and Reasoning
Ch-5 Uncertain Knowledge and Reasoning
Ch-5 Uncertain Knowledge and Reasoning
1
Reasoning
under
uncertainty
Topics
Planning
Quantifying
Uncertainty
Probabilistic
Reasoning
Probabilistic
Reasoning
over Time
Making
2
Simple
Decisions
Logic and Uncertainty
3
Logic and Uncertainty
Uncertainty is Bad for Agents based on Logic
Example: Catching a Flight
Let action At = leave for airport t minutes before flight
Question: Will At get me there on time?
Problems:
• Partial observability (road state, other drivers' plans, etc.)
• Noisy sensors (traffic reports)
• Uncertainty in action outcomes (flat tire, etc.)
• Complexity of modeling and predicting traffic
5
Sources of Uncertainty
The agent should choose the action that maximizes the expected utility:
𝑎𝑟𝑔𝑚𝑎𝑥𝐴𝑡 [ 𝑷(𝑨𝒕 𝒔𝒖𝒄𝒄𝒆𝒆𝒅𝒔) 𝑼(𝑨𝒕 𝒔𝒖𝒄𝒄𝒆𝒆𝒅𝒔) +
𝑷(𝑨𝒕 𝒇𝒂𝒊𝒍𝒔) 𝑼(𝑨𝒕 𝒇𝒂𝒊𝒍𝒔) ]
8
Probability Theory
• Probability Theory makes the same ontological
commitments as First-order Logic:
• Every sentence Ꝕ is either true or false
9
Random variables
We describe the (uncertain) Just like variables in CSP’s,
state of the world using random variables take on
random variables values in a domain D
• Denoted by capital letters • Domain values must be mutually
exclusive and exhaustive
Notation:
• For random variables: P(X = x), or P(x) for short, is the
probability of the event that random variable X has taken on
the value x.
• For propositions: P(A = true), P(a) is the probability of the set
of possible worlds in which proposition A holds.
Axioms of Probability
Probability Theory is governed by the following axioms:
1. All probabilities are real values between 0 and 1:
for all Ꝕ, 0 ≤ P(Ꝕ) ≤ 1
2. Valid propositions have probability 1
P(True) = P( ⍺ ∨ ¬ ⍺) = 1
3. The probability of disjunction is defined as follows:
P(⍺ ∨ 𝛽) = P(⍺) + P(𝛽) − P(⍺ ∧ 𝛽 )
Atomic events
• Atomic event: a complete specification of the state
of the world, or a complete assignment of domain
values to all random variables
P(Cavity) P(Toothache)
Marginal
𝑃(𝑋 = 𝑥) = 𝑃 (𝑋 = 𝑥 ∧ 𝑌 = 𝑦1 ) ∨ ⋯ ∨ (𝑋 = 𝑥 ∧ 𝑌 = 𝑦𝑛 )
𝑛
P(Cavity) P(Toothache)
Marginal
P(a b)
P(a) P(b)
Conditional probability 𝑃(𝑎 ∧ 𝑏)
𝑃(𝑎|𝑏) =
𝑃(𝑏)
P(Cavity, Toothache)
Joint Prob. Distr.
P(Cavity) P(Toothache)
Prob. Distr.
Marginal
P(Cavity, Toothache)
Cavity = false Toothache = false 0.8
Cavity = false Toothache = true 0.1
Cavity = true Toothache = false 0.05
Cavity = true Toothache = true 0.05
𝑃 𝐵 𝐴 𝑃(𝐴)
𝑃(𝐴|𝐵) =
𝑃(𝐵)
Example: Getting Married in the Desert
Marie is getting married tomorrow, at an outdoor ceremony in
the desert. In recent years, it has rained only 5 days each year
(5/365 = 0.014). Unfortunately, the weatherman has
predicted rain for tomorrow. When it actually rains, the
weatherman correctly forecasts rain 90% of the time. When it
doesn't rain, he incorrectly forecasts rain 10% of the time.
What is the probability that it will rain on Marie's wedding?
𝑃(Predict|Rain)𝑃(Rain)
𝑃(Rain|Predict) =
𝑃(Predict)
𝑃(Predict|Rain)𝑃(Rain)
=
𝑃(Predict|Rain)𝑃(Rain) + 𝑃(Predict|¬Rain)𝑃(¬Rain)
0.9 ∗ 0.014
= = 0.111
0.9 ∗ 0.014 + 0.1 ∗ 0.986
The weather forecast updates
our belief from 0.014 to 0.111
Example: Breast Cancer Screening