Particle filter

Use this forum for posting example programs or short bits of sample code.
Post Reply
TomDoan
Posts: 7822
Joined: Wed Nov 01, 2006 4:36 pm

Particle filter

Post by TomDoan »

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.
durk2p284.rpf
Basic particle filter
(4.72 KiB) Downloaded 899 times
durk2p288.rpf
Auxiliary particle filter
(3.58 KiB) Downloaded 864 times
nile.dat
Data file
(655 Bytes) Downloaded 976 times


Last bumped by TomDoan on Thu Aug 31, 2017 11:57 am.
Post Reply