Research Article
Open access
Published on 29 March 2024
Download pdf
Lu,Z. (2024). Comparison of stock price prediction models for linear models, random forest and LSTM. Applied and Computational Engineering,54,226-233.
Export citation

Comparison of stock price prediction models for linear models, random forest and LSTM

Zenan Lu *,1,
  • 1 Toronto Metropolitan University

* Author to whom correspondence should be addressed.

https://doi.org/10.54254/2755-2721/54/20241598

Abstract

With the rapid development of financial markets, accurate stock price prediction is significant to investors and financial institutions. Many researchers proposed stock price prediction models, including linear models, random forests, and LSTMs. However, few studies have comprehensively compared the three models. This study aims to fill this gap by analysing the forecasting effectiveness of different models through empirical studies. This research is to explore the application of linear models, random forests, and LSTM models in predicting stock prices and analyse and compare the principles, advantages and disadvantages, and the scope of application of these three models. According to the analysis, they all have their scope of application and limitations in different situations. In practical application, the appropriate model can be chosen for prediction and analysis according to the specific data sets and research purpose. Meanwhile, it is also possible to try to integrate and improve different models to get better prediction results. In addition, the influence of data quality and completeness, feature selection and extraction from the prediction results should be noted to improve the prediction accuracy and stability of the model. In conclusion, this thesis provides some references and lessons for related studies and practical applications by analysing and comparing the applications of LSTM, linear models, and random forests in predicting stock prices.

Keywords

Stock price prediction, linear model, random forest, LSTM

[1]. Jishag A C, Athira A, Shailaja M and Thara S 2019 Predicting the stock market behavior using historic data analysis and news sentiment analysis in R In Advances in intelligent systems and computing pp 717–728.

[2]. Singh T, Kalra R K, Mishra S, and Kumar M 2022 An efficient real-time stock prediction exploiting incremental learning and deep learning Evolving Systems vol 14(6)pp 919–937.

[3]. Loukas S 2023 Time-Series Forecasting: Predicting Stock Prices Using An ARIMA Model Medium Retrieved from: https://towardsdatasciencecom/time-series-forecasting-predicting-stock-prices-using-an-arima-model-2e3b3080bd70

[4]. Chandola D, Mehta A, Singh S, Tikkiwal V A and Agrawal H 2022 Forecasting Directional Movement of Stock Prices using Deep Learning Annals of Data Science vol 10(5) pp 1361–1378.

[5]. Mallikarjuna M and Rao R P 2019 Evaluation of forecasting methods from selected stock market returns Financial Innovation vol 5(1).

[6]. Tiwari S, Bharadwaj A and Gupta S 2017 Stock price prediction using data analytics. In 2017 International Conference on Advances in Computing, Communication and Control (ICAC3) pp. 1-5.

[7]. Yang C and Zhou X 2021 Prediction of Stock Price Based on Linear Regression and LSTM ICMLCA 2021 2nd International Conference on Machine Learning and Computer Application Shenyang China pp 1-4.

[8]. Ma Y, Han R and Fu X 2019 Stock prediction based on random forest and LSTM neural network" 2019 19th International Conference on Control Automation and Systems (ICCAS) Jeju Korea 2019 pp 126-130.

[9]. Gong J and Sun S 2009 A new approach of stock price prediction based on logistic regression model. In 2009 International Conference on New Trends in Information and Service Science pp. 1366-1371.

[10]. Gururaj V, Shriya V R and Ashwini K 2019 Stock market prediction using linear regression and support vector machines Int J Appl Eng Res vol 14(8) pp 1931-1934.

[11]. Illa P K, Parvathala B and Sharma A 2022 Stock price prediction methodology using random forest algorithm and support vector machine Materials Today: Proceedings vol 56 pp 1776–1782.

Cite this article

Lu,Z. (2024). Comparison of stock price prediction models for linear models, random forest and LSTM. Applied and Computational Engineering,54,226-233.

Data availability

The datasets used and/or analyzed during the current study will be available from the authors upon reasonable request.

Disclaimer/Publisher's Note

The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of EWA Publishing and/or the editor(s). EWA Publishing and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

About volume

Volume title: Proceedings of the 4th International Conference on Signal Processing and Machine Learning

Conference website: https://www.confspml.org/
ISBN:978-1-83558-353-1(Print) / 978-1-83558-354-8(Online)
Conference date: 15 January 2024
Editor:Marwan Omar
Series: Applied and Computational Engineering
Volume number: Vol.54
ISSN:2755-2721(Print) / 2755-273X(Online)

© 2024 by the author(s). Licensee EWA Publishing, Oxford, UK. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license. Authors who publish this series agree to the following terms:
1. Authors retain copyright and grant the series right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this series.
2. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the series's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this series.
3. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See Open access policy for details).