Testing with Non-identically Distributed Samples
Abstract
We examine the extent to which sublinear-sample property testing and estimation apply to settings where samples are independently but not identically distributed. Specifically, we consider the following distributional property testing framework: Suppose there is a set of distributions over a discrete support of size k, p1, p2,…,pT, and we obtain c independent draws from each distribution. Suppose the goal is to learn or test a property of the average distribution, pavg. This setup models a number of important practical settings where the individual distributions correspond to heterogeneous entities -- either individuals, chronologically distinct time periods, spatially separated data sources, etc. From a learning standpoint, even with c=1 samples from each distribution, (k/2) samples are necessary and sufficient to learn pavg to within error in 1 distance. To test uniformity or identity -- distinguishing the case that pavg is equal to some reference distribution, versus has 1 distance at least from the reference distribution, we show that a linear number of samples in k is necessary given c=1 samples from each distribution. In contrast, for c 2, we recover the usual sublinear sample testing guarantees of the i.i.d.\ setting: we show that O(k/2 + 1/4) total samples are sufficient, matching the optimal sample complexity in the i.i.d.\ case in the regime where k-1/4. Additionally, we show that in the c=2 case, there is a constant > 0 such that even in the linear regime with k samples, no tester that considers the multiset of samples (ignoring which samples were drawn from the same pi) can perform uniformity testing. We also extend our techniques to the problem of testing "closeness" of two distributions.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.