↓ Skip to main content
  1. Finance & Markets/

VaR vs CVaR: The Tail a 99% Cut-off Hides

Author
Yauheni Yakauleu
Short, practical articles on quant methods, alternative data, and applied AI. Code Insights, Touch IT LLC.

Value at Risk (VaR) is the most-used market-risk number in finance. A 1-day 99% VaR of $1M says: on average, once a hundred days, you lose more than $1M. It is precise about one thing and blind about another — it marks where the tail begins, but says nothing about how bad the rest of the tail is.

The fix is Expected Shortfall (ES), also called Conditional VaR (CVaR). Where VaR is a single cut-off, ES is the average loss in the tail beyond that cut-off. It is the coherent risk measure, and the one the Basel Committee’s Fundamental Review of the Trading Book (FRTB) is moving capital to.

In this post we build both in NumPy, check ES against a closed form, and show on real numbers why ES is the number that survives a crisis — and why VaR quietly misprices it.

The two measures, defined
#

Let ( L ) be a loss random variable (positive = loss) and ( \alpha ) a confidence level (0.99, 0.975, …).

  • Value at Risk is the ( \alpha )-quantile of the loss: the level exceeded with probability ( 1-\alpha ).

$$ \text{VaR}_\alpha = \inf{, \ell : P(L \le \ell) \ge \alpha ,} $$

  • Expected Shortfall is the mean of the loss conditioned on being at or beyond that cut-off — the tail you actually lose money on:

$$ \text{ES}\alpha = \frac{1}{1-\alpha}\int\alpha^1 \text{VaR}_u,du $$

For a continuous distribution this equals the more intuitive ( \mathbb{E}[L \mid L \ge \text{VaR}\alpha] ). That is why ES is sometimes called mean excess loss or average loss beyond VaR. By construction ( \text{ES}\alpha \ge \text{VaR}_\alpha ): ES is always at least the cut-off, and strictly larger whenever the tail carries weight beyond it.

The closed form you can check against
#

For a normal loss ( L \sim N(\mu, \sigma^2) ) both measures have closed forms:

$$ \text{VaR}_\alpha = \sigma,\Phi^{-1}(\alpha) - \mu $$

$$ \text{ES}_\alpha = \sigma,\frac{\varphi\big(\Phi^{-1}(\alpha)\big)}{1-\alpha} - \mu $$

where ( \Phi^{-1} ) is the standard-normal quantile and ( \varphi ) its density. The ES term ( \varphi(z)/(1-\alpha) ) is not a guess — it is exactly the mean of the standard normal above its ( \alpha )-quantile, which we can verify numerically:

import numpy as np
from scipy.stats import norm

alpha = 0.99
sigma, mu = 1.0, 0.0

# Closed forms for a normal loss
z = norm.ppf(alpha)
var_normal = z * sigma - mu
es_normal = sigma * norm.pdf(z) / (1 - alpha) - mu

print(f"z_0.99   = {z:.4f}")
print(f"VaR_99   = {var_normal:.4f}   (closed form)")
print(f"ES_99    = {es_normal:.4f}   (closed form)")
print(f"ES/VaR   = {es_normal/var_normal:.4f}")

# Verify empirically, seed 42
rng = np.random.default_rng(42)
N = 1_000_000
losses = -rng.normal(mu, sigma, N)
var_emp = np.quantile(losses, alpha)
es_emp = losses[losses >= var_emp].mean()
print(f"empirical VaR_99 = {var_emp:.4f}")
print(f"empirical ES_99  = {es_emp:.4f}")
z_0.99   = 2.3263
VaR_99   = 2.3263   (closed form)
ES_99    = 2.6652   (closed form)
ES/VaR   = 1.1457
empirical VaR_99 = 2.3303
empirical ES_99  = 2.6709

The empirical ES (2.6709) lands within sampling noise of the closed form (2.6652) over a million draws. That is the reproducibility bar: every number here is either a closed form or a seed-42 simulation you can rerun top to bottom.

How the gap grows with the tail
#

The normal case gives ES/VaR ≈ 1.146 — ES is about 15% larger than VaR even when the world is Gaussian. The ratio is far more interesting once the tail is heavier. Scale Student-(t) returns to unit variance and measure ES/VaR at 99% across degrees of freedom:

print("df    VaR_99    ES_99   ES/VaR")
for df in [3, 5, 10, 30, 100]:
    scale = 1.0 / np.sqrt(df / (df - 2))   # scale t so its std = 1
    tail = -rng.standard_t(df, N) * scale
    v = np.quantile(tail, alpha)
    e = tail[tail >= v].mean()
    print(f"{df:3d}  {v:7.4f}  {e:7.4f}  {e/v:6.3f}")
df    VaR_99    ES_99   ES/VaR
  3   2.6244   4.0372   1.538
  5   2.6072   3.4682   1.330
 10   2.4621   2.9985   1.218
 30   2.3719   2.7639   1.165
100   2.3362   2.6884   1.151

As the degrees of freedom fall, the tail thickens and the ratio climbs: 1.15× for a near-normal (( df=100 )) book, 1.22× for ( df=10 ), and 1.54× for ( df=3 ). A book with ( t_3 )-like returns is capitalizing its VaR at roughly two-thirds of the tail loss it actually carries. The ratio is a quick, honest “how fat is my tail” diagnostic — and it is the single number a PM should track alongside VaR.

Why VaR breaks and ES does not: coherence
#

A coherent risk measure (Artzner, Delbaen, Eber and Heath, 1999) must be monotone, translation-invariant, positively homogeneous, and subadditive — combining two positions cannot increase measured risk more than adding the two risks:

$$ \rho(L_1 + L_2) \le \rho(L_1) + \rho(L_2) $$

VaR fails the last axiom. Consider a portfolio of 20 uncorrelated positions, each losing $1 with probability ( 1/20 = 0.05 ). Each position’s 95% VaR is zero — 95% of the time it does not lose. Yet the portfolio loses $1 every day, because exactly one position fires. VaR charges the combined book $1 while the sum of the parts is $0:

n, p = 20, 1 / 20
# Each position loses $1 with prob 0.05, else $0; the 20 are independent.
# 95% VaR of one position: P(loss=0)=0.95 >= 0.95, so the 95% quantile is 0.
var_single = 0.0
es_single = p                 # E[L | L>=0] = E[L]
# Exactly one position fires every day, so the portfolio loses $1 always.
var_combo = 1.0
es_combo = 1.0
print(f"VaR: combo {var_combo}  vs  sum of singles {n*var_single}  -> NOT subadditive")
print(f"ES : combo {es_combo}  vs  sum of singles {n*es_single}  -> subadditive")
VaR: combo 1.0  vs  sum of singles 0.0  -> NOT subadditive
ES : combo 1.0  vs  sum of singles 1.0  -> subadditive

A measure that can charge a portfolio more than the sum of its pieces violates the most basic property of a risk number. ES passes: it charges $1, matching the $1 the portfolio actually loses. ES is coherent; VaR is not. (One subtlety worth knowing: the naive “average loss beyond VaR” is not coherent on discrete distributions — Acerbi and Tasche (2002) gave the robust definition FRTB now uses, and for continuous losses the two coincide.)

What this changed in practice
#

The 2008 crisis was a VaR failure mode on a stage: the 99% cut-off looked fine on the 99 days you could see, while the tail you ignored was the whole crisis — and it was correlated across the very positions VaR treated as independent. ES, by averaging the tail, would have flagged the severity.

That is exactly why the Basel Committee’s Fundamental Review of the Trading Book (FRTB), disclosed January 2016, replaced 99% VaR with 97.5% Expected Shortfall as the internal-models capital metric — paired with risk-factor-specific liquidity horizons of 10, 20, 40, 60, and 120 days. Implementation is staggered and, as of late 2026, still arriving:

  • EU: deferred to 1 January 2027 under CRR3 (Regulation (EU) 2024/1623), with a temporary capital multiplier running through 31 December 2029.
  • UK: standardised approach from 1 January 2027, internal-models approach from 1 January 2028 (PRA Policy Statement PS1/26, January 2026).
  • US: the Fed, FDIC, and OCC re-proposed an FRTB-style rule on 19 March 2026; the comment period closed 18 June 2026 with no start date set as of November 2026.

The headline number for a regulated trading desk is becoming ES, not VaR. A portfolio manager who only watches VaR is watching the metric being retired.

How to act
#

  • Report the ratio, not just VaR. ES/VaR ≈ 1.15 is a “normal-ish” book; 1.5+ is a fat-tailed one that VaR is under-capitalizing. Compute it on your own loss distribution.
  • Hold capital and stress to ES. VaR is fine as a quick threshold; ES is what you should fund and what you stress-test, because it is the one that is coherent.
  • Mind the confidence. FRTB uses 97.5%, not 99% — a lower confidence but a tail-averaged measure, which together capture more tail risk than 99% VaR.
  • Check the data source. On discrete or gapped loss data the naive “mean beyond VaR” can misbehave; use the Acerbi–Tasche definition or an ES/CVaR solver.

The takeaway is small and durable: VaR tells you where the tail starts; ES tells you how far it goes. When your book has a heavy tail, the two numbers disagree — and the one you should fund is ES.


Reproducible: NumPy + SciPy, seed 42. ES verified against the closed form to within sampling noise.

References
#

  • Jorion, P. Value at Risk: The New Benchmark for Managing Financial Risk — Philippe Jorion [Amazon] — the standard practitioner text on VaR and its limits.
  • McNeil, A. J., Frey, R., Embrechts, P. Quantitative Risk Management: Concepts, Techniques and Tools — Alexander J. McNeil [Amazon] — coherent risk measures and ES in full.
  • Artzner, P., Delbaen, F., Eber, J. M., Heath, D. “Coherent Measures of Risk.” Mathematical Finance, 1999. — the four axioms.
  • Rockafellar, R. T. and Uryasev, S. “Optimization of Conditional Value-at-Risk.” Journal of Risk, 2000. — the CVaR name and its tractable formulation.
  • Acerbi, C. and Tasche, D. “On the coherence of Expected Shortfall.” Journal of Banking and Finance, 2002. — why ES is the coherent, robust definition.
  • Basel Committee on Banking Supervision, Fundamental Review of the Trading Book (FRTB), January 2016 — the ES 97.5% capital rule.

Related

Value at Risk Backtesting in Python: Comparing Historical, Parametric, and Monte Carlo Methods

Value at Risk (VaR) is the most widely used measure of market risk in finance. It answers a simple question: What is the worst loss I can expect over a given horizon with a certain confidence level? For example, a 1-day 99% VaR of $1M means that, on average, only 1 out of 100 days should see a loss exceeding $1M. But VaR is only useful if it actually captures real losses at the claimed frequency. This is where backtesting comes in: we check whether the number of exceedances (days when losses exceeded the VaR forecast) matches the confidence level. In this post, we implement three VaR estimation methods from scratch in NumPy: Historical VaR — ranking past returns and picking the quantile Parametric (Delta-Normal) VaR — assuming returns are normally distributed Monte Carlo VaR — simulating future paths from a calibrated model We then backtest each method against a known portfolio and verify that the coverage rates match the claimed confidence levels.

Calculating Implied Volatility with Newton-Raphson in NumPy - Verified Against Market Prices

When we have a market price for an option, we often want to know what implied volatility produced that price. This is the implied volatility (IV) — the volatility parameter that, when fed into the Black-Scholes formula, reproduces the observed market price. In this post, we implement a robust implied volatility solver in NumPy using Newton-Raphson optimization with a bisection fallback, and verify it against test cases where the true volatility is known.

Implied Volatility Surface Construction from Local Volatility — Dupire Formula Verification

The volatility surface is the cornerstone of modern option pricing. Market participants quote prices in terms of implied volatility rather than price, and pricing models must reproduce this surface to be viable. In this post, we build an implied volatility surface from a local volatility model: simulate paths under the local volatility dynamics, compute call prices, and invert Black-Scholes numerically. Along the way we state Dupire’s formula correctly — it maps option prices to local volatility, not the other way around — together with Gatheral’s formula, which is the known analytical bridge from the implied surface to the local one. Every number shown comes from a reproducible NumPy script with numpy.random.default_rng(42).