Basic Prerequisites: Linear Algebra & Covariance (matrix products, quadratic forms) and 02 · Delta, Gamma, Vega.


1. Intuition & Practical Objective

A book with positions has, in principle, sensitivities. Nobody can watch numbers, and - more importantly - most of them are the same risk. Risk-factor decomposition is the projection that reduces positions to a handful of common factors plus a residual, and it answers the question a risk committee actually asks:

“Where is the risk coming from - and how much of it is diversified away by the others?”

Two decompositions are used, and they answer different questions:

  1. Variance decomposition (systematic vs specific). Split the portfolio variance into the part explained by common factors and the part that is idiosyncratic: . The ratio is the regression - how much of the risk a factor model can see.
  2. Euler (marginal-contribution) decomposition. Allocate the total volatility back to each factor and each position, so the contributions sum exactly to . This is the allocation a risk system reports when it must charge each desk for the firm’s risk.

The essential idea. A sensitivity is a quantity of exposure; the risk of that exposure is multiplied by the factor’s volatility and by how correlated it is with everything else. Exposure is not risk. A large position in an uncorrelated factor is small risk; a modest position in the factor everything else also holds is large risk.


2. Mathematical Ground Truth & Derivations

The linear factor model. Write each position’s return as exposures to common factors plus a residual:

With position vector (currency exposures), the portfolio return is , and the portfolio factor exposure is the dollar-beta vector

Variance decomposition. With factor covariance and specific variances ,

The full position covariance implied by the model is - which is positive semi-definite by construction and requires only parameters instead of . That parameter collapse is the whole point: with and it is numbers instead of .

Euler (marginal contribution) decomposition. Because is homogeneous of degree 1 in the exposures, Euler’s theorem gives an exact additive allocation:

The component volatility of factor is therefore , and of the residual of asset is . These sum exactly to - which is what makes them usable as a risk allocation (a “risk budget”) rather than merely descriptive.

Two equivalent readings. Because , the Euler share of volatility equals the share of variance. So the same percentages can be quoted either way, as long as it is stated which total they are a share of.

Marginal contribution to risk (MCTR). For a general covariance matrix, the position-level analogue is

This is the number used to charge a desk for its marginal use of firm risk, and it is the linear-algebra core of risk-budgeted portfolio construction (Portfolio Risk Constraints).


3. Computational Implementation - three assets, two factors, full decomposition

A three-asset book exposed to two common factors is decomposed into systematic and specific variance, cross-checked against the full covariance matrix, and then allocated to each factor and each residual by the Euler rule. Stdlib only.

Read the decomposition. The book’s $240,000 of notional collapses to two dollar-betas - $194,000 on factor 1 and $60,000 on factor 2. The Euler allocation adds exactly to the $2,282.44 portfolio volatility - the printed SUM line is the numerical verification of Euler’s theorem. It says something the raw exposures do not: factor 1 alone is of the risk - more than its exposure share would suggest, because it is the factor every asset is loaded on and it is correlated with factor 2. Meanwhile the three specific risks together are only of variance (): a factor model sees of this book’s risk, and the remaining cannot be hedged with factor instruments at all - it diversifies away only by trading the individual names.


4. Failure Modes & First-Principles Breakdowns

  1. Exposure risk. The three specific positions have equal-ish notional but contribute , , - because their specific vols differ. Quoting only exposures hides the risk; quoting only risk hides what to trade. Report both.
  2. A factor model is a model: the residual absorbs every error. If the true dependence is non-linear or the residuals are correlated in stress (they are - that is the definition of a crisis), the “specific” bucket is not diversifiable and is overstated exactly when it matters. Correlation breakdown in stress is the single biggest failure of factor-based risk (see Stress Testing and EVT & Fat Tails).
  3. The covariance matrix must be positive semi-definite. Sample covariances with more assets than observations are singular or near-singular; unfiltered shrinkage-free estimation produces portfolios with apparently zero risk and huge exposures. Use EWMA/shrinkage/factor structure (Hull eq. 23.17 on PSD consistency).
  4. Euler contributions are local, and can be negative. A factor can have a negative component contribution (a natural hedge) - which is informative, but means “share of risk” is not a percentage in once hedges are present. Do not force-normalise it.
  5. Aggregating sensitivities rather than risk. Adding two desks’ -vectors is correct; adding their volatilities is not. The whole point of the covariance matrix is that the sum of risks exceeds the risk of the sum - unless the factors are perfectly correlated, in which case the covariance matrix is doing nothing and you have hidden a single-factor bet.

5. References

  • J.P. Morgan / RiskMetrics: Technical Document, 4th ed. (1996)
  • Hull, John C.: Options, Futures, and Other Derivatives (11th ed.)
  • Alexander, Carol: Market Risk Analysis, Vol. IV (Value at Risk Models) (2008)
  • McNeil, Frey & Embrechts: Quantitative Risk Management (2015)
  • Rockafellar & Uryasev: Optimization of Conditional Value-at-Risk (2000)

6. Connected Graph Bridges