NLA-lib Explorer

NLAlib.measureReal_abs_quadForm_sub_integral_ge_le

Library · theorem

Headline of hanson-wright

The Hanson–Wright inequality. If the coordinates \mathbf{x}_i of a real random vector \mathbf{x} are independent and each satisfies the sub-Gaussian moment generating function bound with variance proxy c (HasSubgaussianMGF), then for every real square matrix \mathbf{A} and every t \ge 0, <!-- value hansonWrightConstant --> \mathbb{P}\bigl[\lvert \mathbf{x}^{\mathsf{T}}\mathbf{A}\mathbf{x} - \mathbb{E}\,\mathbf{x}^{\mathsf{T}}\mathbf{A}\mathbf{x} \rvert \ge t\bigr] \le 2 \exp\Bigl(-\frac{1}{196} \min\Bigl(\frac{t^2}{c^2 \|\mathbf{A}\|_{\mathsf{F}}^2}, \frac{t}{c \|\mathbf{A}\|_2}\Bigr)\Bigr); the explicit constant is hansonWrightConstant. [Vershynin2018, Theorem 6.2.1]; there with an unspecified absolute constant and the sub-Gaussian norm K of the coordinates, c playing the role of K^2. Result: hanson-wright

NLAlib.measureReal_abs_quadForm_sub_integral_ge_le.{u_1, u_2} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} [Fintype n] {x : Ω → n → ℝ} {c : ℝ≥0}
  (hind : iIndepFun (fun i ω ↦ x ω i) μ) (h : ∀ (i : n), HasSubgaussianMGF (fun ω ↦ x ω i) c μ)
  (A : Matrix n n ℝ) {t : ℝ} (ht : 0 ≤ t) :
  μ.real {ω | t ≤ |quadForm A (x ω) - ∫ (ω' : Ω), quadForm A (x ω') ∂μ|} ≤
    2 *
      rexp
        (-(hansonWrightConstant * min (t ^ 2 / (↑c ^ 2 * frobNorm A ^ 2)) (t / (↑c * specNorm A))))

Full source on GitHub

Import NLAlib.Probability.QuadraticForm.HansonWright.