Sub-exponential random variables #
A real random variable X has a sub-exponential moment generating function (mgf) with parameters
(V, b) if for every t with b * |t| ≤ 1, exp (t * X) is integrable and
mgf X μ t ≤ exp (V * t ^ 2 / 2). The range of t is written as b * |t| ≤ 1 (rather than
|t| ≤ 1 / b) so that b = 0 imposes no restriction on t: the case b = 0 is exactly
HasSubgaussianMGF (see Mathlib/Probability/Moments/SubGaussian.lean, whose structure
this file follows).
As for sub-Gaussian variables, the notion is first defined with respect to a kernel and a
measure (Kernel.HasSubexponentialMGF), then specialized to conditionally sub-exponential
variables (HasCondSubexponentialMGF, the kernel being the conditional expectation kernel of a
sub-σ-algebra) and to sub-exponential variables with respect to a measure
(HasSubexponentialMGF, a constant kernel).
Main definitions #
Kernel.HasSubexponentialMGF X V b κ ν: for everytwithb * |t| ≤ 1,exp (t * X)is integrable with respect toκ ∘ₘ νand, forν-almost everyω',mgf X (κ ω') t ≤ exp (V * t ^ 2 / 2).HasCondSubexponentialMGF m hm X V b μ:Kernel.HasSubexponentialMGFwith respect to the conditional expectation kernelcondExpKernel μ mand the measureμ.trim hm.HasSubexponentialMGF X V b μ: for everytwithb * |t| ≤ 1,exp (t * X)isμ-integrable andmgf X μ t ≤ exp (V * t ^ 2 / 2). This is equivalent toKernel.HasSubexponentialMGFwith a constant kernel (hasSubexponentialMGF_iff_kernel).
Main results #
HasSubexponentialMGF.integral_eq_zero: a sub-exponential variable is integrable and centered.HasSubexponentialMGF.const_mul,neg,mono,add,add_of_indepFun,sum_of_iIndepFun: stability under scaling, sums, and independent sums.HasSubexponentialMGF.measure_ge_le,measure_le_le,measure_abs_ge_le: Bernstein-type tail boundsexp (-min (t ^ 2 / (2 * V)) (t / (2 * b))).HasSubexponentialMGF.measure_sum_ge_le_of_iIndepFun,measure_abs_average_ge_le: Bernstein's inequality for sums and averages of independent sub-exponential variables.hasSubexponentialMGF_of_abs_le_of_integral_eq_zero: a centered variable bounded byMwith second moment at mostvhas parameters(3 * v / 2, M).HasSubexponentialMGF.sum_of_hasCondSubexponentialMGFandmeasure_sum_ge_le_of_hasCondSubexponentialMGF: a sum of conditionally sub-exponential martingale differences is sub-exponential, and the corresponding Azuma–Bernstein inequality.
Implementation notes #
The parameters V and b are real numbers rather than ℝ≥0, which avoids coercions in the
arithmetic of the applications. The Bernstein-type tail bounds do not assume 0 < V or 0 < b:
when V ≤ 0 or b ≤ 0, the right-hand side exp (-min (t ^ 2 / (2 * V)) (t / (2 * b))) is at
least 1 (with the convention x / 0 = 0) and the bound holds trivially.
As in Kernel.HasSubgaussianMGF, the integrability condition of the kernel version is
integrability with respect to κ ∘ₘ ν, not almost-everywhere integrability with respect to
κ ω'.
Sub-exponential with respect to a kernel and a measure #
A random variable X has a sub-exponential moment-generating function with parameters
(V, b) with respect to a kernel κ and a measure ν if for every t with b * |t| ≤ 1,
exp (t * X) is integrable with respect to κ ∘ₘ ν and, for ν-almost all ω',
the moment-generating function of X with respect to κ ω' is bounded by exp (V * t ^ 2 / 2).
For b = 0 this is Kernel.HasSubgaussianMGF X V κ ν.
Instances For
Auxiliary lemma: almost-everywhere integrability of exp (t * X) with respect to κ ω',
simultaneously for all admissible t, from the integrability with respect to κ ∘ₘ ν.
To prove that X is sub-exponential with respect to κ and ν, it suffices to check the
bound on the mgf for each admissible t separately, almost everywhere.
Eta-expanded form of ProbabilityTheory.Kernel.HasSubexponentialMGF.neg
Chernoff bound in the Gaussian regime t * b ≤ V.
Chernoff bound in the exponential regime V ≤ t * b.
Bernstein-type tail bound for the upper tail of a sub-exponential random variable.
When V ≤ 0 or b ≤ 0, the right-hand side is at least 1 and the bound is trivial.
Bernstein-type tail bound for the lower tail of a sub-exponential random variable.
Bernstein-type tail bound, two-sided.
Sum of two (not necessarily independent) sub-exponential variables, by Hölder's inequality
with conjugate exponents p and q. The case p = q = 2 is add.
Sum of two (not necessarily independent) sub-exponential variables, by the Cauchy–Schwarz inequality.
For ν : Measure Ω', κ : Kernel Ω' Ω and η : (Ω' × Ω) Ω'', if a random variable X : Ω → ℝ
has a sub-exponential mgf with respect to κ and ν and another random variable Y : Ω'' → ℝ has
a sub-exponential mgf with respect to η and ν ⊗ₘ κ : Measure (Ω' × Ω), with the same
parameter b, then X + Y (random variable on the measurable space Ω × Ω'') has a
sub-exponential mgf with respect to κ ⊗ₖ η : Kernel Ω' (Ω × Ω'') and ν.
For ν : Measure Ω', κ : Kernel Ω' Ω and η : Ω Ω'', if a random variable X : Ω → ℝ
has a sub-exponential mgf with respect to κ and ν and another random variable Y : Ω'' → ℝ has
a sub-exponential mgf with respect to η and κ ∘ₘ ν : Measure Ω, with the same parameter b,
then X + Y (random variable on the measurable space Ω × Ω'') has a sub-exponential mgf with
respect to κ ⊗ₖ prodMkLeft Ω' η : Kernel Ω' (Ω × Ω'') and ν.
Conditionally sub-exponential moment-generating function #
A random variable X has a conditionally sub-exponential moment-generating function
with parameters (V, b) with respect to a sigma-algebra m and a measure μ if for all t
with b * |t| ≤ 1, exp (t * X) is μ-integrable and the moment-generating function of X
conditioned on m is almost surely bounded by exp (V * t ^ 2 / 2).
The actual definition uses Kernel.HasSubexponentialMGF: HasCondSubexponentialMGF is defined
as sub-exponential with respect to the conditional expectation kernel for m and the restriction
of μ to the sigma-algebra m.
Equations
- ProbabilityTheory.HasCondSubexponentialMGF m hm X V b μ = ProbabilityTheory.Kernel.HasSubexponentialMGF X V b (ProbabilityTheory.condExpKernel μ m) (μ.trim hm)
Instances For
Sub-exponential moment-generating function #
X has a sub-exponential moment generating function with parameters (V, b): for every
t with b * |t| ≤ 1, exp (t * X) is integrable and mgf X μ t ≤ exp (V * t ^ 2 / 2).
For b = 0 this is HasSubgaussianMGF X V μ.
This is equivalent to Kernel.HasSubexponentialMGF X V b (Kernel.const Unit μ) (Measure.dirac ()),
as proved in hasSubexponentialMGF_iff_kernel.
Instances For
Eta-expanded form of ProbabilityTheory.HasSubexponentialMGF.neg
A sub-exponential random variable is centered.
A random variable with sub-exponential parameters (0, b) on a probability space vanishes
almost surely: its mgf is identically 1 near 0, so its second moment vanishes.
Chernoff bound in the Gaussian regime t * b ≤ V.
Chernoff bound in the exponential regime V ≤ t * b.
Bernstein-type tail bound for the upper tail of a sub-exponential random variable.
When V ≤ 0 or b ≤ 0, the right-hand side is at least 1 and the bound is trivial.
Bernstein-type tail bound for the lower tail of a sub-exponential random variable.
Bernstein-type tail bound, two-sided.
Bernstein-type tail bound, two-sided, with a strict inequality in the event.
Sum of two (not necessarily independent) sub-exponential variables, by Hölder's inequality
with conjugate exponents p and q. The case p = q = 2 is add.
Sum of two (not necessarily independent) sub-exponential variables, by the Cauchy–Schwarz inequality.
Bernstein's inequality for the upper tail of a sum of independent sub-exponential random variables.
Bernstein's inequality for the lower tail of a sum of independent sub-exponential random variables.
Bernstein's inequality for the upper tail of a sum of n independent sub-exponential
random variables with the same parameters.
Bernstein's inequality for the lower tail of a sum of n independent sub-exponential
random variables with the same parameters.
The average of K independent sub-exponential variables with parameters (V i, b) has
parameters ((∑ i, V i) / K ^ 2, b / K).
Tail bound for an average of independent sub-exponential variables with parameters
(V i, b): writing K for the number of variables and V̄ := (∑ i, V i) / K,
P(|(∑ i, X i) / K| ≥ t) ≤ 2 exp (-K min (t ^ 2 / (2 V̄)) (t / (2 b))).
Tail bound for an average of independent sub-exponential variables with the same
parameters (V, b).
For X, Y two independent random variables with sub-exponential fluctuations such that
μ[X] ≥ μ[Y], the probability that X ≤ Y is bounded by a Bernstein-type term.
If |X| ≤ M almost surely, X is centered and μ[X ^ 2] ≤ v, then X has
a sub-exponential mgf with parameters (3 * v / 2, M).
If |X| ≤ M almost surely, then X - μ[X] has a sub-exponential mgf with parameters
(3 * Var[X] / 2, 2 * M).
If X is sub-exponential with parameters (VX, b) with respect to the restriction of μ to
a sub-sigma-algebra m and Y is conditionally sub-exponential with parameters (VY, b) with
respect to m and μ then X + Y is sub-exponential with parameters (VX + VY, b) with
respect to μ.
HasSubexponentialMGF X VX b (μ.trim hm) can be obtained from HasSubexponentialMGF X VX b μ
if X is m-measurable. See HasSubexponentialMGF.trim.
Let Y be a random process adapted to a filtration ℱ, such that for all i : ℕ,
Y i is conditionally sub-exponential with parameters (VY i, b) with respect to ℱ (i - 1).
In particular, n ↦ ∑ i ∈ range n, Y i is a martingale.
Then the sum ∑ i ∈ range n, Y i is sub-exponential with parameters
(∑ i ∈ range n, VY i, b).
Bernstein-type inequality for sums of conditionally sub-exponential random variables.