Return to search

Comparison of linear regression and neural networks for stock price prediction

Stock market prediction has been a hot topic lately due to advances in computer technology and economics. One economic theory, called Efficient Market Hypothesis (EMH), states that all known information is already factored into the prices which makes it impossible to predict the stock market. Despite the EMH, many researchers have been successful in predicting the stock market using neural networks on historical data. This thesis investigates stock prediction using both linear regression and neural networks (NN), with a twist. The inputs to the proposed methods are a number of profit predictions calculated with stochastic methods such as generalized autoregressive conditional heteroskedasticity (GARCH) and autoregressive integrated moving average (ARIMA). By contrast the traditional approach was instead to use raw data as inputs. The proposed methods show superior result in yielding profit: at best 1.1% in the Swedish market and 4.6% in the American market. The neural network yielded more profit than the linear regression model, which is reasonable given its ability to find nonlinear patterns. The historical data was used with different window sizes. This gives a good understanding of the window size impact on the prediction performance.

Identiferoai:union.ndltd.org:UPSALLA1/oai:DiVA.org:uu-445237
Date January 2021
CreatorsKarlsson, Nils
PublisherUppsala universitet, Signaler och system
Source SetsDiVA Archive at Upsalla University
LanguageEnglish
Detected LanguageEnglish
TypeStudent thesis, info:eu-repo/semantics/bachelorThesis, text
Formatapplication/pdf
Rightsinfo:eu-repo/semantics/openAccess
RelationUPTEC F, 1401-5757 ; 21017

Page generated in 0.0025 seconds