1
Dias 1Monitoring and data filtering
- II. Dynamic Linear Models
Advanced Herd Management Cécile Cornou, IPH
Dias 2Outline
Introduction to the DLM (West and Harrison, chapter 2)
- Updating equations: Kalman Filter
- Discount factor as an aid to choose W
- Incorporate external information: Intervention
General form of the DLM Examples Concluding remarks
Dias 3Introduction to the DLM
A Simple DLM Time series Yt = (y1, ... , yn) Observation equation: yt = µt + vt, vt ∼ N(0, Vt)
- Like before: vt = es + eo
- The symbol µt is the underlying true value at time t.
System equation: µt = µt-1 + wt, wt ∼ N(0, Wt) The true value is not any longer assumed to be constant. A fair assumption in animal production Basically, we wish to detect ”large” changes in µt
Dias 4Introduction to the DLM
A DLM with a trend Time series Yt = (y1, ... , yn) Observation equation: yt = µt + vt, vt ∼ N(0, Vt) System equation: µt = µt-1 + βt-1 + w1t, w1t ∼ N(0, W1t) βt = βt-1 + w2t, w2t ∼ N(0, W2t)
Dias 5Introduction to the DLM
Updating equations: Kalman Filter (a) Posterior for µt-1 : (µt-1 | Dt-1) ∼ N(mt-1, Ct-1) (b) Prior for µt : (µt | Dt-1) ∼ N(mt-1, Rt) where Rt = Ct-1 + Wt (c) 1-step forecast: (Yt | Dt-1) ∼ N(ft, Qt) where ft = mt-1 and Qt = Rt + Vt (d) Posterior for µt : (µt | Dt) ∼ N(mt, Ct) with mt = mt-1 + At.et and Ct = At.Vt where At = Rt / Qt and et = Yt - ft Initial Information: (µ0 | D0) ∼ N(m0, C0)
Dias 6Introduction to the DLM
Discount factor as an aid to choosing Wt To run the model (assume with constant parameters) we need: m0 , C0 , V, W Discount factor can be used if W is unknown we know that W is a fixed proportion of C (West & Harrison 2.4.2) Rt = Ct-1 + W → Rt = Ct-1 / δ Typically 0.8 < δ < 1