STOC2025
Testing Support Size More Efficiently Than Learning Histograms
Renato Ferreira Pinto Jr., Nathaniel Harms
Abstract
Consider two problems about an unknown probability distribution ๐: (1) How many samples from ๐ are required to test if ๐ is supported on ๐ elements or not? Specifically, given samples from ๐, determine whether it is supported on at most ๐ elements, or it is โ๐-farโ (in total variation distance) from being supported on ๐ elements. (2) Given๐ samples from ๐, what is the largest lower bound on its support size that we can produce? The best known upper bound for problem (1) uses a general algorithm for learning the histogram of the distribution ๐, which requires ฮ( ๐ ๐2 log๐) samples .We showthat testing can be done more efficiently than learning the histogram, using only๐( ๐ ๐ log๐ log(1/๐)) samples, nearly matching the best known lower bound of ฮฉ( ๐ ๐ log๐). This algorithm also provides a better solution to problem (2), producing larger lower bounds on support size than what follows from previous work. The proof relies on an analysis of Chebyshev polynomial approximations outside the range where they are designed to be good approximations.