Enhancing Sharia Stock Price Forecasting using a Hybrid ARIMA-LSTM with Locally Weighted Scatterplot Smoothing Regression Approach

Aris Gunaryati, Achmad Benny Mutiara, Sulistyo Puspitodjati

Abstract


Predicting Sharia stock prices is complex because it has high volatility and non-linear data patterns. To improve the accuracy of the forecast, the right technique is needed according to the existing data pattern. One of the techniques currently developing is integrating (hybrid) two forecasting models. This study proposes a hybrid autoregressive integrated moving average (ARIMA) and long short-term memory (LSTM) model with the locally weighted scatterplot smoothing (lowess) linear regression technique. This model is designed by creating a linear regression between the actual value and the predicted results of the ARIMA and LSTM models using the Lowess technique. The dataset used here is the closing stock prices of four Indonesian Islamic banking companies. The hybrid ARIMA-LSTM model with lowess linear regression significantly outperforms the individual ARIMA and LSTM models because it produces better performance metrics, namely mean square error (MSE), root mean square error (RMSE), mean absolute error (MAE), and mean absolute percentage error (MAPE), for training and testing datasets. The proposed hybrid model effectively reduces noise, and the model can capture complex patterns in the Sharia stock price dataset, and the prediction results are more accurate. The accuracy values for training data and data testing datasets were respectively 97.6% and 98.3% (BANK. JK), 98.3% and 98.2% (BRIS. JK), 99.4% and 99.5% (BTPN. JK), and 97.7% and 99.3% (PNBS. JK).


Keywords


Stock Price; Forecasting; ARIMA; LSTM; Smoothing Regression; Hybrid Model

Full Text:

PDF

References


Winarni. Market Capitalization Movement of 5 Sharia Stock Indexes until 2022 [Internet], DataIndonesi.id; 2023 [updated 2023 March 10; accessed 2024 August 7]. Available from: https://dataindonesia.id/pasar-saham/detail/pergerakan-kapitalisasi-pasar-5-indeks-saham-syariah-hingga-2022.

Winarni. Number of Sharia Stocks 2017-2022 Skyrockets, Here's the Complete List [Internet], DataIndonesia.id; 2023 [updated 2023 February 3; accessed 2024 August 7]. Available from: https://dataindonesia.id/pasar-saham/detail/jumlah-saham-syariah-20172022-melejit-ini-daftar-lengkapnya.

Erika Kurnia. Indonesian Capital Market Has 643 Sharia-compliant Stocks [Internet], Kompas.id; 2024 [updated 2024 June 6; accessed 2024 August 7]. Available from: https://www.kompas.id/baca/ekonomi/ 2024/06/06/pasar-modal-indonesia-punya-643-saham-halal.

Suripto S. Decision-making model to predict auto-rejection: an implementation of ARIMA for accurate forecasting of stock price volatility during the COVID-19. Decis Sci Lett 2023; 12: 107–116.

Wayne A. Woodward, Bivin P. Sadler, Stephen D. Robertson, Time Series for Data Science Analysis and Forecasting, Chapman & Hall/Crc Texts in Statistical Science Series. 2023, pp. 275-380.

Manu Joseph, Modern Time Series Forecasting with Python, Packt Publishing Ltd., 2023, pp. 87, 302-303

Wahyudi ST. The ARIMA model for the Indonesia stock price. Int J Econ Manage 2017; 11: 223–236.

Meher BK, Hawaldar IT, Spulbar CM, et al. Forecasting stock market prices using mixed ARIMA model: a case study of Indian pharmaceutical companies. Invest Manag Financ Innov 2021; 18: 42–54.

Dong, Yichen; LI, Siyi; GONG, Xueqin. Time series analysis: An application of Arima model in stock price forecasting. In: 2017 International Conference on Innovations in Economic Management and Social Science (IEMSS 2017). Atlantis Press, 2017. p. 703-710.

Subakkar A, Graceline Jasmine S, Jani Anbarasi L, et al. An Analysis on Tesla’s Stock Price Forecasting Using ARIMA Model. In: Proceedings of the International Conference on Cognitive and Intelligent Computing: ICCIC 2021, Volume 2 2023, pp.83–89. Springer.

Adebiyi AA, Adewumi AO and Ayo CK. Comparison of ARIMA and artificial neural networks models for stock price prediction. J Appl Math 2014; 2014: 1–7.

Low PR and Sakk E. Comparison between autoregressive integrated moving average and long short-term memory models for stock price prediction. IAES Int J Artif Intell 2023; 12: 1828–1835. Article. DOI: 10.11591/ijai.v12.i4.pp1828-1835.

Kobiela D, Krefta D, Król W, et al. ARIMA Vs LSTM on NASDAQ stock exchange data. Procedia Comput Sci 2022; 207: 3836–3845.

Dong H. StockPrice Prediction Using ARIMA and LSTM. In: 20226th Annual International Conference on Data Science and Business Analytics (ICDSBA) 2022, pp.195-201. IEEE.

S. Siami-Namini, N. Tavakoli and A. Siami Namin, "A Comparison of ARIMA and LSTM in Forecasting Time Series," 2018 17th IEEE International Conference on Machine Learning and Applications (ICMLA), Orlando, FL, USA, 2018, pp. 1394-1401, DOI: 10.1109/ICMLA.2018.00227.

Kai Chen, Yi Zhou, Fangyan Dai, A LSTM-based method for stock returns prediction: A case study of China stock market, in: 2015 IEEE International Conference on Big Data, Big Data, IEEE, 2015.

Sreelekshmy Selvin, R. Vinayakumar, E.A. Gopalakrishnan, Vijay Krishna Menon, K.P. Soman, Stock price prediction using LSTM, RNN and CNN sliding window model, in: 2017 International Conference on Advances in Computing, Communications and Informatics, ICACCI, IEEE, 2017.

Eva Dezsi, Ioan Alin Nistor, Can deep machine learning outsmart the market? A comparison between econometric modelling and long- short term memory, Rom. Econ. Bus. Rev. 11 (4.1) (2016) 54–73.

A.J.P. Samarawickrama, T.G.I. Fernando, A recurrent neural network approach in predicting daily stock prices an application to the Sri Lankan stock market, in: 2017 IEEE International Conference on Industrial and Information Systems, ICIIS, IEEE, 2017.

M. Hiransha, E.A. Gopalakrishnan, Vijay Krishna Menon, K.P. Soman, NSE stock market prediction using deep-learning models, Procedia Comput. Sci. 132 (2018) 1351–1362.

Kulshreshtha, Sakshi, et al. An ARIMA-LSTM Hybrid Model for Stock Market Prediction Using Live Data. Journal of Engineering Science & Technology Review, 2020, 13.4.

Zhang, Junting, et al. A hybrid approach of wavelet transform, ARIMA and LSTM model for the share price index futures forecasting. The North American Journal of Economics and Finance, 2024, 69: 102022.

Kumar, Raghavendra; Kumar, Pardeep; Kumar, Yugal. Three stage fusion for effective time series forecasting using Bi-LSTM-ARIMA and improved DE-ABC algorithm. Neural Computing and Applications, 2022, 34.21: 18421-18437.

Arnob, Raisul Islam; Alam, Rafatul; Alam, Alvi Ebne. Dhaka stock market analysis with ARIMA-LSTM hybrid model. 2019. PhD Thesis. Brac University.

Ma, Chi, et al. Predicting Stock Prices Using Hybrid LSTM and ARIMA Model. IAENG International Journal of Applied Mathematics, 2024, 54.3.

Cleveland, W.S., Loader, C. (1996). Smoothing by Local Regression: Principles and Methods. In: Härdle, W., Schimek, M.G. (eds) Statistical Theory and Computational Aspects of Smoothing. Contributions to Statistics. Physica-Verlag HD. https://doi.org/10.1007/978-3-642-48425-4_2.

Smith, Taylor G., et al. pmdarima: ARIMA estimators for Python, 2017-, http://www.alkaline-ml.com/pmdarima [Online; accessed 2024-08-31].




DOI: https://doi.org/10.47738/jads.v6i1.514

Refbacks

  • There are currently no refbacks.



Barcode

Journal of Applied Data Sciences

ISSN:2723-6471 (Online)
Publisher:Bright Publisher
Website:http://bright-journal.org/JADS
Email:taqwa@amikompurwokerto.ac.id (principal contact)
  support@bright-journal.org (technical issues)

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