Definition.Variance [boolean/def/var]2026-08-27The variance of a function 𝑓:{±1}𝑛→ℝ is𝐕𝐚𝐫[𝑓]=𝐄[(𝑓−𝐄[𝑓])2]=𝐄[𝑓2]−𝐄[𝑓]2.Note. [#]For 𝑓:{±1}𝑛→ℝ,𝐕𝐚𝐫[𝑓]=∑𝑆≠∅𝑓̂(𝑆)2.By Parseval, 𝐄[𝑓2]=∑𝑆𝑓̂(𝑆)2, and by the Fourier coefficient of the mean, 𝐄[𝑓]2=𝑓̂(∅)2. Subtracting leaves the sum over nonempty 𝑆.