Stock Price Prediction: A Comparative Study of Random Forest and LSTM Models
DOI:
https://doi.org/10.54097/70a8b947Keywords:
Stock price; time series analysis; random forest; long short-term memory network.Abstract
With the escalating globalization and intricacies of financial markets, accurate stock price forecasting has become paramount for investors, analysts, and researchers. This study compares the effectiveness of Random Forest and Long Short-Term Memory (LSTM) in predicting Tesla stock prices. Utilizing historical data refined for sequential analysis, both models were trained and tested. Evaluation metrics such as Mean Square Error (MSE) and accuracy were used to assess predictive prowess. Results indicate that LSTM exhibits superior accuracy in forecasting Tesla stock prices, owing to its proficiency in managing long-term dependencies and nonlinear relationships inherent in stock price time series data. Conversely, Random Forest's performance was relatively limited. On the other hand, the random forest model has the advantage of running time much lower than LSTM. This research underscores the significance of model selection tailored to the unique characteristics of financial data and opens avenues for future explorations in optimizing predictive models and translating insights into practical stock trading strategies.
Downloads
References
Karim R, Alam M K, Hossain M R. Stock Market Analysis Using Linear Regression and Decision Tree Regression. International Conference on Emerging Smart Technologies and Applications, IEEE, 2021.
Nti I K, Adekoya A F, Weyori B A. Random Forest Based Feature Selection of Macroeconomic Variables for Stock Market Prediction. American Journal of Applied Sciences, 2019.
Mukherjee S, et al. Stock market prediction using deep learning algorithms. Journal of intelligent technology, 2023, 8(1): 82-94.
Rikukawa S, Mori H, Harada T. RECURRENT NEURAL NETWORK BASED STOCK PRICE PREDICTION USING MULTIPLE STOCK BRANDS. International journal of innovative computing, information and control, 2020, 16.
Li P, Wan T, Liu Y, et al. Stock Volatility Prediction Using Recurrent Neural Networks with Sentiment Analysis. International Conference Industrial, Engineering & Other Applications Applied Intelligent Systems, 2017.
Hochreiter S, Schmidhuber J. Long short-term memory. Neural computation, 1997, 9(8), 1735-1780.
Fang Yiqiu, Lu Zhuang, Ge Junwei. Stock price prediction using the combined RMSE loss LSTM-CNN model. Computer Engineering and Applications, 2022.
Zhang Ruixue, Hao Yongtao. Research on Stock Price Prediction Based on Deep Learning. Computer Knowledge and Technology, 2023, 33: 8-10.
Deng Dejun, Xu Hongzhen, Wei Shiyue. Stock Price Prediction of E-V-ALSTM Model. Computer Engineering and Applications, 2023, 59(6): 12.
Jiang Minghua, Chen Yun. Application of Improved Multilayer Graph Attention Network in Stock Price Prediction. Computer Engineering and Applications, 2022, 58(3): 7.
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.







