Skip to content

VaR and Expected Shortfall Compared on the Same Loss Distribution

Original question

What is the difference between Value at Risk and Expected Shortfall, and which is more useful for managing portfolio risk?
Value at Risk (VaR) is a loss threshold at a specified confidence level and horizon. Expected Shortfall (ES) is the average loss in the worst fraction of outcomes implied by that confidence level. At 95% confidence, ES describes the average of the worst 5%. ES is more informative when loss severity drives the decision, while VaR provides a clear threshold for monitoring exceedances.

When the quantile cuts through a group of equal losses

Write losses as positive values and let FLF_L be the loss distribution. The confidence-α\alpha quantile is
VaRα(L)=inf⁡{ℓ:FL(ℓ)≥α}.\mathrm{VaR}_\alpha(L)=\inf\{\ell:F_L(\ell)\ge\alpha\}.

For an integrable loss, the upper-tail Expected Shortfall is

ESα(L)=11−α∫α1VaRu(L) du.\mathrm{ES}_\alpha(L)=\frac{1}{1-\alpha}\int_\alpha^1\mathrm{VaR}_u(L)\,du.
For a continuous loss distribution, this is the conditional mean beyond VaR. If many outcomes have a loss exactly equal to VaR, include only enough of that probability mass to fill the worst 1−α1-\alpha portion. Equivalently, with q=VaRα(L)q=\mathrm{VaR}_\alpha(L), ES is q+E[(L−q)+]/(1−α)q+\mathbb E[(L-q)^+]/(1-\alpha). Under the usual integrability assumptions, ES is subadditive, so the ES of two positions together is bounded above by the sum of their individual ES values. VaR can fail that property.

Suppose a portfolio breaks even on 90% of days, loses 10,000 dollars on 7% and loses 50,000 dollars on 3%. At 10,000 dollars, the cumulative probability reaches 97%, so the 95% VaR is 10,000 dollars. The worst 5% includes all 3% of the 50,000 dollars days and two percentage points of the 10,000 dollars days. The 95% ES is therefore

0.03(50,000)+0.02(10,000)0.05=34,000.\frac{0.03(50{,}000)+0.02(10{,}000)}{0.05}=34{,}000.

Averaging losses strictly above 10,000 dollars would give 50,000 dollars and describe only the worst 3%. Averaging all losses at or above 10,000 dollars would include 10% of the outcomes. The quantile definition gives the desired 5% tail in both continuous and discrete examples.

Imagine ranking 100 equally weighted days from worst to best. The three days losing 50,000 dollars occupy three slots in the five-day tail. Two more slots are filled by days losing 10,000 dollars, even though seven days share that loss. It does not matter which two days you pick because their losses are identical. That is the discrete reason to count probability mass up to the tail boundary rather than averaging all observations at or above VaR.

A second desk could have the same 95% VaR and a very different expected shortfall. Keep the three worst days at a combined probability of 3%, but let each of them lose 100,000 dollars instead of 50,000. The quantile still lands on 10,000 because the probability below and at that level is unchanged. The worst 5% now averages (3×100,000+2×10,000)/5=64,000(3\times100{,}000+2\times10{,}000)/5=64{,}000. That gap is the loss severity information the original 10,000-dollar threshold leaves out.

Verify the discrete calculation

import numpy as np losses = np.array([0, 10_000, 50_000]) probabilities = np.array([0.90, 0.07, 0.03]) alpha = 0.95 var = losses[np.searchsorted(probabilities.cumsum(), alpha)] es = var + (probabilities @ np.maximum(losses - var, 0)) / (1 - alpha) print(var, round(es))

Interactive example

Compare a loss threshold with losses beyond it

A synthetic set contains 100 equally likely losses, including one large loss. Expected shortfall averages the worst observations with fractional weight at a boundary.

95% VaR 4.18% · ES 7.75% · worst 20%
Sorted synthetic losses and the value-at-risk threshold01020125.850.575.3100Sorted observationLoss (%)
  • Sorted losses
  • VaR threshold

References and next steps