MathFin
Map / Risk · Value at risk and expected shortfall / MathFin.Risk.ValueAtRisk

Value-at-risk and expected shortfall of a general loss

MathFin.Risk.ValueAtRiskMSC 91G70MSC 60E05JEL G32 source

For a loss X on a probability space (Ω, P) and a confidence level α ∈ (0, 1):

  • value-at-risk is the α-quantile of the law of X, VaR_α(X) = inf {x | α ≤ P(X ≤ x)} (valueAtRisk);
  • expected shortfall is the average of the value-at-risk over the levels above α, ES_α(X) = (1 − α)⁻¹ ∫_α^1 VaR_u(X) du (expectedShortfall).

These are the definitions of McNeil, Frey and Embrechts, Quantitative Risk Management (2015), Definitions 2.8 and 2.12. They apply to every law, including laws with atoms. The closed forms of Risk/Gaussian.lean, written in a quantile parameter z, are the Gaussian instances (Risk/GaussianValueAtRisk.lean).

Both functionals depend on X only through its law, so every property is a property of the quantile function (Probability/Laws/Quantile.lean). In particular VaR commutes with monotone lower-semicontinuous maps (valueAtRisk_comp). Translation invariance, positive homogeneity and comonotone additivity are the three instances of that one fact.

Subadditivity of expected shortfall, the one coherence axiom that value-at-risk lacks, is in Risk/ExpectedShortfall.lean.

Main definitions

  • valueAtRisk: the value-at-risk VaR_α(X) = inf {x | α ≤ P(X ≤ x)}, the α-quantile of the law of the loss X.
  • expectedShortfall: the expected shortfall ES_α(X) = (1 − α)⁻¹ ∫_α^1 VaR_u(X) du, the average of the value-at-risk over the levels above α.

Main results

  • valueAtRisk_le_iff: VaR_α(X) ≤ x ↔ α ≤ P(X ≤ x).
  • valueAtRisk_mono: a loss that is almost surely larger has a larger VaR.
  • valueAtRisk_comp: VaR_α(h ∘ X) = h (VaR_α(X)) for monotone lower-semicontinuous h.
  • valueAtRisk_add_const, valueAtRisk_const_mul: translation invariance and positive homogeneity.
  • valueAtRisk_add_of_comonotone: VaR is additive for comonotone losses.
  • integrableOn_valueAtRisk: an integrable loss has an integrable VaR curve.
  • valueAtRisk_le_expectedShortfall: VaR_α ≤ ES_α.
  • expectedShortfall_add_const, expectedShortfall_const_mul, expectedShortfall_mono.
  • valueAtRisk_const, expectedShortfall_const: a constant loss is its own VaR and ES.

References

Tags

value at risk, expected shortfall, quantile function, VaR, confidence level, comonotone additivity, tail risk, MSC 91G70, MSC 60E05, JEL G32

Import neighbourhood

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

Corpus entries

qrm-var-comonotone-additive · quantitative_risk_management.json · full statement
VaR Is Additive for Monotone Functions of a Common Factor

For a loss factor Z and monotone lower-semicontinuous f, g, VaR_α(f(Z) + g(Z)) = VaR_α(f(Z)) + VaR_α(g(Z)) for every α ∈ (0, 1) (comonotone additivity in its common-factor form).

qrm-var-additive-linear-dependence · quantitative_risk_management.json · full statement
VaR Additivity for Linearly Dependent Losses

For an a.e.-measurable loss X, α ∈ (0, 1), a ≥ 0 and b ∈ ℝ: VaR_α(X + (aX + b)) = VaR_α(X) + VaR_α(aX + b).

Declarations 20

defMathFin.valueAtRisksource
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → (Ω → ℝ) → Measure Ω → ℝ → ℝ

Value-at-risk of a loss X at confidence level α: the α-quantile of the law of X, VaR_α(X) = inf {x | α ≤ P(X ≤ x)}.

defMathFin.expectedShortfallsource
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → (Ω → ℝ) → Measure Ω → ℝ → ℝ

Expected shortfall of a loss X at confidence level α: the average value-at-risk over the levels above α, ES_α(X) = (1 − α)⁻¹ ∫_α^1 VaR_u(X) du.

theoremMathFin.valueAtRisk_eq_quantilesource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {X : Ω → ℝ} {α : ℝ} {μ : Measure ℝ}, HasLaw X μ P → valueAtRisk X P α = quantile μ α

VaR depends on a loss only through its law.

theoremMathFin.valueAtRisk_le_iffsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {X : Ω → ℝ} {α x : ℝ} [IsProbabilityMeasure P], AEMeasurable X P → α ∈ Set.Ioo 0 1 → (valueAtRisk X P α ≤ x ↔ α ≤ P.real {ω | X ω ≤ x})

The Galois connection for VaR: VaR_α(X) ≤ x ↔ α ≤ P(X ≤ x).

theoremMathFin.lt_valueAtRisk_iffsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {X : Ω → ℝ} {α x : ℝ} [IsProbabilityMeasure P], AEMeasurable X P → α ∈ Set.Ioo 0 1 → (x < valueAtRisk X P α ↔ P.real {ω | X ω ≤ x} < α)

x < VaR_α(X) ↔ P(X ≤ x) < α.

theoremMathFin.le_measureReal_le_valueAtRisksource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {X : Ω → ℝ} {α : ℝ} [IsProbabilityMeasure P], AEMeasurable X P → α ∈ Set.Ioo 0 1 → α ≤ P.real {ω | X ω ≤ valueAtRisk X P α}

The loss stays at or below its VaR with probability at least α.

theoremMathFin.valueAtRisk_monosource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {X Y : Ω → ℝ} {α : ℝ} [IsProbabilityMeasure P], AEMeasurable X P → AEMeasurable Y P → X ≤ᵐ[P] Y → α ∈ Set.Ioo 0 1 → valueAtRisk X P α ≤ valueAtRisk Y P α

Monotonicity: a loss that is almost surely larger has a larger VaR.

theoremMathFin.valueAtRisk_compsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {X : Ω → ℝ} {α : ℝ} [IsProbabilityMeasure P], AEMeasurable X P → ∀ {h : ℝ → ℝ}, Monotone h → LowerSemicontinuous h → α ∈ Set.Ioo 0 1 → valueAtRisk (fun ω => h (X ω)) P α = h (valueAtRisk X P α)

VaR commutes with monotone lower-semicontinuous maps: VaR_α(h ∘ X) = h (VaR_α(X)) (McNeil–Frey–Embrechts, Proposition A.3).

theoremMathFin.valueAtRisk_add_constsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {X : Ω → ℝ} {α : ℝ} [IsProbabilityMeasure P], AEMeasurable X P → α ∈ Set.Ioo 0 1 → ∀ (m : ℝ), valueAtRisk (fun ω => X ω + m) P α = valueAtRisk X P α + m

Translation invariance: VaR_α(X + m) = VaR_α(X) + m.

theoremMathFin.valueAtRisk_const_mulsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {X : Ω → ℝ} {α : ℝ} [IsProbabilityMeasure P], AEMeasurable X P → α ∈ Set.Ioo 0 1 → ∀ {c : ℝ}, 0 ≤ c → valueAtRisk (fun ω => c * X ω) P α = c * valueAtRisk X P α

Positive homogeneity: VaR_α(c X) = c VaR_α(X) for c ≥ 0.

theoremMathFin.valueAtRisk_add_of_comonotonesource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {α : ℝ} [IsProbabilityMeasure P] {Z : Ω → ℝ}, AEMeasurable Z P → ∀ {f g : ℝ → ℝ}, Monotone f → LowerSemicontinuous f → Monotone g → LowerSemicontinuous g → α ∈ Set.Ioo 0 1 → valueAtRisk (fun ω => f (Z ω) + g (Z ω)) P α = valueAtRisk (fun ω => f (Z ω)) P α + valueAtRisk (fun ω => g (Z ω)) P α

VaR is comonotone additive: losses that are monotone lower-semicontinuous functions of a common risk factor Z have additive VaR.

theoremMathFin.valueAtRisk_add_affinesource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {X : Ω → ℝ} {α : ℝ} [IsProbabilityMeasure P], AEMeasurable X P → α ∈ Set.Ioo 0 1 → ∀ {a : ℝ}, 0 ≤ a → ∀ (b : ℝ), valueAtRisk (fun ω => X ω + (a * X ω + b)) P α = valueAtRisk X P α + valueAtRisk (fun ω => a * X ω + b) P α

VaR is additive over a loss and an increasing affine image of it, VaR_α(X + (aX + b)) = VaR_α(X) + VaR_α(aX + b) for a ≥ 0 (MFE Exercise 2.8).

theoremMathFin.integrableOn_valueAtRisksource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {X : Ω → ℝ} [IsProbabilityMeasure P], Integrable X P → IntegrableOn (fun u => valueAtRisk X P u) (Set.Ioo 0 1) volume

An integrable loss has an integrable VaR curve on (0, 1).

theoremMathFin.valueAtRisk_mono_levelsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {X : Ω → ℝ} {α : ℝ}, α ∈ Set.Ioo 0 1 → ∀ {β : ℝ}, β ∈ Set.Ioo 0 1 → α ≤ β → valueAtRisk X P α ≤ valueAtRisk X P β

The VaR curve is monotone in the confidence level.

theoremMathFin.valueAtRisk_le_expectedShortfallsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {X : Ω → ℝ} {α : ℝ} [IsProbabilityMeasure P], Integrable X P → α ∈ Set.Ioo 0 1 → valueAtRisk X P α ≤ expectedShortfall X P α

ES dominates VaR: VaR_α(X) ≤ ES_α(X), since the average is taken over the levels where the VaR curve is at least VaR_α(X).

theoremMathFin.expectedShortfall_add_constsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {X : Ω → ℝ} {α : ℝ} [IsProbabilityMeasure P], Integrable X P → α ∈ Set.Ioo 0 1 → ∀ (m : ℝ), expectedShortfall (fun ω => X ω + m) P α = expectedShortfall X P α + m

Translation invariance of ES: ES_α(X + m) = ES_α(X) + m.

theoremMathFin.expectedShortfall_const_mulsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {X : Ω → ℝ} {α : ℝ} [IsProbabilityMeasure P], Integrable X P → α ∈ Set.Ioo 0 1 → ∀ {c : ℝ}, 0 ≤ c → expectedShortfall (fun ω => c * X ω) P α = c * expectedShortfall X P α

Positive homogeneity of ES: ES_α(c X) = c ES_α(X) for c ≥ 0.

theoremMathFin.expectedShortfall_monosource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {X Y : Ω → ℝ} {α : ℝ} [IsProbabilityMeasure P], Integrable X P → Integrable Y P → X ≤ᵐ[P] Y → α ∈ Set.Ioo 0 1 → expectedShortfall X P α ≤ expectedShortfall Y P α

Monotonicity of ES: a loss that is almost surely larger has a larger ES.

theoremMathFin.valueAtRisk_constsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {α : ℝ} [IsProbabilityMeasure P] (c : ℝ), α ∈ Set.Ioo 0 1 → valueAtRisk (fun x => c) P α = c

The value-at-risk of a constant loss is the constant.

theoremMathFin.expectedShortfall_constsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {α : ℝ} [IsProbabilityMeasure P] (c : ℝ), α ∈ Set.Ioo 0 1 → expectedShortfall (fun x => c) P α = c

The expected shortfall of a constant loss is the constant.