Documentation

CslibFrontier.Probability.PMF.TailQuantile

Tail quantiles of a nonnegative discrete law #

A level q ∈ (0, 1] has an upper quantile in every law μ : PMF ℝ≥0, even one with countably infinite support and atoms: some cutoff τ has P(X > τ) ≤ q ≤ P(X ≥ τ). Thresholds of single-threshold stopping rules are chosen this way, for instance a median of the maximum (q = 1/2) or the cutoff that accepts an i.i.d. value with probability 1/n.

Cslib.Probability.PMF.exists_quantile is the analogous statement for laws on a finite type. Mathlib's ProbabilityTheory.cdf concerns measures on ℝ and provides no quantile.

The proof takes τ to be the infimum of the cutoffs with P(X > t) ≤ q. That set is nonempty because the tail tends to 0. Continuity of μ.toMeasure from below gives P(X > τ) ≤ q, and continuity from above gives q ≤ P(X ≥ τ). The level q = 0 is excluded: a law with unbounded support has P(X > t) > 0 for every t.

Main results #

theorem Cslib.Probability.PMF.exists_tail_quantile (μ : PMF NNReal) {q : ENNReal} (hq : 0 < q) (hq1 : q ≤ 1) :
∃ (τ : NNReal), μ.toOuterMeasure (Set.Ioi τ) ≤ q ∧ q ≤ μ.toOuterMeasure (Set.Ici τ)

Tail quantiles exist. For every level 0 < q ≤ 1 there is a cutoff τ with P(X > τ) ≤ q ≤ P(X ≥ τ).