MathFin
Map / Statistics / MathFin.Probability.Laws.QuantileConvergence

Convergence of quantiles and of empirical distribution functions

MathFin.Probability.Laws.QuantileConvergenceMSC 60F15MSC 62G30 source

Two limit theorems for the quantile layer of Probability/Laws/Quantile.lean.

  • Quantiles are continuous along almost-sure convergence. If X n → Y almost surely and the α-quantile q of Y is strict, meaning α < P(Y ≤ x) for every x > q, then the α-quantiles of the X n converge to q (tendsto_quantile_of_tendsto_ae). The half below q needs nothing: there P(Y ≤ x) < α by the Galois connection, and continuity of P along the decreasing events ⋃_{n ≥ N} {X n ≤ x} pushes the strict inequality onto the X n. The half above q runs the same argument with the increasing events ⋂_{n ≥ N} {X n ≤ x}, and it is where strictness enters: across a flat stretch of the limit CDF at level α the quantiles of the X n are free to oscillate.
  • The strong law for the empirical CDF. For pairwise independent, identically distributed εᵢ whose law has a continuous CDF G, almost surely the empirical CDF x ↦ (1/m) #{i < m | εᵢ ≤ x} converges to G at every point at once (tendsto_empiricalCDF_ae). Etemadi's strong law (ProbabilityTheory.strong_law_ae) gives the convergence at each rational x; the empirical CDF is monotone in x and G is continuous, so every real point is squeezed between rational ones. Because the almost-sure event does not depend on x, the empirical CDF may be evaluated at a random point. This is the conditional law of large numbers behind the large-portfolio limit of Risk/Credit/VasicekIRB.lean.

Main definitions

  • empiricalCDF: the empirical CDF x ↦ (1/m) #{i < m | ε i ω ≤ x} of the first m observations.

Main results

  • cdf_map_eq_measureReal: the CDF of a pushforward law.
  • tendsto_quantile_of_tendsto_ae: quantiles converge along almost-sure convergence to a limit with a strict quantile.
  • empiricalCDF_mono: the empirical distribution function is monotone.
  • tendsto_empiricalCDF_ae: for pairwise independent observations with a common law whose CDF G is continuous, almost surely the empirical CDF converges to G at every x.

References

Tags

convergence of quantiles, empirical distribution function, Glivenko–Cantelli, strong law of large numbers, large portfolio limit, empirical CDF, MSC 60F15, MSC 62G30

Import neighbourhood

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

Corpus entries

qrm-quantile-convergence · quantitative_risk_management.json · full statement
Quantiles Converge along Almost-Sure Convergence

If Xₙ → Y almost surely and the α-quantile of Y is unique (F_Y(x) > α for every x above it), then the α-quantiles of the laws of Xₙ converge to the α-quantile of the law of Y.

Declarations 5

theoremMathFin.cdf_map_eq_measureRealsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P] {X : Ω → ℝ}, AEMeasurable X P → ∀ (x : ℝ), ↑(cdf (Measure.map X P)) x = P.real (X ⁻¹' Set.Iic x)

The CDF of the law of X at x is the probability of {X ≤ x}.

theoremMathFin.tendsto_quantile_of_tendsto_aesource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P] {X : ℕ → Ω → ℝ} {Y : Ω → ℝ}, (∀ (n : ℕ), AEMeasurable (X n) P) → AEMeasurable Y P → (∀ᵐ (ω : Ω) ∂P, Filter.Tendsto (fun n => X n ω) Filter.atTop (nhds (Y ω))) → ∀ {α : ℝ}, α ∈ Set.Ioo 0 1 → (∀ (x : ℝ), quantile (Measure.map Y P) α < x → α < ↑(cdf (Measure.map Y P)) x) → Filter.Tendsto (fun n => quantile (Measure.map (X n) P) α) Filter.atTop (nhds (quantile (Measure.map Y P) α))

Quantiles converge along almost-sure convergence. If X n → Y almost surely and the α-quantile of Y is strict (α < P(Y ≤ x) for every x above it), then the α-quantiles of the laws of the X n converge to the α-quantile of the law of Y.

defMathFin.empiricalCDFsource
{Ω : Type u_1} → (ℕ → Ω → ℝ) → ℕ → Ω → ℝ → ℝ

The empirical CDF of the first m observations ε 0 ω, …, ε (m - 1) ω, at x: the fraction of them that are at most x.

theoremMathFin.empiricalCDF_monosource
∀ {Ω : Type u_1} (ε : ℕ → Ω → ℝ) (m : ℕ) (ω : Ω), Monotone (empiricalCDF ε m ω)

The empirical CDF is monotone in the evaluation point.

theoremMathFin.tendsto_empiricalCDF_aesource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P] {ε : ℕ → Ω → ℝ} {μ : Measure ℝ} [IsProbabilityMeasure μ], (∀ (i : ℕ), HasLaw (ε i) μ P) → (Pairwise fun i j => IndepFun (ε i) (ε j) P) → Continuous ↑(cdf μ) → ∀ᵐ (ω : Ω) ∂P, ∀ (x : ℝ), Filter.Tendsto (fun m => empiricalCDF ε m ω x) Filter.atTop (nhds (↑(cdf μ) x))

The strong law for the empirical CDF. If the ε i are pairwise independent with a common law μ whose CDF is continuous, then almost surely the empirical CDF converges to cdf μ at every point simultaneously.