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

Value-at-risk by bisection

MathFin.Risk.ValueAtRiskBisectionMSC 91G60MSC 91G70JEL C63 source

Probability/Analysis/Bisection.lean proves that bisection for f x = C converges to the threshold of f against C: the point σ with f x < C ↔ x < σ on the bracket. It needs no continuity or strict monotonicity of f. The Galois connection of the quantile function (lt_valueAtRisk_iff) says that VaR_α(X) is exactly the threshold of the distribution function x ↦ P(X ≤ x) against α. So bisection on the distribution function computes value-at-risk for every law, including atoms and flat stretches, and after n steps the midpoint is within (hi − lo)/2^{n+1}.

This is the consumer the bisection file was generalized for: a right-continuous CDF at its quantile, where neither continuity nor strictness holds in general.

Main results

  • valueAtRisk_mem_Icc_of_bracket: a CDF bracket P(X ≤ lo) < α ≤ P(X ≤ hi) brackets VaR.
  • abs_bisectMid_sub_valueAtRisk_le: the n-th estimate is within (hi − lo)/2^{n+1} of VaR.
  • tendsto_bisectMid_valueAtRisk: bisection on the distribution function converges to VaR.

References

  • A. J. McNeil, R. Frey and P. Embrechts, Quantitative Risk Management: Concepts, Techniques and Tools [McNeilFreyEmbrechts], Chapter 9

Tags

VaR computation, bisection method, quantile numerical, distribution function threshold, root finding, MSC 91G60, MSC 91G70, JEL C63

Import neighbourhood

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

Corpus entries

qrm-var-bisection · quantitative_risk_management.json · full statement
VaR by Bisection on the CDF

For any loss X, α ∈ (0, 1) and a bracket with P(X ≤ lo) < α ≤ P(X ≤ hi), bisection on x ↦ P(X ≤ x) against α converges to VaR_α(X) (with error at most (hi − lo)/2^(n+1) after n steps, abs_bisectMid_sub_valueAtRisk_le).

Declarations 3

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

A bracket of the distribution function brackets VaR: if P(X ≤ lo) < α ≤ P(X ≤ hi) then VaR_α(X) ∈ [lo, hi]. Both conditions can be checked by evaluating the CDF.

theoremMathFin.abs_bisectMid_sub_valueAtRisk_lesource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P] {X : Ω → ℝ} {α lo hi : ℝ}, AEMeasurable X P → α ∈ Set.Ioo 0 1 → P.real {ω | X ω ≤ lo} < α → α ≤ P.real {ω | X ω ≤ hi} → ∀ (n : ℕ), |bisectMid (fun x => P.real {ω | X ω ≤ x}) α lo hi n - valueAtRisk X P α| ≤ (hi - lo) / 2 ^ (n + 1)

The a-priori error of VaR by bisection: the n-th midpoint of bisection on the distribution function is within (hi − lo)/2^{n+1} of VaR_α(X).

theoremMathFin.tendsto_bisectMid_valueAtRisksource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P] {X : Ω → ℝ} {α lo hi : ℝ}, AEMeasurable X P → α ∈ Set.Ioo 0 1 → P.real {ω | X ω ≤ lo} < α → α ≤ P.real {ω | X ω ≤ hi} → Filter.Tendsto (bisectMid (fun x => P.real {ω | X ω ≤ x}) α lo hi) Filter.atTop (nhds (valueAtRisk X P α))

VaR by bisection: bisection on the distribution function x ↦ P(X ≤ x) against the level α converges to VaR_α(X), for every law.