This is an example of a simple particle filter, taken from Durbin and Koopman's 2nd edition. DURK2P284.RPF does a local level model for the Nile River flow data using Kalman filtering, a very naive bootstrap particle filter (a "how not to do this" example) and a more accurately done bootstrap filter with resampling. DURK2P288.RPF uses a more efficient auxiliary particle filter.
These are for illustration, since the model can be analyzed exactly using the Kalman filter.
These are covered in considerable detail as part of the 2nd Edition of the State-Space/DSGE e-course.
Particle filter
Particle filter
Last bumped by TomDoan on Thu Aug 31, 2017 11:57 am.