Definition.Covariance [boolean/def/covar]

The covariance of 𝑓,𝑔:{±1}𝑛→ℝ is

𝐂𝐨𝐯[𝑓,𝑔]=⟨𝑓−𝐄[𝑓],𝑔−𝐄[𝑔]⟩=𝐄[𝑓𝑔]−𝐄[𝑓]𝐄[𝑔].