



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!




this starts our excursion into
probabilistic knowledge representation and reasoning
and
probabilistic planning
Russell and Norvig - Chapter 13
Nilsson - Chapter 19
Probabilities; page 2 of 26
search and planning - so far
start
goal
actions have deterministic effects
states are completely observable
a plan is a sequence of actions that can be executed blindly in the world
search and planning: robot navigation example (1)
noisy actuatorsnoisy sensors of limited rangeuncertainty in the interpretation of the sensor datamap uncertaintyuncertainty about the (initial) location of the robotuncertainty about the dynamic state of the environment
Probabilities; page 4 of 26
search and planning: robot navigation example (2)
actions have nondeterministic effects states are not completely observable
search and planning: more realistic framework
need to distinguish between
actions that achieve a task
and actions that gather information
plans are no longer sequences of actions
and can no longer be executed blindly in the world
Probabilities; page 6 of 26
probabilities
we need to learn more about probabilities
notation
P(Var = value)
the probability that (random) variable VAR takes on the given value
P(propositional_sentence)
the probability that the given propositional sentence is true
P(happy) = 0.
P(happy AND NOT hungry) = 0.
(Note: P(A, B) means P(A AND B).)
Probabilities; page 8 of 26
conditional probabilities P(happy | hungry) = 0.
happy
hungry
conditional probabilities and Bayes rule (1)
why is this so?P(A | B) = P(A AND B) / P(B)P(B | A) = P(A AND B) / P(A) and thus P(A AND B) = P(A) P(B | A)
Probabilities; page 14 of 26
conditional probabilities and Bayes rule (2)
P(model | data) = P(model) P(data | model) / P(data)
for example
P(word | utterance) = P(word) P(utterance | word) / P(utterance)
speech recognition
diagnosis
P(disease | symptoms) = P(disease) P(symptoms | disease) / P(symptoms)
causal information
prior
posterior
normalizing factor
(no need to compute it)
conditional probabilities and Bayes rule (3)
P(model | data) = P(model) P(data | model) / P(data)
prior
posterior
normalizing factor
(no need to compute it explicitly)
P(model1 | data) = 0.56 / P(data) = 0.56 / 0.84 = 0.67P(model2 | data) = 0.23 / P(data) = 0.23 / 0.84 = 0.27P(model3 | data) = 0.05 / P(data) = 0.05 / 0.84 = 0.
0.84 = P(data)
Probabilities; page 16 of 26
You are a witness of a night-time hit-and-runaccident involving a taxi in Athens. All taxisin Athens are either blue or green. You swear,under oath, that the taxi was blue. Extensivetesting shows that under the dim lightingconditions, discrimination between blue andgreen is 75% reliable. Calculate the mostlikely color for the taxi, given that 9 out of10 Athenian taxis are green.(Russell and Norvig, Exercise 14.11)
Bayes rule: problem
Bayes rule: solution
P(tg) = 0.90P(tb) = 1 - P(tg) = 0.10P(yg | tg) = 0.75P(yb | tg) = 1 - P(yg | tg) = 0.25P(yb | tb) = 0.75P(yg | tb) = 1 - P(yb | tb) = 0.
tg = taxi was greentb = taxi was blueyg = you saw greenyb = you saw blue
P(tb | yb)= P(tb AND yb) / P(yb)= P(tb AND yb) / (P(tb AND yb) + P(tg AND yb))= P(yb | tb) P(tb) / (P(yb | tb) P(tb) + P(yb | tg) P(tg))= 0.75 0.10 / (0.75 0.01 + 0.25 0.90) = 0.25P(tg | yb) = 1 - P(tb | yb) = 0.75The taxi was most likely green.
Probabilities; page 18 of 26
Bayes rule: robot-navigation problem
Lets assume that, whenever a robot moves east, it succeedswith probability 0.8, it strays to the left with probability 0.1, andit strays to the right with probability 0.1. Instead of moving to
before
afterwards
a blocked cell, the robot does not move.
This exercise might look artificial but we will see later that one can indeed base a very robust robot navigation
architecture exactly on this principle.
Bayes rule: robot-navigation problem
before
afterwards
the robot moves east
Probabilities; page 20 of 26
Bayes rule: solution
before
afterwards
warning: I have not carefully
checked this - if you find a
problem, please let me know!
the robot moves east
Probabilities; page 25 of 26
conditional independence (2)
probabilistic vacuum: dirt is removed with probability 0.80what is the probability remained dirty during 4 sucks?P(d1 AND d2 AND d3 AND d4)= P(d1) P(d2 | d1) P(d3 | d1 AND d2) P(d4 | d1 AND d2 AND d3)we don’t want to assume= P(d1) P(d2) P(d3) P(d4)instead, we often assume (= Markov property)= P(d1) P(d2 | d1) P(d3 | d2) P(d4 | d3)
Probabilities; page 26 of 26
conditional independence (3)
probabilistic blocksworld
stack action fails 90 % of the time
P(s2 at time t+1 | s1 and “stack action” at time t) = 0.10P(s2 at time t+1 | s2 and “stack action” at time t) = 1.
here:
actions have probabilistic effects states are completely observable
start = s
goal = s
stack