Definition.Covariance [boolean/def/covar]2026-08-27The covariance of 𝑓,𝑔:{±1}𝑛→ℝ is𝐂𝐨𝐯[𝑓,𝑔]=⟨𝑓−𝐄[𝑓],𝑔−𝐄[𝑔]⟩=𝐄[𝑓𝑔]−𝐄[𝑓]𝐄[𝑔].Note. [#]For 𝑓,𝑔:{±1}𝑛→ℝ,𝐂𝐨𝐯[𝑓,𝑔]=∑𝑆≠∅𝑓̂(𝑆)𝑔̂(𝑆).By Plancherel, 𝐄[𝑓𝑔]=∑𝑆𝑓̂(𝑆)𝑔̂(𝑆), and by the Fourier coefficient of the mean, 𝐄[𝑓]𝐄[𝑔]=𝑓̂(∅)𝑔̂(∅). Subtracting leaves the sum over nonempty 𝑆.