Stock Price Prediction: A Comparative Study of Random Forest and LSTM Models

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.

Authors

Institutions

Publication Details

Journal
Highlights in Science Engineering and Technology
Published
2024-08-15
DOI
https://doi.org/10.54097/70a8b947
Citations
1
Primary Topic
Stock Market Forecasting Methods
Type
article
Field-Weighted Citation Impact
0.49
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Stock Price Prediction: A Comparative Study of Random Forest and LSTM Models

Xun Wang
1 citations
Highlights in Science Engineering and Technology
Stock Market Forecasting Methods
0.49
article

Stock Price Prediction: A Comparative Study of Random Forest and LSTM Models

Xun Wang
article en
1 citations

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.

Highlights in Science Engineering and TechnologyVol. 107
Beijing University of Technology (CN)
Openalex Percentile: Top 32%
Stock Market Forecasting Methods
0.49
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.