Theorem (measureReal_norm_sq_ge_mul_card_le_of_hasLaw_gaussianVector). 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.
Headline 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 β))