Theoretical and Natural Science

- The Open Access Proceedings Series for Conferences


Theoretical and Natural Science

Vol. 26, 20 December 2023


Open Access | Article

Tesla stock prediction and analysis based on LSTM model

Ziyu Geng * 1
1 Univeristy at Buffalo

* Author to whom correspondence should be addressed.

Theoretical and Natural Science, Vol. 26, 68-73
Published 20 December 2023. © 2023 The Author(s). Published by EWA Publishing
This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Citation Ziyu Geng. Tesla stock prediction and analysis based on LSTM model. TNS (2023) Vol. 26: 68-73. DOI: 10.54254/2753-8818/26/20241020.

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.

Keywords

Price returns, LSTM model, MSE, MAE, RMSE

References

1. 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).

2. 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.

3. 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.

4. Hartzmark, S. M. Solomon, D. H. 2022, Reconsidering Returns. (The Review of Financial Studies, vol. 35), no. 1, pp. 343–393.

5. 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.

6. 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.

7. 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.

8. 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.

9. Hope, T. M. 2020, Linear regression. In Machine Learning . (Academic Press). pp. 67-81.

10. 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.

Data Availability

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

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International 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 Instruction).

Volume Title
Proceedings of the 3rd International Conference on Computing Innovation and Applied Physics
ISBN (Print)
978-1-83558-235-0
ISBN (Online)
978-1-83558-236-7
Published Date
20 December 2023
Series
Theoretical and Natural Science
ISSN (Print)
2753-8818
ISSN (Online)
2753-8826
DOI
10.54254/2753-8818/26/20241020
Copyright
20 December 2023
Open Access
This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited

Copyright © 2023 EWA Publishing. Unless Otherwise Stated