The general value-at-risk and expected shortfall of Risk/ValueAtRisk.lean evaluated on two textbook laws (McNeil–Frey–Embrechts, Quantitative Risk Management, Example 2.14; QRM Exercise Book, Exercises 2.12 and 2.23):
- the exponential law
Exp(λ) (Mathlib's expMeasure), a light tail: VaR_α = −log(1 − α)/λ and ES_α = (1 − log(1 − α))/λ; - the Pareto law of Mathlib's
paretoMeasure t r (type I, F(x) = 1 − (t/x)^r on [t, ∞)) and its shift to the origin, the Lomax (Pareto type II) law Pa(θ, κ) with F(x) = 1 − (κ/(κ + x))^θ on [0, ∞) (lomaxMeasure), heavy tails: VaR_α = κ((1 − α)^{−1/θ} − 1) and ES_α = κ(θ/(θ − 1)·(1 − α)^{−1/θ} − 1) for θ > 1.
The two tails separate in the shortfall-to-quantile ratio ES_α/VaR_α as α → 1: it tends to 1 for the exponential law and to θ/(θ − 1) > 1 for the Lomax law. For the type-I Pareto law the ratio is r/(r − 1) at every level. A heavy tail makes the average loss beyond VaR a fixed multiple of VaR, however far into the tail one looks.
The median shortfall, the median of the loss conditional on exceeding VaR_α, is itself a value-at-risk, MS_α = VaR_{(1+α)/2}, whenever the distribution function is continuous (medianShortfall_eq_valueAtRisk, QRM Exercise Book, Exercise 2.29 b)).
Every quantile below is read off the CDF through quantile_eq_iff: quantile μ p = a exactly when p ≤ F(a) and F(x) < p for x < a. Mathlib records the Pareto CDF only as an integral of its density; cdf_paretoMeasure_of_le evaluates it.
Main definitions
lomaxMeasure: the Lomax (Pareto type II) law Pa(θ, κ), the type-I Pareto law of scale κ and shape θ shifted to the origin, with F(x) = 1 − (κ/(κ + x))^θ on [0, ∞).medianShortfall: the median of the law of a loss X conditioned on exceeding its value-at-risk, F⁻¹_{X | X > VaR_α(X)}(1/2).
Main results
valueAtRisk_eq_iff: a VaR is characterised by the CDF (from quantile_eq_iff in Probability/Laws/Quantile.lean).valueAtRisk_of_hasLaw_expMeasure (via quantile_expMeasure in Probability/Laws/Quantile.lean), expectedShortfall_of_hasLaw_expMeasure: the exponential closed forms.tendsto_expectedShortfall_div_valueAtRisk_expMeasure: ES_α/VaR_α → 1 (light tail).cdf_paretoMeasure_of_le, cdf_paretoMeasure_of_lt, quantile_paretoMeasure: the type-I Pareto CDF and quantile.expectedShortfall_of_hasLaw_paretoMeasure: ES_α = r/(r − 1)·VaR_α for type-I Pareto with r > 1.cdf_lomaxMeasure, valueAtRisk_of_hasLaw_lomaxMeasure, expectedShortfall_of_hasLaw_lomaxMeasure: the Lomax CDF and closed forms.tendsto_expectedShortfall_div_valueAtRisk_lomaxMeasure: for θ > 1, ES_α/VaR_α → θ/(θ − 1) as α → 1 (heavy tail).medianShortfall_eq_valueAtRisk: the median of the loss beyond VaR_α is VaR_{(1+α)/2} for a continuous distribution function.
References
- QRM Exercise Book [QRMExerciseBook], Ex. 2.12(a); Ex. 2.12(d); Ex. 2.23(a); Ex. 2.23(c); Ex. 2.29(b)
Tags
VaR closed form, exponential loss, Pareto loss, Lomax distribution, heavy tails, median shortfall, light tail, tail risk, MSC 91G70, MSC 60E05, JEL G32
Import neighbourhood
Above: what it imports. Below: what imports it.
Corpus entries
qrm-es-exponential · quantitative_risk_management.json · full statement
Expected Shortfall of an Exponential Loss
For X ~ Exp(r) (r > 0) and α ∈ (0, 1): ES_α(X) = (1 − log(1 − α))/r (the VaR is `valueAtRisk_of_hasLaw_expMeasure`: −log(1 − α)/r).
qrm-es-var-ratio-exponential · quantitative_risk_management.json · full statement
ES/VaR → 1 for the Exponential Law
For X ~ Exp(r), ES_α(X)/VaR_α(X) → 1 as α → 1⁻ (light tail).
qrm-es-lomax · quantitative_risk_management.json · full statement
Expected Shortfall of a Pareto (Lomax) Loss
For X with Lomax law F(x) = 1 − (κ/(κ + x))^θ, θ > 1, κ > 0 and α ∈ (0, 1): ES_α(X) = κ(θ/(θ − 1)·(1 − α)^(−1/θ) − 1).
qrm-es-var-ratio-pareto · quantitative_risk_management.json · full statement
ES/VaR → θ/(θ − 1) for Pareto Tails
For X with Lomax law (θ > 1, κ > 0), ES_α(X)/VaR_α(X) → θ/(θ − 1) as α → 1⁻: the heavy tail is visible in the shortfall-to-quantile ratio.
qrm-median-shortfall · quantitative_risk_management.json · full statement
Median Shortfall Equals VaR at (1 + α)/2
For a loss with continuous CDF and α ∈ (0, 1), the median of the conditional law of X given X > VaR_α(X) equals VaR_{(1+α)/2}(X).