Semideviation Risk Parity

The Semideviation Risk Parity gives every asset the same share, or its budgeted share, of the downside deviation of the portfolio below a return of zero (Sortino and Price, 1994), so only the periods in which the portfolio loses count.

The formula for the Semideviation 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 sets the risk contribution \(\text{RC}_{i}\) of every asset, its weight times the derivative of SD by that weight, to its budget \(b_{i}\) times SD:

\[X_{t} = \sum_{i=1}^{N} w_{i} \cdot r_{i,t}\] \[\text{SD} = \sqrt{\frac{\sum_{t=1}^{T} \min\left(X_{t}, 0\right)^{2}}{T}}\] \[\text{RC}_{i} = b_{i} \cdot \text{SD}\]

Assets that lose when the portfolio loses get smaller weights, while upside swings do not count against an asset.

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: downside risk parity, semideviation risk budgeting.

In the Finance Toolkit this is get_risk_parity_weights with risk_measure="semideviation", 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="semideviation", 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 Sortino, F. A. and Price, L. N. (1994). “Performance Measurement in a Downside Risk Framework.” The Journal of Investing, 3(3), 59-64.
Share