NLA-lib Explorer

The squared norm of a sub-Gaussian random vector

Library · Source module

The squared norm of a sub-Gaussian random vector

For a real sub-Gaussian vector \mathbf{x} with proxy c, \mathbb{E} e^{\theta \|\mathbf{x}\|^2} is at most the Laplace transform of c \chi^2_n, and the upper tails of a weighted sum of squares \sum_i w_i \mathbf{x}_i^2 and of the squared norm \|\mathbf{A}\mathbf{x}\|^2 of its image under a fixed matrix \mathbf{A} are Hsu, Kakade and Zhang's, with Laurent and Massart's constants, \mathbb{P}\Bigl[\|\mathbf{A}\mathbf{x}\|^2 \ge c\,\bigl(\|\mathbf{A}\|_{\mathsf{F}}^2 + 2 \|\mathbf{A}^{\mathsf{H}}\mathbf{A}\|_{\mathsf{F}} \sqrt{t} + 2 \|\mathbf{A}\|_2^2\, t\bigr)\Bigr] \le e^{-t}\,. At \mathbf{A} = \mathbf{I} this is \mathbb{P}[\|\mathbf{x}\|^2 \ge c (n + 2\sqrt{n t} + 2t)] \le e^{-t}. For independent sub-Gaussian coordinates, the two-sided tail of \|\mathbf{x}\|^2 about its mean is Bernstein's inequality for the centred squares.

The vector \mathbf{x} is real: the proofs linearise with a standard Gaussian vector of the same dimension (NLAlib.lintegral_exp_mul_dotProduct_gaussianVector), which exists over \mathbb{R} only in this library for now. The matrix \mathbf{A} may be over any RCLike field, and the bound has no field factor (see the docstring of NLAlib.IsSubgaussianVector.measureReal_norm_mulVec_sq_ge_le).

Proofs. The diagonal form linearises e^{\theta \sum_i w_i \mathbf{x}_i^2} with a standard Gaussian vector at \sqrt{\mathbf{w}} \odot \mathbf{g}, applies the proxy, evaluates the weighted \chi^2 transform (NLAlib.integral_exp_sum_mul_sq_of_hasLaw_gaussianVector), and bounds the log-moment generating function by Laurent and Massart's -\tfrac12 \sum_i \log(1 - u_i) \le \tfrac12 \sum_i u_i + \sum_i u_i^2 / (4 (1 - \max_i u_i)) (Real.neg_log_one_sub_le); NLAlib.measureReal_ge_le_exp_neg_of_mgf_le inverts the resulting sub-gamma bound. The matrix form diagonalises \operatorname{Re}(\mathbf{A}^{\mathsf{H}}\mathbf{A}), the Gram matrix of \mathbf{A} on real vectors (the spectral theorem over \mathbb{R}), and applies the diagonal form to the rotated vector.

Main results

* NLAlib.IsSubgaussianVector.integral_exp_mul_norm_sq_le: \mathbb{E} e^{\theta \|\mathbf{x}\|^2} \le (1 - 2\theta c)^{-n/2}. * NLAlib.IsSubgaussianVector.measureReal_sum_mul_sq_ge_le: weighted squares (the diagonal form). * NLAlib.IsSubgaussianVector.measureReal_norm_mulVec_sq_ge_le: the Hsu–Kakade–Zhang tail. * NLAlib.IsSubgaussianVector.measureReal_norm_sq_ge_le: the upper tail of \|\mathbf{x}\|^2. * NLAlib.measureReal_abs_norm_sq_sub_integral_ge_le: the two-sided tail for independent coordinates.

Declarations