Digitala Vetenskapliga Arkivet

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
How do different machine learning models compare in their ability to predict short-term movements in the S&P 500 index?
KTH, School of Electrical Engineering and Computer Science (EECS).
KTH, School of Electrical Engineering and Computer Science (EECS).
2024 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesisAlternative title
Hur jämför sig olika maskininlärningsmodeller när det gäller deras förmåga att förutsäga kortsiktiga rörelser i S&P 500-indexet? (Swedish)
Abstract [en]

This thesis explores the application of machine learning techniques within the financial technology sector, specifically targeting the prediction of the S&P 500 index. The S&P 500 is a key indicator of the US economy which reflects the stock performance of 500 major companies. Traditional statistical methods for predicting stock market trends often struggle with the volatility and complexity of financial markets. Our research aims to fill this gap by comparing the effectiveness of various machine learning models which are Polynomial Regression, Decision Trees, and Long Short-Term Memory (LSTM) networks to predict short-term movements of the S&P 500 index.

The significance of this problem lies in the growing reliance on ML models by financial companies to inform investment strategies. The study uses historical S&P 500 data from 1995 to 2024, retrieved from Yahoo Finance, focusing on metrics such as Open, High, Low, Close, and Volume prices. The data was preprocessed to ensure consistency and was divided into training and testing sets to evaluate the models.

Our results show that the Polynomial Regression and Decision Tree models performed well on the training data but they had significant errors on the testing data. While, the LSTM model showed better performance, effectively capturing both short-term and long-term market trends. Based on these findings results, suggest that LSTM networks provide the most reliable predictions.

Abstract [sv]

Denna avhandling utforskar användningen av maskininlärningsmodeller (ML-modeller) inom finansiell teknik, med särskilt fokus på att förutsäga S&P 500 index. S&P 500 är en viktig indikator på USA:s ekonomi som återspeglar aktieprestationen för 500 stora företag. Traditionella statistiska metoder för att förutsäga aktiemarknadstrender kämpar ofta med volatiliteten och komplexiteten på finansmarknaderna. Vår forskning syftar till att fylla denna lucka genom att jämföra effektiviteten hos olika ML-modeller, nämligen polynomregression, beslutsträd och Long Short-Term Memory, för att förutsäga kortsiktiga rörelser i S&P 500-indexet.

Betydelsen av detta problem ligger i den ökande tilliten till ML-modeller av finansiella företag för att informera investeringsstrategier. Studien använder historiska S&P 500-data från 1995 till 2024, hämtade från Yahoo Finance, med fokus på mätvärden som öppning, högsta, lägsta, stängning och volympriser. Data förbehandlades för att säkerställa konsistens och delades in i tränings- och testuppsättningar för att utvärdera modellerna.

Våra resultat visar att polynomregression och beslutsträdsmodeller presterade väl på träningsdatan men hade betydande fel på testdatan. Däremot visade LSTM-modellen bättre prestanda genom att effektivt fånga både kortsiktiga och långsiktiga marknadstrender. Baserat på dessa resultat indikerar studien att LSTM ger de mest tillförlitliga förutsägelserna.

Place, publisher, year, edition, pages
Stockholm: KTH Royal Institute of Technology , 2024. , p. 47
Series
TRITA-EECS-EX ; 2024:295
Keywords [en]
S&P 500, ML-models, LSTM, Polynomial Regression, Decision Trees
Keywords [sv]
S&P 500, ML-modeller, LSTM, Polynomregression, Beslutsträd
National Category
Computer Sciences Computer Engineering
Identifiers
URN: urn:nbn:se:kth:diva-350919OAI: oai:DiVA.org:kth-350919DiVA, id: diva2:1885506
External cooperation
Ericsson AB
Educational program
Bachelor of Science - Information and Communication Technology
Presentation
2024-06-03, Ka-304, Isafjordsgatan 22 (Kistagången 16), Stockholm, 14:00 (English)
Supervisors
Examiners
Available from: 2024-08-16 Created: 2024-07-23 Last updated: 2024-08-16Bibliographically approved

Open Access in DiVA

fulltext(1437 kB)551 downloads
File information
File name FULLTEXT01.pdfFile size 1437 kBChecksum SHA-512
4d746deb6b7105f058feacf95461f20134f8488232abbf2ce036b6d55158a51a1ab253ac4f3d9fd80d3cdd57032b2db452494a05ffce1358ae27fc911e31bac0
Type fulltextMimetype application/pdf

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

Search outside of DiVA

GoogleGoogle Scholar
Total: 554 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: 1319 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