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
Estimating scenario-based Initial Margin for financial portfolios using Neural Networks and Random Forests
KTH, School of Electrical Engineering and Computer Science (EECS).
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesisAlternative title
Uppskattning av scenariobaserad Initial Margin för finansiella portföljer med Neurala Nätverk och Random Forests (Swedish)
Abstract [en]

Financial institutions, such as banks and central counterparties (CCPs), often need to calculate a scalar quantity called initial margin (IM) to manage credit risk and cover potential losses from various transactions. IM is typically cal- culated using mathematical models such as SIMM or scenario-based CCP IM models. However, CCP IM models are computationally expensive because they require repeatedly considering a large number of observed market move- ments when only a few of said movements are actually relevant for calculating the final IM value. Finding an alternative way to calculate IM which eliminates these redundant calculations would allow CCPs to more efficiently calculate IM and thereby help market participants reduce their credit risk. This project utilizes machine learning to train feedforward neural networks to estimate IM for financial portfolios. A random forest model is also trained to provide a point of comparison for the performance of the neural networks. The two datasets used in this study are generated using portfolio data from 40 anonymous banks and their respective IM labels are obtained using SIMM and a proprietary CCP IM model. The final optimized neural nets have strong performances and estimate IM with mean absolute percentage errors of 1.50% and 0.49% on unseen data of the CCP IM and SIMM datasets, respectively. The final random forest models perform worse with errors of 12.3% and 17.3% on the respective datasets. The results suggest that neural networks are well suited for calculating portfolio IM and that they are more efficient than SIMM and the CCP IM model used in this study. However, due to limitations in the dataset generation, more research needs to be conducted to assert that these results are generalizable to more realistic portfolio data.

Abstract [sv]

Finansinstitut som banker och clearinghus (även kallade CCP:er) behöver ofta beräkna en skalär storhet som kallas initial margin (IM) för att hantera kredi- trisk och täcka potentiella förluster vid olika transaktioner. IM beräknas van- ligtvis med matematiska modeller som SIMM och scenariobaserade CCP IM- modeller. Dessa CCP IM-modeller är däremot beräkningsmässigt ineffektiva då de kräver upprepad behandling av en stor mängd olika marknadsrörelser när endast en liten andel av dessa bidrar till det slutgiltiga IM-värdet. Att hitta en alternativ beräkningsmetod för IM som kan eliminera dessa beräkningar skulle därmed öka effektiviteten av clearinghus och bidra till att minska mark- nadsaktörers kreditrisk. Detta projekt använder neurala nätverk för att träna feedforward neurala nätverk för att uppskatta IM för finansiella portföljer. Som referenspunkt tränas även en random forest-modell vars prestanda kan jämföras mot prestandan av de neurala nätverken. Denna studie genererade två dataset från portföljdata från 40 anonyma banker och portföljernas motsvarande IM-värden erhölls med både en CCP IM-modell och med SIMM. De slutgiltiga optimerade neurala nätverken presterar utmärkt och uppskat- tar IM med ett absolut medelfel på 1.5% och 0.49% av de förväntande IM- testvärdena beräknade med CCP IM-modellen respektive med SIMM. De op- timerade random forest-modellerna hade däremot sämre prestanda med mot- svarande medelfel på 12.3% respektive 17.3%. Resultaten visar på att neurala nätverk är vällämpade för beräkning av scenariobaserad IM och beräknings- mässigt mer effektiva än konventionella IM-modeller. Däremot bygger resul- taten på portföljdata som på grund av studiens begränsade dataunderlag inte är fullständigt realistisk, och därmed skulle ytterligare forskning krävas för att säkerställa att resultaten kan generaliseras till mer realistisk portföljdata.

Place, publisher, year, edition, pages
2025. , p. 56
Series
TRITA-EECS-EX ; 2025:90
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-362886OAI: oai:DiVA.org:kth-362886DiVA, id: diva2:1955190
External cooperation
OSTTRA
Supervisors
Examiners
Available from: 2025-05-07 Created: 2025-04-29 Last updated: 2025-05-07Bibliographically approved

Open Access in DiVA

fulltext(1134 kB)7 downloads
File information
File name FULLTEXT01.pdfFile size 1134 kBChecksum SHA-512
8b5685fd27de5638986feab69a15231e49d7586137253ecbe8b41b115452977fa07cbe3cd1db570279a77507c59be23a412cd2aa9868cc23d08afbc842bc1885
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: 8 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: 200 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