A sharp variance bound for distinct natural numbers #
The main result of this file minimizes the unnormalized empirical variance of a finite set of natural numbers. The proof enumerates the set increasingly, compares all pairwise differences with those of an initial interval, and evaluates the resulting quadratic sum.
Closed form for the sum of squares over Finset.range m, stated over the
reals for use in the variance calculation.
theorem
LeanPool.ErdosMoser.twoMulCardSumSquaresSubSquareEqSumPairsDiffSquare
{ι : Type u_1}
(s : Finset ι)
(g : ι → ℝ)
:
Pairwise-difference form of the unnormalized variance of a function on a finite set.