Stock Price Prediction of High-tech Industry Based on LSTM and GRU: Tesla, Ferrari, and Walmart
DOI:
https://doi.org/10.54097/dy17ph79Keywords:
Stock price; prediction; LSTM; GRU; Ferrari and Walmart.Abstract
Stock price prediction has long been a critical area of focus both in the academic realm and in the practical world of finance, largely due to its direct influence on investment decisions and market dynamics. This study will specifically exam the stock prices of Tesla, Ferrari, and Walmart using advanced machine learning models, LSTM and GRU. Utilizing a rich dataset that spans several years, the study employs meticulous data preprocessing and feature engineering techniques, including the incorporation of external variables such as news sentiment and trading volume, to enhance prediction accuracy. Based on the results, the LSTM model outperforms the GRU model in accurately predicting the stock prices of Tesla and Walmart, while the GRU model shows a slight edge in forecasting Ferrari's stock prices. Furthermore, one finds that the inclusion of external features like news sentiment and trading volume considerably augments the predictive power of both LSTM and GRU models. These findings not only contribute to the knowledge hierarchy by providing a comparative analysis of LSTM and GRU in the context of the high-tech industry but also offer practical insights for investors, market analysts, and policymakers. The study serves as a robust framework for stock price prediction in volatile sectors and underscores the potential of integrating machine learning algorithms with feature engineering to achieve superior predictive performance.
Downloads
References
Fama E F. Efficient capital markets: A review of theory and empirical work. The Journal of Finance, 1970, 25(2): 383-417.
Box G E, Jenkins G M, Reinsel G C. Time series analysis: forecasting and control. John Wiley & Sons, 2015.
Kim K. Financial time series forecasting using support vector machines. Neurocomputing, 2003 55: 307-319.
Liaw A. Wiener M. Classification and regression by randomforest. R News, 2002, 2(3): 18.
Hochreiter S, Jürgen S. Long short-term memory. Neural computation 1997, 9(8): 1735-1780.
Cho K, Van Merriënboer B, Gulcehre C et al. Learning phrase representations using RNN encoder-decoder for statistical machine translation. arXiv preprint arXiv:1406.1078, 2014.
Bao W, Yue J, Rao Y. A deep learning framework for financial time series using stacked autoencoders and long-short term memory. PloS one, 2017, 12(7): e0180944.
Fischer T, Krauss C. Deep learning with long short-term memory networks for financial market predictions. European journal of operational research, 2018, 270(2): 654-669.
Ming F, Wong F, Liu Z, Chiang M. Stock market prediction from WSJ: text mining via sparse matrix factorization. 2014 IEEE International Conference on Data Mining, 2014: 430-439.
Guresen E, Kayakutlu G, Daim T U. Using artificial neural network models in stock market index prediction. Expert systems with Applications, 2011, 38(8): 10389-10397.
Li H, Shen Y, Zhu Y. Stock price prediction using attention-based multi-input LSTM. Asian conference on machine learning, 2018: 454-469.
Downloads
Published
Issue
Section
License
Copyright (c) 2024 Highlights in Science, Engineering and Technology

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







