{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → Measure Ω → ((Ω → ℝ) → ℝ) → PropA risk functional ρ of losses on (Ω, P) is law invariant if measurable losses with the same law have the same risk.
A risk functional ρ : (Ω → ℝ) → ℝ of losses on a probability space (Ω, P) is law invariant when two losses with the same law have the same risk (IsLawInvariant). This is the formal home of the sentence "value-at-risk is a quantile of a law": a cell of the library that stands alone, because its objects depend on a loss only through its distribution, is a law-invariant functional. The library's four are instances:
valueAtRisk and expected shortfall expectedShortfall are defined from the quantile function of P.map X, so law invariance is the definition unfolded;spectralRiskMeasure φ integrate the value-at-risk curve;expectile α is the root of a gap built from the integrals ∫ (Y − e)⁺ dP = ∫ (y − e)⁺ d(P.map Y).IsLawInvariant: P.map X = P.map Y implies ρ X = ρ Y, for measurable losses.isLawInvariant_valueAtRisk, isLawInvariant_expectedShortfall, isLawInvariant_spectralRiskMeasure, isLawInvariant_expectile.expectedShortfall_isCoherentRiskMeasure_and_isLawInvariant: expected shortfall is a law-invariant coherent risk measure.IsLawInvariant.eq_of_hasLaw: two losses with the law μ have the same risk.law invariance, distribution-based risk measure, value at risk, expected shortfall, spectral risk measure, expectile, MSC 91G70, MSC 60E05, JEL G32
Above: what it imports. Below: what imports it.
{Ω : Type u_1} → {mΩ : MeasurableSpace Ω} → Measure Ω → ((Ω → ℝ) → ℝ) → PropA risk functional ρ of losses on (Ω, P) is law invariant if measurable losses with the same law have the same risk.
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {ρ : (Ω → ℝ) → ℝ}, IsLawInvariant P ρ → ∀ {X Y : Ω → ℝ} {μ : Measure ℝ}, HasLaw X μ P → HasLaw Y μ P → ρ X = ρ YA law-invariant functional gives equal risk to two losses with a common law.
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} (α : ℝ), IsLawInvariant P fun X => valueAtRisk X P αValue-at-risk is law invariant: it is the quantile of the law.
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} (α : ℝ), IsLawInvariant P fun X => expectedShortfall X P αExpected shortfall is law invariant: it averages the value-at-risk curve.
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P] {α : ℝ}, α ∈ Set.Ioo 0 1 → (IsCoherentRiskMeasure P fun X => expectedShortfall X P α) ∧ IsLawInvariant P fun X => expectedShortfall X P αExpected shortfall is a law-invariant coherent risk measure on the integrable losses, for every level α ∈ (0, 1). Kusuoka's theorem is the converse direction, the representation of law-invariant coherent risk measures through expected shortfalls; it is not proved here.
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} (φ : ℝ → ℝ), IsLawInvariant P fun X => spectralRiskMeasure φ X PSpectral risk measures are law invariant: they integrate the value-at-risk curve against the spectrum.
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} (α : ℝ), IsLawInvariant P fun Y => expectile α Y PExpectiles are law invariant: the expectile gap at a threshold e is a function of the law, through ∫ (Y − e)⁺ dP = ∫ (y − e)⁺ d(P.map Y).