Tinbergen Institute Discussion Paper No. 11-048/4
Posted: 4 Mar 2011
Date Written: March 2, 2011
This article details a Bayesian analysis of the Nile river flow data, using a simple state space model. This allows the article to concentrate on implementation issues surrounding this model. For this data set, Metropolis-Hastings and Gibbs sampling algorithms are implemented in the programming language Ox. The Markov chain Monte Carlo methods only provide output conditioned upon the full data set. For filtered output, conditioning only on past observations, the particle filter is introduced. The sampling methods are flexible, and this advantage is used to extend the model to incorporate a stochastic volatility process. The volatility changes both in the Nile data, and for comparison also in daily S&P 500 return data, are investigated. The posterior density of parameters and states is found to provide information on which elements of the model are easily identifiable, and which elements are estimated with less precision.
Keywords: State Space Methods, Unobserved Components, Bayes, Stochastic Volatility
JEL Classification: C11, C22, C52, C87
Suggested Citation: Suggested Citation
Bos, Charles S., A Bayesian Analysis of Unobserved Component Models Using Ox (March 2, 2011). Tinbergen Institute Discussion Paper No. 11-048/4. Available at SSRN: https://ssrn.com/abstract=1776046 or http://dx.doi.org/10.2139/ssrn.1776046