Exploring the application of machine learning and python model lstm in predicting Tesla stock price
DOI:
https://doi.org/10.54691/bcpbm.v34i.3109Keywords:
machine learning, LSTM, Linear Regression model, Tesla.Abstract
Machine learning involves many fields such as probability theory, statistics, and algorithm complexity theory. Using existing algorithms and models to make judgments or predictions without clear instructions, relying on existing data, patterns, and reasoning. It is a subset of Artificial Intelligence that includes statistical techniques and knowledge to deal with a dataset with vast amounts of data. It can be applied to our daily life, such as investment decisions of stocks, options futures and other derivatives. In this article, the author will predict price performance by using a just-in-time LSTM model. The goal of the mission is to use past historical price data to make accurate predictions about Tesla's stock price over the future. Due to the characteristics of Tesla's case of high-volatility stocks, this problem is extremely challenging and has become a popular research topic in stock price forecasting. From a machine learning perspective, this is a good, critical but challenging prediction problem. That's because Tesla is already a leader in electric vehicle (EV) production. The linear regression model and LSTM (long and short-term model) model are respectively used to forecast Tesla's stock price. The RMSE value is used to evaluate the accuracy of the two models and the results are obtained: the accuracy of the LSTM model prediction is much higher than that of a linear regression model.
Downloads
References
Xin Sun,Ziqi Tang,Ziwei Guo. Stock price forecasting model analysis based on the wavelet neural network and the data cleaning technology[A]. Wuhan Zhicheng Times Cultural Development Co..Proceedings of Joint 2016 International Conference on Artificial Intelligence and Engineering Applications (AIEA 2016)[C].Wuhan Zhicheng Times Cultural Development,2016:7.
Hua Zhi. Stock Market Forecast Based on Wavelet Neural Network Optimized by Cuckoo Search[C].The Institute of Electrical and Electronics Engineers,2017:580-582.
Xiaodan Liang,Zhaodi Ge,Liling Sun,Maowei He,Hanning Chen,Sylwester Samborski. LSTM with Wavelet Transform Based Data Preprocessing for Stock Price Prediction[J]. Mathematical Problems in Engineering,2019.
Application and comparison of RNN, RBFNN and MNLR approaches on prediction of flotation column performance[J] . Fardis Nakhaei,Mehdi Irannajad. International Journal of Mining Science and Techn . 2015.
Xiang Sun, Yong Ni. Recurrent Neural Network with Kernel Feature Extraction for Stock Prices Forecasting[P]. Computational Intelligence and Security, 2006 International Conference on,2006.
Forecasting stock markets using wavelet transforms and recurrent neural networks: An integrated system based on artificial bee colony algorithm[J] . Tsung-Jung Hsieh,Hsiao-Fen Hsiao,Wei-Chang Yeh. Applied Soft Computing Journal . 2019.
Sherstinsky, A. (2020). Fundamentals of recurrent neural network (RNN) and long short-term memory (LSTM) network. Physica D: Nonlinear Phenomena, 404, 132306.
Orsel, O. E., & Yamada, S. S. (2022). Comparative Study of Machine Learning Models for Stock Price Prediction. arXiv preprint arXiv:2202.03156.Amjady N. Short-term hourly load forecasting using time series modeling with peak load estimation capability. IEEE Transactions on Power Systems, 2001, 16(4): 798-805.
Jankowski, P. (2020). Stock price forecasting using time series analysis stock price forecasting using Time Series analysis.
Jankowski, P. (2020). Stock price forecasting using time series analysis stock price forecasting using Time Series analysis.Fangfang. Research on power load forecasting based on Improved BP neural network. Harbin Institute of Technology, 2011.
Kumar, I., Dogra, K., Utreja, C., & Yadav, P. (2018, April). A comparative study of supervised machine learning algorithms for stock market trend prediction. In 2018 Second International Conference on Inventive Communication and Computational Technologies (ICICCT) (pp. 1003-1007). IEEEMa Kunlong. Short term distributed load forecasting method based on big data. Changsha: Hunan University, 2014.