ME5751�Robotics Motion Planning
Outline
People
Andrey Andreyevich Markov (1856–1922)
Russian Mathematician
Professor, Saint Petersburg State University
Thomas Bayes (1701- 1761)
English statistician, philosopher and Presbyterian minister
One known mathematics publication
Bayes’ Theorem was presented after his death by Richard Price
Richard Price (1723-1791)
British moral philosopher, nonconformist preacher and mathematician
Formally described Bayes’ theorem Considered Bayes’ theorem helped prove the existence of God
Image from Wikipedia.org
Basic concept
Basic concept
Basic concept
Joint distribution
Conditional probability
Conditional probability: example
Conditional probability: example
Conditional probability
Conditional probability
Conditional probability
Theorem of total probability
Bayes rule
Bayes rule
Bayes rule example
Bayes rule example
Bayes rule example
Bayes rule example: Evidence not clear
Bayes rule example: Evidence not clear
Bayes rule example: Evidence not clear
Evidence not needed: normalization
Evidence not needed: normalization
Outline
Gaussian mixture model
μ = 3, σ = 2
μ = 4, σ = 3
??
Gaussian mixture model
Gaussian mixture model
μ = 3, σ = 2
μ = 4, σ = 3
??
Gaussian mixture model
Gaussian mixture model
Outline
Bayes rule
Markov Chain 101
Previous state
Next state
Previous Next | A | B |
A | 0.3 | 0.7 |
B | 0.8 | 0.2 |
Markov Chain: forward propagation
A
B
A: Rainy 0.3
B: Sunny 0.7
Day 1- Rainy: 0.3*0.7
Day 1- Sunny: 0.7*0.2
Day 1
Day 2
Day 3
Markov Chain: forward propagation
A
B
A: Rainy 0.3
B: Sunny 0.7
Day 1- Rainy: 0.3*0.3
Day 1- Sunny: 0.7*0.2
Day 1
Day 2
Day 3
Markov Chain: forward propagation
P(x3=B) + P(x3=A) =1
A
A
A: Rainy 0.3
B: Sunny 0.7
Day 1- Rainy: 0.3*0.3
Day 1- Sunny: 0.7*0.8
Day 1
Day 2
Day 3
A 1st order Markov Chain
E.g. Student Markov chain
Student Markov Chain
Student Markov Chain
pn = p*p*p…
Every element represent
the chance after nth transition
More classical transitions for Markov chain
More classical transitions for Markov chain
Outline
Hidden Markov model
X0
X1
X2
u0
u1
z0
z1
z2
Hidden Markov model
X0
X1
X2
u0
u1
z0
z1
z2
Previous | Rain | Sunny |
x=Rain, u =Rain | 0.8 | 0.2 |
x=Rain, u =sun | 0.4 | 0.6 |
x= Sun, u= Rain | 0.7 | 0.3 |
X= Sun, u= sun | 0.6 | 0.4 |
State | Cat Sleep | Cat Outdoor |
Rain | 0.8 | 0.2 |
Sun | 0.2 | 0.8 |
Hidden Markov Model
Hidden Markov Model
Hidden Markov Model
X0
X1
X2
u0
u1
z0
z1
z2
Previous | X=R | X=S |
x=R, u =R | 0.8 | 0.2 |
x=R, u =S | 0.4 | 0.6 |
x= S, u= R | 0.7 | 0.3 |
X= S, u= S | 0.6 | 0.4 |
State | Sleep (L) | Out (O) |
Rain | 0.8 | 0.2 |
Sun | 0.2 | 0.8 |
Hidden Markov Model
X0
X1
X2
u0
u1
z0
z1
z2
R | 0.8 |
S | 0.2 |
Posterior for day 1 being rainy and sunny
HMM: update after a new observation
X0
X1
X2
u0
u1
z0
z1
z2
R | 0.8 |
S | 0.2 |
R | 0.941 |
S | 0.059 |
Probability for day 2, given cat sleeps on day 1
Posterior from previous day!
HMM: new state prior from previous update
X0
X1
X2
u0
u1
z0
z1
z2
R | 0.8 |
S | 0.2 |
R | 0.941 |
S | 0.059 |
R | 0.794 |
S | 0.206 |
Posterior for day 2 being rainy
HMM: update after a new observation
X0
X1
X2
u0
u1
z0
z1
z2
R | 0.8 |
S | 0.2 |
R | 0.941 |
S | 0.059 |
R | 0.794 |
S | 0.206 |
R | 0.939 |
S | 0.061 |
What happened just now?
Prior (Related to state transition, and previous posterior) | Posterior (After a new observation) | ||
P(X1 = R|X0,U0=R) | P(X1 = S|X0,U0=R) | P(X1 = R|z1 = L) | P(X1=S|z1 = L) |
0.8 | 0.2 | 0.941 | 0.059 |
Prior (Related to state transition, and previous posterior) | Posterior (After a new observation ) | ||
P(X2 = R|X1,U1=R) | P(X2 = S|X1,U1=R) | P(X2 = R|z2 = L) | P(X2=S|z2 = L) |
0.794 | 0.206 | 0.939 | 0.061 |
Outline
A simple 2D localization story
8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
xt
A simple 2D localization story
Previous | X=R | X=S |
x=R, u =R | 0.8 | 0.2 |
x=R, u =S | 0.4 | 0.6 |
x= S, u= R | 0.7 | 0.3 |
X= S, u= S | 0.6 | 0.4 |
Previous | X=0 | X=1 | … | X=8 |
x=0, u =1 | | | | |
x=0, u =2 | | | | |
x=0, u= -1 | | | | |
X=0, u= -2 | | | | |
… | | | | |
X=1, u=0 | | | | |
X=1, u=1 | | | | |
… | | | | |
X=7, u= 0 | | | | |
X=7, u =1 | | | | |
A simple 2D localization story
State | Sleep (L) | Out (O) |
Rain | 0.8 | 0.2 |
Sun | 0.2 | 0.8 |
State | Z = 0 | Z=1 | … | … | Z=7 | Z=8 |
X=0 | | | | | | |
X=1 | | | | | | |
X=2 | | | | | | |
X=3 | | | | | | |
… | | | | | | |
X=8 | | | | | | |
8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
xt
Change of story for robotics
Prior (Related to state transition, and previous posterior) | Posterior (Related to output and prior) | ||
P(X1 = R|X0,U0=R) | P(X1 = S|X0,U0=R) | P(X1 = R|z1 = L) | P(X1=S|z1 = L) |
0.8 | 0.2 | 0.941 | 0.059 |
| | ||||
| | | | | |
| | | | | |
Change of predict belief
Change of correction belief
Markov localization