R-Shiny Web Application Development for Multilayer Perceptron State Switching Model for Predicting Regimes of Time Series Returns
DOI:
https://doi.org/10.54536/ajsts.v4i2.5956Keywords:
Financial Time Series Returns, Markov Process, MLPSSM, R Shiny, Regime SwitchingAbstract
Forecasting regimes in financial time series is complicated by nonlinearity and small-sample limitations, where conventional Markov Switching Models (MSMs) and regime-switching autoregressive models often underperform. To address this, we developed an interactive R-Shiny Web Application implementing the recently introduced Multilayer Perceptron State Switching Model (MLPSSM). The app integrates neural networks to capture nonlinear intra-regime patterns with Markov switching structures to identify latent regime transitions. Using Nigerian exchange rate returns as a case study, the app demonstrated robust performance across diagnostics, estimation, and forecasting. Residual checks confirmed that the hybrid approach effectively modeled underlying dynamics, while forecasts achieved lower RMSE and MAE than baseline MSMs. The web-based interface further enhances accessibility, enabling both technical and non-specialist users to apply advanced regime-switching methods without coding expertise. The MLPSSM Web App thus bridges machine learning and econometric modeling, offering a practical, reproducible tool for regime prediction in financial markets.
Downloads
References
Adejumo, O. A., Asemota, O. J. & Olanrewaju, S. O. (2025). Novel Neural Network State Switching Models for Returns Predicting with Regime Switching: A Monte Carlo’s Simulation Approach. American Journal of Applied Statistics and Economics, 4(1).
Ang, A., & Timmermann, A. (2012). Regime changes and financial markets. Annual Review of Financial Economics, 4, 313–337.
Chambers, J. M., & Hastie, T. J. (1992). Statistical models in S. Wadsworth & Brooks/Cole.
Chauvet, M., & Potter, S. (2000). Coincident and leading indicators of the stock market. Journal of Empirical Finance, 7(1), 87–111.
Cruz, T., Jimenez, F. G., Bravo, A. R. Q., & Ander, E. (2023). DataXploreFines: Generalized Data for Informed Decision, Making, An Interactive Shiny Application for Data Analysis and Visualization. arXiv preprint arXiv:2307.11056.
Hamilton, J. D. (1989). A new approach to the economic analysis of nonstationary time series and the business cycle. Econometrica, 57(2), 357–384. https://doi.org/10.2307/1912559
Hamilton, J. D., & Susmel, R. (1994). Autoregressive conditional heteroskedasticity and changes in regime. Journal of Econometrics, 64(1–2), 307–333. https://doi.org/10.1016/0304-4076(94)90067-1
Krolzig, H.-M. (1997). Markov-switching vector autoregressions: Modelling, statistical inference, and application to business cycle analysis. Springer.
Maheu, J. M., & McCurdy, T. H. (2000). Identifying bull and bear markets in stock returns. Journal of Business & Economic Statistics, 18(1), 100–112. https://doi.org/10.1080/07350015.2000.10524846
Psaradakis, Z., & Spagnolo, N. (2003). On the determination of the number of regimes in Markov-switching autoregressive models. Journal of Time Series Analysis, 24(2), 237–252.
Varian, H. R. (2014). Big data: New tricks for econometrics. Journal of Economic Perspectives, 28(2), 3–28. https://doi.org/10.1257/jep.28.2.3
Yao, J., Tan, C. L., & Poh, H. L. (1999). Neural networks for technical analysis: A study on KLCI. International Journal of Theoretical and Applied Finance, 2(2), 221–241.
Zhang, G., Patuwo, B. E., & Hu, M. Y. (1998). Forecasting with artificial neural networks: The state of the art. International Journal of Forecasting, 14(1), 35–62.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Oluwasegun Agbailu Adejumo, Omorogbe Joseph Asemota, Samuel Olayemi Olanrewaju

This work is licensed under a Creative Commons Attribution 4.0 International License.