NLA-lib Explorer

Distributions, moments, and random probes

Moments and distributional assumptions are the inputs to randomized error analysis. In particular, isotropy explains why random quadratic forms can estimate a trace, while higher moments and independence determine variance and tail behavior.

Definition (Isotropic probes). A square-integrable probe \mathbf{g} is isotropic when \mathbb{E}[\mathbf{g}\mathbf{g}^{\mathsf{H}}]=\mathbf{I}. Standard real Gaussian and independent Rademacher probes are common examples. Isotropy specifies a second moment; it does not itself assert independent coordinates or independent probes.

Copy link

Results

Theorem (Beta laws are sub-Gaussian with proxy 1/(4(\alpha+\beta+1))).

for X \sim \mathrm{Beta}(\alpha, \beta) with \alpha, \beta > 0, the centred variable X - \alpha/(\alpha+\beta) satisfies \mathbb{E}\,e^{t(X - \alpha/(\alpha+\beta))} \le \exp\Bigl(\frac{t^2}{8(\alpha+\beta+1)}\Bigr) for every real t, the moment generating function bound with variance proxy 1/(4(\alpha+\beta+1)). The proxy equals the variance when \alpha = \beta and exceeds it otherwise; it improves Hoeffding's dimension-free proxy 1/4 on [0, 1] (ProbabilityTheory.hasSubgaussianMGF_of_mem_Icc). [MarchalArbel2017, Theorem 1]; the proof here is a comparison for the Riccati equation of (\log\mathrm{mgf})', not the source's (series comparison when \alpha = \beta, a second-order analysis of Kummer's equation otherwise).

Lean statement and details
ProbabilityTheory.hasSubgaussianMGF_sub_div_betaMeasure {α β : ℝ} (hα : 0 < α) (hβ : 0 < β) :
  HasSubgaussianMGF (fun x ↦ x - α / (α + β)) ‖1 / (4 * (α + β + 1))‖₊ (betaMeasure α β)

Full source on GitHub

Copy link

Theorem (The chi-square law).

for \iota nonempty, under the product of d = \lvert\iota\rvert standard normal laws, \sum_i x_i^2 has law \mathrm{Gamma}\Big(\frac{d}{2}, \frac{1}{2}\Big) (shape d/2, rate 1/2), the chi-square law \chi^2_d. For empty \iota the sum is 0 while gammaMeasure 0 (1 / 2) is the zero measure. No printed source.

General form: sizes are index types

Lean statement and details
ProbabilityTheory.map_sum_sq_pi_gaussianReal.{u_3} {ι : Type u_3} [Fintype ι] [Nonempty ι] :
  Measure.map (fun x ↦ ∑ i, x i ^ 2) (Measure.pi fun x ↦ gaussianReal 0 1) =
    gammaMeasure (↑(Fintype.card ι) / 2) (1 / 2)

Full source on GitHub

Copy link

Theorem (Lower Chernoff tail of \chi^2).

for a standard Gaussian vector \mathbf{g} of dimension d = \lvert n \rvert and 0 < \beta \le 1, \mathbb{P}[\|\mathbf{g}\|^2 \le \beta d] \le e^{\frac{d}{2}(1 - \beta + \log \beta)}\,, Chernoff's bound with the exact Laplace transform at \theta = (1 - 1/\beta)/2. It dominates (docs/contributing/statements.md §2 rule 6) Laurent and Massart's NLAlib.measureReal_norm_sq_le_le_of_hasLaw_gaussianVector (at \beta = 1 - 2\sqrt{t/d}, with \log(1 - u) \le -u - u^2/2), which is proved from it, and the small ball NLAlib.measureReal_norm_sq_le_le_rpow_of_hasLaw_gaussianVector (at \beta = u/d, after dropping the factor e^{-u/2} \le 1), which is proved from the sharper exact small ball NLAlib.measureReal_norm_sq_le_le_rpow_div_Gamma_of_hasLaw_gaussianVector. The exponent of Dasgupta and Gupta (2003), there for the projection of a uniform unit vector.

General form: sizes are index types

Lean statement and details
NLAlib.measureReal_norm_sq_le_mul_card_le_of_hasLaw_gaussianVector.{u_1, u_2} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} [Fintype n] {g : Ω → n → ℝ} {β : ℝ}
  (hg : HasLaw g (gaussianVector n) μ) (hβ0 : 0 < β) (hβ : β ≤ 1) :
  μ.real {ω | ‖WithLp.toLp 2 (g ω)‖ ^ 2 ≤ β * ↑(Fintype.card n)} ≤
    rexp (↑(Fintype.card n) / 2 * (1 - β + Real.log β))

Full source on GitHub

Copy link

Theorem (Small-ball bound for \chi^2, exact density).

for a standard Gaussian vector \mathbf{g} of dimension d = \lvert n \rvert and u \ge 0, \mathbb{P}[\|\mathbf{g}\|^2 \le u] \le \frac{(u/2)^{d/2}}{\Gamma(d/2 + 1)}\,, from the \chi^2_d density (NLAlib.integral_comp_norm_of_hasLaw_gaussianVector) after dropping e^{-u/2} \le 1; for d = 0 both sides are 1. It dominates the Chernoff small ball NLAlib.measureReal_norm_sq_le_le_rpow_of_hasLaw_gaussianVector by \Gamma(x + 1) \ge (x/e)^x (Real.rpow_mul_exp_neg_le_Gamma_add_one), which is proved from it (docs/contributing/statements.md §2, rule 6); asymptotically it is smaller by the Stirling factor \sqrt{\pi d}.

General form: sizes are index types

Lean statement and details
NLAlib.measureReal_norm_sq_le_le_rpow_div_Gamma_of_hasLaw_gaussianVector.{u_1, u_2} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} [Fintype n] {g : Ω → n → ℝ}
  (hg : HasLaw g (gaussianVector n) μ) {u : ℝ} (hu : 0 ≤ u) :
  μ.real {ω | ‖WithLp.toLp 2 (g ω)‖ ^ 2 ≤ u} ≤
    (u / 2) ^ (↑(Fintype.card n) / 2) / Real.Gamma (↑(Fintype.card n) / 2 + 1)

Full source on GitHub

Copy link

Theorem (Upper Chernoff tail of \chi^2).

for a standard Gaussian vector \mathbf{g} of dimension d = \lvert n \rvert and \beta \ge 1, \mathbb{P}[\beta d \le \|\mathbf{g}\|^2] \le e^{\frac{d}{2}(1 - \beta + \log \beta)}\,, Chernoff's bound with the exact Laplace transform at \theta = (1 - 1/\beta)/2. At every threshold it is at least as good as Laurent and Massart's upper tail, which stays in the library as the sub-Gaussian-vector bound NLAlib.IsSubgaussianVector.measureReal_norm_sq_ge_le at proxy 1 (rule 6: that theorem is about every sub-Gaussian vector and keeps its form). The exponent of Dasgupta and Gupta (2003), there for the projection of a uniform unit vector.

General form: sizes are index types

Lean statement and details
NLAlib.measureReal_norm_sq_ge_mul_card_le_of_hasLaw_gaussianVector.{u_1, u_2} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} [Fintype n] {g : Ω → n → ℝ} {β : ℝ}
  (hg : HasLaw g (gaussianVector n) μ) (hβ : 1 ≤ β) :
  μ.real {ω | β * ↑(Fintype.card n) ≤ ‖WithLp.toLp 2 (g ω)‖ ^ 2} ≤
    rexp (↑(Fintype.card n) / 2 * (1 - β + Real.log β))

Full source on GitHub

Copy link

Theorem (Beta as a ratio of Gammas).

for a, b, r > 0, the image of \mathrm{Gamma}(a, r) \otimes \mathrm{Gamma}(b, r) (shapes a, b, common rate r) under (x, y) \mapsto \frac{x}{x+y} is \mathrm{Beta}(a, b). No printed source.

Lean statement and details
ProbabilityTheory.map_div_add_prod_gammaMeasure {a b r : ℝ} (ha : 0 < a) (hb : 0 < b) (hr : 0 < r) :
  Measure.map (fun p ↦ p.1 / (p.1 + p.2)) ((gammaMeasure a r).prod (gammaMeasure b r)) =
    betaMeasure a b

Full source on GitHub

Copy link

Theorem (Fourth-order Wick formula).

Four linear forms of a standard Gaussian vector have fourth mixed moment equal to the sum of the three covariance pairings: \begin{aligned} \mathbb{E}[\langle\mathbf{u},\mathbf{g}\rangle \langle\mathbf{v},\mathbf{g}\rangle\langle\mathbf{w},\mathbf{g}\rangle \langle\mathbf{z},\mathbf{g}\rangle] &= \langle\mathbf{u},\mathbf{v}\rangle\langle\mathbf{w},\mathbf{z}\rangle \\ &\quad+\langle\mathbf{u},\mathbf{w}\rangle\langle\mathbf{v},\mathbf{z}\rangle +\langle\mathbf{u},\mathbf{z}\rangle\langle\mathbf{v},\mathbf{w}\rangle\,. \end{aligned} [Isserlis1918, fourth-order formula]; here linear forms with possibly singular covariance.

Lean statement and details
NLAlib.integral_dotProduct_mul_four_of_hasLaw_gaussianVector.{u_1, u_2} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} [Fintype n] {g : Ω → n → ℝ}
  (hg : HasLaw g (gaussianVector n) μ) (u v w z : n → ℝ) :
  ∫ (ω : Ω), u ⬝ᵥ g ω * v ⬝ᵥ g ω * w ⬝ᵥ g ω * z ⬝ᵥ g ω ∂μ =
    u ⬝ᵥ v * w ⬝ᵥ z + u ⬝ᵥ w * v ⬝ᵥ z + u ⬝ᵥ z * v ⬝ᵥ w

Full source on GitHub

Copy link

Theorem (Gaussian integration by parts).

(Stein's identity, covariance form): for a Gaussian vector \mathbf{g} in \mathbb{R}^\iota and f of class C^1 with \|Df(\mathbf{x})\| \le C, \mathbb{E}[(\mathbf{g}_i - \mathbb{E}\mathbf{g}_i) f(\mathbf{g})] = \sum_j \operatorname{Cov}(\mathbf{g}_i, \mathbf{g}_j)\, \mathbb{E}[\partial_j f(\mathbf{g})]\,. [Vershynin2018, Lemma 7.2.5]; stated there for a standard Gaussian, \mathbb{E}[g f(g)] = \mathbb{E} f'(g); here any mean and any covariance, possibly singular, and no centring hypothesis (a centred consumer rewrites with sub_zero). The case k = 0 of integral_sub_integral_mul_eq_sum_covariance_mul_integral_fderiv_of_hasGaussianLaw_of_le_pow.

Lean statement and details
NLAlib.integral_sub_integral_mul_eq_sum_covariance_mul_integral_fderiv_of_hasGaussianLaw.{u_1, u_2}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {ι : Type u_2} [Fintype ι] [DecidableEq ι]
  {g : Ω → ι → ℝ} (hg : HasGaussianLaw g μ) {f : (ι → ℝ) → ℝ} (hf : ContDiff ℝ 1 f) {C : ℝ}
  (hdf : ∀ (x : ι → ℝ), ‖fderiv ℝ f x‖ ≤ C) (i : ι) :
  ∫ (ω : Ω), (g ω i - ∫ (ω' : Ω), g ω' i ∂μ) * f (g ω) ∂μ =
    ∑ j, cov[fun ω ↦ g ω i, fun ω ↦ g ω j; μ] * ∫ (ω : Ω), (fderiv ℝ f (g ω)) (Pi.single j 1) ∂μ

Full source on GitHub

Copy link

Theorem (Gaussian interpolation).

(Kahane's inequality): for centred Gaussian vectors \mathbf{g}, \mathbf{g}' in \mathbb{R}^\iota and F of class C^2 with Hessian bounded by C, if \sum_{i,j} \bigl(\mathbb{E}[\mathbf{g}'_i \mathbf{g}'_j] - \mathbb{E}[\mathbf{g}_i \mathbf{g}_j]\bigr) \, \partial_i \partial_j F(\mathbf{x}) \ge 0 for every \mathbf{x}, then \mathbb{E} F(\mathbf{g}) \le \mathbb{E} F(\mathbf{g}'). [Vershynin2018, Lemma 7.2.7 and the proof of Theorem 7.2.1]; [Kahane1986]; there as an identity along the interpolating path \sqrt{t}\, \mathbf{g} + \sqrt{1 - t}\, \mathbf{g}', here the inequality it gives, with \mathbf{g} and \mathbf{g}' on different probability spaces.

Lean statement and details
NLAlib.integral_comp_le_integral_comp_of_hasGaussianLaw.{u_1, u_2, u_3} {Ω : Type u_1}
  {Ω' : Type u_2} {mΩ : MeasurableSpace Ω} {mΩ' : MeasurableSpace Ω'} {μ : Measure Ω}
  {ν : Measure Ω'} {ι : Type u_3} [Fintype ι] [DecidableEq ι] {g : Ω → ι → ℝ} {g' : Ω' → ι → ℝ}
  (hg : HasGaussianLaw g μ) (hg' : HasGaussianLaw g' ν) (hg0 : ∀ (i : ι), ∫ (ω : Ω), g ω i ∂μ = 0)
  (hg0' : ∀ (i : ι), ∫ (ω : Ω'), g' ω i ∂ν = 0) {F : (ι → ℝ) → ℝ} (hF : ContDiff ℝ 2 F) {C : ℝ}
  (hF2 : ∀ (x : ι → ℝ), ‖iteratedFDeriv ℝ 2 F x‖ ≤ C)
  (hcov :
    ∀ (x : ι → ℝ),
      0 ≤
        ∑ i,
          ∑ j,
            (∫ (ω : Ω'), g' ω i * g' ω j ∂ν - ∫ (ω : Ω), g ω i * g ω j ∂μ) *
              (iteratedFDeriv ℝ 2 F x) ![Pi.single i 1, Pi.single j 1]) :
  ∫ (ω : Ω), F (g ω) ∂μ ≤ ∫ (ω : Ω'), F (g' ω) ∂ν

Full source on GitHub

Copy link

Theorem (Gaussian concentration of Lipschitz functions).

([BoucheronLugosiMassart2013, Theorem 5.6]): for \mathbf{g} with law stdGaussian E and f L-Lipschitz, f(\mathbf{g}) - \mathbb{E} f(\mathbf{g}) is sub-Gaussian with proxy L^2.

Lean statement and details
NLAlib.hasSubgaussianMGF_sub_integral_of_lipschitzWith_of_hasLaw_stdGaussian.{u_1, u_2}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {E : Type u_2} [NormedAddCommGroup E]
  [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] {g : Ω → E}
  {f : E → ℝ} {L : ℝ≥0} (hg : HasLaw g (stdGaussian E) μ) (hf : LipschitzWith L f) :
  HasSubgaussianMGF (fun ω ↦ f (g ω) - ∫ (ω' : Ω), f (g ω') ∂μ) (L ^ 2) μ

Full source on GitHub

Copy link

Theorem (Gross's logarithmic Sobolev inequality).

for the standard Gaussian on a Euclidean space: \operatorname{Ent}(g^2) \le 2\, \mathbb{E}\|\nabla g\|^2 for g of class C^1 with g^2 and \|\nabla g\|^2 integrable ([BoucheronLugosiMassart2013, Theorem 5.4]).

Lean statement and details
NLAlib.entropy_sq_le_two_mul_integral_norm_fderiv_sq_stdGaussian.{u_1} {E : Type u_1}
  [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] [MeasurableSpace E]
  [BorelSpace E] {g : E → ℝ} (hg : ContDiff ℝ 1 g)
  (hg2 : Integrable (fun x ↦ g x ^ 2) (stdGaussian E))
  (hdg : Integrable (fun x ↦ ‖fderiv ℝ g x‖ ^ 2) (stdGaussian E)) :
  (entropy (stdGaussian E) fun x ↦ g x ^ 2) ≤ 2 * ∫ (x : E), ‖fderiv ℝ g x‖ ^ 2 ∂stdGaussian E

Full source on GitHub

Copy link

Theorem (Gordon's min-max inequality).

for centred finite Gaussian families (X_{ut}), (Y_{ut}) indexed by U × T whose increments are smaller for X within a block, \mathbb{E}(X_{ut} - X_{us})^2 \le \mathbb{E}(Y_{ut} - Y_{us})^2, and larger for X across blocks, \mathbb{E}(Y_{ut} - Y_{u's})^2 \le \mathbb{E}(X_{ut} - X_{u's})^2 for u \ne u', \mathbb{E}\min_u \max_t X_{ut} \le \mathbb{E}\min_u \max_t Y_{ut}\,. [Gordon1985]; [Vershynin2018, Exercise 7.2.14]; stated there with equal variances and as a tail comparison, here the expectation form from increments alone, with the two families on different probability spaces.

Lean statement and details
NLAlib.integral_iInf_iSup_le_integral_iInf_iSup_of_hasGaussianLaw.{u_1, u_2, u_3, u_4}
  {Ω : Type u_1} {Ω' : Type u_2} {mΩ : MeasurableSpace Ω} {mΩ' : MeasurableSpace Ω'} {μ : Measure Ω}
  {ν : Measure Ω'} {T : Type u_3} {U : Type u_4} [Finite T] [Finite U] {X : U → T → Ω → ℝ}
  {Y : U → T → Ω' → ℝ} (hX : HasGaussianLaw (fun ω p ↦ X p.1 p.2 ω) μ)
  (hY : HasGaussianLaw (fun ω p ↦ Y p.1 p.2 ω) ν)
  (hX0 : ∀ (u : U) (t : T), ∫ (ω : Ω), X u t ω ∂μ = 0)
  (hY0 : ∀ (u : U) (t : T), ∫ (ω : Ω'), Y u t ω ∂ν = 0)
  (hsame :
    ∀ (u : U) (t s : T),
      ∫ (ω : Ω), (X u t ω - X u s ω) ^ 2 ∂μ ≤ ∫ (ω : Ω'), (Y u t ω - Y u s ω) ^ 2 ∂ν)
  (hdiff :
    ∀ (u u' : U) (t s : T),
      u ≠ u' → ∫ (ω : Ω'), (Y u t ω - Y u' s ω) ^ 2 ∂ν ≤ ∫ (ω : Ω), (X u t ω - X u' s ω) ^ 2 ∂μ) :
  ∫ (ω : Ω), ⨅ u, ⨆ t, X u t ω ∂μ ≤ ∫ (ω : Ω'), ⨅ u, ⨆ t, Y u t ω ∂ν

Full source on GitHub

Copy link

Theorem (Hutchinson's identity).

for an isotropic probe \mathbf{x}, the quadratic form \mathbf{x}^{\mathsf{H}}\mathbf{A}\mathbf{x} is an unbiased estimator of \operatorname{tr}\mathbf{A}: \mathbb{E}[\mathbf{x}^{\mathsf{H}}\mathbf{A}\mathbf{x}] = \operatorname{tr}\mathbf{A}. [Epperly2023, Unbiasedness]; there for the averaged Girard–Hutchinson estimator, here one probe.

Lean statement and details
NLAlib.IsIsotropic.integral_quadForm.{u_1, u_2, u_3} {Ω : Type u_1} {mΩ : MeasurableSpace Ω}
  {μ : Measure Ω} {𝕜 : Type u_2} [RCLike 𝕜] {n : Type u_3} [DecidableEq n] {x : Ω → n → 𝕜}
  [Fintype n] (hx : IsIsotropic x μ) (A : Matrix n n 𝕜) : ∫ (ω : Ω), quadForm A (x ω) ∂μ = A.trace

Full source on GitHub

Copy link

Theorem (The lower tail of \chi^2).

(Laurent and Massart 2000, Lemma 1): for a standard Gaussian vector \mathbf{g} of dimension d = \lvert n \rvert \ge 1 and t \ge 0, \mathbb{P}[\|\mathbf{g}\|^2 \le d - 2\sqrt{d t}] \le e^{-t}. The dimension must be positive: for d = 0 the event is everything. A corollary of NLAlib.measureReal_norm_sq_le_mul_card_le_of_hasLaw_gaussianVector at \beta = 1 - 2\sqrt{t/d}.

General form: sizes are index types

Lean statement and details
NLAlib.measureReal_norm_sq_le_le_of_hasLaw_gaussianVector.{u_1, u_2} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} [Fintype n] {g : Ω → n → ℝ}
  (hg : HasLaw g (gaussianVector n) μ) (hn : 0 < Fintype.card n) {t : ℝ} (ht : 0 ≤ t) :
  μ.real {ω | ‖WithLp.toLp 2 (g ω)‖ ^ 2 ≤ ↑(Fintype.card n) - 2 * √(↑(Fintype.card n) * t)} ≤
    rexp (-t)

Full source on GitHub

Copy link

Theorem (The mean logarithmic overlap).

For a standard Gaussian vector \mathbf{g} in \mathbb{R}^n and a unit vector \mathbf{u}, with N = \lvert n \rvert, \mathbb{E} \log \frac{\|\mathbf{g}\|^2}{\langle \mathbf{u}, \mathbf{g} \rangle^2} \le \log(2N) + 2, whereas the inverse squared overlap has infinite expectation when N \ge 2. When N = 1, the quotient is 1 almost surely and its logarithm has expectation 0. Integrating the tail NLAlib.measureReal_log_norm_sq_div_sq_ge_le_of_hasLaw_gaussianVector; the random-start step of the power and Lanczos methods [KuczynskiWozniakowski1992]. The exact mean is \psi(N/2) - \psi(1/2) \sim \log(2N) + \gamma (digamma \psi, Euler's constant \gamma), so the additive constant is not tight.

General form: sizes are index types

Lean statement and details
NLAlib.integral_log_norm_sq_div_sq_le_of_hasLaw_gaussianVector.{u_1, u_2} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} [Fintype n] {g : Ω → n → ℝ} {u : n → ℝ}
  (hg : HasLaw g (gaussianVector n) μ) (hu : ‖WithLp.toLp 2 u‖ = 1) :
  ∫ (ω : Ω), Real.log (‖WithLp.toLp 2 (g ω)‖ ^ 2 / (u ⬝ᵥ g ω) ^ 2) ∂μ ≤
    Real.log (2 * ↑(Fintype.card n)) + 2

Full source on GitHub

Copy link

Theorem (A centred variable with a \psi_1 bound is sub-exponential).

under a probability measure, if X is a.e.-measurable, \mathbb{E} X = 0, K > 0, e^{\lvert X\rvert / K} is integrable and \mathbb{E} e^{\lvert X\rvert / K} \le 2, then X is sub-exponential with variance proxy (32/e^2) K^2 and scale 2K; the constants are psiOneSubexponentialVarianceConstant and psiOneSubexponentialScaleConstant. [Vershynin2018, Proposition 2.7.1], (iv) ⟹ (v), with the constants named. The hypothesis \mathbb{E} X = 0 is needed (every HasSubexponentialMGF variable is centred, NLAlib.HasSubexponentialMGF.integral_eq_zero); for a variable that is not centred, use NLAlib.hasSubexponentialMGF_sub_integral_of_integral_exp_abs_div_le_two. A \psi_1 Bernstein inequality is this bridge followed by NLAlib.HasSubexponentialMGF.measureReal_sum_ge_le_of_iIndepFun.

Lean statement and details
NLAlib.hasSubexponentialMGF_of_integral_exp_abs_div_le_two.{u_1} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsProbabilityMeasure μ] {X : Ω → ℝ}
  (hX : AEMeasurable X μ) (hmean : ∫ (ω : Ω), X ω ∂μ = 0) {K : ℝ≥0} (hK : 0 < K)
  (hint : Integrable (fun ω ↦ rexp (|X ω| / ↑K)) μ) (hψ : ∫ (ω : Ω), rexp (|X ω| / ↑K) ∂μ ≤ 2) :
  HasSubexponentialMGF X (psiOneSubexponentialVarianceConstant * K ^ 2)
    (psiOneSubexponentialScaleConstant * K) μ

Full source on GitHub

Copy link

Theorem (A centred variable with a \psi_2 bound is sub-Gaussian).

under a probability measure, if X is a.e.-measurable, \mathbb{E} X = 0, K > 0, e^{X^2 / K} is integrable and \mathbb{E} e^{X^2 / K} \le 2, then X is sub-Gaussian (HasSubgaussianMGF) with proxy (1 + \log 2) K; the constant is psiTwoSubgaussianConstant. [Vershynin2018, Proposition 2.5.2], (iv) ⟹ (v), with Vershynin's \|X\|_{\psi_2} \le K' as K = K'^2 and the constant named. The hypothesis \mathbb{E} X = 0 is needed (every HasSubgaussianMGF variable is centred); for a variable that is not centred, use NLAlib.hasSubgaussianMGF_sub_integral_of_integral_exp_sq_div_le_two. A \psi_2 Hanson–Wright inequality is measureReal_quadForm_sub_integral_ge_le hind fun i => this (hψ i), with exponent Vershynin's at c = (1 + \log 2) K.

Lean statement and details
NLAlib.hasSubgaussianMGF_of_integral_exp_sq_div_le_two.{u_1} {Ω : Type u_1} {mΩ : MeasurableSpace Ω}
  {μ : Measure Ω} [IsProbabilityMeasure μ] {X : Ω → ℝ} (hX : AEMeasurable X μ)
  (hmean : ∫ (ω : Ω), X ω ∂μ = 0) {K : ℝ≥0} (hK : 0 < K)
  (hint : Integrable (fun ω ↦ rexp (X ω ^ 2 / ↑K)) μ) (hψ : ∫ (ω : Ω), rexp (X ω ^ 2 / ↑K) ∂μ ≤ 2) :
  HasSubgaussianMGF X (psiTwoSubgaussianConstant * K) μ

Full source on GitHub

Copy link

Theorem (The Sudakov–Fernique inequality).

for centred finite Gaussian families (X_t)_{t \in T}, (Y_t)_{t \in T} with \mathbb{E}(X_s - X_t)^2 \le \mathbb{E}(Y_s - Y_t)^2 for all s, t, \mathbb{E}\max_t X_t \le \mathbb{E}\max_t Y_t. [Vershynin2018, Theorem 7.2.11]; no equal-variance hypothesis (unlike Slepian's inequality), and the two families on different probability spaces.

Lean statement and details
NLAlib.integral_iSup_le_integral_iSup_of_hasGaussianLaw.{u_1, u_2, u_3} {Ω : Type u_1}
  {Ω' : Type u_2} {mΩ : MeasurableSpace Ω} {mΩ' : MeasurableSpace Ω'} {μ : Measure Ω}
  {ν : Measure Ω'} {T : Type u_3} [Finite T] {X : T → Ω → ℝ} {Y : T → Ω' → ℝ}
  (hX : HasGaussianLaw (fun ω t ↦ X t ω) μ) (hY : HasGaussianLaw (fun ω t ↦ Y t ω) ν)
  (hX0 : ∀ (t : T), ∫ (ω : Ω), X t ω ∂μ = 0) (hY0 : ∀ (t : T), ∫ (ω : Ω'), Y t ω ∂ν = 0)
  (hinc : ∀ (s t : T), ∫ (ω : Ω), (X s ω - X t ω) ^ 2 ∂μ ≤ ∫ (ω : Ω'), (Y s ω - Y t ω) ^ 2 ∂ν) :
  ∫ (ω : Ω), ⨆ t, X t ω ∂μ ≤ ∫ (ω : Ω'), ⨆ t, Y t ω ∂ν

Full source on GitHub

Copy link

Formal definitions

Used by algorithms

Broader topics