58
Stochastic Estimation & Probabilistic Robotics Probability Theory: Joey Durham April 2nd, 2008 Slides adapted from introduction.ppt, originally by Thrun, Burgard, and Fox at probabilistic-robotics.org

Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

Stochastic Estimation & Probabilistic Robotics

Probability Theory:

Joey DurhamApril 2nd, 2008

Slides adapted from introduction.ppt, originally by Thrun, Burgard, and Fox at probabilistic-robotics.org

Page 2: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

2

Reading Group ScheduleW1: Wed Apr 2 Probability Theory Joey

W2: Wed Apr 9 Estimation Theory Kurt

W3: Wed Apr 16 Kalman Filters

W4: Wed Apr 23 Particle Filters

W5: Wed Apr 30 Motion & Sensor Models Paolo

W6: Wed May 7 Localization

W7: Wed May 14 Mapping

W8: Wed May 21 Simultaneous Localization & Mapping

W9: Wed May 28 Markov Decision Processes Alexandre

W10: Wed Jun 4 Data Association/Target Tracking

Projector in room.

Presentation laptop available if needed, contact Joey.

Page 3: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

3

Outline

•Probability theory•Probability density functions•Gaussian random variables•Conditional probability•Bayes formula•Stochastic processes•Markov processes and chains•Bayes filters

Page 4: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

4

Motivation

Key idea: Explicit representation of uncertainty using the calculus of probability theory

• Perception = state estimation• Action = utility optimization

Page 5: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

5

Pr(A) denotes probability that proposition A is true. Let S be the set of all possible outcomes.

Axioms of Probability Theory

1)Pr(0 ≤≤ A

1)Pr( =S

)Pr()Pr()Pr()Pr( BABABA ∧−+=∨

0)Pr( =∅

Page 6: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

6

A Closer Look at Axiom 3

B

BA ∧A BTrue

)Pr()Pr()Pr()Pr( BABABA ∧−+=∨

Page 7: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

7

Using the Axioms

)Pr(1)Pr(0)Pr()Pr(1

)Pr()Pr()Pr()Pr()Pr()Pr()Pr()Pr(

AAAA

FalseAATrueAAAAAA

−=¬−¬+=

−¬+=¬∧−¬+=¬∨

Page 8: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

8

Discrete Random Variables

•X denotes a random variable.

•X can take on a countable number of values in {x1, x2, …, xn}.

•P(X=xi), or P(xi), is the probability that the random variable X takes on value xi.

•P(*) is called probability mass function.

•A proper pmf satisfies: ∑ =x

xP 1)(

Page 9: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

9

Continuous Random Variables

•X takes on values in the continuum.

•p(X=x), or p(x), is a probability density function.

•E.g.

∫=∈b

a

dxxpbax )()),(Pr(

x

p(x)

Page 10: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

10

Properties of PDFs

•Normalization property

•Example: Uniform random variable

1)( =∫∞

∞−

dxxp

p x={ 1b−a

x∈[a ,b]

0 elsewhere}

Page 11: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

11

Expectations and Moments

•Expectation value of a scalar random variable (aka mean or average):

•nth moment:

xdxxxpxE == ∫∞

∞−

)(][

∫∞

∞−

= dxxpxxE nn )(][

Page 12: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

12

Variance

•The 2nd central moment is also known as the variance:

•The square root of the variance, σ, is also called the standard deviation.

∫∞

∞−

−=−= dxxpxxxxEx )()(])[()var( 22

222 )(][)var( xxxEx σ=−=

Page 13: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

13

Joint Probability

•P(X=x and Y=y) = P(x,y)

•If X and Y are independent then P(x,y) = P(x) P(y)

Page 14: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

14

Covariance

•The covariance of two scalar random variables x and y:

2)])([(),cov( xyyyxxEyx σ=−−=

Page 15: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

15

Correlation

•The correlation coefficient between x and y:

•Because of normalization:

yx

xyxy σσ

σρ

2

=

1≤xyρ

Page 16: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

16

More on Correlation

•Uncorrelated:

•Linearly dependent:

][][][ yExExyE =

0=+ byax

1=xyρ

0=xyρ

Page 17: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

17

Joint and Marginal PDFs

•Marginal PDF for one random variable:

•If a set of random variables are independent, their joint PDF satisfies:

∫∞

∞−

= dyyxpxp ),()(

)()(),( ypxpyxp =

Page 18: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

18

Random Vectors

•Vector-valued random variable:

•Expectation value of x:

•The covariance matrix of x:

][ 1 nxxx =

xdxdxxxpxE n == ∫∫∞

∞−

∞−

1)(][

xxPxxxxEx =−−= ])')([()cov(

Page 19: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

19

Characteristic Function•The characteristic function of x is the n-dimensional Fourier transform of its PDF:

•The moments of x can be found using gradients of Mx, eg:

•Characteristic function = moment generating function.

∫∞

∞−

== dxxpeeEsM xsxsx )(][)( ''

0|)(][ =∇= sxs sMxE

Page 20: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

20

Gaussian distributions

•The PDF of a Gaussian or normal random variable:

scalar:

vector:

•Has a mean of E[x] and a variance of σ2.

2

2

2)(

2

21),;()( σ

σπσ

xx

exxNxp−−

==

)()')(21(2/1 12)( xxPxxePxp −−−− −

= π

Page 21: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

21

Joint Gaussians

•To variables x and z are jointly Gaussian if:

•The mean and covariance of y:

),;()(),( yyPyyNypzxp ==

=

z

xy

=

z

xy

=

zzzx

xzxx

yyPP

PPP

Page 22: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

22

Conditional Gaussians

•The conditional PDF for x given z:

•The conditional mean and covariance of x given z:

)(),()|(

zpzxpzxp =

)(]|[ 1 zzPPxzxE zzxz −+= −

zxzzxzxx PPPPzx 1)|cov( −−=

Page 23: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

23

Mixture PDFs

•A mixture PDF is a weighted sum of PDFs:

•Mean and covariance of a mixture:

∑=

=n

j

jj xpaxp1

)()(

∑=

=n

j

jj xax1

'')cov(11

xxxxaPaxn

j

jjj

n

j

jj −+= ∑∑==

Page 24: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

24

Conditional Probability•P(x | y) is the probability of x given y

P(x | y) = P(x,y) / P(y)P(x,y) = P(x | y) P(y)

•If X and Y are independent thenP(x | y) = P(x)

•The same rules hold for PDFs:p(x | y) = p(x,y) / p(y)

Page 25: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

25

Conditional Expectation•Conditional expectation, expectation with respect to a conditional PDF:

•Law of iterated expectations:

∫∞

∞−

= dxzxxpzxE )|(]|[

][]]|[[ xEzxEE =

Page 26: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

26

Total Probability Theorem

∑=y

yxPxP ),()(

∑=y

yPyxPxP )()|()(

∑ =x

xP 1)(

Discrete case

∫ = 1)( dxxp

Continuous case

∫= dyypyxpxp )()|()(

∫= dyyxpxp ),()(

Page 27: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

27

Bayes Formula

evidenceprior likelihood

)()()|()(

)()|()()|(),(

⋅==

==

yPxPxyPyxP

xPxyPyPyxPyxP

Page 28: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

28

Simple Example of State Estimation

•Suppose a robot obtains measurement z•What is P(open|z)?

Page 29: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

29

Causal vs. Diagnostic Reasoning

•P(open|z) is diagnostic.•P(z|open) is causal.•Often causal knowledge is easier to obtain.•Bayes rule allows us to use causal knowledge:

)()()|()|( zP

openPopenzPzopenP =

Page 30: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

30

Example

• P(z|open) = 0.6 P(z|¬open) = 0.3• P(open) = P(¬open) = 0.5

67.032

5.03.05.06.05.06.0)|(

)()|()()|()()|()|(

==⋅+⋅

⋅=

¬¬+=

zopenP

openPopenzPopenPopenzPopenPopenzPzopenP

• z raises the probability that the door is open.

Page 31: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

31

Combining Evidence

•Suppose our robot obtains another observation z2.

•How can we integrate this new information?

•More generally, how can we estimateP(x| z1...zn )?

Page 32: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

32

Conditional Independence

)|()|(),( zyPzxPzyxP =

),|()( yzxPzxP =

),|()( xzyPzyP =

equivalent to

and

Page 33: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

33

Bayes Rule with Background Knowledge

)|()|(),|(

)()|()()|(),|(

),()()|,(),|(

12

112

112

112

21

2121

zzPzxPzxzP

zPzzPxPxzPzxzP

zzPxPxzzPzzxP

=

=

=

Page 34: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

34

Recursive Bayesian Updating

),,|(),,|(),,,|(),,|(

11

11111

−−=nn

nnnn

zzzPzzxPzzxzPzzxP

Markov assumption: zn is independent of z1,...,zn-1 if we know x.

),,|(),,|()|(),,|(

11

111

−=nn

nnn

zzzPzzxPxzPzzxP

Page 35: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

35

Example: Second Measurement

• P(z2|open) = 0.5 P(z2|¬open) = 0.6

• P(open|z1)=2/3

625.085

31

53

32

21

32

21

)|()|()|()|()|()|(),|(

1212

1212

==⋅+⋅

⋅=

¬¬+=

zopenPopenzPzopenPopenzPzopenPopenzPzzopenP

• z2 lowers the probability that the door is open.

Page 36: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

36

Actions

•Often the world is dynamic since• actions carried out by the robot,• actions carried out by other agents,• or just the time passing bychange the world.

•How can we incorporate such actions?

Page 37: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

37

Typical Actions

•The robot turns its wheels to move•The robot uses its manipulator to grasp an object•Plants grow over time…

•Actions are never carried out with absolute certainty.•In contrast to measurements, actions generally increase the uncertainty.

Page 38: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

38

Stochastic Processes

•A function of time and some random experiment w:

•Mean of the stochastic process at t:

∫∞

∞−

== ξξξ dptxEtx tx )()]([)( )(

),()( wtxtx =

Page 39: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

39

Properties of Stochastic Processes

•Autocorrelation:

•Autocovariance:

)]()([),( 2121 txtxEttR =

( ) ( )[ ])()(),(

)()()()(),(

2121

221121

txtxttR

txtxtxtxEttV

−=

−−=

Page 40: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

40

More Properties

•Stationary if for all t1 & t2:

•Ergodic if stationary and:

)(),( 2121 ttRttR −=

xdttxT

T

T

T=∫

∞→)(

21lim

][][ 21 tEtE =

Page 41: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

41

Random Walk

•Wiener-Levy or Brownian motion, steps of size s at intervals of Δ s.t.:

•Produces stochastic process w(t) with a Gaussian PDF:

α→∆s

),0);(())(( ttwNtwp α=

Page 42: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

42

Markov Processes

•“The future is independent of the past if the present is known”•Brownian motion is a Markov process as:

•Also, LTI excited by stationary white noise

is a stationary Markov process.

∫+=

t

t

dntwtw

1

)()()( 1 ττ

)()()( tBntAxtx +=

Page 43: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

43

Random Sequences

•Time-indexed sequence of random variables:

•A sequence is Markov if:

{ } ,2,1)( 1 == = kjxX kj

k

))(|)(()|)(( jxkxpXkxp j =

Page 44: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

44

Markov Chains

•A Markov sequence in which state space is discrete and finite:

•With state transition probabilities:

open closed0.1 10.9

0

ijij xkxxkxP π==−= })1(|)({

{ }nixkx i 1,)( =∈

Page 45: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

45

More Markov Chains

•Vector of probabilities of being in each state:

•Time evolution given by:

nikukun

j

jiji 1)()1(1

==+ ∑=

π

[ ]{ }i

n

xkxPku

kukuku

==

=

)()(

)(,),()(

1

1

Page 46: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

46

Law of Large Numbers

•Sum of a large number of sufficiently uncorrelated random variables tends towards the expected value•Given stationary random sequence x with:

if correlation coefficients -> 0 “sufficiently fast”, then

0)(lim||

=−∞→−

jiji

ρ

xxn

n

i

in=

∑=

∞→1

1lim

Page 47: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

47

Central Limit Theorem

•If a sequence consists of independent random variables, then the PDF of

will tend towards a Gaussian.

∑=

=n

i

in xn

z1

1

Page 48: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

48

Modeling Actions

•To incorporate the outcome of an action u into the current “belief”, we use the conditional pdf

P(x|u,x’)

•This term specifies the pdf that executing u changes the state from x’ to x.

Page 49: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

49

Example: Closing the door

Page 50: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

50

State Transitions

P(x|u,x’) for u = “close door”:

If the door is open, the action “close door” succeeds in 90% of all cases.

open closed0.1 10.9

0

Page 51: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

51

Integrating the Outcome of Actions

∫= ')'()',|()|( dxxPxuxPuxP

∑= )'()',|()|( xPxuxPuxP

Continuous case:

Discrete case:

Page 52: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

52

Example: The Resulting Belief

)|(1161

83

10

85

101

)(),|()(),|(

)'()',|()|(1615

83

11

85

109

)(),|()(),|(

)'()',|()|(

uclosedP

closedPcloseduopenPopenPopenuopenPxPxuopenPuopenP

closedPcloseduclosedPopenPopenuclosedPxPxuclosedPuclosedP

−=

=∗+∗=

+=

=

=∗+∗=

+=

=

Page 53: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

53

Bayes Filters: Framework

•Given:• Stream of observations z and action data u:

• Sensor model P(z|x).• Action model P(x|u,x’).• Prior probability of the system state P(x).

•Wanted: • Estimate of the state X of a dynamical system.• The posterior of the state is also called Belief:

),,,|()( 11 tttt zuzuxPxBel =

},,,{ 11 ttt zuzud =

Page 54: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

54

Markov Assumption

Underlying Assumptions•Static world•Independent noise•Perfect model, no approximation errors

),|(),,|( 1:1:11:1 ttttttt uxxpuzxxp −− =)|(),,|( :1:1:0 tttttt xzpuzxzp =

Page 55: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

55111 )(),|()|( −−−∫= ttttttt dxxBelxuxPxzPη

Bayes Filters

),,,|(),,,,|( 1111 ttttt uzuxPuzuxzP η=Bayes

z = observationu = actionx = state

),,,|()( 11 tttt zuzuxPxBel =

Markov ),,,|()|( 11 tttt uzuxPxzP η=

Markov11111 ),,,|(),|()|( −−−∫= tttttttt dxuzuxPxuxPxzP η

1111

111

),,,|(

),,,,|()|(

−−

−∫=

ttt

ttttt

dxuzuxP

xuzuxPxzP

ηTotal prob.

Markov111111 ),,,|(),|()|( −−−−∫= tttttttt dxzzuxPxuxPxzP η

Page 56: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

56

Bayes Filter Algorithm

1. Algorithm Bayes_filter( Bel(x),d ):2. η=0

3. If d is a perceptual data item z then4. For all x do5. 6. 7. For all x do8.

9. Else if d is an action data item u then10. For all x do11.

12. Return Bel’(x)

)()|()(' xBelxzPxBel =)(' xBel+= ηη

)(')(' 1 xBelxBel −= η

')'()',|()(' dxxBelxuxPxBel ∫=

111 )(),|()|()( −−−∫= tttttttt dxxBelxuxPxzPxBel η

Page 57: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

57

Bayes Filters are Common

•Kalman filters•Particle filters•Hidden Markov models•Dynamic Bayesian networks•Partially Observable Markov Decision Processes (POMDPs)

111 )(),|()|()( −−−∫= tttttttt dxxBelxuxPxzPxBel η

Page 58: Stochastic Estimation & Probabilistic Roboticsmotion.me.ucsb.edu/joey/website/media/durham... · 2010. 9. 22. · Stochastic Estimation & Probabilistic Robotics Probability Theory:

58

Summary

•Bayes rule allows us to compute probabilities that are hard to assess otherwise.

•Under the Markov assumption, recursive Bayesian updating can be used to efficiently combine evidence.

•Bayes filters are a probabilistic tool for estimating the state of dynamic systems.