Working Paper

On Bayesian Filtering for Markov Regime Switching Models

Nigar Hashimzade, Oleg Kirsanov, Tatiana Kirsanova, Junior Maih
CESifo, Munich, 2024

CESifo Working Paper No. 10941

This paper presents a framework for empirical analysis of dynamic macroeconomic models using Bayesian filtering, with a specific focus on the state-space formulation of New Keynesian Dynamic Stochastic General Equilibrium (NK DSGE) models with multiple regimes. We outline the theoretical foundations of model estimation, provide the details of two families of powerful multiple-regime filters, IMM and GPB, and construct corresponding multiple-regime smoothers. A simulation exercise, based on a prototypical NK DSGE model, is used to demonstrate the computational robustness of the proposed filters and smoothers and evaluate their accuracy and speed. We show that the canonical IMM filter is faster than the commonly used Kim and Nelson (1999) filter and is no less, and often more, accurate. Using it with the matching smoother improves the precision in recovering unobserved variables by about 25%. Furthermore, applying it to the U.S. 1947-2023 macroeconomic time series, we successfully identify significant past policy shifts including those related to the post-Covid-19 period. Our results demonstrate the practical applicability and potential of the proposed routines in macroeconomic analysis.

CESifo Category
Monetary Policy and International Finance
Empirical and Theoretical Methods
Keywords: Markov switching models, filtering, smoothing
JEL Classification: C110, C320, C540, E520