Moments of tug-of-war sums #
Let h i : X → Y be a hash family with seed i drawn uniformly, and ε : Y → ℝ a sign of mean
zero and square one, so that ε (h i x) is a random sign attached to each point x. For weights
f : X → ℝ on a finite set S, the tug-of-war sum Z = ∑ x ∈ S, f x ε (h i x) of Alon,
Matias and Szegedy [AMS99] estimates ∑ x ∈ S, f x ²:
- under pairwise independence
𝔼 Z² = ∑ f²(Cslib.Probability.IsKWiseIndependentHash.expect_sq_sum_mul_sign); - under four-wise independence
𝔼 (Z² - ∑ f²)² = 2 ((∑ f²)² - ∑ f⁴) ≤ 2 (∑ f²)²(Cslib.Probability.IsKWiseIndependentHash.expect_sq_sum_mul_sign_sub_sq,Cslib.Probability.IsKWiseIndependentHash.expect_sq_sum_mul_sign_sub_sq_le), and so𝔼 Z⁴ = 3 (∑ f²)² - 2 ∑ f⁴.
These are the two moment computations in the proof of [AlonMatiasSzegedy1999, Theorem 2.2]. The
first is an instance of the additivity of second moments under pairwise independence
(Cslib.Probability.IsKWiseIndependentHash.expect_sq_sum, in
CslibFrontier.Probability.KWiseIndependent.SecondMoment); both expand squares of sums with
Finset.sq_sum_eq_sum_sq_add_sum_offDiag.
Main results #
Cslib.Probability.IsKWiseIndependentHash.expect_prod_sign: averages of products of signs at at mostkpoints.Cslib.Probability.IsKWiseIndependentHash.expect_sq_sum_mul_sign: the tug-of-war estimator is unbiased.Cslib.Probability.IsKWiseIndependentHash.expect_sq_sum_offDiag_mul_sign_mul_sign: the second moment of a sum over ordered pairs of signs, the common step of the variance computations here and inCslibFrontier.Probability.KWiseIndependent.TugOfWarProduct.Cslib.Probability.IsKWiseIndependentHash.expect_sq_sum_mul_sign_sub_sq,Cslib.Probability.IsKWiseIndependentHash.expect_sq_sum_mul_sign_sub_sq_le,Cslib.Probability.IsKWiseIndependentHash.expect_sum_mul_sign_pow_four: its variance and fourth moment.
References #
Signs with mean zero and square one: a product of signs at the points of a tuple of at most
k distinct points has average one when every point occurs an even number of times, and zero
otherwise.
Signs at two distinct points are uncorrelated.
The product of the signs at two pairs of distinct points has average one if the pairs agree up to order, and zero otherwise.
The tug-of-war estimator is unbiased [AlonMatiasSzegedy1999, Theorem 2.2]: for a pairwise
independent family of signs ε (h i x) with mean zero and square one,
Z = ∑ x ∈ S, f x ε (h i x) has 𝔼 Z² = ∑ x ∈ S, f x ².
The second moment of a sum over ordered pairs of signs: for a four-wise independent family
of signs of mean zero and square one, W = ∑_{x ≠ y ∈ S} f x g y ε (h i x) ε (h i y) has
𝔼 W² = ∑_{x ≠ y ∈ S} f x g y (f x g y + f y g x), since the products of the signs at two pairs of
distinct points average to zero unless the pairs agree up to order. Both the variance of the
tug-of-war estimator and that of the join signature reduce to it.
The variance of the tug-of-war estimator [AlonMatiasSzegedy1999, Theorem 2.2]: for a
four-wise independent family of signs, Z = ∑ x ∈ S, f x ε (h i x) has
𝔼 (Z² - ∑ f²)² = 2 ((∑ f²)² - ∑ f⁴).
The fourth moment of the tug-of-war sum [AlonMatiasSzegedy1999, Theorem 2.2]: for a
four-wise independent family of signs, 𝔼 Z⁴ = 3 (∑ f²)² - 2 ∑ f⁴, that is
∑ f⁴ + 6 ∑_{x < y} f(x)² f(y)².
The variance bound for the tug-of-war estimator [AlonMatiasSzegedy1999, Theorem 2.2]: for
a four-wise independent family of signs, 𝔼 (Z² - ∑ f²)² ≤ 2 (∑ f²)².