Conditional Value at Risk Parity

The Conditional Value at Risk Parity gives every asset the same share, or its budgeted share, of the expected shortfall of the portfolio, the average loss in its worst alpha share of the periods (Rockafellar and Uryasev, 2000).

The formula for the Conditional Value at Risk Parity starts from the return \(X_{t}\) of the portfolio in each of the T periods, with \(w_{i}\) the weight and \(r_{i , t}\) the return of asset i of the N assets, and the tail probabilities \(p_{t}\): 1 / (alpha * T) for each of the floor(alpha * T) lowest returns, what is left of a total of 1 for the next one and zero for the others, with alpha the tail probability. It sets the risk contribution \(\text{RC}_{i}\) of every asset, its weight times its average loss in the tail periods, to its budget \(b_{i}\) times the CVaR:

\[X_{t} = \sum_{i=1}^{N} w_{i} \cdot r_{i,t}\] \[\text{CVaR} = -\sum_{t=1}^{T} p_{t} \cdot X_{t}\] \[\text{RC}_{i} = -w_{i} \cdot \sum_{t=1}^{T} p_{t} \cdot r_{i,t}\] \[\text{RC}_{i} = b_{i} \cdot \text{CVaR}\]

Assets that fall together with the rest in the worst periods get smaller weights than the Volatility Risk Parity gives them; the tail rests on few periods, so the weights move more from one sample to the next.

Volatile assets get smaller weights, and correlated assets share their risk budget, so no single asset dominates the portfolio’s risk. Risk parity needs no expected returns, which are the inputs mean-variance analysis is most sensitive to, and spreads the risk where an equally weighted portfolio spreads the capital (Maillard, Roncalli and Teïletche, 2010). The risk contribution of an asset is its weight times the derivative of the risk measure by that weight; for the measures here, which double when every weight doubles, the contributions add up to the risk of the portfolio, and risk parity sets each to its budget, an equal share by default. For a risk measure other than the volatility, the weights are those of the y that minimizes the measure subject to a logarithmic barrier on the budgets, scaled to sum to one (Roncalli, 2013), which makes the problem convex.

Also known as: CVaR risk parity, expected shortfall risk parity, CVaR risk budgeting.

In the Finance Toolkit this is get_risk_parity_weights with risk_measure="cvar", the same function as Risk Parity.

Example · AAPL, MSFT, JNJ, XOM · 2021 to 2025

Install the Finance Toolkit with pip install financetoolkit -U, then call get_risk_parity_weights:

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["AAPL", "MSFT", "JNJ", "XOM"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

toolkit.portfolio.get_risk_parity_weights(risk_measure="cvar", sector_bounds={"Healthcare": (0, 0.3)})

Which returns:

References

  • Paper Roncalli, T. (2013). “Introduction to Risk Parity and Budgeting.” Chapman & Hall/CRC, Boca Raton.
  • Paper Rockafellar, R. T. and Uryasev, S. (2000). “Optimization of Conditional Value-at-Risk.” Journal of Risk, 2(3), 21-41.
  • Paper Kelley, J. E. (1960). “The Cutting-Plane Method for Solving Convex Programs.” Journal of the Society for Industrial and Applied Mathematics, 8(4), 703-712.
Share