NLA-lib Explorer

The squared norm of a standard Gaussian vector

Library · Source module

The squared norm of a standard Gaussian vector

The squared norm of a standard Gaussian vector \mathbf{g} in \mathbb{R}^n is \chi^2 with d = \lvert n \rvert degrees of freedom. This file gives its Laplace transform, weighted and unweighted, and its tails. Chernoff's bound with the exact Laplace transform at \theta = (1 - 1/\beta)/2 gives \mathbb{P}[\|\mathbf{g}\|^2 \ge \beta d] and \mathbb{P}[\|\mathbf{g}\|^2 \le \beta d] at most e^{(d/2)(1 - \beta + \log \beta)}, on either side of \beta = 1, with the exponent of Dasgupta and Gupta (2003). The lower tail gives Laurent and Massart's lower tail as a corollary (docs/contributing/statements.md §2, rule 6). The exact small ball \mathbb{P}[\|\mathbf{g}\|^2 \le u] \le (u/2)^{d/2} / \Gamma(d/2 + 1) comes from the \chi^2_d density in NLAlib/Probability/Distributions/ChiSquareMoments.lean, and the Chernoff small ball (e u / d)^{d/2} is its corollary. The relative deviation \mathbb{P}[\varepsilon \le \lvert \|\mathbf{g}\|^2/d - 1 \rvert] \le 2 e^{-d(\varepsilon^2/4 - \varepsilon^3/6)} is the case of standard Gaussian coordinates of the sums-of-squares tail NLAlib.measureReal_abs_sum_sq_div_card_sub_one_ge_le_of_iIndepFun. Laurent and Massart's upper tail is the sub-Gaussian-vector bound NLAlib.IsSubgaussianVector.measureReal_norm_sq_ge_le at proxy 1. The weighted Laplace transform \mathbb{E} \exp(\sum_i \theta_i \mathbf{g}_i^2) is the input of the projection tails of a uniform unit vector (NLAlib/RandomMatrix/Haar/Sphere.lean) and of the weighted squares of a sub-Gaussian vector (NLAlib/Probability/SubGaussianVector/Norm.lean).

Main results

* NLAlib.integral_exp_sum_mul_sq_of_hasLaw_gaussianVector: \mathbb{E} \exp(\sum_i \theta_i \mathbf{g}_i^2) = \prod_i (1 - 2\theta_i)^{-1/2}. * NLAlib.integral_exp_mul_norm_sq_of_hasLaw_gaussianVector: \mathbb{E}\, e^{\theta \|\mathbf{g}\|^2} = (1 - 2\theta)^{-d/2}. * NLAlib.measureReal_norm_sq_ge_mul_card_le_of_hasLaw_gaussianVector: the upper Chernoff tail, \beta \ge 1. * NLAlib.measureReal_norm_sq_le_mul_card_le_of_hasLaw_gaussianVector: the lower Chernoff tail, 0 < \beta \le 1. * NLAlib.measureReal_norm_sq_le_le_of_hasLaw_gaussianVector: \mathbb{P}[\|\mathbf{g}\|^2 \le d - 2\sqrt{d t}] \le e^{-t}. * NLAlib.measureReal_norm_sq_le_le_rpow_div_Gamma_of_hasLaw_gaussianVector: the exact small ball \mathbb{P}[\|\mathbf{g}\|^2 \le u] \le (u/2)^{d/2} / \Gamma(d/2 + 1). * NLAlib.measureReal_norm_sq_le_le_rpow_of_hasLaw_gaussianVector: the small ball \mathbb{P}[\|\mathbf{g}\|^2 \le u] \le (e u / d)^{d/2}. * NLAlib.measureReal_abs_norm_sq_div_card_sub_one_ge_le_of_hasLaw_gaussianVector: the relative deviation. * NLAlib.hasLaw_norm_sq_of_hasLaw_gaussianVector: the chi-square law of \|\mathbf{g}\|^2.

Declarations