Small Group Tutorials

Here to help students catch up, keep up, and move ahead. Book a consultation here.

How Euler Risk-Capital Allocation Algorithms Decompose Portfolio Risk: Marginal Contributions, Homogeneity, Expected Shortfall, RORAC and Diversification Diagnostics

Reader question: A bank can calculate one portfolio risk number — for example volatility, VaR, Expected Shortfall or economic capital. But how can it divide that total across desks, positions or business units without double-counting diversification?

The Euler allocation principle provides one mathematically disciplined answer. If a portfolio risk measure is differentiable and positively homogeneous of degree one, Euler’s theorem says the total risk can be decomposed exactly into position size multiplied by marginal risk sensitivity.

For component i with exposure xi and total risk measure ρ(x):

RCi = xi · ∂ρ/∂xi.

Under the required conditions:

ρ(x) = Σ RCi.

This creates a full allocation: every unit of portfolio risk is assigned somewhere, including the effect of diversification.

What this page owns — and what it does not

This page owns the decomposition:

aggregate differentiable homogeneous risk measure → marginal sensitivities → additive component risk contributions.

It does not replace VaR and Expected Shortfall calculation, FRTB market-risk capital, credit-portfolio dependence modelling, or reverse stress testing.

This is risk-allocation mathematics, not advice on capital structure, investment allocation or regulatory reporting for any specific institution.

Why naive proportional allocation is unsatisfactory

Suppose two business units each have standalone risk of 100, but their combined portfolio risk is only 150 because diversification reduces joint loss.

A naive rule such as “allocate in proportion to standalone risk” can assign 75 to each unit. That adds correctly to 150, but it does not say how each unit changes portfolio risk at the margin.

Another naive rule might allocate 100 to each and ignore diversification entirely, producing 200 of assigned capital against only 150 of portfolio risk.

Euler allocation uses the derivative of the portfolio risk measure, so diversification is embedded in each contribution.

Positive homogeneity is the mathematical key

A risk measure ρ is positively homogeneous of degree one if:

ρ(a x) = a ρ(x)

for a > 0.

If every position is doubled, total risk doubles.

Euler’s theorem then gives:

ρ(x) = Σ xi ∂ρ/∂xi

when the function is sufficiently differentiable.

The allocation contribution is therefore not invented separately. It falls directly out of the geometry of a homogeneous risk function.

Marginal risk versus component risk

The marginal risk contribution is:

MRCi = ∂ρ/∂xi.

It answers:

How much would total risk change for an infinitesimal increase in component i?

The Euler component contribution is:

RCi = xiMRCi.

It answers:

How much of current total risk is attributed to component i under Euler decomposition?

Confusing the marginal derivative with the allocated amount is a common implementation mistake.

Worked example: portfolio volatility

For portfolio weights w and covariance matrix Σ:

σp = √(wᵀΣw).

The marginal contribution of asset i is:

∂σp/∂wi = (Σw)ip.

So the Euler contribution is:

RCi = wi(Σw)ip.

And:

Σ RCi = σp.

This is an exact decomposition, not an approximation, provided the covariance matrix and weights are the same as those used in the portfolio-volatility calculation.

A two-asset intuition

Suppose Asset A has a large dollar weight but is negatively correlated with Asset B.

Its Euler contribution can be much smaller than its standalone volatility would suggest because adding A to the current portfolio may partly offset B’s risk.

In sufficiently strong hedging situations, an Euler risk contribution can even be negative.

That does not mean Asset A has negative standalone risk. It means the asset reduces the chosen portfolio risk measure at the current point.

Negative contributions are information, not automatically bugs

If RCi < 0, the component is acting as a hedge under the current risk measure and portfolio state.

A system that automatically floors every contribution at zero destroys the exact Euler decomposition:

Σ max(RCi,0) ≠ ρ(x)

in general.

If a governance process does not want negative allocated capital, it needs an explicit secondary allocation rule rather than silently modifying Euler contributions.

Expected Shortfall and Euler allocation

Expected Shortfall is especially important because it measures the average loss in the tail beyond the VaR threshold and is positively homogeneous under standard portfolio scaling.

Under suitable regularity conditions, Euler Expected Shortfall contributions can be expressed through conditional tail losses. Conceptually:

RCiES = E[Li | portfolio is in the relevant tail],

with precise formulas depending on the distribution and ES definition.

The contribution answers which positions are actually driving the portfolio’s bad-loss scenarios, rather than allocating tail risk merely by notional size.

Why Expected Shortfall is often easier to allocate robustly than VaR

VaR is a quantile. In discrete or non-smooth loss distributions, small position changes can cause the quantile to jump.

The derivative may be unstable or undefined.

Expected Shortfall averages across a tail region and is often smoother for contribution estimation, though finite Monte Carlo samples can still be noisy.

This does not make every ES implementation automatically differentiable. The numerical estimator still needs validation.

VaR contributions and the differentiability problem

For continuous smooth distributions, VaR can admit Euler contributions. Under other distributions — especially portfolios with defaults, options, discrete scenarios or concentrated jump risks — the VaR surface can have kinks.

A finite-difference derivative:

[ρ(x + εei) − ρ(x)]/ε

can then change materially as ε changes.

That is a diagnostic warning that the local derivative is not stable enough to carry economic meaning.

Full allocation property

The strongest operational invariant is:

Total allocated capital = total portfolio risk.

For Euler contributions:

Σ RCi = ρ.

If the sum differs materially before display rounding, one of the following is likely true:

  • the risk measure is not homogeneous;
  • the numerical derivative is wrong;
  • positions changed between total-risk and contribution runs;
  • risk factors or scenarios differ between the two calculations;
  • rounding or currency conversion happened too early.

RORAC compatibility

Dirk Tasche’s work gives Euler allocation an economic interpretation through Return on Risk-Adjusted Capital (RORAC).

Suppose business unit i has expected profit μi and allocated risk capital RCi:

RORACi = μi/RCi.

Under appropriate conditions, if a unit’s marginal RORAC exceeds the portfolio RORAC, increasing that unit slightly should improve portfolio RORAC. Euler allocation aligns local business-unit performance signals with the portfolio-level objective.

This is one reason Euler allocation is widely used in internal capital and risk-budgeting contexts.

Standalone risk versus allocated risk

Let standalone risk for unit i be:

SAi = ρ(xi alone).

Euler allocated risk RCi is generally different because it depends on the unit’s interaction with the rest of the portfolio.

The diversification benefit can be analysed through differences such as:

Σ SAi − ρ(portfolio).

Euler allocation distributes the portfolio total; it does not claim each allocated contribution equals standalone risk.

Risk-factor contributions versus position contributions

Position-level Euler allocation can be clean when portfolio value is represented directly as a function of position sizes.

Risk-factor attribution can be more difficult in nonlinear portfolios because factors interact. Delta, gamma, volatility and cross-gamma terms can create overlapping effects.

A risk engine should distinguish:

  • position contribution: allocate total risk across instruments or books;
  • factor sensitivity: show how risk changes with a market factor;
  • scenario attribution: explain which shocks dominate specific losses.

These are related but not interchangeable.

Inputs and outputs

An Euler allocation engine can require:

  • portfolio positions or business-unit exposures;
  • aggregate risk measure definition;
  • risk horizon and confidence level;
  • scenario set or covariance/distribution model;
  • pricing model version;
  • currency conversion conventions;
  • derivative method: analytical, automatic differentiation, conditional expectation or finite difference;
  • numerical bump size where finite differences are used;
  • portfolio snapshot timestamp.

Outputs can include:

  • total portfolio risk;
  • marginal contribution by component;
  • Euler allocated contribution;
  • percentage contribution;
  • standalone risk;
  • diversification benefit;
  • RORAC or risk-adjusted performance metrics;
  • allocation residual and diagnostic status.

Evidence polarity: what supports confidence?

Evidence for confidence includes contributions summing exactly to total risk before display rounding, analytical and numerical derivatives agreeing, stable contributions across reasonable bump sizes, Expected Shortfall contributions reproducing conditional-tail estimates, and contribution signs changing logically when hedges are added or removed.

Evidence against confidence includes large unexplained allocation residuals, component risk moving in the wrong direction after exposure is increased, wildly unstable finite-difference contributions, contributions calculated from a different scenario set than total risk, or negative hedging contributions being silently clipped to zero.

Counterexample: equal notional does not imply equal risk contribution

Two positions can have identical dollar notionals but different volatility, duration, convexity or correlation with the rest of the portfolio.

Euler allocation can assign radically different contributions even when capital weights look equal.

Counterexample: largest standalone risk need not have largest allocated risk

A volatile position that strongly hedges another book can have large standalone risk but modest portfolio contribution.

Conversely, a lower-volatility exposure that is highly correlated with existing risk can contribute disproportionately to total portfolio risk.

Counterexample: contributions can change while total risk barely moves

Two offsetting positions can rotate risk between components while leaving aggregate risk similar.

A stable top-line capital number does not imply the portfolio’s internal risk ownership is stable.

Counterexample: Euler allocation does not solve every fairness question

Euler allocation is local: it asks for marginal contribution around the current portfolio.

A Shapley-value allocation instead averages incremental contribution across many possible coalition orderings. Shapley allocation can answer a different fairness question but is computationally much more expensive for large portfolios.

Neither is universally “correct” independent of the allocation objective.

Weak links in implementation

Non-homogeneous measure. Fixed charges, thresholds or floors can break degree-one homogeneity.

Non-differentiability. Quantile jumps make local VaR derivatives unstable.

Scenario mismatch. Total risk and contributions are calculated from different random seeds or scenarios.

Finite-difference noise. Bumps are too small relative to Monte Carlo error.

Large-bump distortion. Bumps are so large that they estimate nonlinear incremental risk rather than a local derivative.

Stale covariance/dependence. Diversification contributions reflect an old regime.

Currency inconsistency. Components and aggregate risk use different FX conversion timestamps.

Aggregation mismatch. Position-level contributions do not reconcile when rolled into desks or business units.

Diagnostics: how to test the engine

  • full-allocation test: require ΣRC = total risk within strict numerical tolerance.
  • scale test: double every position and verify total risk and every Euler contribution double for a degree-one homogeneous measure.
  • bump-size test: vary finite-difference ε across a reasonable range and look for stable derivatives.
  • analytical-versus-numerical test: use portfolio volatility where a closed-form Euler decomposition is known.
  • hedge test: add a negatively correlated position and verify its contribution can become small or negative.
  • tail-estimator test: compare ES Euler contributions with independent conditional-tail averages.
  • aggregation test: sum instrument contributions to desk, legal-entity and portfolio levels.
  • scenario-lock test: use identical scenarios for total risk and marginal runs.
  • regime test: recalculate contributions under stressed correlations or volatilities.
  • standalone comparison: explain large differences between standalone and allocated capital rather than treating them as errors.

What would falsify confidence?

Confidence should be withdrawn if contributions fail the full-allocation invariant; if derivatives do not converge as numerical settings are refined; if total risk is homogeneous but allocated contributions do not scale with exposure; if tail-risk contributors are inconsistent with the actual worst-loss scenarios; or if repeated model updates cause large contribution shifts with no corresponding change in portfolio economics.

Alternatives

Proportional allocation is simple but ignores marginal diversification structure.

Incremental allocation removes one component at a time, but contributions generally do not add exactly because removal order matters.

Shapley allocation averages marginal contributions across coalition orderings and has strong game-theoretic properties, but exact computation scales poorly.

Aumann–Shapley allocation integrates marginal contributions along a scaling path and coincides with Euler allocation for many homogeneous settings.

Scenario-based attribution explains specific stress losses even when a smooth global derivative does not exist.

How this connects to the surrounding knowledge estate

VaR and Expected Shortfall generate the top-line risk number. FRTB turns market-risk measures into regulatory capital under detailed rules. Correlation-matrix repair can sit upstream of covariance- or simulation-based portfolio risk. Euler allocation sits downstream: once total risk is computed, it asks which positions are responsible for it.

Verification and update triggers

Preserve the risk-measure version, scenario set, pricing-model version, exposure snapshot, derivative method, bump size, random seed policy and aggregation hierarchy. Revalidate after portfolio restructures, model migrations, covariance-regime shifts, changes from VaR to ES, stress-scenario redesign or any unexplained allocation residual.

Primary and high-quality references

Educational boundary: This article explains mathematical risk attribution. It does not prescribe internal capital, regulatory capital, portfolio weights or business-unit decisions for any institution.

Discover more from Bukit Timah Tutor

Subscribe now to keep reading and get access to the full archive.

Continue reading