Abstract

The prediction of stock price has always been a topic of concern by the financial analysis industry. With the progress of science and technology, the prediction methods of stock price are becoming more and more rich and advanced. From classical linear regression to the state-of-art neural network scenarios, from mathematics to AI deep learning, the introduction of computers and the development of programming also provide a new direction for the prediction of stock prices. This study takes the stock of Johnson & Johnson in the past five years as an example, selects the open, high, low price of the stock as the explanatory variable, and chooses the close price as the explanatory variable to establish a linear regression model. This study also establishes RNN and LSTM models to predict stock prices. Subsequently, the R2, RMSE, MAE of the model are evaluated, where LSTM model have the best R2 score and the best prediction of future stock price. These results shed light on guiding further exploration to the short-term stock price prediction.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call