1 chapter 15 probabilistic reasoning over time. 2 outline time and uncertaintytime and uncertainty...

35
1 Chapter 15 Chapter 15 Probabilistic Reasoning Probabilistic Reasoning over Time over Time

Upload: mitchell-briggs

Post on 21-Jan-2016

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

1

Chapter 15 Chapter 15 Probabilistic Reasoning over TimeProbabilistic Reasoning over Time

Page 2: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

2

Outline Outline

• Time and UncertaintyTime and Uncertainty

• Inference: Filtering, Prediction, SmoothingInference: Filtering, Prediction, Smoothing

• Hidden Markov modelsHidden Markov models

• Brief Introduction to Kalman FiltersBrief Introduction to Kalman Filters

• Dynamic Bayesian networksDynamic Bayesian networks

• Particle FilteringParticle Filtering

Page 3: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

3

Time and uncertaintyTime and uncertainty

• The world changes; we need to track and predict it

• Diabetes management vs vehicle diagnosis

• Basic idea: copy state and evidence variables for each time step

Page 4: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

4

Markov processes (Markov chains)Markov processes (Markov chains)

Page 5: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

5

ExampleExample

Page 6: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

6

Inference tasksInference tasks

tt

Page 7: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

7

FilteringFiltering

Page 8: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

8

Filtering exampleFiltering example

0

1 1 0 0

1 1 1 1 1

Day 1, U1=true

( ) ( | ) ( )

0.7,0.3 0.5 0.3,0.7 0.5 0.5,0.5

( | ) ( | ) ( ) 0.9,0.2 0.5,0.5

0.45,0.1 0.818,0.182

r

p R p R r p r

p R u p u R p R

Rt P(Ut)

t 0.9

f 0.2

Rt-1 P(Rt)

t 0.7

f 0.3

Page 9: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

9

Filtering exampleFiltering example

1

2 1 2 1 1 1

2 1 2 2 2 2 1

Day 2, U2=true

( | ) ( | ) ( | )

0.7,0.3 0.818 0.3,0.7 0.182 0.627,0.373

( |, , ) ( | ) ( | ) 0.9,0.2 0.627,0.373

0.565,0.075 0.883,0.117

r

p R u p R r p r u

p R u u p u R p R u

Rt-1 P(Rt)

t 0.7

f 0.3

Rt P(Ut)

t 0.9

f 0.2

Page 10: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

10

SmoothingSmoothing

Page 11: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

11

Smoothing exampleSmoothing example

2

2 1 2 2 2 2 1(u | R ) ( | ) (| )p( | )

=0.9 1 0.7,0.3 0.2 1 0.3,0.7 0.69,0.41

r

p p u r p r r R

Rt-1 P(Rt)

t 0.7

f 0.3

Rt P(Ut)

t 0.9

f 0.2

Page 12: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

12

Most likely explanationMost likely explanation

Page 13: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

13

Viterbi exampleViterbi example

Page 14: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

14

Hidden Markov modelsHidden Markov models

:

: :

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

( | )

1 1 1 1 1 1

1 1

tt t t t t t t tx

t t t

P X e P e X P X x P x e

f P x e

Page 15: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

15

Country dance algorithmCountry dance algorithm

Page 16: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

16

Country dance algorithmCountry dance algorithm

Page 17: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

17

Country dance algorithmCountry dance algorithm

Page 18: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

18

Country dance algorithmCountry dance algorithm

Page 19: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

19

Kalman FiltersKalman Filters

Page 20: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

20

Updating Gaussian distributionsUpdating Gaussian distributions

Page 21: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

21

Simple 1-D exampleSimple 1-D example

Page 22: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

22

General Kalman updateGeneral Kalman update

Page 23: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

23

2-D tracking example: Filtering2-D tracking example: Filtering

Page 24: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

24

2-D tracking example: smoothing2-D tracking example: smoothing

Page 25: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

25

Where it breaksWhere it breaks

Page 26: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

26

Page 27: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

27

Dynamic Bayesian networksDynamic Bayesian networks

Page 28: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

28

DBNs vs. HMMsDBNs vs. HMMs

Page 29: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

29

DBNs vs Kalman FiltersDBNs vs Kalman Filters

Page 30: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

30

Exact inference in DBNsExact inference in DBNs

Page 31: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

31

Likelihood weighting for DBNsLikelihood weighting for DBNs

Page 32: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

32

Particle FilteringParticle Filtering

Page 33: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

33

Particle Filtering contd.Particle Filtering contd.

Page 34: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

34

Particle ltering performanceParticle ltering performance

Page 35: 1 Chapter 15 Probabilistic Reasoning over Time. 2 Outline Time and UncertaintyTime and Uncertainty Inference: Filtering, Prediction, SmoothingInference:

35

Chapter 15, Sections 1-5 Chapter 15, Sections 1-5 SummarySummary