Pert13 - Quantifying Uncertainty
Pert13 - Quantifying Uncertainty
Pert13 - Quantifying Uncertainty
Non-official Slides
Quantifying Uncertainty
Session 13
Revised by Williem
1
Learning Outcomes
At the end of this session, students will be able to:
• LO 4 : Demonstrate how to achieve a goal through a sequence
of actions called planning
• LO 5 : Apply various techniques to an agent when acting under
certainty
2
Outline
1. Acting Under Uncertainty
2. Basic Probability Notation
3. Inference Using Full Joint Distributions
4. Independence
5. Probability and Bayes’ Theorem
6. Summary
3
Acting Under Uncertainty
• Agent may need to handle uncertainty, whether due to partial
observability, nondeterminism, or combination of the two
4
Acting Under Uncertainty
• Uncertainty in logic sentence
• Probability
5
Acting Under Uncertainty
• How can we plan to depart from home to the airport so we
can arrive on time?
6
Acting Under Uncertainty
• Preferences, as expressed by utilities, are combined with
decision theory
8
Basic Probability Notation
• The propositions is the set of two or more possible worlds
• The probability is
9
Basic Probability Notation
• There are two kinds of probabilities:
10
Basic Probability Notation
• Conditional probabilities
– Example
– Product rule
11
Basic Probability Notation
• Variables in probability theory are called random variables
– Total, Die1
– Die1 = {1,…6}
12
Basic Probability Notation
• Probabilities of all the possible values of a random variable:
13
Basic Probability Notation
• For continuous variables, it is not possible to write out the
entire distribution as a vector, because there are infinitely many
values
14
Basic Probability Notation
• We need notation for distributions on multiple variables
15
Basic Probability Notation
• Probability of disjoint called (inclusive-exclusive principle)
• Example
– To 100 child, asked “what the meaning of traffic light”, and
the answer is :
• 75 child know the meaning of the red lamp
• 35 child know the meaning of the yellow lamp
• 50 child know the meaning of both
– Therefore :
• P(red yellow) = P(red) + P(yellow) – P(red yellow)
• P(red yellow) = 0.75 + 0.35 – 0.5 = 0.6
16
Inference Using Full Joint Distributions
• Full Joint Distribution for the Toothache, Cavity, Catch
– P(cavity toothache)
17
Inference Using Full Joint Distributions
• Full Joint Distribution for the Toothache, Cavity, Catch
18
Inference Using Full Joint Distributions
• Full Joint Distribution for the Toothache, Cavity, Catch
20
Independence
• A and B are independent iff
21
Independence
• Conditional independence
22
Probability and Bayes’ Theorem
• Bayes’ rule or Bayes’ theorem
24
Probability and Bayes’ Theorem
Vany had onset of symptoms such as spots on the face. Doctor
diagnose that Vany got chicken pox with the possibility:
• Probability appearance of spots on the face, if Vany got chicken
pox, p (spots/chicken pox) = 0,8
• Probability Vany got chicken pox without notice any symptoms,
p(chicken pox) = 0,4
• Probability appearance of spots on the face, if Vany got allergy,
p(spots/allergy) = 0,3
• Probability Vany got allergy without notice any symptoms,
p(allergy) = 0,7
25
Probability and Bayes’ Theorem
• Probability appearance of spots on the face, if Vany got
pimples, p(spots/pimples) = 0,9
27
Probability and Bayes’ Theorem
• Solution: The sample space is defined by two mutually-
exclusive events - it rains or it does not rain. Additionally, a
third event occurs when the weatherman predicts rain.
Notation for these events appears below.
28
Probability and Bayes’ Theorem
• P( A1 ) = 5/365 = 0.0136985 [It rains 5 days out of the year.]
29
Probability and Bayes’ Theorem
• We want to know P( A1 | B ), the probability it will rain on the
day of Marie's wedding, given a forecast for rain by the
weatherman. The answer can be determined from Bayes'
theorem, as shown below.
(0.014)(0.9)
p ( A1 | B ) 0.0111
(0.014)(0.9) (0.986)(0.1)
30
Summary
• Basic probability statements include prior probabilities and
conditional probabilities over simple and complex
propositions
31
References
• Stuart Russell, Peter Norvig. 2010. Artificial Intelligence : A
Modern Approach. Pearson Education. New Jersey.
ISBN:9780132071482
• http://aima.cs.berkeley.edu
32