Skip to main content
added 810 characters in body
Source Link
John
  • 21
  • 5

I have a daily US swaps data here for 2020 https://easyupload.io/yh4rnd . I have run PCA on standardized data and got PCA matrix (and basic statistics):

enter image description here

enter image description here

I also have such hypothetical portfolio that in this example is making +$195k.

enter image description here

Question: How do I attribute this P&L to each principal component, such that the total P&L number equals +$195k?

Working through suggestion by Dimitri:

Assuming we cannot fully reprice portfolio using a perturbed interest rate curve, so will go with DV01s. To calculate ci for each PCi I converted PCA on standardized data back to unstandardized and calculated weights below for each tenor x PC, then for each PCi I calculated Open and Close in % (eg PC1 opened at 1.94 and closed at 1.89) with c1 euqal to -5.58bp (I checked, each PCi is orthogonal). I then used the same weights to convert original risk from hypothetical book into PCi. I then multiply ciPCi x δ to get P&L. But it doesn't seem to match up, which step am I getting wrong?

enter image description here enter image description here

I have a daily US swaps data here for 2020 https://easyupload.io/yh4rnd . I have run PCA on standardized data and got PCA matrix (and basic statistics):

enter image description here

enter image description here

I also have such hypothetical portfolio that in this example is making +$195k.

enter image description here

Question: How do I attribute this P&L to each principal component, such that the total P&L number equals +$195k?

I have a daily US swaps data here for 2020 https://easyupload.io/yh4rnd . I have run PCA on standardized data and got PCA matrix (and basic statistics):

enter image description here

enter image description here

I also have such hypothetical portfolio that in this example is making +$195k.

enter image description here

Question: How do I attribute this P&L to each principal component, such that the total P&L number equals +$195k?

Working through suggestion by Dimitri:

Assuming we cannot fully reprice portfolio using a perturbed interest rate curve, so will go with DV01s. To calculate ci for each PCi I converted PCA on standardized data back to unstandardized and calculated weights below for each tenor x PC, then for each PCi I calculated Open and Close in % (eg PC1 opened at 1.94 and closed at 1.89) with c1 euqal to -5.58bp (I checked, each PCi is orthogonal). I then used the same weights to convert original risk from hypothetical book into PCi. I then multiply ciPCi x δ to get P&L. But it doesn't seem to match up, which step am I getting wrong?

enter image description here enter image description here

Source Link
John
  • 21
  • 5

Attribute P&L to PCA vectors (swaps)

I have a daily US swaps data here for 2020 https://easyupload.io/yh4rnd . I have run PCA on standardized data and got PCA matrix (and basic statistics):

enter image description here

enter image description here

I also have such hypothetical portfolio that in this example is making +$195k.

enter image description here

Question: How do I attribute this P&L to each principal component, such that the total P&L number equals +$195k?