Chi-squared moment generating function and concentration #
Building on sqGaussian_mgf, this file constructs the sum of k i.i.d. squared
standard Gaussians as the coordinate sum under the product measure
gaussianVec k = Measure.pi (fun _ : Fin k => stdGaussian), computes its moment
generating function
mgf (chiSq k) (gaussianVec k) t = ((1 - 2t)^(-1/2))^k,
and derives two-sided chi-squared tail bounds via mathlib's Chernoff bound,
optimised at the Dasgupta–Gupta choice of t:
- upper:
P(S ≥ (1+ε)k) ≤ exp(-(ε² - ε³) k / 4), - lower:
P(S ≤ (1-ε)k) ≤ exp(-(ε² - ε³) k / 4).
The analytic crux is reduced to two scalar logarithmic inequalities, proven by the monotonicity of an explicit auxiliary function.
Scalar logarithmic inequalities #
The chi-squared random variable and its MGF #
The product Gaussian measure on Fin k → ℝ: k i.i.d. N(0,1) coordinates.
Equations
- JL.gaussianVec k = MeasureTheory.Measure.pi fun (x : Fin k) => JL.stdGaussian
Instances For
Chi-squared MGF. For t < 1/2, E[exp (t · S)] = ((1 - 2t)^(-1/2))^k.
Integrability of exp (t · Z²) against N(0,1) for t < 1/2.
Integrability of exp (t · S) for t < 1/2.