Stock Price Prediction of GM Company: Comparison Based on KNN, Linear Regression and LSTM

Congyan Yin
DOI: https://doi.org/10.54254/2754-1169/60/20231182
2024-01-05
Abstract:Stock price prediction holds significant importance in the financial sector. It not only aids investors in making informed buy and sell decisions to achieve potential profits but also supports enterprises and financial institutions in risk assessment and management. This study utilized the stock prices of GM stocks spanning from 2013 to 2023 as dataset, with the goal of predicting their closing prices. This paper carefully identifies the parameters in the three model and one indicator of RMSE outcomes were computed. Visualizations of the results of the three model predictions are also provided. After comparing the indicator of the three models, it is found that the RMSE for LSTM is the smallest, indicating that the LSTM outperforms the KNN and linear regression from the perspective of forecast accuracy. The research highlights the application of the machine learning algorithm of LSTM in the prediction of the prices of financial assets and its practical value in financial market analysis.
What problem does this paper attempt to address?