Tesla stock prediction and analysis based on LSTM model
Abstract
Now that new energy vehicles are developing well, Tesla’s stock forecast has research value. This report focuses on predicting and analysing Tesla stock price returns using Long Short-Term Memory (LSTM) models. Deep learning models like LSTM can handle large amounts of data and make predictions about future stock dynamics. In this research, historical stock prices of Tesla Inc. are utilized as input data. The LSTM model is used to train and test the data, and subsequently provides results on its accuracy. For comparison, both Linear Regression and Random Forest models have also been used. The results indicate that the LSTM model has better performance than the other models in predicting short-term stock price movements. The result is evaluated by MSE, MAE and RMSE. However, Stock prices are extremely susceptible to economic, market, and political factors, so the predictions of the LSTM model cannot play an important role in actual investment.
References
- Darapaneni, N. Paduri, A. R. Sharma, H. Manjrekar, M. Hindlekar, N. Bhagat, P. Agarwal, Y. 2022, Stock price prediction using sentiment analysis and deep learning for Indian markets. (arXiv preprintarXiv, vol. 2204).
- Nikou, M. Mansourfar, G. Bagherzadeh, J. 2019, Stock price prediction using DEEP learning algorithm and its comparison with machine learning algorithms. (Intelligent Systems in Accounting, Finance and Management, vol. 26), no. 4, pp. 164-174.
- Naser, M. Z. Alavi, A. H. 2021, Error metrics and performance fitness indicators for artificial intelligence and machine learning in engineering and sciences. (Architecture, Structures and Construction), pp. 1-19.
- Hartzmark, S. M. Solomon, D. H. 2022, Reconsidering Returns. (The Review of Financial Studies, vol. 35), no. 1, pp. 343–393.
- Kraus, M. Feuerriegel, S. 2017, Decision support from financial disclosures with deep neural networks and transfer learning. (Decision Support Systems, vol. 104), pp. 38-48.
- Sezer, O. B. Ozbayoglu, A. M. 2018, Algorithmic financial trading with deep convolutional neural networks: Time series to image conversion approach. (Applied Soft Computing, vol. 70), 525-538.
- Guresen, E. Kayakutlu, G. Daim, T. U. 2011, Using artificial neural network models in stock market index prediction. (Expert systems with Applications, vol. 38), (8), pp. 10389-10397.
- Ali, M. Khan, D. M. Alshanbari, H. M. El-Bagoury, A. A. A. H. 2023, Prediction of complex stock market data using an improved hybrid emd-lstm model. (Applied Sciences, vol. 13), no. 3, pp. 1429.
- Hope, T. M. 2020, Linear regression. In Machine Learning . (Academic Press). pp. 67-81.
- Nabipour, M. Nayyeri, P. Jabani, H. Shahab, S. Mosavi, A. 2020, Predicting stock market trends using machine learning and deep learning algorithms via continuous and binary data; a comparative analysis. (IEEE Access, vol. 8), pp. 150199-150212.