The total influence of majority #
The total influence of the majority of n bits, read as signs, is I[Majₙ] = 𝔼 |x₁ + ⋯ + xₙ|
(BitString.totalInfluence_majority_eq_expect_abs): majority is monotone, so its total influence is
the sum of its degree-one coefficients O'Donnell, Proposition 2.31, and that sum
is 𝔼 Majₙ(x) (x₁ + ⋯ + xₙ) = 𝔼 |x₁ + ⋯ + xₙ| O'Donnell, proof of Theorem 2.33.
By the central limit theorem on the cube, I[Majₙ] / √n = 𝔼 |∑ᵢ xᵢ / √n| → √(2 / π)
(BitString.tendsto_totalInfluence_majority_div_sqrt), the leading term of
I[Majₙ] = √(2/π) √n + O(n^{-1/2}) in O'Donnell, Theorem 2.33. The book's
Majₙ is defined for odd n, where it is the library's majority n; along odd n = 2m + 1
the statement is BitString.tendsto_totalInfluence_majority_two_mul_add_one_div_sqrt. The
library's majority n breaks ties towards true, and the limit holds along all n.
The error term O(n^{-1/2}) is not formalized.
Main results #
Cslib.BitString.totalInfluence_majority_eq_expect_abs:I[Majₙ] = 𝔼 |x₁ + ⋯ + xₙ|.Cslib.BitString.tendsto_totalInfluence_majority_div_sqrt,Cslib.BitString.tendsto_totalInfluence_majority_two_mul_add_one_div_sqrt:I[Majₙ] / √n → √(2 / π), along allnand along oddn.
Usage #
Majority is majority n : BooleanFunction n, true when at least (n + 1) / 2 bits are true, and
read as signs by fun x => signVal (majority n x). The checked clients in
CslibFrontierTests/BooleanAnalysisMajorityInfluence.lean
compute I[Maj₃] = 3 / 2 both through the identity and as the average sensitivity, and derive
I[Majₙ] / n → 0 and, along odd n, I[Majₙ] < √n eventually.
References #
The total influence of majority is the mean absolute sum of the signs,
I[Majₙ] = 𝔼 |x₁ + ⋯ + xₙ| O'Donnell, Proposition 2.31 and proof of Theorem 2.33.
The asymptotic total influence of majority: I[Majₙ] / √n → √(2 / π), the leading term of
I[Majₙ] = √(2/π) √n + O(n^{-1/2}) O'Donnell, Theorem 2.33. The library's
majority n breaks ties towards true, so the limit is along all n.
The asymptotic total influence of majority, along odd n: for the book's Majₙ with
n = 2m + 1, I[Majₙ] / √n → √(2 / π) as m → ∞ O'Donnell, Theorem 2.33.