advanced(predictive(modeling · 2019-04-11 · dynamicinference...

47
Advanced Predictive Modeling Dr. Bowen Hui Computer Science University of British Columbia Okanagan

Upload: others

Post on 08-Jul-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Advanced  Predictive  Modeling

Dr.  Bowen  HuiComputer  Science

University  of  British  Columbia  Okanagan

Page 2: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Plan  for  Upcoming  Lectures

• Lecture  1:– Regression  -­‐>  classification  -­‐>  Bayesian  networks

• Lecture  2:– Rational  decision  making

• Lecture  3  (this  class):– Sequential  decision  making

2

Page 3: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Reasoning  Over  Time

• What  if  model  dynamics  change  over  time?

3

Knowledge  of  Concepts

Knowledge  of  Concepts

VariousMistakes

VariousMistakes

Knowledge  of  Concepts

VariousMistakes

.  .  .

time  =  1                                                                          2                                                  .  .  .                                                n

.  .  .

Page 4: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Dynamic  Inference

• Model  time-­‐steps (snapshots  of  the  world)– Granularity:  1  second,  5  minutes,  1  session,  …

• Allow  different  probability  distributions  over  states  at  each  time  step

• Define  temporal causal  influences– Encode  how  distributions  change  over  time

4

Page 5: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

The  Big  Picture

• Life  as  one  big  stochastic  process:– Set  of  States:  S– Stochastic  dynamics:  Pr(st|st-­‐1,  …,  s0)

– Can  be  viewed  as  a  Bayes  net  with  one  random  variable  per  time  step

5

Page 6: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Challenges  with  a  Stochastic  Process

• Problems:– Infinitely  many  variables– Infinitely  large  conditional  probability  tables

• Solutions:– Stationary  process:  dynamics  do  not  change  over  time

–Markov  assumption:  current  state  depends  only  on  a  finite  history  of  past  states

6

Page 7: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Challenges  with  a  Stochastic  Process

• Problems:– Infinitely  many  variables– Infinitely  large  conditional  probability  tables

• Solutions:– Stationary  process:  dynamics  do  not  change  over  time

–Markov  assumption:  current  state  depends  only  on  a  finite  history  of  past  states

7

Page 8: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

K-­‐order  Markov  Process

• Assumption:  last  k  states  sufficient• First-­‐order  Markov  process– Pr(st|st-­‐1,…,s0)  =  Pr(st|st-­‐1)

• Second-­‐order  Markov  process– Pr(st|st-­‐1,…,s0)  =  Pr(st|st-­‐1,st-­‐2)

8

Page 9: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

K-­‐order  Markov  Process

• Assumption:  last  k  states  sufficient• First-­‐order  Markov  process– Pr(st|st-­‐1,…,s0)  =  Pr(st|st-­‐1)

• Second-­‐order  Markov  process– Pr(st|st-­‐1,…,s0)  =  Pr(st|st-­‐1,st-­‐2)

9

Page 10: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

K-­‐order  Markov  Process

• Assumption:  last  k  states  sufficient• First-­‐order  Markov  process– Pr(st|st-­‐1,…,s0)  =  Pr(st|st-­‐1)

• Second-­‐order  Markov  process– Pr(st|st-­‐1,…,s0)  =  Pr(st|st-­‐1,st-­‐2)

10

Page 11: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

K-­‐order  Markov  Process

• Advantage:– Can  specify  entire  process  with  finitelymany  time  steps  

• Two  time  steps  sufficient  for  a  first-­‐order  Markov  process– Graph:– Dynamics:  Pr(st|st-­‐1)– Prior:   Pr(s0)

11

Page 12: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Building  a  2-­‐Stage  Dynamic  Bayes  Net

12

Bools Vars Conds Help

Back-­‐wards

LogicPersis-­‐tence

Use  same  CPTs  as  BN

Page 13: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Building  a  2-­‐Stage  Dynamic  Bayes  Net

13

Bools Vars Conds Help

Back-­‐wards

LogicPersis-­‐tence

Bools Vars Conds Help

Back-­‐wards

LogicPersis-­‐tence

time=t  – 1

time=t

Use  same  CPTs  as  BN

Use  same  or  differentCPTs  as  other  time  step

Page 14: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Building  a  2-­‐Stage  Dynamic  Bayes  Net

14

Bools Vars Conds Help

Back-­‐wards

LogicPersis-­‐tence

Bools Vars Conds Help

Back-­‐wards

LogicPersis-­‐tence

time=t  – 1

time=t

For  each  new  relationship,define  new  CPTs:Pr(St|St–1)

Page 15: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Defining  a  DBN

• Recall  that  a  BN  over  variables  X =  {X1,  X2,  …,  Xn} consists  of:– A  directed  acyclic  graph  whose  nodes  are  variables

– A  set  of  CPTs  Pr(Xi|Parents(Xi)) for  each  Xi

• Dynamic  Bayes  Net  is  an  extension  of  BN• Focus  on  2-­‐stage  DBN

15

Page 16: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

DBN  Definition

• A  DBN  over  variables  X consists  of:– A  directed  acyclic  graph  whose  nodes  are  variables– S is  a  set  of  hidden variables,  S ⊂ X– O is  a  set  of  observable variables,  O ⊂ X– Two  time  steps:  t–1 and  t–Model  is  first  order  Markov  s.t.Pr(Ut|U1:t–1)  =  Pr(Ut|Ut–1)

16

Page 17: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

DBN  Definition  (cont.)

• Numerical  component:– Prior  distribution,  Pr(X0)– State transition function,  Pr(St|St–1)– Observation  function,  Pr(Ot|St)

• See  previous  example

17

For  BNs:  CPTs  Pr(Xi|Parents(Xi)) for  each  Xi

Page 18: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Example

18

Bools Vars Conds Help

Back-­‐wards

LogicPersis-­‐tence

Bools Vars Conds Help

Back-­‐wards

LogicPersis-­‐tence

time=t  – 1

time=t

Page 19: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Exercise  #1

• Changes  in  skill  from  t–1  to  t?• Context:My  son  is  potty training.  When  he  has  to  go,  he  either  tells  us  in  advance  (yay!),  he  starts  but  continues  in  the  potty,  or  an  accident  happens.  With  feedback  and  practice,  his  ability  to  go  pottyimproves.

• Does  a  temporal  relationship  exist?  What  might  the  CPT  look  like?

19

Page 20: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Exercise  #2

• Changes  in  hint  quality  from  t–1  to  t?• Context:You’re  tutoring  a  friend  in  Math.  Rather  than  solving  the  exercises  for  him,  you  offer  to  give  hints.  Sometimes  the  hints  aren’t  so  great.  Depending  on  the  quality,  you  may  or  may  not  give  hints  each  time  he  is  stuck.

• Does  a  temporal  relationship  exist?  What  might  the  CPT  look  like?

20

Page 21: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Exercise  #3

• Changes  in  blood  type from  t–1  to  t?• Context:People  with  blood  type  A  tend  to  be  more  cooperative.  We  have  the  opportunity  to  observe  a  student’s  teamwork  in  class  twice  each  week.  We  want  to  infer  the  student’s  blood  type.

• Does  a  temporal  relationship  exist?  What  might  the  CPT  look  like?

21

Page 22: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Temporal  Inference  Tasks

• Common  tasks:– Belief  update:  Pr(st|ot,  …,  o1)

– Prediction:  Pr(st+k|ot,  …,  o1)

– Hindsight:  Pr(sk|ot,  …,  o1)  where  k  <  t

–Most  likely  explanation:  argmax Pr(st,  …,  s1|ot,  …  o1)

– Fixed  interval  smoothing:Pr(st|oT,  …,  o1)

22

st,  …,  s1

Page 23: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Temporal  Inference  Tasks

• Common  tasks:– Belief  update:  Pr(st|ot,  …,  o1)

– Prediction:  Pr(st+𝛿|ot,  …,  o1)

– Hindsight:  Pr(sk|ot,  …,  o1)  where  k  <  t

–Most  likely  explanation:  argmax Pr(st,  …,  s1|ot,  …  o1)

– Fixed  interval  smoothing:Pr(st|oT,  …,  o1)

23

st,  …,  s1

Page 24: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Temporal  Inference  Tasks

• Common  tasks:– Belief  update:  Pr(st|ot,  …,  o1)

– Prediction:  Pr(st+𝛿|ot,  …,  o1)

– Hindsight:  Pr(st-­‐𝜏|ot,  …,  o1)  where  k  <  t

–Most  likely  explanation:  argmax Pr(st,  …,  s1|ot,  …  o1)

– Fixed  interval  smoothing:Pr(st|oT,  …,  o1)

24

st,  …,  s1

Page 25: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Temporal  Inference  Tasks

• Common  tasks:– Belief  update:  Pr(st|ot,  …,  o1)

– Prediction:  Pr(st+𝛿|ot,  …,  o1)

– Hindsight:  Pr(st-­‐𝜏|ot,  …,  o1)  where  k  <  t

–Most  likely  explanation:  argmax Pr(st,  …,  s1|ot,  …  o1)

– Fixed  interval  smoothing:Pr(st|oT,  …,  o1)

25

st,  …,  s1

Page 26: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Temporal  Inference  Tasks

• Common  tasks:– Belief  update:  Pr(st|ot,  …,  o1)

– Prediction:  Pr(st+𝛿|ot,  …,  o1)

– Hindsight:  Pr(st-­‐𝜏|ot,  …,  o1)  where  k  <  t

–Most  likely  explanation:  argmax Pr(st,  …,  s1|ot,  …  o1)

– Fixed  interval  smoothing:Pr(st|oT,  …,  o1)

26

st,  …,  s1

Page 27: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Inference  Over  Time

• Same  algorithm:  clique  inference

• Added  setup:– Enter  evidence  in  stage  t– Take  marginal  in  stage  t,  keep  it  aside– Create  new  copy– Enter  marginal  into  stage  t–1– Repeat  

27

Page 28: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Inference  Over  Time

28

O

S

O

S

O

S

O

S .  .  .

O

S

O

S

time  =  0                            1                            2                            3                              .  .  .  

time  =  t–1                            t

Setup:

Mimic:

Page 29: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Inference  Over  Time

29

O

S

O

S

O

S

O

S .  .  .

O

S

O

S

time  =  0                            1                            2                            3                              .  .  .  

time  =        0                            1

Start,  time=1:

Mimic:

Observe  user  behaviourEnter  evidence

Page 30: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Inference  Over  Time

30

O

S

O

S

O

S

O

S .  .  .

O

S

O

S

time  =  0                            1                            2                            3                              .  .  .  

time  =        0                            1

Start,  time=1:

Mimic:

Compute  marginal  of  interestGet:  Pr(S1)

Page 31: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Inference  Over  Time

31

O

S

O

S

O

S

O

S .  .  .

O

S

O

S

time  =  0                            1                            2                            3                              .  .  .  

time  =        0                            1

We  have:

Mimic:

Pr(S1)

Page 32: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Inference  Over  Time

32

O

S

O

S

O

S

O

S .  .  .

O

S

O

S

time  =  0                            1                            2                            3                              .  .  .  

time  =        0                            1

We  have:                                                                                      New  copy:

Mimic:

O

S

O

SPr(S1)

time  =  t–1                            t

Pr(S1)

Page 33: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Inference  Over  Time

33

O

S

O

S

O

S

O

S .  .  .

O

S

O

S

time  =  0                            1                            2                            3                              .  .  .  

time  =        0                            1

We  have:                                                                                      New  copy:

Mimic:

O

S

O

SPr(S1)

time  =  t–1                            t

Pr(S1)

Page 34: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Inference  Over  Time

34

O

S

O

S

O

S

O

S .  .  .

O

S

O

S

time  =  0                            1                            2                            3                              .  .  .  

time  =        1                            2

Continue,  time=2:

Mimic:

Pr(S1)

Page 35: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Inference  Over  Time

35

O

S

O

S

O

S

O

S .  .  .

O

S

O

S

time  =  0                            1                            2                            3                              .  .  .  

time  =        1                            2

Continue,  time=2:

Mimic:

Pr(S1)

Observe  user  behaviourEnter  evidence

Page 36: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Inference  Over  Time

36

O

S

O

S

O

S

O

S .  .  .

O

S

O

S

time  =  0                            1                            2                            3                              .  .  .  

time  =        1                            2

Continue,  time=2:

Mimic:

Pr(S1)Compute  marginal  of  interestGet:  Pr(S2)

Page 37: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Inference  Over  Time

37

O

S

O

S

O

S

O

S .  .  .

O

S

O

S

time  =  0                            1                            2                            3                              .  .  .  

time  =        1                            2

We  have:

Mimic:

Pr(S1)Pr(S2)

Page 38: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

We  have:                                                                                      New  copy:

Inference  Over  Time

38

O

S

O

S

O

S

O

S .  .  .

O

S

O

S

time  =  0                            1                            2                            3                              .  .  .  

time  =        1                            2

Mimic:

Pr(S1)Pr(S2)

O

S

O

SPr(S2)

time  =  t–1                            t

Page 39: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

We  have:                                                                                      New  copy:

Inference  Over  Time

39

O

S

O

S

O

S

O

S .  .  .

O

S

O

S

time  =  0                            1                            2                            3                              .  .  .  

time  =        1                            2

Mimic:

Pr(S1)Pr(S2)

O

S

O

SPr(S2)

time  =  t–1                            t

Page 40: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Inference  Over  Time

40

O

S

O

S

O

S

O

S .  .  .

O

S

O

S

time  =  0                            1                            2                            3                              .  .  .  

time  =        2                            3

Continue,  time=3:

Mimic:

Pr(S2)

Page 41: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Inference  Over  Time

41

O

S

O

S

O

S

O

S .  .  .

O

S

O

S

time  =  0                            1                            2                            3                              .  .  .  

time  =        2                            3

Continue,  time=3:

Mimic:

Pr(S2)

Observe  user  behaviourEnter  evidence

Page 42: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Inference  Over  Time

42

O

S

O

S

O

S

O

S .  .  .

O

S

O

S

time  =  0                            1                            2                            3                              .  .  .  

time  =        2                            3

Continue,  time=3:

Mimic:

Pr(S2)Compute  marginal  of  interestGet:  Pr(S3)

Page 43: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Inference  Over  Time

43

O

S

O

S

O

S

O

S .  .  .

O

S

O

S

time  =  0                            1                            2                            3                              .  .  .  

time  =        2                            3

We  have:

Mimic:

Pr(S2)Pr(S3)

Page 44: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

We  have:                                                                                      New  copy:

Inference  Over  Time

44

O

S

O

S

O

S

O

S .  .  .

O

S

O

S

time  =  0                            1                            2                            3                              .  .  .  

time  =        2                            3

Mimic:

Pr(S2)Pr(S3)

O

S

O

SPr(S3)

time  =  t–1                            t

Page 45: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

We  have:                                                                                      New  copy:

Inference  Over  Time

45

O

S

O

S

O

S

O

S .  .  .

O

S

O

S

time  =  0                            1                            2                            3                              .  .  .  

time  =        2                            3

Mimic:

Pr(S2)Pr(S3)

O

S

O

SPr(S3)

time  =  t–1                            t

Page 46: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Example:  Belief  Update  Over  Time

46Marginal  of  interest

Page 47: Advanced(Predictive(Modeling · 2019-04-11 · DynamicInference •Model(timeGsteps(snapshots(of(the(world) –Granularity:(1(second,5(minutes,1(session,… •Allow(different(probability(distributions(over

Key  Ideas

• Main  concepts– Reasoning  over  time  considers  evolving  dynamics  in  the  model

• Representation:– Stationarity  assumption:  given  model,  dynamics  don’t  change  over  time

–Markov  assumption:  current  state  depends  only  on  a  finite  history

– DBN  is  an  extension  of  BN  with  an  additional  set  of  temporal  relationships  (transition  functions)