Short-term prediction of Indonesian gold prices using a weighted Markov chain approach
DOI:
https://doi.org/10.55749/rmm.v1i1.179Keywords:
Gold Investment, Gold price prediction, Indonesian gold price, MAPE, Weighted Markov chainAbstract
Gold is one of the most widely used investment assets because of its high economic value and relatively stable role during economic uncertainty. However, fluctuations in gold prices may affect investors’ potential gains and losses, making price prediction important as a consideration in investment decision-making. This study applies the weighted Markov chain method to predict Indonesian gold prices using weekly gold price data from January 2019 to December 2020. The data were grouped into two state classifications, namely six states and ten states, to evaluate the effect of state formation on prediction accuracy. Transition probability matrices were constructed for each classification, while the weights were determined based on autocorrelation coefficients. Prediction accuracy was evaluated using the Mean Absolute Percentage Error (MAPE). The results show that the predicted gold prices tend to remain in the same state over the prediction period. In the six-state classification, the predicted price was in state 5 with an estimated value of Rp833,701 and a MAPE of 0.66%. In the ten-state classification, the predicted price was in state 9 with an estimated value of Rp847,580 and a MAPE of 1.67%. These results indicate that the weighted Markov chain method provides very good short-term prediction accuracy. However, for longer prediction periods, the predicted values tend to become constant and are less able to capture volatile movements in actual gold prices. Therefore, the weighted Markov chain method is more suitable for short-term gold price prediction than for long-term forecasting.
References
1. Bai, C., Zhu, Q., and Sarkis, J. (2024). Do Blockchain Capabilities Help Overcome Supply and Operational Risks: Insights from Firm Market Returns during COVID-19, Omega, Vol. 126, 103049. Doi: 10.1016/j.omega.2024.103049
2. Yang, C., and Wu, H. (2021). Investor Sentiment with Information Shock in the Stock Market, Emerging Markets Finance and Trade, Vol. 57, 510–524. Doi: 10.1080/1540496X.2019.1593136
3. Kalaycı, B., Purutçuoğlu, V., and Weber, G. W. (2022). Operation Research in Neuroscience: A Recent Perspective of Operation Research Application in Finance, Operations Research, 170–190.
4. Zhou, Z., Gao, M., Xiao, H., Wang, R., and Liu, W. (2021). Big Data and Portfolio Optimization: A Novel Approach Integrating DEA with Multiple Data Sources, Omega, Vol. 104, 102479. Doi: 10.1016/j.omega.2021.102479
5. Chu, L., He, X. Z., Li, K., and Tu, J. (2022). Investor Sentiment and Paradigm Shifts in Equity Return Forecasting, Management Science, Vol. 68, No. 6, 4301–4325. Doi : 10.1287/mnsc.2020.3834
6. He, Y., Qu, L., Wei, R., and Zhao, X. (2022). Media-Based Investor Sentiment and Stock Returns: A Textual Analysis Based on Newspapers, Applied Economics, Vol. 54, 774–792. Doi: 10.1080/00036846.2021.1966369
7. Liu, Y. J., Yang, G. S., and Zhang, W. G. (2024). A Novel Regret-Rejoice Cross-Efficiency Approach for Energy Stock Portfolio Optimization, Omega, Vol. 126, 103051. Doi: 10.1016/j.omega.2024.103051
8. Cerqueti, R., Cesarone, F., and Ficcadenti, V. (2024). Portfolio Decision Analysis for Pandemic Sentiment Assessment Based on Finance and Web Queries, Annals of Operations Research, 1–31.
9. Baker, M., and Wurgler, J. (2006). Investor Sentiment and the Cross-Section of Stock Returns, Journal of Finance, Vol. 61, 1645–1680. Doi : 10.1111/j.1540-6261.2006.00885.x
10. Zhou, Y., Fan, J. Q., and Xue, L. R. (2024). How Much Can Machines Learn Finance from Chinese Text Data?, Management Science.
11. Li, H., and Wu, D. (2024). Online Investor Attention and Firm Restructuring Performance: Insights from an Event-Based DEA-Tobit Model, Omega, Vol. 122, 102967. Doi: 10.1016/j.omega.2023.102967
12. Hajek, P., and Novotny, J. (2022). Fuzzy Rule-Based Prediction of Gold Prices Using News Affect, Expert Systems with Applications, Vol. 193, 116487. Doi: 10.1016/j.eswa.2021.116487.
13. Bas, E., Egrioglu, E., and Tunc, T. (2023). Multivariate Picture Fuzzy Time Series: New Definitions and a New Forecasting Method Based on Pi-Sigma Artificial Neural Network, Computational Economics, Vol. 61, No. 1, 139–164. Doi: 10.1007/s10614-021-10202-w.
14. Amiri, A., Tavana, M., and Arman, H. (2024). An Integrated Fuzzy Analytic Network Process and Fuzzy Regression Method for Bitcoin Price Prediction, Internet of Things, Vol. 25, 101027. Doi: 10.1016/j.iot.2023.101027.
15. Durairaj, D. M., and Mohan, B. K. (2022). A Convolutional Neural Network Based Approach to Financial Time Series Prediction, Neural Computing and Applications, Vol. 34, No. 16, 13319–13337. Doi: 10.1007/s00521-022-07143-2.
16. Zhang, J., Ye, L., and Lai, Y. (2023). Stock Price Prediction Using CNN-BiLSTM-Attention Model, Mathematics, Vol. 11, No. 9, 1985. Doi: 10.3390/math11091985.
17. Han, C., and Fu, X. (2023). Challenge and Opportunity: Deep Learning-Based Stock Price Prediction by Using Bi-Directional LSTM Model, Frontiers in Business, Economics and Management, Vol. 8, No. 2, 51–54. Doi: 10.54097/fbem.v8i2.6616.
18. Xu, X., and Zhang, Y. (2023). Steel Price Index Forecasting Through Neural Networks: The Composite Index, Long Products, Flat Products, and Rolled Products, Mineral Economics, Vol. 36, No. 4, 563–582. Doi: 10.1007/s13563-022-00357-9.
19. Zhong, C., Du, W., Xu, W., Huang, Q., Zhao, Y., and Wang, M. (2023). LSTM-ReGAT: A Network-Centric Approach for Cryptocurrency Price Trend Prediction, Decision Support Systems, Vol. 169, 113955. Doi: 10.1016/j.dss.2023.113955.
20. Sohrabi, P., Dehghani, H., and Rafie, R. (2022). Forecasting of WTI Crude Oil Using Combined ANN-Whale Optimization Algorithm, Energy Sources, Part B: Economics, Planning, and Policy, Vol. 17, No. 1, 2083728. Doi: 10.1080/15567249.2022.2083728.
21. Chen, Y., Wu, J., and Wu, Z. (2022). China’s Commercial Bank Stock Price Prediction Using a Novel K-Means-LSTM Hybrid Approach, Expert Systems with Applications, Vol. 202, 117370. Doi: 10.1016/j.eswa.2022.117370.
22. Serrano, W. (2022). Deep Reinforcement Learning with the Random Neural Network, Engineering Applications of Artificial Intelligence, Vol. 110, 104751. Doi: 10.1016/j.engappai.2022.104751.
23. Kim, G., Shin, D. H., Choi, J. G., and Lim, S. (2022). A Deep Learning-Based Cryptocurrency Price Prediction Model That Uses On-Chain Data, IEEE Access, Vol. 10, 56232–56248. Doi: 10.1109/ACCESS.2022.3177888.
24. Xu, Z., Mohsin, M., Ullah, K., and Ma, X. (2023). Using Econometric and Machine Learning Models to Forecast Crude Oil Prices: Insights from Economic History, Resources Policy, Vol. 83, 103614. Doi: 10.1016/j.resourpol.2023.103614.
25. Guo, J., Zhao, Z., Sun, J., and Sun, S. (2022). Multi-Perspective Crude Oil Price Forecasting with a New Decomposition-Ensemble Framework, Resources Policy, Vol. 77, 102737. Doi: 10.1016/j.resourpol.2022.102737.
26. Rabie, A. H., Saleh, A. I., and Mansour, N. A. (2023). Red Piranha Optimization (RPO): A Natural Inspired Meta-Heuristic Algorithm for Solving Complex Optimization Problems, Journal of Ambient Intelligence and Humanized Computing, Vol. 14, No. 6, 7621–7648. Doi: 10.1007/s12652-023-04573-1.
27. Yun, K. K., Yoon, S. W., and Won, D. (2023). Interpretable Stock Price Forecasting Model Using Genetic Algorithm-Machine Learning Regressions and Best Feature Subset Selection, Expert Systems with Applications, Vol. 213, 118803. Doi: 10.1016/j.eswa.2022.118803.
28. Abu Arqub, O., Mezghiche, R., and Maayah, B. (2023). Fuzzy M-Fractional Integrodifferential Models: Theoretical Existence and Uniqueness Results, and Approximate Solutions Utilizing the Hilbert Reproducing Kernel Algorithm, Frontiers in Physics, Vol. 11, 1252919. Doi: 10.3389/fphy.2023.1252919.
29. Abu Arqub, O. (2017). Adaptation of Reproducing Kernel Algorithm for Solving Fuzzy Fredholm–Volterra Integrodifferential Equations, Neural Computing and Applications, Vol. 28, 1591–1610. Doi: 10.1007/s00521-015-2110-x.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Mirnawati Oktavia, T. Murdani Saputra, Ikhsan Maulidi, Fajri Farid

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