MathFin
Map / Risk · Risk measures / MathFin.Risk.Elicitability

Elicitability: value-at-risk is elicitable, expected shortfall is not

MathFin.Risk.ElicitabilityMSC 91G70MSC 62F10JEL G32 source

A functional T of laws on ℝ, with values in any type V, is elicitable on a class C of laws if it is the unique minimizer of an expected score: some scoring function S(x, y) makes T μ the unique minimizer of x ↦ ∫ S(x, y) dμ(y) for every μ ∈ C (Gneiting 2011; McNeil–Frey–Embrechts (2015), §9.3). Real-valued functionals (V = ℝ) are the single-valued case; a jointly elicitable pair (T₁, T₂) is elicitability at V = ℝ × ℝ (Risk/JointElicitability.lean). Elicitability is what makes a risk forecast comparable with realized losses: competing forecasts are ranked by their average realized scores (QRM Exercise Book, Exercises 9.5 and 9.16).

  • Elicitable functionals have convex level sets (StrictlyElicits.apply_mixture). If T μ = T ν, then T takes the same value on every mixture of μ and ν in the class. The expected score is affine along a mixture of laws (integral_mixture), the property expectedUtility_mix of Choice/Utility/VonNeumannMorgenstern.lean records for expected utility. So the common minimizer of the two expected scores also minimizes their mixture.
  • VaR is elicitable (strictlyElicits_pinballLoss). The pinball loss S_α(x, y) = (𝟙{y ≤ x} − α)(x − y) elicits the α-quantile on the laws with finite mean whose α-quantile is unique. The expected pinball loss is 1 − α times the Rockafellar–Uryasev objective, minus a constant (integral_pinballLoss). So VaR minimizing it is the Rockafellar–Uryasev theorem of Risk/ExpectedShortfall.lean. Uniqueness is the exact excess formula rockafellarUryasev_sub_expectedShortfall: g(c) − ES_α(X) integrates the distance of the VaR curve from c over the levels on the wrong side of α.
  • ES is not elicitable (not_isElicitable_expectedShortfall). For every α ∈ (0, 1), the point mass δ₀ and the two-point law esLevelWitness α = ((1+α)/2) δ₋₁ + ((1−α)/2) δ₁ both have ES_α = 0. Their mixture (1 − α) δ₀ + α · esLevelWitness α has ES_α = α/2. So the level set {ES_α = 0} is not convex, and no scoring function elicits ES_α on any class containing these three laws, in particular on all laws with finite mean (not_isElicitable_expectedShortfall_integrable).

With Risk/ExpectedShortfall.lean this gives one half of each side of the regulatory trade-off: expected shortfall is coherent but not elicitable, while value-at-risk is elicitable. Its failure of subadditivity is proved in Risk/VaRSuperadditivity.lean.

Main definitions

  • StrictlyElicits: the scoring function S strictly elicits the functional T on a class C of laws, i.e. T μ is the unique minimizer of x ↦ ∫ S(x, y) dμ(y) for every μ ∈ C.
  • IsElicitable: some scoring function strictly elicits T on C.
  • pinballLoss: the pinball loss (𝟙{y ≤ x} − α)(x − y) of a quantile forecast x against a realized loss y.
  • esLevelWitness, esLevelMixture: the two-point law ((1 + α)/2) δ₋₁ + ((1 − α)/2) δ₁ and the mixture (1 − α) δ₀ + α · esLevelWitness α used to show that expected shortfall is not elicitable.

Main results

  • StrictlyElicits.apply_mixture: on a class closed under the mixture, a strictly elicited functional is constant on mixtures of laws with equal values (convex level sets).
  • integral_pinballLoss: the expected pinball loss in terms of rockafellarUryasev.
  • integral_pinballLoss_valueAtRisk_le: VaR minimizes the expected pinball loss.
  • rockafellarUryasev_sub_expectedShortfall: the exact Rockafellar–Uryasev excess.
  • expectedShortfall_lt_rockafellarUryasev: when the quantile is unique, ES_α < RU(c) for every c ≠ VaR_α, so VaR is the unique minimizer of the Rockafellar–Uryasev function.
  • strictlyElicits_pinballLoss: the pinball loss strictly elicits the α-quantile on the laws with a finite mean and a unique α-quantile.
  • not_isElicitable_expectedShortfall: for α ∈ (0, 1), ES_α is not elicitable on any class of laws containing δ₀, esLevelWitness α and esLevelMixture α.

References

  • T. Gneiting, Making and evaluating point forecasts [Gneiting2011]
  • A. J. McNeil, R. Frey and P. Embrechts, Quantitative Risk Management: Concepts, Techniques and Tools [McNeilFreyEmbrechts], Section 9.3
  • QRM Exercise Book [QRMExerciseBook], Ex. 9.5(c); Ex. 9.5, 9.16

Tags

elicitability, pinball loss, quantile loss, scoring function, backtesting, VaR vs ES, forecast comparison, MSC 91G70, MSC 62F10, JEL G32

Import neighbourhood

Above: what it imports. Below: what imports it.

Corpus entries

qrm-var-elicitable · quantitative_risk_management.json · full statement
VaR Is Elicitable by the Pinball Loss

For α ∈ (0, 1), the pinball loss (𝟙{y ≤ x} − α)(x − y) strictly elicits the α-quantile on the probability measures with finite mean whose α-quantile is unique (CDF > α right after it): the quantile is the unique minimizer of the expected score.

qrm-es-not-elicitable · quantitative_risk_management.json · full statement
Expected Shortfall Is Not Elicitable

For every α ∈ (0, 1), no scoring function with finite expected score under every law in the class elicits ES_α on the probability measures with finite mean: δ₀ and ((1+α)/2)δ₋₁ + ((1−α)/2)δ₁ both have ES_α = 0 while their mixture (1−α)δ₀ + α·(second law) has ES_α = α/2, so the level set is not convex.

Declarations 24

defMathFin.StrictlyElicitssource
{V : Type u_1} → (V → ℝ → ℝ) → (Measure ℝ → V) → Set (Measure ℝ) → Prop

The scoring function S strictly elicits the functional T on the class C of laws on ℝ, with values in V: for every μ ∈ C each expected score ∫ S x y dμ(y) is finite, and T μ is the unique minimizer of x ↦ ∫ S x y dμ(y) over x : V.

defMathFin.IsElicitablesource
{V : Type u_1} → (Measure ℝ → V) → Set (Measure ℝ) → Prop

A functional of laws is elicitable on C if some scoring function strictly elicits it.

theoremMathFin.integral_mixturesource
∀ {f : ℝ → ℝ} {μ ν : Measure ℝ}, Integrable f μ → Integrable f ν → ∀ {c : NNReal}, c ≤ 1 → ∫ (y : ℝ), f y ∂(c • μ + (1 - c) • ν) = ↑c * ∫ (y : ℝ), f y ∂μ + (1 - ↑c) * ∫ (y : ℝ), f y ∂ν

The integral against a mixture of laws is the mixture of the integrals.

theoremMathFin.isProbabilityMeasure_mixturesource
∀ {μ ν : Measure ℝ} [IsProbabilityMeasure μ] [IsProbabilityMeasure ν] {c : NNReal}, c ≤ 1 → IsProbabilityMeasure (c • μ + (1 - c) • ν)

A mixture of two probability measures is a probability measure.

theoremMathFin.StrictlyElicits.apply_mixturesource
∀ {V : Type u_1} {S : V → ℝ → ℝ} {T : Measure ℝ → V} {C : Set (Measure ℝ)}, StrictlyElicits S T C → ∀ {μ ν : Measure ℝ}, μ ∈ C → ν ∈ C → ∀ {c : NNReal}, c ≤ 1 → c • μ + (1 - c) • ν ∈ C → T μ = T ν → T (c • μ + (1 - c) • ν) = T μ

Elicitable functionals have convex level sets (Osband 1985; Gneiting 2011, Theorem 6). If T μ = T ν and the mixture c μ + (1 − c) ν lies in C, then T takes the same value on the mixture: the common minimizer of the two expected scores minimizes their mixture, and the minimizer of the mixed expected score is unique.

theoremMathFin.IsElicitable.apply_mixturesource
∀ {V : Type u_1} {T : Measure ℝ → V} {C : Set (Measure ℝ)}, IsElicitable T C → ∀ {μ ν : Measure ℝ}, μ ∈ C → ν ∈ C → ∀ {c : NNReal}, c ≤ 1 → c • μ + (1 - c) • ν ∈ C → T μ = T ν → T (c • μ + (1 - c) • ν) = T μ

An elicitable functional has convex level sets.

defMathFin.pinballLosssource
ℝ → ℝ → ℝ → ℝ

The pinball loss at level α, the score of a quantile forecast x against a realized loss y: S_α(x, y) = (1 − α)(x − y)⁺ + α (y − x)⁺.

theoremMathFin.pinballLoss_eq_itesource
∀ (α x y : ℝ), pinballLoss α x y = ((if y ≤ x then 1 else 0) - α) * (x - y)

The pinball loss in its textbook form (𝟙{y ≤ x} − α)(x − y).

theoremMathFin.pinballLoss_eq_max_addsource
∀ (α x y : ℝ), pinballLoss α x y = max (y - x) 0 + (1 - α) * x - (1 - α) * y

The pinball loss is the shortfall (y − x)⁺ plus a function affine in (x, y).

theoremMathFin.integral_pinballLosssource
∀ {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P] {X : Ω → ℝ} {α : ℝ}, Integrable X P → α ∈ Set.Ioo 0 1 → ∀ (x : ℝ), ∫ (ω : Ω), pinballLoss α x (X ω) ∂P = (1 - α) * rockafellarUryasev X P α x - (1 - α) * ∫ (ω : Ω), X ω ∂P

The expected pinball loss is the Rockafellar–Uryasev objective, rescaled: E[S_α(x, X)] = (1 − α)·(x + (1 − α)⁻¹ E[(X − x)⁺]) − (1 − α)·E[X].

theoremMathFin.integral_pinballLoss_valueAtRisk_lesource
∀ {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P] {X : Ω → ℝ} {α : ℝ}, Integrable X P → α ∈ Set.Ioo 0 1 → ∀ (x : ℝ), ∫ (ω : Ω), pinballLoss α (valueAtRisk X P α) (X ω) ∂P ≤ ∫ (ω : Ω), pinballLoss α x (X ω) ∂P

VaR minimizes the expected pinball loss: the Rockafellar–Uryasev theorem, rescaled.

theoremMathFin.rockafellarUryasev_sub_expectedShortfallsource
∀ {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P] {X : Ω → ℝ} {α : ℝ}, Integrable X P → α ∈ Set.Ioo 0 1 → ∀ (c : ℝ), rockafellarUryasev X P α c - expectedShortfall X P α = (1 - α)⁻¹ * ((∫ (u : ℝ) in Set.Ioc 0 α, max (valueAtRisk X P u - c) 0) + ∫ (u : ℝ) in Set.Ioo α 1, max (c - valueAtRisk X P u) 0)

The exact Rockafellar–Uryasev excess: with q(u) = VaR_u(X), g(c) − ES_α(X) = (1 − α)⁻¹ (∫_{(0, α]} (q(u) − c)⁺ du + ∫_{(α, 1)} (c − q(u))⁺ du). The excess integrates the distance of the VaR curve from c over the levels on the wrong side of α: levels below α whose quantile is above c, and levels above α whose quantile is below c.

theoremMathFin.setIntegral_pos_of_ge_on_Ioosource
∀ {f : ℝ → ℝ} {s : Set ℝ}, IntegrableOn f s volume → (∀ u ∈ s, 0 ≤ f u) → ∀ {a b δ : ℝ}, a < b → Set.Ioo a b ⊆ s → 0 < δ → (∀ u ∈ Set.Ioo a b, δ ≤ f u) → MeasurableSet s → 0 < ∫ (u : ℝ) in s, f u

A nonnegative integrand that is at least δ > 0 on a nondegenerate interval inside the domain has a positive integral.

theoremMathFin.expectedShortfall_lt_rockafellarUryasevsource
∀ {Ω : Type u_2} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P] {X : Ω → ℝ} {α : ℝ}, Integrable X P → α ∈ Set.Ioo 0 1 → (∀ (x : ℝ), valueAtRisk X P α < x → α < P.real {ω | X ω ≤ x}) → ∀ {c : ℝ}, c ≠ valueAtRisk X P α → expectedShortfall X P α < rockafellarUryasev X P α c

VaR is the unique minimizer of the Rockafellar–Uryasev objective when the α-quantile is unique, i.e. the distribution function exceeds α right after VaR_α(X). Below VaR the levels (P(X ≤ c), α] have quantiles above c; above VaR the levels (α, P(X ≤ x)) have quantiles at most x < c. Either way the exact excess rockafellarUryasev_sub_expectedShortfall is positive.

theoremMathFin.strictlyElicits_pinballLosssource
∀ {α : ℝ}, α ∈ Set.Ioo 0 1 → StrictlyElicits (pinballLoss α) (fun μ => quantile μ α) {μ | IsProbabilityMeasure μ ∧ Integrable id μ ∧ ∀ (x : ℝ), quantile μ α < x → α < ↑(cdf μ) x}

The pinball loss strictly elicits the α-quantile on the laws with finite mean whose α-quantile is unique: there the quantile is the unique minimizer of the expected pinball loss.

theoremMathFin.integrable_smul_diracsource
∀ (f : ℝ → ℝ) (c : NNReal) (a : ℝ), Integrable f (c • Measure.dirac a)

A scaled point mass integrates every real function.

theoremMathFin.integral_smul_diracsource
∀ (f : ℝ → ℝ) (c : NNReal) (a : ℝ), ∫ (y : ℝ), f y ∂c • Measure.dirac a = ↑c * f a

The integral against a scaled point mass is the scaled evaluation.

defMathFin.esLevelWitnesssource
ℝ → Measure ℝ

The two-point law ((1 + α)/2) δ₋₁ + ((1 − α)/2) δ₁: at level α its expected shortfall is 0, the same as that of the point mass δ₀.

defMathFin.esLevelMixturesource
ℝ → Measure ℝ

The mixture (1 − α) δ₀ + α · esLevelWitness α, whose expected shortfall at level α is α/2.

theoremMathFin.expectedShortfall_dirac_zerosource
∀ {α : ℝ}, α ∈ Set.Ioo 0 1 → expectedShortfall id (Measure.dirac 0) α = 0

ES_α(δ₀) = 0.

theoremMathFin.expectedShortfall_esLevelWitnesssource
∀ {α : ℝ}, α ∈ Set.Ioo 0 1 → expectedShortfall id (esLevelWitness α) α = 0

ES_α of the two-point witness is 0.

theoremMathFin.expectedShortfall_esLevelMixturesource
∀ {α : ℝ}, α ∈ Set.Ioo 0 1 → expectedShortfall id (esLevelMixture α) α = α / 2

ES_α of the mixture (1 − α) δ₀ + α · esLevelWitness α is α/2.

theoremMathFin.not_isElicitable_expectedShortfallsource
∀ {α : ℝ}, α ∈ Set.Ioo 0 1 → ∀ {C : Set (Measure ℝ)}, Measure.dirac 0 ∈ C → esLevelWitness α ∈ C → esLevelMixture α ∈ C → ¬IsElicitable (fun μ => expectedShortfall id μ α) C

Expected shortfall is not elicitable (Gneiting 2011): for every α ∈ (0, 1), no scoring function elicits ES_α on a class of laws containing δ₀, esLevelWitness α and their mixture esLevelMixture α. The two laws share ES_α = 0 while the mixture has ES_α = α/2, so the level set {ES_α = 0} is not convex (IsElicitable.apply_mixture).

theoremMathFin.not_isElicitable_expectedShortfall_integrablesource
∀ {α : ℝ}, α ∈ Set.Ioo 0 1 → ¬IsElicitable (fun μ => expectedShortfall id μ α) {μ | IsProbabilityMeasure μ ∧ Integrable id μ}

ES_α is not elicitable on the laws with finite mean.