Previous Article in Journal
Smarter Chains, Safer Medicines: From Predictive Failures to Algorithmic Fixes in Global Pharmaceutical Logistics
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

A Bayesian Markov Switching Autoregressive Model with Time-Varying Parameters for Dynamic Economic Forecasting

by
Syarifah Inayati
1,
Nur Iriawan
2,*,
Irhamah
2 and
Uha Isnaini
3
1
Department of Statistics, Faculty of Mathematics and Natural Sciences, Universitas Negeri Yogyakarta, Yogyakarta 55281, Indonesia
2
Department of Statistics, Faculty of Science and Data Analytics, Institut Teknologi Sepuluh Nopember, Surabaya 60111, Indonesia
3
Department of Mathematics, Faculty of Mathematics and Natural Sciences, Universitas Gadjah Mada, Yogyakarta 55281, Indonesia
*
Author to whom correspondence should be addressed.
Forecasting 2025, 7(4), 79; https://doi.org/10.3390/forecast7040079
Submission received: 24 October 2025 / Revised: 6 December 2025 / Accepted: 15 December 2025 / Published: 17 December 2025

Abstract

This research tackles the challenge of forecasting nonlinear time series data with stochastic structural variations by proposing the Markov switching autoregressive model with time-varying parameters (MSAR-TVP). Although effective in modeling dynamic regime transitions, the Classical MSAR-TVP faces challenges with complex datasets. To address these issues, a Bayesian MSAR-TVP framework was developed, incorporating flexible parameters that adapt dynamically across regimes. The model was tested on two periods of U.S. real GNP data: a historically stable segment (1952–1986) and a more complex, modern segment that includes more economic volatility (1947–2024). The Bayesian MSAR-TVP demonstrated superior performance in handling complex datasets, particularly in out-of-sample forecasting, outperforming the Bayesian AR-TVP, Classical MSAR-TVP, and Classical MSAR models, as evaluated by mean absolute percentage error (MAPE) and mean absolute error (MAE). For in-sample data, the Classical MSAR-TVP retained its stability advantage. These findings highlight the Bayesian MSAR-TVP’s ability to address parameter uncertainty and adapt to data fluctuations, making it highly effective for forecasting dynamic economic cycles. Additionally, the two-year forecast underscores its practical utility in predicting economic cycles, suggesting continued expansion. This reinforces the model’s significance for economic forecasting and strategic policy formulation.
Keywords: Bayesian MSAR-TVP; economic forecasting; Gibbs sampling; Kim filter; Markov switching; time-varying parameters Bayesian MSAR-TVP; economic forecasting; Gibbs sampling; Kim filter; Markov switching; time-varying parameters

Share and Cite

MDPI and ACS Style

Inayati, S.; Iriawan, N.; Irhamah; Isnaini, U. A Bayesian Markov Switching Autoregressive Model with Time-Varying Parameters for Dynamic Economic Forecasting. Forecasting 2025, 7, 79. https://doi.org/10.3390/forecast7040079

AMA Style

Inayati S, Iriawan N, Irhamah, Isnaini U. A Bayesian Markov Switching Autoregressive Model with Time-Varying Parameters for Dynamic Economic Forecasting. Forecasting. 2025; 7(4):79. https://doi.org/10.3390/forecast7040079

Chicago/Turabian Style

Inayati, Syarifah, Nur Iriawan, Irhamah, and Uha Isnaini. 2025. "A Bayesian Markov Switching Autoregressive Model with Time-Varying Parameters for Dynamic Economic Forecasting" Forecasting 7, no. 4: 79. https://doi.org/10.3390/forecast7040079

APA Style

Inayati, S., Iriawan, N., Irhamah, & Isnaini, U. (2025). A Bayesian Markov Switching Autoregressive Model with Time-Varying Parameters for Dynamic Economic Forecasting. Forecasting, 7(4), 79. https://doi.org/10.3390/forecast7040079

Article Metrics

Article metric data becomes available approximately 24 hours after publication online.
Back to TopTop