Optimal Algorithms and Lower Bounds for Testing Closeness of Structured Distributions

We give a general unified method that can be used for {\em closeness testing} of a wide range of univariate structured distribution families. More specifically, we design a sample optimal and computationally efficient algorithm for testing the equivalence of two unknown (potentially arbitrary) univariate distributions under the -distance metric: Given sample access to distributions with density functions , we want to distinguish between the cases that and with probability at least . We show that for any , the {\em optimal} sample complexity of the -closeness testing problem is . This is the first sample algorithm for this problem, and yields new, simple closeness testers, in most cases with optimal sample complexity, for broad classes of structured distributions.
View on arXiv