Paninski's lower bound for uniformity testing #
On a domain of even size n, every k-sample uniformity tester with proximity δ ≤ 1 / 2 in
statistical distance satisfies n ≤ 52 k² δ⁴ (card_le_of_isTester_uniform), so
k = Ω(√n / δ²) samples are necessary Paninski. For such δ and n this matches
the collision tester (Cslib.DistributionTesting.isTester_collisionTester) up to the constant. At
δ = 1 / 2 it is the birthday bound 4 n ≤ 13 k² (four_mul_card_le_of_isTester_uniform).
The hard instances live on Fin m × Bool. For a sign vector σ : Fin m → Bool, Paninski's
distribution paninski hε σ puts mass (1 ± ε) / (2 m) on (i, b), with the plus sign when
b = σ i; it is at distance |ε| / 2 from uniform (dist_paninski_uniform). The mixture
paninskiMixture m hε k draws σ uniformly and then k samples from paninski hε σ. Its
collision probability satisfies the second-moment bound
(2 m)^k ‖Q‖₂² ≤ cosh(k ε² / m)^m ≤ exp(k² ε⁴ / (2 m))
(collisionProbability_paninskiMixture_le), so it is close to k uniform samples
(dist_paninskiMixture_sq_le). Le Cam's method
(Cslib.DistributionTesting.one_third_le_dist_iid_bind) then bounds k. At ε = 1 each
paninski hε σ is uniform on a subset of half the domain, the instance of the birthday argument.
The constants 52 and 13 are the ones this proof gives; they are not optimized.
Main definitions #
Cslib.DistributionTesting.paninski: Paninski's perturbations of the uniform distribution.Cslib.DistributionTesting.paninskiMixture: their uniform mixture overksamples.
Main results #
Cslib.DistributionTesting.collisionProbability_paninskiMixture_le: the second-moment bound.Cslib.DistributionTesting.two_mul_le_of_isTester_uniform_prod: the lower bound onFin m × Bool.Cslib.DistributionTesting.card_le_of_isTester_uniform: the lower bound on even domains.Cslib.DistributionTesting.four_mul_card_le_of_isTester_uniform: the birthday bound.
References #
The mass of a sample tuple under Paninski's mixture is the average over sign vectors of the product of the weights.
The collision probability of Paninski's mixture as an average over pairs of sign vectors of
the k-th powers of the inner products of their weight vectors.
Paninski's lower bound on Fin m × Bool: every k-sample uniformity tester with proximity
δ ≤ 1 / 2 satisfies 2 m ≤ 52 k² δ⁴.
Paninski's lower bound for uniformity testing: on a domain of even size n, every
k-sample uniformity tester with proximity δ ≤ 1 / 2 satisfies n ≤ 52 k² δ⁴.
Birthday lower bound: distinguishing uniform from distributions at distance 1 / 2 (such as
uniform distributions on half of the domain) requires 4 n ≤ 13 k² samples.