Predict Stock Price of Tesla Based on Machine Learning
DOI:
https://doi.org/10.54097/hbem.v5i.5102Keywords:
Prediction, Machine learning, K-Nearest Neighbors, time series.Abstract
With the vigorous promotion of new energy, electric vehicles have become a popular travel choice. As the most popular brand at present, Tesla has a huge market share and its technology and patents can guarantee the advantages of future development. At the same time, Elon Musk is a very ambitious and powerful entrepreneur who can lead a technology company to a better future. The stock of Tesla is also favored by many investment institutions because it brings together new energy, automobile, artificial intelligence, and other high-tech industries. This report will mainly use machine learning methods to predict the trend of stock prices (closing prices). Time series and the k-nearest Neighbors algorithm are the main methods used to predict and compare the accuracy to analyze which model is more suitable. In order to train the model, all the data of stock are divided into a training set and a test set. At the same time, Linear Regression, Random Forest, Support Vector Regression, and Decision Tree are also used as a reference for the analysis.
Downloads
References
Yahoo! (2022, September 9). Tesla, Inc. (TSLA) Stock Historical Prices & Data. Yahoo! Finance. Retrieved September 9, 2022, from https://finance.yahoo.com/quote/TSLA/history?p=TSLA.
P. Srivastava and P. K. Mishra, "Stock Market Prediction Using RNN LSTM," 2021 2nd Global Conference for Advancement in Technology (GCAT), 2021, pp. 1-5, doi: 10.1109/GCAT52182.2021.9587540.
F. L. Marchai, W. Martin and D. Suhartono, "Stock Prices Prediction Using Machine Learning," 2021 8th International Conference on Information Technology, Computer and Electrical Engineering (ICITACEE), 2021, pp. 79-84, doi: 10.1109/ICITACEE53184.2021.9617222.
Mottaghi, N., & Farhangdoost, S. (2021, May 4). Stock price forecasting in presence of covid-19 pandemic and evaluating performances of machine learning models for time-series forecasting. arXiv.org. Retrieved September 9, 2022, from https://arxiv.org/abs/2105.02785.
A. Chatterjee, H. Bhowmick and J. Sen, "Stock Price Prediction Using Time Series, Econometric, Machine Learning, and Deep Learning Models," 2021 IEEE Mysore Sub Section International Conference (MysuruCon), 2021, pp. 289-296, doi: 10.1109/MysuruCon52639.2021.9641610.
D. Bhuriya, G. Kaushal, A. Sharma and U. Singh, "Stock market predication using a linear regression," 2017 International conference of Electronics, Communication and Aerospace Technology (ICECA), 2017, pp. 510-513, doi: 10.1109/ICECA.2017.8212716.
Real Python. (2022, September 1). The K-nearest neighbors (knn) algorithm in Python. Real Python. Retrieved September 1, 2022, from https://realpython.com/knn-python/#fit-knn-in-python-using-scikit-learn.
Zhou Jianbo, Chen Hao, and Sun Shubin. From the standpoint of the Literature History Review [J]. Journal of Shandong University (Philosophy and Social Sciences Edition), 2021 (4): 50 - 64. DOI: 10.19836/j.cnki.37-1100/c.2021.04.005.
Yin Shuhao, Zeng Wei. Analysis of China's stock market disaster relief and preventive measures [J]. North China Finance, 3 (3), pp. 26-29.DOI: 10.3969/j.issn.1007-4392.2016.03.005.
Marchai F. L., Martin W. and Suhartono D., "Stock Prices Prediction Using Machine Learning," 2021 8th International Conference on Information Technology, Computer and Electrical Engineering (ICITACEE), 2021, pp. 79 - 84, doi: 10.1109/ICITACEE53184.2021.9617222.
Downloads
Published
Issue
Section
License

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.






