NLA-lib Explorer

The Hanson–Wright inequality

Library · Source module

The Hanson–Wright inequality

For a real random vector \mathbf{x} with independent coordinates, each sub-Gaussian with proxy c, and any real square matrix \mathbf{A}, the quadratic form \mathbf{x}^{\mathsf{T}}\mathbf{A}\mathbf{x} concentrates about its mean: <!-- 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), where the constant in the exponent (NLAlib.hansonWrightConstant) is universal, unspecified in the sources, and is the one the proof here reaches. The diagonal part is Bernstein's inequality for the centred squares; the off-diagonal part is bounded by decoupling and comparison with a Gaussian chaos (NLAlib/Probability/QuadraticForm/HansonWright/OffDiagonal.lean). The two are combined by convexity of \exp with weights 4/7 and 3/7 (NLAlib.HasSubexponentialMGF.add), which needs no independence between them: the centred form is sub-exponential with variance proxy 98 c^2 \|\mathbf{A}\|_{\mathsf{F}}^2 and scale 28 c \|\mathbf{A}\|_2, which gives the constant <!-- value hansonWrightConstant -->1/196.

Main definitions

* NLAlib.hansonWrightConstant: the constant in the exponent, of value <!-- value hansonWrightConstant -->1/196.

Main results

* NLAlib.measureReal_quadForm_sub_integral_ge_le, NLAlib.measureReal_quadForm_sub_integral_le_le: the upper and lower tails. * NLAlib.measureReal_abs_quadForm_sub_integral_ge_le: the Hanson–Wright inequality.

References

* [R. Vershynin, High-Dimensional Probability][Vershynin2018], Theorem 6.2.1.

Declarations