Tail Gini Contribution

The Tail Gini Contribution splits the Tail Gini of the portfolio among the assets. The Tail Gini of Furman, Wang and Zitikis (2017) measures the losses in the worst alpha share of the returns and, unlike the Conditional Value at Risk, also how far those losses spread out; it is a weighted sum of the Conditional Value at Risk at tail probabilities up to alpha (Cajas, 2021).

The formula for the Tail Gini Contribution starts from the Conditional Value at Risk \(\text{CVaR} (\alpha_{j})\) of the portfolio returns \(X_{t}\), the sum of the weights \(w_{i}\) times the returns \(r_{i , t}\) of the N assets, at \(m = 100\) tail probabilities \(\alpha_{1} < \ldots < \alpha_{m} = \alpha\) spaced evenly from 0.0001, weighed with the coefficients \(c_{j}\), the middle one for every \(1 < j < m\):

\[X_{t} = \sum_{i=1}^{N} w_{i} \cdot r_{i,t}\] \[\text{TG} = \sum_{j=1}^{m} c_{j} \cdot \text{CVaR}(\alpha_{j})\] \[c_{1} = \frac{\alpha_{2} \cdot \alpha_{1}}{\alpha^{2}}\] \[c_{j} = \frac{(\alpha_{j+1} - \alpha_{j-1}) \cdot \alpha_{j}}{\alpha^{2}}\] \[c_{m} = \frac{\alpha_{m} - \alpha_{m-1}}{\alpha}\]

The marginal contribution \(\text{MC}_{i}\) follows from central differences of TG(w) at the weights w, with \(e_{i}\) the vector with 1 for asset i and 0 elsewhere and h a small step, and the risk contribution \(\text{RC}_{i}\) is the weight times it:

\[\text{MC}_{i} = \frac{\text{TG}(w + h \cdot e_{i}) - \text{TG}(w - h \cdot e_{i})}{2 \cdot h}\] \[\text{RC}_{i} = w_{i} \cdot \text{MC}_{i}\]

The contributions add up to the Tail Gini per period. The worst returns within the tail weigh more than in the Conditional Value at Risk, so the assets that fell most in the very worst periods take a larger share.

The risk contribution of an asset is its weight times its marginal contribution, the change in the risk of the portfolio from a small increase in that weight. Litterman (1997) used this decomposition to find the hot spots of a portfolio, the positions that add most to its risk, and the hedges that reduce it. For a risk measure that doubles when every weight doubles, Euler’s theorem makes the contributions add up to the risk of the portfolio (Tasche, 2000), so they split that risk among the assets: the Euler allocation. A large position in a calm asset can contribute less risk than a small one in a volatile asset, and an asset that tends to gain when the portfolio loses contributes a negative amount, as it hedges the rest. The percentage contribution, the risk contribution over the risk of the portfolio, compares directly with the weight: an asset whose share of the risk lies far above its share of the capital is a hot spot.

Also known as: Gini shortfall contribution.

In the Finance Toolkit this is get_risk_contributions with risk_measure="tail_gini", the same function as Risk Contributions.

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

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

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_contributions(risk_measure="tail_gini", weights={"AAPL": 0.4, "MSFT": 0.3, "JNJ": 0.2, "XOM": 0.1})

Which returns:

References

  • Paper Furman, E., Wang, R. and Zitikis, R. (2017). “Gini-Type Measures of Risk and Variability: Gini Shortfall, Capital Allocations, and Heavy-Tailed Risks.” Journal of Banking & Finance, 83, 70-84.
  • Paper Cajas, D. (2021). “OWA Portfolio Optimization: A Disciplined Convex Programming Framework.” SSRN Working Paper 3988927.
Share