Return to search

Stock Price Prediction Using Machine Learning

Accurate prediction of stock prices plays an increasingly prominent role in the stock market where returns and risks fluctuate wildly, and both financial institutions and regulatory authorities have paid sufficient attention to it. As a method of asset allocation, stocks have always been favored by investors because of their high returns. The research on stock price prediction has never stopped. In the early days, many economists tried to predict stock prices. Later, with the in-depth research of mathematical theory and the vigorous development of computer technology, people have found that the establishment of mathematical models can be very good, such as time series model, because its model is relatively simple and the forecasting effect is better. Time series model is applied in a period of time The scope gradually expanded. However, due to the non-linearity of stock data, some machine learning methods, such as support vector machines. Later, with the development of deep learning, some such as RNN, LSTM neural Networks, they can not only process non-linear data, but also retain memory for the sequence and retain useful information, which is positive. It is required for stock data forecasting. This article introduces the theoretical knowledge of time series model and LSTM neural network, and select real stocks in the stockmarket, perform modeling analysis and predict stock prices, and then use the root mean square error to compare the prediction results of several models. Since the time series model cannot make good use of the non-linear part of the stock data, can’t perform long-term memory, and LSTM neural network makes better use of non-linear data and has better use of sequence data. Useful information in the long-term memory, which makes the root mean square error of the prediction result, the LSTM neural network needs smaller than the time series model, indicating that LSTM neural network is a better stock price forecasting method. The time series for stock prices belong to non-stationary and non-linear data, making the prediction of future price trends extremely challenging. In order to learnthe long-term dependence of stock prices, deep learning methods such as the LSTM method are used to obtain longer data dependence and overall change patterns of stocks. This thesis uses 5000 observations from S&P500 index for empirical research, and introduce benchmark models, such as ARIMA, GARCH and other research methods for comparison, to verify the effectiveness and advantages of deep learning methods.

Identiferoai:union.ndltd.org:UPSALLA1/oai:DiVA.org:sh-49321
Date January 2022
CreatorsGuo, Yixin
PublisherSödertörns högskola, Nationalekonomi
Source SetsDiVA Archive at Upsalla University
LanguageEnglish
Detected LanguageEnglish
TypeStudent thesis, info:eu-repo/semantics/bachelorThesis, text
Formatapplication/pdf
Rightsinfo:eu-repo/semantics/openAccess

Page generated in 0.0023 seconds