MathFin
Map / Risk · Value at risk and expected shortfall

Risk · Value at risk and expected shortfall

the quantile measures, their dual forms and closed forms under standard laws

16
modules
155
declarations
38
corpus entries · 38 full

Module graph

An arrow runs from a module to one that imports it (implied imports omitted). Hover for a module's title, click to open it.

Modules

Expected shortfall of a compound-Poisson aggregate loss

The aggregate loss L = ∑_{i<N} Xᵢ of the collective risk model has a Poisson(λ) claim count N independent of the claim sizes Xᵢ, which are identically distributed and integrable.
MathFin.Risk.CompoundPoissonCVaR
6 declarations · 1 corpus entries

The risk of a contract position

A position in a contract c, bought at price p, loses p − pathPV along each outcome: the price paid less the discounted payoff (Contract.loss).
MathFin.Risk.ContractRisk
5 declarations · 3 corpus entries

Value-at-risk of a sum under dependence uncertainty: the dual bound

The marginal laws μ i of losses X i are known, but their dependence is not.
MathFin.Risk.DependenceUncertainty
7 declarations · 2 corpus entries

Value-at-risk and expected shortfall at a finite law

For a loss L : ι → ℝ on a finite state space with probability vector q : Convexity.StdSimplex ℝ ι (weights q.weights i ≥ 0 summing to 1), value-at-risk is VaR_α = inf {x | α ≤ ∑_{L i ≤ x} q i} (finiteVaR) and expected…
MathFin.Risk.DiscreteVaR
33 declarations · 1 corpus entries

Expected shortfall is coherent: the Rockafellar–Uryasev theorem for every integrable loss

For an integrable loss X and a level α ∈ (0, 1), the Rockafellar–Uryasev theorem says that expected shortfall is the minimum of the one-parameter objective
MathFin.Risk.ExpectedShortfall
18 declarations · 9 corpus entries

Gaussian VaR and CVaR closed forms

For a loss L ~ N(μ, σ²), Value-at-Risk and Conditional Value-at-Risk at level α admit the closed forms
MathFin.Risk.Gaussian
8 declarations · 6 corpus entries

Expected shortfall of a Gaussian loss

Risk/RockafellarUryasev.lean minimizes the Rockafellar–Uryasev objective of the Gaussian loss L = m + σ Z, written against the standard normal density.
MathFin.Risk.GaussianExpectedShortfall
3 declarations · 1 corpus entries

Value-at-risk of a Gaussian loss

Risk/Gaussian.lean records the closed form gaussianVaR μ σ z = μ + σ z in a quantile parameter z with Φ(z) = α, because the library had no Φ⁻¹.
MathFin.Risk.GaussianValueAtRisk
3 declarations · 1 corpus entries

Law invariance of risk functionals

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).
MathFin.Risk.LawInvariance
7 declarations

Closed forms for value-at-risk and expected shortfall: exponential and Pareto losses

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):
MathFin.Risk.RiskClosedForms
20 declarations · 5 corpus entries

The Rockafellar–Uryasev variational characterization of Gaussian CVaR

For a Gaussian loss L = μ + σ·Z, Z ~ N(0,1), the Rockafellar–Uryasev (2000) theorem characterizes CVaR as the minimum of the one-parameter objective
MathFin.Risk.RockafellarUryasev
7 declarations · 1 corpus entries

The square-root-of-time rule is a theorem about Brownian increments

Risk/Gaussian.lean records the square-root-of-time scaling of the Gaussian VaR formula as an algebraic identity (gaussianVaR_volatility_scaling).
MathFin.Risk.SquareRootOfTime
2 declarations · 1 corpus entries

The stop-loss transform across a gap in the law

The stop-loss transform c ↦ E[(S − c)⁺] of a loss S falls at rate P(S > c) just to the right of c.
MathFin.Risk.StopLossGap
5 declarations · 1 corpus entries

Value-at-risk and expected shortfall of a Student-t loss

Let T have the standard Student-t law t_ν (Probability/Laws/StudentT.lean) and consider the location-scale loss L = μ + σ T with σ ≥ 0.
MathFin.Risk.StudentTValueAtRisk
8 declarations · 3 corpus entries

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

For a loss X on a probability space (Ω, P) and a confidence level α ∈ (0, 1):
MathFin.Risk.ValueAtRisk
20 declarations · 2 corpus entries

Value-at-risk by bisection

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.
MathFin.Risk.ValueAtRiskBisection
3 declarations · 1 corpus entries