A Comparative Analysis of LSTM, ARIMA, XGBoost Algorithms in Predicting Stock Price Direction
Downloads
This research report presents a comprehensive investigation into the prediction of Google's stock prices using advanced machine-learning techniques. The study focuses on assessing the predictive capabilities of three distinct algorithms: XGBoost, LSTM, and ARIMA, applied to historical stock price data with a specific emphasis on close prices. The primary goal is to develop accurate univariate models to forecast the closing stock price for the next day, a crucial aspect of financial decision-making. The evaluation of model performance utilizes a range of metrics including R-squared, Mean Absolute Error (MAE), and Root Mean Square Error (RMSE) to provide insights into predictive accuracy. Furthermore, the study explores the effectiveness of hyperparameter tuning and ensemble methods in optimizing model performance. The findings highlight the strong performance of the XGBoost model, which achieves a notable R-squared value and effectively minimizes error metrics. While ensemble techniques exhibit potential, they do not consistently outperform all individual models. The subsequent hyperparameter tuning of the XGBoost algorithm achieves a higher R-squared value of 99.47%, accompanied by an MAE of 15.98 and an RMSE of 27.34. This research contributes valuable insights into the potential of machine learning for stock price prediction, emphasizing the importance of thoughtful model selection and parameter optimization.
B. Ma, Y. Yang, J. Zhang, and K. Zhang, ‘A Comparison of Stock Price Prediction with ANN and ARIMA’, 2023.
J. Zhang, L. Ye, and Y. Lai, ‘Stock Price Prediction Using CNN-BiLSTM-Attention Model’, Mathematics, vol. 11, no. 9, May 2023, doi: 10.3390/math11091985.
L. Peng, ‘Stock Price Prediction of “Google” based on Machine Learning’, 2022.
Q. A. Al-Radaideh, E. Alnagi, and A. A. Assaf, ‘Predicting Stock Prices Using Data Mining Techniques Individual Project View project Reduct Computation View project The International Arab Conference on Information Technology (ACIT’2013) PREDICTING STOCK PRICES USING DATA MINING TECHNIQUES’, 2013. [Online]. Available: https://www.researchgate.net/publication/281865047
Q. Yan, ‘The Stock Price Analysis of Netflix Prediction’, 2022.
X. Li, Y. Li, H. Yang, L. Yang, and X.-Y. Liu, ‘DP-LSTM: Differential Privacy-inspired LSTM for Stock Prediction Using Financial News’, Dec. 2019, [Online]. Available: http://arxiv.org/abs/1912.10806
Y.-G. Song, Y.-L. Zhou, and R.-J. Han, ‘Neural networks for stock price prediction’, May 2018, [Online]. Available: http://arxiv.org/abs/1805.11317
S. R. Riady, ‘Stock Price Prediction using Prophet Facebook Algorithm for BBCA and TLKM’, International Journal of Advances in Data and Information Systems, vol. 4, no. 2, Apr. 2023, doi: 10.25008/ijadis.v4i2.1258.
K. Hiba Sadia, A. Sharma, A. Paul, and S. Sanyal, ‘Stock Market Prediction Using Machine Learning Algorithms’, Int J Eng Adv Technol, 2019, [Online]. Available: www.ijeat.org
B. Wamkaya, ‘ANN Model to Predict Stock Prices at Stock Exchange Markets’, 2017.
M. Roondiwala, H. Patel, and S. Varma, ‘Predicting Stock Prices Using LSTM’, Article in International Journal of Science and Research, vol. 6, 2017, doi: 10.21275/ART20172755.
Y. Deshmukh, D. Saratkar, and Y. Tiwari, ‘Stock Market Prediction Using Machine Learning’, IJARCCE, vol. 8, no. 1, pp. 31–35, Jan. 2019, doi: 10.17148/IJARCCE.2019.8107.
Wikipedia, ‘Google’.
Yahoo Finance, ‘Google current stock price’.
Netcials, ‘Alphabet Inc Stock 10 Year History’.
Prof. Sulochana Sonkamble, Vaibhav Vyas, Prathamesh Shimpi, Aniket Mule, and Mihir Sonawane, ‘Stock Price Prediction System’, International Journal of Scientific Research in Computer Science, Engineering and Information Technology, pp. 273–277, Apr. 2023, doi: 10.32628/CSEIT2390229.
A. Jeevan Kumar, O. Gangadhar Reddy, B. Sai Kumar Reddy, B. Sandeep Kumar, and A. Sri Hari, ‘EasyChair Preprint Analysis and Forecasting of Stock Market Using Time Series Algorithm ANALYSIS AND FORECASTING OF STOCK MARKET USING TIME SERIES ALGORITHM ABSTRACT’, 2023.
L.-P. Chen, ‘Using Machine Learning Algorithms on Prediction of Stock Price’, Journal of Modeling and Optimization, vol. 12, no. 2, pp. 84–99, Dec. 2020, doi: 10.32732/jmo.2020.12.2.84.
D. S. N. Ulum and A. S. Girsang, ‘Hyperparameter Optimization of Long-Short Term Memory using Symbiotic Organism Search for Stock Prediction’, International Journal of Innovative Research and Scientific Studies, vol. 5, no. 2, pp. 121–133, 2022, doi: 10.53894/ijirss.v5i2.415.
L. Han, ‘Analysis of Stock Price and Price Movement Prediction based on Machine Learning Models for E-Hualu’, 2023.
Ishitva Upadhyay, Devashish Katiyar, and Dr. Vasudha Vashisht, ‘TECHNICAL ANALYSIS OF STOCK MARKET & PREDICTION USING DATA SCIENCE’, International Research Journal of Modernization in Engineering Technology and Science, May 2023, doi: 10.56726/IRJMETS39976.
H. C. Lin, C. Chen, G. F. Huang, and A. Jafari, ‘Stock Price Prediction using Generative Adversarial Networks’, Journal of Computer Science, vol. 17, no. 3, pp. 188–196, 2021, doi: 10.3844/JCSSP.2021.188.196.
A. A. Adebiyi, A. O. Adewumi, and C. K. Ayo, ‘Stock price prediction using the ARIMA model’, in Proceedings - UKSim-AMSS 16th International Conference on Computer Modelling and Simulation, UKSim 2014, Institute of Electrical and Electronics Engineers Inc., 2014, pp. 106–112. doi: 10.1109/UKSim.2014.67.
Y. Shao, ‘Prediction of Moderna Adjusted Closing Stock Price Trend Using ARIMA Model’, 2023.
Y. Zhang, ‘Stock Price Prediction Method Based on XGboost Algorithm’, 2023, pp. 595–603. doi: 10.2991/978-94-6463-030-5_60.
R. Ruhal and E. Vandana Prashar, ‘A Comparative Study Of Statistical Methods And Machine Learning Approaches For Stock Price Prediction’, vol. 10, 2023, doi: 10.13140/RG.2.2.19210.44483.
E. Ismanto, ‘LSTM Network Hyperparameter Optimization for Stock Price Prediction Using the Optuna Framework’, Jurnal Ilmiah Teknik Elektro Komputer dan Informatika (JITEKI), vol. 9, no. 1, pp. 22–35, 2023, doi: 10.26555/jiteki.v9i1.24944.
G. Sonkavde, D. S. Dharrao, A. M. Bongale, S. T. Deokate, D. Doreswamy, and S. K. Bhat, ‘Forecasting Stock Market Prices Using Machine Learning and Deep Learning Models: A Systematic Review, Performance Analysis and Discussion of Implications’, International Journal of Financial Studies, vol. 11, no. 3, p. 94, Jul. 2023, doi: 10.3390/ijfs11030094.