IDEAS home Printed from https://ideas.repec.org/p/gla/glaewp/2024_01.html

On Bayesian Filtering for Markov Regime Switching Models

Author

Listed:
  • Nigar Hashimzade
  • Oleg Kirsanov
  • Tatiana Kirsanova
  • Junior Maih

Abstract

This paper presents a framework for empirical analysis of dynamic macroeconomic models using Bayesian filltering, with a specific focus on the state-space formulation of New Keynesian Dynamic Stochastic General Equilibrium (NKDSGE) 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.

Suggested Citation

  • Nigar Hashimzade & Oleg Kirsanov & Tatiana Kirsanova & Junior Maih, 2024. "On Bayesian Filtering for Markov Regime Switching Models," Working Papers 2024_01, Business School - Economics, University of Glasgow.
  • Handle: RePEc:gla:glaewp:2024_01
    as

    Download full text from publisher

    File URL: https://www.gla.ac.uk/media/Media_1041524_smxx.pdf
    Download Restriction: no
    ---><---

    Other versions of this item:

    References listed on IDEAS

    as
    1. Fernández-Villaverde, Jesús & Guerrón-Quintana, Pablo & Rubio-Ramírez, Juan F., 2015. "Estimating dynamic equilibrium models with stochastic volatility," Journal of Econometrics, Elsevier, vol. 185(1), pages 216-229.
    2. Chang, Yoosoon & Maih, Junior & Tan, Fei, 2021. "Origins of monetary policy shifts: A New approach to regime switching in DSGE models," Journal of Economic Dynamics and Control, Elsevier, vol. 133(C).
    3. Hilde C. Bjørnland & Vegard H. Larsen & Junior Maih, 2018. "Oil and Macroeconomic (In)stability," American Economic Journal: Macroeconomics, American Economic Association, vol. 10(4), pages 128-151, October.
    4. Sims, Christopher A. & Waggoner, Daniel F. & Zha, Tao, 2008. "Methods for inference in large multiple-equation Markov-switching models," Journal of Econometrics, Elsevier, vol. 146(2), pages 255-274, October.
    5. Xiaoshan Chen & Eric M. Leeper & Campbell Leith, 2022. "Strategic interactions in U.S. monetary and fiscal policies," Quantitative Economics, Econometric Society, vol. 13(2), pages 593-628, May.
    6. Francesco Bianchi, 2012. "Evolving Monetary/Fiscal Policy Mix in the United States," American Economic Review, American Economic Association, vol. 102(3), pages 167-172, May.
    7. Troy Davig & Taeyoung Doh, 2014. "Monetary Policy Regime Shifts and Inflation Persistence," The Review of Economics and Statistics, MIT Press, vol. 96(5), pages 862-875, December.
    8. Andrew Binning & Junior Maih, 2015. "Sigma Point Filters For Dynamic Nonlinear Regime Switching Models," Working Papers No 4/2015, Centre for Applied Macro- and Petroleum economics (CAMP), BI Norwegian Business School.
    9. Francesco Bianchi & Leonardo Melosi, 2017. "Escaping the Great Recession," American Economic Review, American Economic Association, vol. 107(4), pages 1030-1058, April.
    10. Zheng Liu & Pengfei Wang & Tao Zha, 2013. "Land‐Price Dynamics and Macroeconomic Fluctuations," Econometrica, Econometric Society, vol. 81(3), pages 1147-1184, May.
    11. Hamilton, James D, 1989. "A New Approach to the Economic Analysis of Nonstationary Time Series and the Business Cycle," Econometrica, Econometric Society, vol. 57(2), pages 357-384, March.
    12. Andrew Binning & Junior Maih, 2015. "Sigma point filters for dynamic nonlinear regime switching models," Working Paper 2015/10, Norges Bank.
    13. Kim, Chang-Jin, 1994. "Dynamic linear models with Markov-switching," Journal of Econometrics, Elsevier, vol. 60(1-2), pages 1-22.
    14. Durbin, James & Koopman, Siem Jan, 2012. "Time Series Analysis by State Space Methods," OUP Catalogue, Oxford University Press, edition 2, number 9780199641178.
    15. Chang-Jin Kim & Charles R. Nelson, 1999. "State-Space Models with Regime Switching: Classical and Gibbs-Sampling Approaches with Applications," MIT Press Books, The MIT Press, edition 1, volume 1, number 0262112388, December.
    16. Chen, Xiaoshan & Kirsanova, Tatiana & Leith, Campbell, 2017. "How optimal is US monetary policy?," Journal of Monetary Economics, Elsevier, vol. 92(C), pages 96-111.
    17. Junior Maih, 2015. "Efficient perturbation methods for solving regime-switching DSGE models," Working Paper 2015/01, Norges Bank.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Christoffel, Kai & Farkas, Mátyás, 2025. "Managing the risks of inflation expectation de-anchoring," Working Paper Series 3082, European Central Bank.
    2. Tatiana Kirsanova & Øyvind Masst & Charles Nolan, 2025. "Searching for flexibility: The Joint Impact of Thatcher’s Reforms of UK Labour and Housing Markets," Working Papers 2025_13, Business School - Economics, University of Glasgow.
    3. Junior Maih & Nigar Hashimzade & Oleg Kirsanov & Tatiana Kirsanova, 2026. "Markov-Switching DSGE Modeling in RISE," Working Papers 2026_01, Business School - Economics, University of Glasgow.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Shayan Zakipour-Saber, 2019. "Monetary policy regimes and inflation persistence in the United Kingdom," Working Papers 895, Queen Mary University of London, School of Economics and Finance.
    2. Gianluca Benigno & Andrew Foerster & Christopher Otrok & Alessandro Rebucci, 2025. "Estimating macroeconomic models of financial crises: An endogenous regime‐switching approach," Quantitative Economics, Econometric Society, vol. 16(1), pages 1-47, January.
    3. Chang, Yoosoon & Maih, Junior & Tan, Fei, 2021. "Origins of monetary policy shifts: A New approach to regime switching in DSGE models," Journal of Economic Dynamics and Control, Elsevier, vol. 133(C).
    4. Stéphane Lhuissier & Fabien Tripier, 2021. "Regime‐dependent effects of uncertainty shocks: A structural interpretation," Quantitative Economics, Econometric Society, vol. 12(4), pages 1139-1170, November.
    5. Omotosho, Babatunde S. & Yang, Bo, 2024. "Oil price shocks and macroeconomic dynamics in resource-rich emerging economies under regime shifts," Journal of International Money and Finance, Elsevier, vol. 144(C).
    6. Zakipour-Saber, Shayan, 2019. "State-dependent Monetary Policy Regimes," Research Technical Papers 4/RT/19, Central Bank of Ireland.
    7. Junior Maih & Nigar Hashimzade & Oleg Kirsanov & Tatiana Kirsanova, 2026. "Markov-Switching DSGE Modeling in RISE," Working Papers 2026_01, Business School - Economics, University of Glasgow.
    8. Andrew Binning & Junior Maih, 2016. "Implementing the Zero Lower Bound in an Estimated Regime-Switching DSGE Model," Working Papers No 3/2016, Centre for Applied Macro- and Petroleum economics (CAMP), BI Norwegian Business School.
    9. Yoosoon Chang & Fei Tan & Xin Wei, 2018. "State Space Models with Endogenous Regime Switching," CAEPR Working Papers 2018-012, Center for Applied Economics and Policy Research, Department of Economics, Indiana University Bloomington.
    10. Alberto Ortiz-Bolaños & Sebastián Cadavid-Sánchez & Gerardo Kattan-Rodríguez, 2018. "Targeting Long-term Rates in a Model with Financial Frictions and Regime Switching," Investigación Conjunta-Joint Research, in: Alberto Ortiz-Bolaños (ed.), Monetary Policy and Financial Stability in Latin America and the Caribbean, edition 1, volume 1, chapter 6, pages 159-219, Centro de Estudios Monetarios Latinoamericanos, CEMLA.
    11. Andrew Binning & Hilde C. Bjørnland & Junior Maih, 2019. "Is Monetary Policy Always Effective? Incomplete Interest Rate Pass-through in a DSGE Model," Working Papers No 09/2019, Centre for Applied Macro- and Petroleum economics (CAMP), BI Norwegian Business School.
    12. Andrew Foerster & Christian Matthes, 2022. "Learning About Regime Change," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 63(4), pages 1829-1859, November.
    13. Andrew Binning & Junior Maih, 2016. "Forecast uncertainty in the neighborhood of the effective lower bound: How much asymmetry should we expect?," Working Paper 2016/13, Norges Bank.
    14. Beqiraj, Elton & Patella, Valeria & Tancioni, Massimiliano, 2021. "Fiscal stance and the sovereign risk pass-through," Economic Modelling, Elsevier, vol. 102(C).
    15. Lhuissier, Stéphane, 2018. "The Regime-Switching Volatility Of Euro Area Business Cycles," Macroeconomic Dynamics, Cambridge University Press, vol. 22(2), pages 426-469, March.
    16. Satoshi Tezuka & Yoichi Matsubayashi, 2018. "Credit Spread, Financial Market and Real Activities under Financial Instability: Empirical Evidence with MS-SBVAR," Discussion Papers 1812, Graduate School of Economics, Kobe University.
    17. Yoosoon Chang & Junior Maih & Fei Tan, 2018. "State Space Models with Endogenous Regime Switching," Working Papers No 9/2018, Centre for Applied Macro- and Petroleum economics (CAMP), BI Norwegian Business School.
    18. Stéphane Lhuissier & Fabien Tripier, 2016. "Do Uncertainty Shocks Always Matter for Business Cycles?," Working Papers 2016-19, CEPII research center.
    19. Tatiana Kirsanova & Campbell Leith & Ding Liu, 2024. "Central Bank Independence, Government Debt and the Re-Normalization of Interest Rates," Working Papers 2024_10, Business School - Economics, University of Glasgow.
    20. Mao, Ruoyun & Shen, Wenyi & Yang, Shu-Chun S., 2024. "Can passive monetary policy decrease the debt burden?," Journal of Economic Dynamics and Control, Elsevier, vol. 159(C).

    More about this item

    Keywords

    ;
    ;
    ;

    JEL classification:

    • C11 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods and Methodology: General - - - Bayesian Analysis: General
    • C32 - Mathematical and Quantitative Methods - - Multiple or Simultaneous Equation Models; Multiple Variables - - - Time-Series Models; Dynamic Quantile Regressions; Dynamic Treatment Effect Models; Diffusion Processes; State Space Models
    • C54 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Quantitative Policy Modeling
    • E52 - Macroeconomics and Monetary Economics - - Monetary Policy, Central Banking, and the Supply of Money and Credit - - - Monetary Policy

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gla:glaewp:2024_01. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Business School Research Team (email available below). General contact details of provider: https://edirc.repec.org/data/dpglauk.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.