A Bayesian Analysis of Unobserved Component Models Using Ox
Charles S. Bos
VU University Amsterdam
March 2, 2011
Tinbergen Institute Discussion Paper No. 11-048/4
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, C87working papers series
Date posted: March 4, 2011
© 2014 Social Science Electronic Publishing, Inc. All Rights Reserved.
This page was processed by apollo1 in 0.266 seconds