Gini Mean Difference Risk Parity

The Gini Mean Difference Risk Parity gives every asset the same share, or its budgeted share, of the Gini mean difference of the portfolio, the average absolute difference between its returns in two periods (Yitzhaki, 1982).

The formula for the Gini Mean Difference 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 GMD by that weight, to its budget \(b_{i}\) times GMD:

\[X_{t} = \sum_{i=1}^{N} w_{i} \cdot r_{i,t}\] \[\text{GMD} = \frac{\sum_{s=1}^{T} \sum_{t=1}^{T} \left\lvert X_{s} - X_{t}\right\rvert}{T \cdot (T - 1)}\] \[\text{RC}_{i} = b_{i} \cdot \text{GMD}\]

It spreads the dispersion of the returns like the Volatility Risk Parity, with absolute rather than squared differences.

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: GMD risk parity.

In the Finance Toolkit this is get_risk_parity_weights with risk_measure="gini_mean_difference", 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="gini_mean_difference", 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 Yitzhaki, S. (1982). “Stochastic Dominance, Mean Variance, and Gini’s Mean Difference.” The American Economic Review, 72(1), 178-185.
  • 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