Modeling and Forecasting LQ45 Stock Index Dynamics with a Hidden Markov Model
Downloads
Investing has become increasingly popular with the advancement of digital technology. A thriving stock market, reflecting strong investor confidence and capital formation, often serves as a leading indicator of robust economic growth. One of the main indicators used in evaluating the performance of the Indonesian stock market is the LQ45 index on the Indonesia Stock Exchange (IDX). The objective of this research is to determine the predictive capability of the LQ45 stock index in identifying buying and selling opportunities. This research employs the hidden Markov model method, which has the ability to capture unobservable observations and predict the uncertainty that occurs. The research, which utilized training data in 2023, made predictions for the first quarter of 2024. The results of the model were evaluated using a paired t-test with a significance value of 5%, obtaining a p-value of 0.51747 for the Open index, 0.28551 for Close, and not significant for High and Low. These values indicate that there is no difference between actual data and predicted data on Open and Close data. Applying a Hidden Markov Model (HMM) to LQ45 stock analysis offers a significant improvement over traditional Markov Chain methods by accounting for the unobservable factors that influence stock prices.
Downloads
[1] Verma, P., Dumka, A., Bhardwaj, A., Ashok, A., Kestwal, M. C., & Kumar, P. (2021). A Statistical Analysis of Impact of COVID19 on the Global Economy and Stock Index Returns. SN Computer Science, 2(1), 1-13. doi:10.1007/s42979-020-00410-w.
[2] Gavrilakis, N., & Floros, C. (2023). ESG performance, herding behavior and stock market returns: evidence from Europe. Operational Research, 23(1), 3. doi:10.1007/s12351-023-00745-1.
[3] Goldstein, I. (2023). Information in Financial Markets and Its Real Effects. Review of Finance, 27(1), 1–32. doi:10.1093/rof/rfac052.
[4] Rantini, D., Fakhruzzaman, M. N., Ningrum, R. A., Othman, F., Choir, A. S., Ramadan, A., Alya, N. A., Putri, E. R., & Pratama, M. A. (2024). Modeling the Percentage of NEET in Indonesia with Spatial Cauchy Regression through the Bayesian Analysis Approach. IAENG International Journal of Applied Mathematics, 54(7), 1288–1295.
[5] Alya, N. A., Almaulidiyah, Q., Farouk, B. R., Rantini, D., Ramadan, A., & Othman, F. (2024). Comparison of Geographically Weighted Regression (GWR) and Mixed Geographically Weighted Regression (MGWR) Models on the Poverty Levels in Central Java in 2023. IAENG International Journal of Applied Mathematics, 54(12), 2746–2757.
[6] Simahatie, M., & Inuzula, L. (2022). Effect of Fundamental Factors on Stock Return (On LQ-45 Index Companies in Indonesia Stock Exchange 2017-2020). Journal of Accounting Research, Utility Finance and Digital Assets, 1(1), 11–18. doi:10.54443/jaruda.v1i1.2.
[7] Wen, X., & Li, W. (2023). Time Series Prediction Based on LSTM-Attention-LSTM Model. IEEE Access, 11, 48322–48331. doi:10.1109/ACCESS.2023.3276628.
[8] Jallow, M. A., Weke, P., Nafiu, L. A., & Ogutu, C. (2021). Application of a Discrete-Time Semi-Markov Model to the Stochastic Forecasting of Capital Assets as Stock. Far East Journal of Theoretical Statistics, 63(1), 1–18. doi:10.17654/TS063010001.
[9] Sarsour, W. M., & Sabri, S. R. M. (2020). Forecasting the long-run behavior of the stock price of some selected companies in the Malaysian construction sector: A Markov chain approach. International Journal of Mathematical, Engineering and Management Sciences, 5(2), 296–308. doi:10.33889/IJMEMS.2020.5.2.024.
[10] Ayo, A. S., & Uwabor, E. S. (2021). Markovian Approach to Stock Price Modelling in the Nigerian Oil and Gas Sector. Central Bank of Nigeria Journal of Applied Statistics, 12(1), 23–43. doi:10.33429/cjas.12121.2/6.
[11] Lakshmi, G., & Jyothi, M. (2020). Application of Markov process for prediction of stock market performance. International Journal of Recent Technology and Engineering (IJRTE), 8(6), 1516–1519. doi:10.35940/ijrte.f7784.038620.
[12] Zakaria, N. N., Othman, M., Sokkalingam, R., Daud, H., Abdullah, L., & Kadir, E. A. (2019). Markov chain model development for forecasting air pollution index of miri, Sarawak. Sustainability (Switzerland), 11(19), 5190. doi:10.3390/su11195190.
[13] Rao Padi, T., Farooq Dar, G., & Rekha, S. (2022). Stock Market Trend Analysisand Prediction using Markov Chain Approach in the Context of Indian Stock Market. IOSR Journal of Mathematics, 18(4), 40–48. www.iosrjournals.org
[14] Yang, C. H., Lee, B., Lee, Y. I., Chung, Y. F., & Lin, Y. Da. (2025). An autoencoder-based arithmetic optimization clustering algorithm to enhance principal component analysis to study the relations between industrial market stock indices in real estate. Expert Systems with Applications, 266, 126165. doi:10.1016/j.eswa.2024.126165.
[15] Adlakha, N., Ridhima, & Katal, A. (2021). Real Time Stock Market Analysis. 2021 International Conference on System, Computation, Automation and Networking, ICSCAN 2021, 1–5. doi:10.1109/ICSCAN53069.2021.9526506.
[16] Ayala, J., García-Torres, M., Noguera, J. L. V., Gómez-Vela, F., & Divina, F. (2021). Technical analysis strategy optimization using a machine learning approach in stock market indices [Formula presented]. Knowledge-Based Systems, 225, 107119. doi:10.1016/j.knosys.2021.107119.
[17] Syukur, A., & Istiawan, D. (2020). Prediction of LQ45 Index in Indonesia Stock Exchange: A Comparative Study of Machine Learning Techniques. International Journal of Intelligent Engineering and Systems, 14(1), 453–463. doi:10.22266/IJIES2021.0228.42.
[18] Zhang, J., Wang, J., & Kongruang, C. (2025). Empirical Analysis of Executive Capital, Innovation, and Risk-Taking in A-Share Tech Firms. Emerging Science Journal, 9(3), 1610–1631. doi:10.28991/ESJ-2025-09-03-024.
[19] Anand, S. K., & Kumar, S. (2023). Experimental Comparisons of Clustering Approaches for Data Representation. ACM Computing Surveys, 55(3), 1–33. doi:10.1145/3490384.
[20] Hasan, B. M. S., & Abdulazeez, A. M. (2021). A Review of Principal Component Analysis Algorithm for Dimensionality Reduction. Journal of Soft Computing and Data Mining, 2(1), 20–30. doi:10.30880/jscdm.2021.02.01.003.
[21] Ahmed, D. M., Hassan, M. M., & Mstafa, R. J. (2022). A Review on Deep Sequential Models for Forecasting Time Series Data. Applied Computational Intelligence and Soft Computing, 6596397. doi:10.1155/2022/6596397.
[22] Bemporad, A. (2023). A Piecewise Linear Regression and Classification Algorithm with Application to Learning and Model Predictive Control of Hybrid Systems. IEEE Transactions on Automatic Control, 68(6), 3194–3209. doi:10.1109/TAC.2022.3183036.
[23] Salman, H. A., Kalakech, A., & Steiti, A. (2024). Random Forest Algorithm Overview. Babylonian Journal of Machine Learning, 2024, 69–79. doi:10.58496/BJML/2024/007.
[24] Glennie, R., Adam, T., Leos-Barajas, V., Michelot, T., Photopoulou, T., & McClintock, B. T. (2023). Hidden Markov models: Pitfalls and opportunities in ecology. Methods in Ecology and Evolution, 14(1), 43–56. doi:10.1111/2041-210X.13801.
[25] Indrayana, K., Hamzah, D., & Aswan, A. (2020). The Effect of Net Income, Equity, Cash Dividend, Average Price and Volume to Corporate Market Capitalization Stocks in LQ45 Index of Indonesia Stock Exchange Period 2008 – 2018. Hasanuddin Journal of Applied Business and Entrepreneurship, 3(4), 117–135. doi:10.26487/hjabe.v3i4.382.
[26] Sivakumar, G. (2025). HMM-LSTM fusion model for economic forecasting. arXiv Preprint, arXiv:2501.02002. doi:10.48550/arXiv.2501.02002.
[27] Khazaeiathar, M., & Schmalz, B. (2025). Addressing Volatility and Nonlinearity in Discharge Modeling: ARIMA-iGARCH for Short-Term Hydrological Time Series Simulation. Hydrology, 12(8), 197. doi:10.3390/hydrology12080197.
[28] Solihin, I., Sugiarto, S., Ugut, G. S. S., & Hulu, E. (2022). LQ45 Stock Index Abnormal Return Reaction to the Covid-19 Pandemic: the Even Study Methodology. Indonesian Interdisciplinary Journal of Sharia Economics, 5(1), 342–355. doi:10.31538/iijse.v5i1.2051.
[29] Qin, X. (2025). Application of Deep Learning for Stock Prediction within the Framework of Portfolio Optimization in Quantitative Trading. HighTech and Innovation Journal, 6(2), 598–614. doi:10.28991/HIJ-2025-06-02-016.
[30] Pradana, B. L. (2025). Time Series Forecasting of LQ45 Stock Index Using ARIMA: Insights and Implications. Review of Management, Accounting and Tourism Studies, 1(1), 27-40.
[31] Hidayat, A., & Suhendri, A. P. P. (2025). Comparative Analysis of Machine Learning Algorithms for Predicting LQ45 Stock Index Prices. bit-Tech, 8(1), 1099-1108. doi:10.32877/bt.v8i1.2853.
[32] Reyzan S.A, A., & Abdurrohim, A. (2025). The Effect of Current Ratio and Debt to Equity Ratio on Company Value Mediated by Return on Assets in the Mining Sector Listed on the LQ45 Index for the Period 2019-2023. Formosa Journal of Applied Sciences, 4(8), 2723–2742. doi:10.55927/fjas.v4i8.307.
[33] Arief, F., & Hidayat, R. A. (2025). Analysis of the Influence of Bitcoin and Macroeconomic Fundamentals on the LQ45 Index for the 2018-2022 Period. International Journal of Business and Applied Economics, 4(3), 1059–1076. doi:10.55927/ijbae.v4i3.105.
[34] Astuti, T. H., & Pramuditha Dwi Anggraini. (2025). Risk Analysis of Single Stocks and Portfolios in Lq45 Index. Journal of Economic and Economic Policy, 2(4), 422–430. doi:10.61796/ijecep.v2i4.82.
[35] El-Awady, A., & Ponnambalam, K. (2021). Integration of simulation and Markov Chains to support Bayesian Networks for probabilistic failure analysis of complex systems. Reliability Engineering and System Safety, 211, 107511. doi:10.1016/j.ress.2021.107511.
[36] Liao, T. F., Zhao, W., Hackney, J., Tang, H., Xu, H., & He, J. Sequence analysis: Its past, present, and future. Social Science Research, 107, 102772.
[37] Stewart, W. J. (2021). Introduction to the Numerical Solution of Markov Chains. Princeton University Press, Princeton, New Jersey, United States. doi:10.2307/j.ctv182jsw5.
[38] Zhao, C., Hu, P., Liu, X., Lan, X., & Zhang, H. (2023). Stock Market Analysis Using Time Series Relational Models for Stock Price Prediction. Mathematics, 11(5), 1130. doi:10.3390/math11051130.
[39] Musaev, A., Makshanov, A., & Grigoriev, D. (2023). The Genesis of Uncertainty: Structural Analysis of Stochastic Chaos in Finance Markets. Complexity, 1302220. doi:10.1155/2023/1302220.
[40] Seabrook, E., & Wiskott, L. (2023). A Tutorial on the Spectral Theory of Markov Chains. Neural Computation, 35(11), 1713–1796. doi:10.1162/neco_a_01611.
[41] Palupi, I., Wahyudi, B. A., & Putra, A. P. (2021). Implementation of Hidden Markov Model (HMM) to Predict Financial Market Regime. 2021 9th International Conference on Information and Communication Technology, ICoICT 2021, 639–644. doi:10.1109/ICoICT52021.2021.9527459.
[42] Eddy, S. R. (1996). Hidden Markov models. Current opinion in structural biology, 6(3), 361-365. doi:10.1016/S0959-440X(96)80056-X.
[43] Boyko, J. D., & Beaulieu, J. M. (2021). Generalized hidden Markov models for phylogenetic comparative datasets. Methods in Ecology and Evolution, 12(3), 468–478. doi:10.1111/2041-210X.13534.
[44] Trichilli, Y., Boujelbène Abbes, M., & Masmoudi, A. (2020). Predicting the effect of Googling investor sentiment on Islamic stock market returns: A five-state hidden Markov model. International Journal of Islamic and Middle Eastern Finance and Management, 13(2), 165–193. doi:10.1108/IMEFM-07-2018-0218.
[45] Bhar, R., & Hamori, S. (2004). Linking Inflation and Inflation Uncertainty: Hidden Markov models: applications to financial economics. Springer, Boston, United States. doi:10.1007/1-4020-7940-0_5.
[46] Boutazart, Y., Ezzine, A., & Satori, H. (2024). A Rich and Balanced MSA Corpus for HMM-Based Consonant-Vowel Segmentation. 2024 3rd International Conference on Embedded Systems and Artificial Intelligence, ESAI 2024, 1–14. doi:10.1109/ESAI62891.2024.10913508.
[47] Pereira, D., Nunes, C., & Rodrigues, R. (2024). A new algorithm for inference in HMM’s with lower span complexity. Computational Statistics and Data Analysis, 195, 107955. doi:10.1016/j.csda.2024.107955.
[48] Zhang, Y. M., Wang, H., Wan, H. P., Mao, J. X., & Xu, Y. C. (2021). Anomaly detection of structural health monitoring data using the maximum likelihood estimation-based Bayesian dynamic linear model. Structural Health Monitoring, 20(6), 2936–2952. doi:10.1177/1475921720977020.
[49] Singh, R., Zhang, Q., & Chen, Y. (2022). Learning hidden Markov models from aggregate observations. Automatica, 137, 110100. doi:10.1016/j.automatica.2021.110100.
[50] Lee, S. W. (2022). Methods for testing statistical differences between groups in medical research: statistical standard and guideline of Life Cycle Committee. Life Cycle, 2. doi:10.54724/lc.2022.e1.
[51] Afifah, S., Mudzakir, A., & Nandiyanto, A. B. D. (2022). How to Calculate Paired Sample t-Test using SPSS Software: From Step-by-Step Processing for Users to the Practical Examples in the Analysis of the Effect of Application Anti-Fire Bamboo Teaching Materials on Student Learning Outcomes. Indonesian Journal of Teaching in Science, 2(1), 81–92. doi:10.17509/ijotis.v2i1.45895.
[52] Sutherland, C., Hare, D., Johnson, P. J., Linden, D. W., Montgomery, R. A., & Droge, E. (2023). Practical advice on variable selection and reporting using Akaike information criterion. Proceedings of the Royal Society B: Biological Sciences, 290(2007), 20231261. doi:10.1098/rspb.2023.1261.
[53] Diaz Rubio, G. A. (2022). Model selection and the vectorial misspecification-resistant information criterion in multivariate time series. Dissertation thesis, Alma Mater Studiorum Università di Bologna, Bologna, Italy. doi:10.48676/unibo/amsdottorato/10488.
[54] Zhang, J., Yang, Y., & Ding, J. (2023). Information criteria for model selection. Wiley Interdisciplinary Reviews: Computational Statistics, 15(5), 1607. doi:10.1002/wics.1607.
[55] Hansun, S., & Young, J. C. (2021). Predicting LQ45 financial sector indices using RNN-LSTM. Journal of Big Data, 8(1), 104. doi:10.1186/s40537-021-00495-x.
[56] Wibisono, S. S., Leviana, K., Muliadiredja, T. S., Margaretha, H., Ferdinand, F. V., & Utomo, J. (2024). Stock Price Prediction on LQ45’s Banking Sector Using Long-Short-Term Memory and Convolutional Neural Network. Proceedings - 2024 2nd International Conference on Technology Innovation and Its Applications, ICTIIA 2024, 1–5. doi:10.1109/ICTIIA61827.2024.10761865.
[57] Adiatmaja, G., & Indraswari, R. (2024). Comparative Analysis of LSTM and GRU Models for Indonesian Stock Price Prediction with Integrated Technical and Fundamental Indicators. 2024 International Conference on Information Technology Systems and Innovation, ICITSI 2024 - Proceedings, 206–211. doi:10.1109/ICITSI65188.2024.10929370.
- The authors retain all copyrights. It is noticeable that authors will not be forced to sign any copyright transfer agreements.
- This work (including HTML and PDF Files) is licensed under a Creative Commons Attribution 4.0 International License.















