EVT CVaR

The EVT CVaR uses Extreme Value Theory: it fits a Generalized Pareto Distribution to the losses beyond a high threshold only (peaks over threshold) and averages the tail of that distribution.

The formula for the EVT CVaR starts from the EVT VaR as a positive loss, with u the loss at a high percentile of the losses (the threshold), xi and Scale_GPD the shape and scale of the Generalized Pareto Distribution fitted to the losses above it, p the fraction of losses above it and alpha the tail probability (0.05 for the 95% confidence level):

\[\text{VaR}_{\text{Loss}} = u + \left(\frac{\text{Scale}_{\text{GPD}}}{\xi}\right) \cdot \left(\left(\frac{\alpha}{p}\right)^{-\xi} - 1\right)\]

The losses beyond the VaR exceed it on average by the mean excess of the Generalized Pareto Distribution, which rises linearly with the level, and the CVaR is the resulting average loss as a return:

\[\text{EVT CVaR} = -\frac{\text{VaR}_{\text{Loss}} + \text{Scale}_{\text{GPD}} - \xi \cdot u}{1 - \xi}\]

It models the extreme tail directly and suits small alphas, but rests on few observations, so it needs a long history. A larger shape xi means a fatter tail; for a shape of 1 or more the tail has no mean and the EVT CVaR does not exist, while the EVT VaR still does.

The Conditional Value at Risk (CVaR), also called the Expected Shortfall (ES), is the average return of the periods that fall at or below the Value at Risk (VaR). Where the VaR says how bad a period gets at the chosen confidence level, the CVaR says how bad the periods beyond it are on average: a 5% CVaR of -0.045 means that the worst one in twenty periods lose 4.5% on average. At the same alpha the CVaR is always at least as bad as the VaR, and the gap between the two shows how fat the tail is.

The CVaR exists because the VaR has two flaws. Artzner, Delbaen, Eber and Heath (1999) set out the properties a coherent risk measure needs, and the VaR fails one of them, subadditivity: the VaR of a portfolio can exceed the sum of the VaRs of its parts, so it can penalise diversification. The VaR also ignores everything beyond its quantile, so a position with rare but catastrophic losses can have the same VaR as a much safer one. The CVaR is coherent (Acerbi and Tasche, 2002) and weighs the size of the losses in the tail, and Rockafellar and Uryasev (2000) showed that it can be minimized as a linear program, which made it a standard objective in portfolio optimization. The Basel Committee’s minimum capital requirements for market risk (the Fundamental Review of the Trading Book) replaced the 99% VaR with the 97.5% Expected Shortfall for banks’ market-risk capital.

The CVaR is a return (negative for a loss). It rests on the few returns in the tail (a year of daily returns at the 95% confidence level leaves about 12 days), so a single extreme day can move it a lot; a longer window or a fitted distribution gives a steadier figure. Compare assets over the same period and confidence level. The methods differ in how they estimate the tail, from the plain history to fitted distributions and volatility models.

Several tail probabilities \(\alpha_{1}\) to \(\alpha_{K}\) can be combined into the Weighted Conditional Value at Risk (Weighted CVaR), the weighted sum of the CVaR at each of them.

The formula for the Weighted Conditional Value at Risk is as follows:

\[\text{Weighted CVaR} = \sum_{k=1}^{K} \text{Weight}_{k} \cdot \text{CVaR}(\alpha_{k})\]

Where \(\text{CVaR} (\alpha_{k})\) is the CVaR at the tail probability \(\alpha_{k}\) and \(\text{Weight}_{k}\) its weight. With non-negative weights that sum to 1 this is a spectral risk measure (Acerbi, 2002): it weighs the worst returns more than the CVaR at the largest alpha does, and any weighting of the tail can be built from enough tail probabilities.

Also known as: extreme value CVaR, peaks over threshold CVaR, POT CVaR, GPD expected shortfall.

In the Finance Toolkit this is get_conditional_value_at_risk with method="evt", the same function as Conditional Value at Risk (cVaR).

Example · XOM, CVX, COP · 2025

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

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["XOM", "CVX", "COP"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2025-01-01",
    end_date="2025-12-31",
)

toolkit.risk.get_conditional_value_at_risk(method="evt")

Which returns:

References

  • Paper Conditional Value at Risk: Artzner, P., Delbaen, F., Eber, J.-M. and Heath, D. (1999). “Coherent Measures of Risk.” Mathematical Finance, 9(3), 203-228.
  • Paper Conditional Value at Risk: Basel Committee on Banking Supervision (2019). “Minimum capital requirements for market risk.”
  • Paper Weighted CVaR: Acerbi, C. (2002). “Spectral Measures of Risk: A Coherent Representation of Subjective Risk Aversion.” Journal of Banking & Finance, 26(7), 1505-1518.
  • Paper Weighted CVaR: Cajas, D. (2021). “OWA Portfolio Optimization: A Disciplined Convex Programming Framework.” SSRN Electronic Journal.
  • Paper McNeil, A.J. and Frey, R. (2000). “Estimation of Tail-Related Risk Measures for Heteroscedastic Financial Time Series: An Extreme Value Approach.” Journal of Empirical Finance, 7(3-4), 271-300.
  • Library Shares similar logic as empyrical’s gpd_risk_estimates (EVT CVaR)
Share