Quant techniques · risk attribution

Euler risk contributions: allocating portfolio VaR and expected shortfall

A portfolio’s risk number says how much capital it needs; risk attribution asks which positions drive that number. For a differentiable, positively homogeneous risk measure, Euler’s theorem allocates total risk through marginal changes in risk as each position is scaled. The allocation sums exactly to portfolio risk and can reveal concentration that weights alone hide.

One asset’s Euler contribution

Variance contribution from A

Two-asset variance model: σA²=0.04, σB²=0.01, covariance=0.01.

Euler allocation

Let w=(w1,…,wn)w=(w_1,\dots,w_n) be portfolio positions, LiL_i the loss per unit position in asset ii, and L(w)=∑iwiLiL(w)=\sum_iw_iL_i. Let ρ(w)\rho(w) be a risk measure that is homogeneous of degree one, so ρ(cw)=cρ(w)\rho(cw)=c\rho(w) for c>0c>0. If it is differentiable at ww, Euler’s theorem gives

ρ(w)=∑i=1nwi∂ρ(w)∂wi=∑i=1nRCi,RCi:=wi∂ρ(w)∂wi.\rho(w)=\sum_{i=1}^{n}w_i\frac{\partial\rho(w)}{\partial w_i} =\sum_{i=1}^{n}RC_i, \qquad RC_i:=w_i\frac{\partial\rho(w)}{\partial w_i}.

The derivative ∂ρ/∂wi\partial\rho/\partial w_i is the marginal risk: the local change in portfolio risk from a small increase in position ii. Multiplying by its current size gives its Euler risk contribution. A contribution can be negative when a position hedges other exposures; it is not a stand-alone risk estimate.

Normal-model example

Suppose portfolio losses are jointly normal with mean vector μ\mu and covariance matrix Σ\Sigma. Write portfolio volatility as σp=w⊤Σw\sigma_p=\sqrt{w^\top\Sigma w} and let zα=Φ−1(α)z_\alpha=\Phi^{-1}(\alpha) for an upper-tail confidence level α\alpha. The loss VaR and expected shortfall (ES) are

VaRα(w)=w⊤μ+zασp,ESα(w)=w⊤μ+ϕ(zα)1−ασp.VaR_\alpha(w)=w^\top\mu+z_\alpha\sigma_p, \qquad ES_\alpha(w)=w^\top\mu+\frac{\phi(z_\alpha)}{1-\alpha}\sigma_p.

For either measure, the marginal risk contribution of position ii is

∂ρ∂wi=μi+cα(Σw)iσp,\frac{\partial\rho}{\partial w_i}=\mu_i+c_\alpha\frac{(\Sigma w)_i}{\sigma_p},

where cα=zαc_\alpha=z_\alpha for VaR and cα=ϕ(zα)/(1−α)c_\alpha=\phi(z_\alpha)/(1-\alpha) for ES. Its Euler contribution is this marginal multiplied by wiw_i. If the report focuses on risk above the mean loss, omit the μi\mu_i term consistently; then the volatility-based contributions sum to the corresponding risk premium, not to total loss VaR or ES.

For example, for centered losses with σp=2\sigma_p=2 million and volatility-based ES contributions of 0.90.9, 0.70.7, and 0.40.4 million, the contributions reconcile to 22 million. The second position has the largest standalone allocation even if its market value is not the largest, because its covariance with the full portfolio matters.

Historical and scenario estimation

For a positively homogeneous risk measure such as ES, scenario-based estimates can be attributed using portfolio tail scenarios. In a continuous distribution, ES’s marginal derivative has the conditional-tail interpretation

∂ESα∂wi=E[Li∣L(w)≥VaRα(w)],\frac{\partial ES_\alpha}{\partial w_i} =E[L_i\mid L(w)\ge VaR_\alpha(w)],

with details adjusted for atoms and quantile ties. Multiplying by wiw_i gives the position’s Euler contribution. In weighted historical simulation, average the component losses using the appropriate weights within the worst 1−α1-\alpha tail mass, including only the necessary fraction of a scenario at the boundary when weights do not line up exactly.

A practical workflow is:

  1. Define the horizon, loss sign convention, confidence level, and portfolio valuation consistently for all positions.
  2. Estimate total VaR or ES using the chosen model or scenario distribution.
  3. Estimate marginal contributions by analytic derivatives, tail-conditioned component losses, or controlled finite differences.
  4. Multiply each marginal by its position and check that the contributions sum to total risk within numerical tolerance.
  5. Inspect large positive and negative contributions and stress their stability across samples, models, and market regimes.

A reconciliation check is necessary, not sufficient

Exact summation verifies the allocation arithmetic and homogeneity assumptions. It does not show that the underlying loss distribution, scenario set, pricing model, or risk horizon is appropriate.

Nonsmoothness, VaR, and interpretation

VaR is homogeneous but can fail subadditivity and may be non-differentiable, especially in discrete scenario distributions where several scenarios tie at the quantile. Euler allocations may then be non-unique or unstable. ES is a coherent alternative under standard definitions and is often easier to allocate, but discrete tails still need a consistent treatment of boundary mass. Finite-difference estimates should be checked across bump sizes because local derivatives can be noisy.

Risk contributions are local to the current portfolio and risk model. They are useful for capital allocation, concentration monitoring, and identifying hedges, but they do not automatically prescribe trades. Transaction costs, liquidity, constraints, expected return, and the effect of changing positions on model estimates all matter for a portfolio decision.

Show answer

A two-position portfolio has total ES of 10 units and Euler contributions of 13 and -3. What does the negative contribution mean, and why is it not an arithmetic error? What should you verify before calling the second position a reliable hedge?

Further reading

  • Tasche, “Euler Allocation: Theory and Practice,” on homogeneous risk measures, VaR, ES, and practical allocation, paper PDF.