Truncated second moments from Gaussian tails #
A nonnegative integer quantity Y on a finite type whose upper tails are Gaussian,
#{ω | j ≤ Y ω} ≤ M exp (-j² / c) for every j > R, has truncated second moment
∑ ω, Y ω ^ 2 [R < Y ω] ≤ M ((R + 1)² + c) exp (-(R + 1)² / c)
(sum_sq_ite_lt_le_of_tail). This is the discrete counterpart of integrating the tail
∫ 2 t exp (-t² / c) dt = c exp (-a² / c): the layer-cake identity
y² [R < y] = (R + 1)² [R + 1 ≤ y] + ∑_{R + 1 < j ≤ y} (2 j - 1) reduces the sum to the tails,
and (2 j - 1) exp (-j² / c) ≤ c (exp (-(j - 1)² / c) - exp (-j² / c)) telescopes
(sum_Ioc_two_mul_sub_one_mul_exp_le).
Main results #
Cslib.sum_Ioc_two_mul_sub_one_mul_exp_le: the discrete Gaussian tail sum.Cslib.sum_sq_ite_lt_le_of_tail: the truncated second moment from Gaussian tails.
Truncated second moment from Gaussian tails. If Y : Ω → ℕ on a finite type satisfies
#{ω | j ≤ Y ω} ≤ M exp (-j² / c) for every j > R, then
∑ ω, Y ω ^ 2 [R < Y ω] ≤ M ((R + 1)² + c) exp (-(R + 1)² / c).