Ass5 DLM Intro
Ass5 DLM Intro
• Exercise.
Consider the Nile data (measurements of the annual ow of the river Nile at Ashwan 1871-1970),
available in R (> ?Nile).
First, plot the data. The series clearly appears non-stationary, presenting a quite evident change
point. A local level model, i.e. a random walk plus noise, can be used to capture the main change
point, and other minor changes in the level of the Nile river. Let us consider the following random
walk plus noise model
yt = θt + vt , vt ∼ N (0, 15100)
θt = θt−1 + wt , wt ∼ N (0, 1470)
where we xed V = 15100, W = 1470. In fact, the variances V and W will have to be estimated
(next assignment). As the initial distribution, let θ0 ∼ N (1000, 1000).