


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















Chris BrooksDepartment of Computer ScienceUniversity of San Francisco
Department of Computer Science — University of San Francisco – p. 1/
uncertainty^
plays a
central role. • Actions may have nondeterministic effects.^ ◦^ Shooting an arrow at a target, retrieving a web page, moving • Agents may not know the true state of the world.^ ◦^ Incomplete sensors, dynamic environment • Relations between facts may not be deterministic.^ ◦^ Sometimes it rains when it’s cloudy.^ ◦^ Sometimes I play tennis when it’s humid. • Rational agents will need to deal with uncertainty.
Department of Computer Science — University of San Francisco – p. 2/
Department of Computer Science — University of San Francisco – p. 4/
qualitative^ approach to uncertainty. ◦^ We can say that one event is more common than another, orthat something is a possibility. ◦^ Useful in cases where we don’t have statistics, or we wantto reason more abstractly. • Probability allows us to reason
quantitatively ◦^ We assign concrete values to the chance of an eventoccurring and derive new concrete values based onobservations.
Department of Computer Science — University of San Francisco – p. 5/
belief^ that a proposition is true. ◦^ P(BartStudied) = 0.01 ◦^ P(Hungry(Homer)) = 0.99 • The proposition itself is true or false - we just don’t know which. • This is different than saying the sentence is partially true. ◦^ “Bart is short” - this is
sort of^ true, since “short” is a vague term. • An agent’s^ belief state
is a representation of the probability of the value of each proposition of interest.
Department of Computer Science — University of San Francisco – p. 7/
Department of Computer Science — University of San Francisco – p. 8/
0 ≤^ P^ (a)^ ≤^
-^ Propositions that are necessarily true have probability 1. •^ Propositions that are unsatisfiable have probability 0. •^ The probability of
(A^ ∨^ B)^ is^ P
−^ P^ (A^ ∧^ B) Department of Computer Science — University of San Francisco – p. 10/
of a proposition is its probability of taking on a value^ in the absence of any other information
◦^ P(Rain) = 0.1, P(Overcast) = 0.4, P(Sunny) = 0.5 • We can also list the probabilities of combinations of variables ◦^ P^ (Rain^ ∧^ Humid
) = 0.^1 , P^ (Rain^
∧ ¬Humid) = 0
.^1 , P^ (Overcast^ ∧
Humid) =
0.^2 , P^ (Overcast^
∧ ¬Humid) = 0
.^2 , P^ (Sunny^ ∧^ Humid
) =
0.^15 , P^ (Sunny^ ∧ ¬
Humid) = 0.^25
-^ This is called a
joint probability distribution
-^ For continuous variables, we can’t enumerate values •^ Instead, we use a parameterized function.^ ◦^ P^ (x) =
(^2) −z 1 − (^) √ (^2) edz 2 π (Normal distribution)
Department of Computer Science — University of San Francisco – p. 11/
of the dependent variable by summing all the ways the dependent variable can be true.^ ◦^ P^ (Rain) = 0
-^ What is the problem with using the joint probability distributionto do inference?
Department of Computer Science — University of San Francisco – p. 13/
of the dependent variable by summing all the ways the dependent variable can be true.^ ◦^ P^ (Rain) = 0
-^ What is the problem with using the joint probability distributionto do inference? •^ A problem with
n^ independent Boolean variables requires a table of size^
n 2
Department of Computer Science — University of San Francisco – p. 14/
P^ (Cloudy) = 0
-^ P^ (Rain) = 0
-^ P^ (cloudy^ ∧
rain) = 0.^15
-^ P^ (cloudy^ ∧ ¬
Rain) = 0.^1
-^ P^ (¬cloudy
∧^ Rain) = 0
-^ P^ (¬Cloudy
∧ ¬Rain) = 0
◦^ Initially,^ P^ (
Rain) = 0.^2. Once we see that it’s cloudy,(Rain P (Rain|Cloudy) =^ P^
∧Cloudy)^0 .=^ P (Cloudy)^
15 = 0.^50.^3 Department of Computer Science — University of San Francisco – p. 16/
DayOf W eek
to
our Rain calculation? • Since the day of the week will not affect the probability of rain,we can assert
P^ (rain|Cloudy, M onday
P^ (rain|cloudy, T uesday
)...^ =^ P^ (rain
|cloudy)
-^ We say that
DayOf W eek
and^ Rain^ are independent.
-^ We can then split the larger joint probability distribution intoseparate subtables. •^ Independence will help us divide the domain into separatepieces.
Department of Computer Science — University of San Francisco – p. 17/
P^ (X| X, e) = Y,e)P^ (Y^ |e) P^ (X|e)
-^ We can then recursively solve for the conditional probabilitieson the right-hand side. •^ In practice, Bayes’ rule is useful for transforming the questionwe want to ask into one for which we have data.
Department of Computer Science — University of San Francisco – p. 19/
|M eningitis
◦^ Prior probability of meningitis is 1/50000. ◦^ P^ (meningitis
◦^ Prior probability of a stiff neck is 1/20 ◦^ P^ (stif f N eck
-^ A patient comes to use with a stiff neck. What is the probabilityshe has meningitis? •^ P^ (meningitis
|stif f N eck) =
P^ (stif f N eck|meningitis
)P^ (meningitis) P (stif f N eck)^
Department of Computer Science — University of San Francisco – p. 20/