Predicting Shariah Stock Market Indices with Machine Learning: A Cross-Country Case Study
Downloads
ABSTRACT
Stock prices are influenced by numerous factors, including policy adjustments, economic conditions, and international developments. Consequently, forecasting stock price trends accurately has posed a significant challenge for economists to study. The Islamic financial industry experiences fewer shocks compared to the traditional financial sector, allowing investors to anticipate the performance of Islamic indices. This study aims to predict the Islamic stock market indices in six countries, including Indonesia, Thailand, Malaysia, Pakistan, the United Arab Emirates, and Qatar, using the Autoregressive Integrated Moving Average (ARIMA) model. Monthly data from 2013 to 2023 sourced from investing.com and Yahoo Finance are analyzed using R machine learning. The objective of this study is to provide accurate predictions for the next 25 months and offer insights into potential price movements. Overall, this research also sheds light on the dynamics of the Islamic market in Indonesia, Thailand, Malaysia, Pakistan, the United Arab Emirates, and Qatar, which adhere to the Efficient Market Hypothesis (EMH) due to the predictability of index prices by historical data.
Keywords: forecating, R-Studio, ARIMA, Islamic Stock Market, Machine Learning, R-Programming
ABSTRAK
Harga saham dipengaruhi oleh banyak faktor, termasuk penyesuaian kebijakan, kondisi ekonomi, dan perkembangan internasional. Oleh karena itu, memprediksi tren harga saham dengan akurat telah menjadi tantangan signifikan bagi para ekonom untuk mempelajarinya. Industri keuangan Islam mengalami lebih sedikit goncangan dibandingkan dengan sektor keuangan tradisional, yang memungkinkan investor untuk memperkirakan kinerja indeks Islam. Studi ini bertujuan untuk memprediksi indeks pasar saham Islam di enam negara, termasuk Indonesia, Thailand, Malaysia, Pakistan, Uni Emirat Arab, dan Qatar, menggunakan model Autoregressive Integrated Moving Average (ARIMA). Data bulanan dari tahun 2013 hingga 2023 yang berasal dari investing.com dan Yahoo Finance dianalisis menggunakan pembelajaran mesin R. Tujuan dari studi ini adalah untuk memberikan prediksi yang akurat untuk 25 bulan mendatang dan menawarkan wawasan tentang pergerakan harga yang potensial. Secara keseluruhan, penelitian ini juga memberikan cahaya tentang dinamika pasar Islam di Indonesia, Thailand, Malaysia, Pakistan, Uni Emirat Arab, dan Qatar, yang mengikuti Hipotesis Pasar Efisien (EMH) karena dapat diprediksi oleh data historis..
Kata Kunci: Prediksi, R-Studio, ARIMA, Indeks Pasar Modal Syariah, Machine Learning, R-Programming
REFERENCES
Abraham, R., El Samad, M., Bakhach, A. M., El-Chaarani, H., Sardouk, A., El Nemar, S., & Jaber, D. (2022). Forecasting a Stock Trend Using Genetic Algorithm and Random Forest. Journal of Risk and Financial Management, 15(5), 188. doi:10.3390/jrfm15050188
Adebiyi, A. A., Adewumi, A. O., & Ayo, C. K. (2014). Comparison of ARIMA and artificial neural networks models for stock price prediction. Journal of Applied Mathematics, 1–7. doi:10.1155/2014/614342
Agustin, I. N. (2019). Testing weak form of stock market efficiency at the Indonesia Sharia Stock Index. Muqtasid: Journal of Islamic Economics and Banking, 10(1), 17. doi:10.18326/muqtasid.v10i1.17-29
Ali, M., Khan, D. M., Aamir, M., Ali, A., & Ahmad, Z. (2021). Predicting the direction movement of financial time series using artificial neural network and support vector machine. Complexity, 2021. doi:10.1155/2021/2906463
Angadi, M. C., & Kulkarni, A. P. (2015). Time series data analysis for stock market prediction using data mining techniques with R. International Journal of Advanced Research in Computer Science, 6(6), 104–108. doi:10.13140/RG.2.1.1347.3360
Arashi, M., & Rounaghi, M. M. (2022). Analysis of market efficiency and fractal feature of NASDAQ stock exchange : Time series modeling and forecasting of stock index using ARMA "‘ GARCH model. Future Business Journal, 8(1), 1–12. doi:10.1186/s43093-022-00125-9
Baek, Y., & Kim, H. Y. (2018). ModAugNet: A new forecasting framework for stock market index value with an overfitting prevention LSTM module and a prediction LSTM module. Expert Systems with Applications, 113, 457–480. doi:10.1016/j.eswa.2018.07.019
Ballings, M., Van den Poel, D., Hespeels, N., & Gryp, R. (2015). Evaluating multiple classifiers for stock price direction prediction. Expert Systemns with Applications, 42(20), 7046–7056. doi:10.1016/j.eswa.2015.05.013
Cao, J., Li, Z., & Li, J. (2019). Financial time series forecasting model based on CEEMDAN and LSTM. Physica A: Statistical Mechanics and Its Applications, 519, 127–139. doi:10.1016/j.physa:2018.11.061
Cao, M. (2023). Retracted : Predicting the Link between Stock Prices and Indices with Machine Learning in R Programming Language. Hindawi Journal of Mathematics, 2021. doi:10.1155/2021/1275637
Chang, J., Wei, L., & Cheng, C. (2009). Anfis-based adaptive expectation model for forecasting stock index. International Journal of Innovative computing, information, & control: IJICIC, 5(7), 1949-1958.
Clement, M. B., & Tse, S. Y. (2003). Do investors respond to analysts' forecast revisions as if forecast accuracy is all that matters? The Accounting Review, 78(1), 227–249. doi:10.2308/accr.2003.78.1.227
Demirel, U., Cam, H., & Unlu, R. (2021). Predicting Stock Prices Using Machine Learning Methods and Deep Learning Algorithms: The sample of the Istanbul Stock Exchange. Gazi University Journal of Science, 34(1), 63–82. doi:10.35378/gujs.679103
Deswal, V., Kumar, D., & Suman. (2023). Stock Market Price Prediction using Machine Learning Techniques: A Review. Proceedings of International Conference on Computational Intelligence and Sustainable Engineering Solution, CISES, 693–698. doi:10.1109/CISES58720.2023.10183507
Do, Q. H., & Van Trang, T. (2020). Forecasting Vietnamese stock index: A comparison of hierarchical ANFIS and LSTM. Decision Science Letters, 9(2), 193–206. doi:10.5267/j.dsl.2019.11.002
Du, Y. (2018). Application and analysis of forecasting stock price index based on combination of ARIMA model and BP neural network. Proceedings of the 30th Chinese Control and Decision Conference, CCDC 2018, 2854–2857. doi:10.1109/CCDC.2018.8407611
Elangovan, R., Irudayasamy, F. G., & Parayitam, S. (2022). Testing the market efficiency in Indian stock market: Evidence from Bombay Stock Exchange broad market indices. Journal of Economics, Finance and Administrative Science, 27(54), 313–327. doi:10.1108/JEFAS-04-2021-0040
Faisal, F., Majid, M. S. A., & Rakhmawati, L. (2022). Testing weak form of efficient market hypothesis before and during covid-19 pandemic periods: Evidence from Indonesia. 2022 International Conference on Sustainable Islamic Business and Finance, SIBF 2022, 125–129. doi:10.1109/SIBF56821.2022.9940133
Feuerriegel, S., & Gordon, J. (2018). Long-term stock index forecasting based on text mining of regulatory disclosures. Decision Support Systems, 112, 88–97. doi:10.1016/j.dss.2018.06.008
Fu, Y., Su, Z., Xu, B., & Zhou, Y. (2020). Forecasting stock index futures intraday returns: Functional time series model. Journal of Advanced Computational Intelligence and Intelligent Informatics, 24(3), 265–271. doi:10.20965/jaciii.2020.p0265
Guresen, E., Kayakutlu, G., & Daim, T. U. (2011). Using artificial neural network models in stock market index prediction. Expert Systems with Applications, 38(8), 10389–10397. doi:10.1016/j.eswa.2011.02.068
Hadianto, B., Hendrik, H., & Yuwana, T. (2021). Does the efficient market theory in the weak form exist? Evidence from Indonesia. Jurnal Manajemen Indonesia, 21(2), 183-190. doi:10.25124/jmi.v21i2.2703
Hassan, M. R., Nath, B., & Kirley, M. (2007). A fusion model of HMM, ANN and GA for stock market forecasting. Expert Systems with Applications, 33(1), 171–180. doi:10.1016/j.eswa.2006.04.007
Hu, Y., Feng, B., Zhang, X., Ngai, E. W. T., & Liu, M. (2015). Stock trading rule discovery with an evolutionary trend following model. Expert Systems with Applications, 42(1), 212–222. doi:10.1016/j.eswa.2014.07.059
Huang, W., Nakamori, Y., & Wang, S. Y. (2005). Forecasting stock market movement direction with support vector machine. Computers & Operations Research, 32(10), 2513–2522. doi:10.1016/j.cor.2004.03.016
Jawadi, F., Jawadi, N., & Cheffou, A. I. (2015). Are Islamic stock markets efficient? A time-series analysis. Applied Economics, 47(16), 1686–1697. doi:10.1080/00036846.2014.1000535
Kamalakannan, J., Sengupta, I., & Chaudhury, S. (2018). Stock market prediction using time series analysis. IADS: International Conference on Computing, Communications & Data Engineering, 1(3), 1–5.
Kasidi, K., & Banafa, A. (2022). Efficient market hypothesis and market anomalies: Empirical evidence from Nairobi Securities Exchange. SSRN Electronic Journal. doi:10.2139/ssrn.4270987
Katterbauer, K., Syed, H., Cleenewerck, L., & Genc, S. Y. (2022). Robo-Sukuk pricing for Chinese equities. Borsa Istanbul Review, 22(5), 854–860. doi:10.1016/j.bir.2022.06.002
Kazem, A., Sharifi, E., Hussain, F. K., Saberi, M., & Hussain, O. K. (2013). Support vector regression with chaos-based firefly algorithm for stock market price forecasting. Applied Soft Computing, 13(2), 947–958. doi:10.1016/j.asoc.2012.09.024
Kenrick, J., & Yanti, Y. (2022). Prediction calculation of PT. Indofood Sukses Makmur Tbk. Stock using R Studio with Autoregressive Integrated Moving Average (ARIMA) Method. Journal of Software Engineering, Information and Communication Technology (SEICT), 2(2), 65–76. doi:10.17509/seict.v2i2.41552
Kocak, C. (2017). ARMA (p,q) type high order fuzzy time series forecast method based on fuzzy logic relations. Applied Soft Computing, 58, 92–103. doi:10.1016/j.asoc.2017.04.021
Lin, J., & Gong, Z. (2017). A research on forecasting of shanghai zinc futures price based on artificial neural network. The Theory and Practicce of Finance and Economics, 38(2), 54–57.
Lin, Y., Xiao, Y., & Li, F. (2020). Forecasting crude oil price volatility via a HM-EGARCH model. Energy Economics, 87. doi:10.1016/j.eneco.2020.104693
Lin, Y., Yan, Y., Xu, J., Liao, Y., & Ma, F. (2021). Forecasting stock index price using the CEEMDAN-LSTM model. The North American Journal of Economics and Finance, 57. doi:10.1016/j.najef.2021.101421
Lv, P., Wu, Q., Xu, J., & Shu, Y. (2022). Stock index prediction based on time series decomposition and hybrid model. Entropy, 24(2), 146. doi:10.3390/e24020146
Mallikarjuna, M., & Rao, R. P. (2019). Evaluation of forecasting methods from selected stock market returns. Financial Innovation, 5(1). doi:10.1186/s40854-019-0157-x
Mantri, J. K., Gahan, P., & Nayak, B. (2010). Artificial neural networks–an application to stock market volatility. International Journal of Engineering Science and Technology, 2(5), 1451–1460.
Marwala, T., & Hurwitz, E. (2017). Efficient market hypothesis. In: Artificial intelligence and economic theory: Skynet in the market. Advanced Information and Knowledge Processing, 101–110. doi:10.1007/978-3-319-66104-9_9
Miao, J., Wang, P., & Xu, Z. (2015). A Bayesian dynamic stochastic general equilibrium model of stock market bubbles and business cycles: Stock market bubbles and business cycles. Quantitative Economics, 6(3), 599–635. doi:10.3982/QE505
Moghaddam, A. H., Moghaddam, M. H., & Esfandyari, M. (2016). Stock market index prediction using artificial neural network. Journal of Economics, Finance and Administrative Science, 21(41), 89–93. doi:10.1016/j.jefas.2016.07.002
Nair, B. B., Mohandas, V. P., & Sakthivel, N. R. (2010). A decision tree-rough set hybrid system for stock market trend prediction. International Journal of Computer Applications, 6(9), 1–6. doi: 10.5120/1106-1449
Nayak, R. K., Mishra, D., & Rath, A. K. (2015). A Naí¯ve SVM-KNN based stock market trend reversal analysis for Indian benchmark indices. Applied Soft Computing, 35, 670–680. doi:10.1016/j.asoc.2015.06.040
Fantin, C. O., & Junior, E. H. (2021). Stock price forecast, with multi layer perceptron artificial neural networks. International Journal of Sciences: Basic and Applied Research, 60(5), 62–77.
Petropoulos, F., Apiletti, D., Assimakopoulos, V., Babai, M. Z., Barrow, D. K., Ben Taieb, S., Bergmeir, C., Bessa, R. J., Bijak, J., Boylan, J. E., Browell, J., Carnevale, C., Castle, J. L., Cirillo, P., Clements, M. P., Cordeiro, C., Oliveira, F. L. C., De Baets, S., Dokumentov, A., Ellison, J., & Ziel, F. (2022). Forecasting: Theory and practice. International Journal of Forecasting, 38(3), 705–871. doi:10.1016/j.ijforecast.2021.11.001
Ou, P., & Wang, H. (2009). Prediction of stock market index movement by ten data mining techniques. Modern Applied Science, 3(12), 28-42. doi:10.5539/mas.v3n12p28
Phua, P. K. H., Zhu, X., & Koh, C. H. (2003). Forecasting stock index increments using neural networks with trust region methods. Proceedings of the International Joint Conference on Neural Networks, 1, 260–265. doi:10.1109/ijcnn.2003.1223354
Rahman, H. F., Sarker, R., & Essam, D. (2015). A genetic algorithm for permutation flow shop scheduling under make to stock production system. Computers & Industrial Engineering, 90, 12–24. doi:10.1016/j.cie.2015.08.006
Rather, A. M., Agarwal, A., & Sastry, V. N. (2015). Recurrent neural network and a hybrid model for prediction of stock returns. Expert Systems with Applications, 42(6), 3234–3241. doi:10.1016/j.eswa.2014.12.003
Rizvi, S. A. R., Dewandaru, G., Bacha, O. I., & Masih, M. (2014). An analysis of stock market efficiency: Developed vs Islamic stock markets using MF-DFA. Physica A: Statistical Mechanics and Its Applications, 407, 86–99. doi:10.1016/j.physa.2014.03.091
Rodoni, A., Djauhari, H., Rahma, Y., & Alhassan, A. A. (2022). Comparative analysis of efficient market for sharia and conventional stocks in ASEAN countries. Al-Iqtishad: Jurnal Ilmu Ekonomi Syariah, 14(1), 1–22. doi:10.15408/aiq.v14i1.25025
Rossi, M., & Gunardi, A. (2018). Efficient market hypothesis and stock market anomalies: Empirical evidence in four European countries. Journal of Applied Business Research, 34(1), 183–192. doi:10.19030/jabr.v34i1.10111
Rout, A. K., Dash, P. K., Dash, R., & Bisoi, R. (2015). Forecasting financial time series using a low complexity recurrent neural network and evolutionary learning approach. Journal of King Saud University- Computer and Information Sciences, 29(4), 536–552. doi:10.1016/j.jksuci.2015.06.002
Sahabuddin, M., Islam, M. A., Tabash, M. I., Alam, M. K., Daniel, L. N., & Mostafa, I. I. (2023). Dynamic conditional correlation and volatility spillover between conventional and islamic stock markets: Evidence from developed and emerging countries. Journal of Risk and Financial Management, 16(2), 111. doi:10.3390/jrfm16020111
Santoso, E. B., & Ikhsan, M. (2020). Efficient Market Hypothesis in Indonesia Stock Exchange 2019. Proceedings of The Annual International Conference on Accounting Research (Aicar 2019), 51–53. doi:10.2991/aebmr.k.200309.012
Selvin, S., Ravi, V., Gopalakrishman, E. A., Menon, V. K., & Soman, K. P. (2017). Stock price prediction using LSTM, RNN and CNN-sliding window model. International Conference on Advances in Computing, Communications and Informatics (ICACCI), 1643–1647. doi: 10.1109/ICACCI.2017.8126078
Staffini, A. (2022). Stock price forecasting by a deep convolutional generative adversarial network. Frontiers in Artificial Intelligence, 5, 1–16. doi:10.3389/frai.2022.837596
Sun, Z. (2020). Comparison of trend forecast using ARIMA and ETS models for S&P500 close price. ACM International Conference Proceeding Series, 57–60. doi:10.1145/3436209.3436894
Supriani, I., Herianingrum, S., Ninglasari, S. Y., & Budi, R. S. (2022). Islamic stock market performance pre-covid-19: Empirical evidence from Jakarta Islamic Index. Jurnal Ekonomi dan Bisnis Islam (Journal of Islamic Economics and Business), 8(2), 267–287. doi:10.20473/jebis.v8i2.37789
Targa Sapanji, R. A. E. V., Lestari, S., Murnawan, M., & Samiharjo, R. (2023). Prediksi indeks Bursa Efek Indonesia 2023 pendekatan ARIMA, Machine learning dengan R programming. Jurnal Manajemen Informatika (JAMIKA), 13(2), 163–177. doi:10.34010/jamika.v13i2.10777
Teixeira, L. A., & Oliveira, A. L. I. ´ de. (2010). A method for automatic stock trading combining technical analysis and nearest neighbor classification. Expert Systems with Applications, 37(10), 6885–6890. doi:10.1016/j.eswa.2010.03.033
Wang, S., Wang, J., & Li, G. (2018). Research and prediction of high frequency intraday yield of the CSI 300 index futures based on ARMA Model. Journal of North China Electric Power University (Social Sciences), 3, 71–79.
Xi, L., Muzhou, H., Lee, M. H., Li, J., Wei, D., Hai, H., & Wu, Y. (2014). A new constructive neural network method for noise processing and its application on stock market prediction. Applied Soft Computing, 15, 57–66. doi:10.1016/j.asoc.2013.10.013
Xiao, N., Xinyi, R., & Xiong, Z. (2021). A diversity-based selfish node detection algorithm for socially aware networking. Journal of Signal Processing Systems, 93(7), 811–825.
Zhang, Y., & Shen, W. (2009). Stock yield forecast based on LS-SVM in Bayesian Inference. ETP International Conference on Future Computer and Communication, 8–11. doi:10.1109/FCC.2009.34
Zhao, Y., & Chen, Z. (2022). Forecasting stock price movement: new evidence from a novel hybrid deep learning model. Journal of Asian Business and Economic Studies, 29(2), 91–104. doi:10.1108/JABES-05-2021-0061
Copyright (c) 2024 Dini Anggreini Khairunnisa, Ahmad Rodoni, Ali Rama
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
- Authors who publish with Jurnal Ekonomi Syariah Teori and Terapan agree to the following terms:
- The journal allows the author(s) to hold the copyright of the article without restrictions.
- The journal allows the author(s) to retain publishing rights without restrictions.
- The legal formal aspect of journal publication accessibility refers to Creative Common Attribution-NonCommercial-ShareAlike (CC BY NC SA).
- Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
- Jurnal Ekonomi Syariah Teori and Terapan is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.