Skip to content

The objective is to apply the multivariate principal components analysis technique to yield curves of different credit quality, calculating eigenvalues, eigenvectors and principal components.

Notifications You must be signed in to change notification settings

mariobajo/Principal-Component-Analysis-in-Fixed-Income

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Principal-Component-Analysis-in-Fixed-Income (PCA)

The objective is to apply the multivariate principal components analysis technique to yield curves of different credit quality, calculating eigenvalues, eigenvectors and principal components.

The objective of this code is to carry out Principal Component Analysis (PCA) on two yield curves: one from a AAA rating issuer and the other from a BBB rating corporate.

  • To do this, start by loading a file with the data of the time series of the interest rates for both issuers (X).
  • The original series are selected in level or differences
  • the the data is transformed into differences on the mean or standardized variables.
  • The covariance matrix is calculated.
  • On this covar matrix, the eigenvalues (A) and the eigenvectors (U) are calculated.
  • The matrix of main components is obtained (P = XU).
  • The cumulative variance by principal component is obtained.
  • The interpretation of the main components obtained from the different risk factors is analyzed.

gra8

About

The objective is to apply the multivariate principal components analysis technique to yield curves of different credit quality, calculating eigenvalues, eigenvectors and principal components.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published