kth.sePublications
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Applying machine learning to automate stock portfolio management
KTH, School of Electrical Engineering and Computer Science (EECS).
KTH, School of Electrical Engineering and Computer Science (EECS).
KTH, School of Electrical Engineering and Computer Science (EECS).
2022 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesisAlternative title
Tillämpning av maskininlärning för automatisering av aktieportfölj hantering (Swedish)
Abstract [en]

There are multiple ways to analyze stock companies. One way is using fundamental analysis, which means one is analyzing the company’s business key figures, such as revenue, net income and more. The key figures that were chosen to be analyzed in this report were: revenue, net income, free cash f low, return on invested capital and debt-to-equity ratio. In this thesis, machine learning was implemented to evaluate if it is possible to automate fundamental research of companies and to be able to produce a portfolio that would outperform the Swedish stock index. The data set used for both training and testing the classifiers contained the company’s basic information, 10 years of fundamental history and stock price history from the past 10 years. The companies examined were every stock listed on Nasdaq Stockholm, Nasdaq First North, Spotlight Market, Nordic Growth Market and PepMarket. The data that was gathered stretches from 2012 to 2021 which were split up into f ive-year periods and made up the training and testing period. The training data contained fundamental history from every company from these five-year periods. The classifier’s results from the testing period were used to create the portfolios during the holding period 2021-2022 to benchmark against the Swedish stock index. The results indicate that it is indeed possible to create portfolios using machine learning that will outperform the market over a year of holding the stocks.

Abstract [sv]

Det finns många olika sätt att analysera aktieföretag. Ett sätt är att använda fundamental analys, vilket innebär att man analyserar företagets nyckeltal, såsom omsättning, årets resultat, etc. Nyckeltalen som har valts att analyseras i denna studie var: omsättning, årets resultat, fritt kassaflöde, avkastning på investerat kapital samt skuldsättningsgrad. I denna avhandling har maskininlärning implementerats för att undersöka om det är möjligt att automatisera fundamental forskning av företag och skapa en portfölj som ger bättre avkastning än svenska aktieindex. Data som används för både träning och testning av klassificerare innehöll företagens grundläggande information, 10 år av fundamental historik samt aktiekurs historik för dem senaste 10 åren. Företagen som undersöktes var varje aktie listad på Nasdaq Stockholm, Nasdaq First North, Spotlight Market, Nordic Growth Market och PepMarket. Data som har samlats sträcker sig från 2012 till 2021 och var uppdelade i femårsperioder till träning och testning. Träningsdata innehöll fundamental historik från varje företag från dessa femårsperioder. Resultaten från klassificerare från testning perioden användes för att skapa portföljer under 20212022 som jämfördes med svenska aktieindex. Resultaten från detta indikerar att det är möjligt att skapa portföljer med hjälp av maskininlärningsmetoder som kan ge bättre avkastning än svenska aktieindex över en innehavsperiod på ett år.

Place, publisher, year, edition, pages
2022. , p. 10
Series
TRITA-EECS-EX ; 2022:333
Keywords [en]
Fundamental Analysis, Machine Learning, Revenue, Net Income, ROIC, Free Cash Flow, FCF, Debt-To-Equity
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-320115OAI: oai:DiVA.org:kth-320115DiVA, id: diva2:1703713
Supervisors
Examiners
Available from: 2022-10-17 Created: 2022-10-14 Last updated: 2022-10-17Bibliographically approved

Open Access in DiVA

fulltext(418 kB)1277 downloads
File information
File name FULLTEXT01.pdfFile size 418 kBChecksum SHA-512
dea65f9f74f0c74e681c36b2660e66cdd12b7660461c5dfa74b4c8c31866eb695ac241422af38931c5137807165d34c0c67c7296d568e0b0b550c94f03ac5996
Type fulltextMimetype application/pdf

By organisation
School of Electrical Engineering and Computer Science (EECS)
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 1277 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 1367 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf