Hypothesis Testing For Densities and High-Dimensional Multinomials: Sharp Local Minimax Rates

Sivaraman Balakrishnan, Larry A. WassermanarXiv 2017

Abstract

We consider the goodness-of-fit testing problem of distinguishing whether data are drawn from a specified distribution $P_0$, versus a composite alternative separated from the null in the total variation metric. In contrast to existing results that focus on global minimax rates, we show that the critical testing radius depends strongly on the specific null distribution $P_0$. We characterize the local minimax rate for high-dimensional multinomials and Lipschitz densities. For multinomials, we develop a truncated $\chi^2$ test and a "Max Test" that achieve near-optimal performance. For continuous densities, we introduce a spatially adaptive partitioning scheme that outperforms traditional fixed-binning approaches. Our results provide the first local minimax lower bounds for these problems, yielding a sharp characterization of the dependence of the critical radius on the null hypothesis.

Introduction

In classical statistics, goodness-of-fit testing asks a fundamental question: "Does my data come from a specific distribution $P_0$?" Traditionally, the difficulty of this task is measured by the global minimax rate—the minimum sample size required to distinguish $P_0$ from any alternative at least $\epsilon$ distance away, assuming the worst-case $P_0$ within a broad class.

However, this global perspective often fails to capture the practical reality that some null hypotheses are inherently easier to test than others. For example, testing a uniform distribution is fundamentally different from testing a highly "spiky" or sparse distribution. This paper shifts the focus toward local minimax rates, characterizing the critical testing radius (the smallest detectable deviation) as a function of the specific null distribution $P_0$ being tested. This is especially critical in high-dimensional settings where the number of categories $d$ may far exceed the sample size $n$.

Testing High-Dimensional Multinomials

For discrete distributions, the authors identify that the standard $\chi^2$ test can be unstable when $P_0$ contains very small probabilities, as these entries blow up the variance of the test statistic. To address this, they propose two primary modifications:

  1. Truncated $\chi^2$ Test: This method truncates the normalization factors in the $\chi^2$ statistic. By preventing the denominator from becoming too small, the test remains robust even when the null distribution has a long tail of low-probability categories.
  2. The Max Test: Inspired by computer science literature on identity testing, this approach partitions the multinomial categories into nearly uniform groups. A simple test is applied to each group, and the results are combined using a Bonferroni correction. This provides a computationally efficient alternative to previous state-of-the-art testers while maintaining near-optimal theoretical guarantees.

A key insight here is that the difficulty of testing a multinomial is governed by its "effective sparsity," which the authors quantify using the (truncated) $L_{2/3}$-norm of $P_0$. If $P_0$ is sparse, the testing problem becomes significantly easier than if $P_0$ were uniform.

Spatially Adaptive Testing for Densities

In the continuous setting, the standard approach involves discretizing the density using fixed-width bins. The authors demonstrate that this is a "trap": fixed binning is only optimal for uniform distributions. For non-uniform densities, particularly those with heavy tails or varying local smoothness, fixed bins fail to capture the necessary information efficiently.

To solve this, the authors introduce a Spatially Adaptive Partitioning Scheme. The algorithm recursively halves cells to create a partition where bin widths are proportional to the local density. This effectively reduces the continuous density testing problem to a discrete multinomial testing problem. Once discretized via this adaptive grid, the locally minimax optimal discrete tests can be applied.

Theoretical Contributions and Sharp Bounds

The paper provides the first local minimax lower bounds for Lipschitz density testing. The authors identify a specific functional of the density—the truncated T-functional—that characterizes the local minimax rate. This allows for a sharp characterization of how the critical radius $\epsilon$ depends on $P_0$.

Furthermore, in the low-smoothness regime (where the Lipschitz parameter is not assumed to be constant), the authors provide adaptive tests. These tests can adapt to unknown smoothness parameters, ensuring that the testing procedure remains valid even when the underlying characteristics of the distribution are not fully known a priori.

Empirical Validation

The theoretical findings are supported by extensive synthetic simulations:

  • Multinomials: The proposed tests were evaluated against Uniform and Power-law nulls ($p_i \propto 1/i$) with $d=2000$ and $n=200$. The results confirmed that the truncated $\chi^2$ and Max Test are more robust to sparse alternatives than classical Likelihood Ratio Tests (LRT).
  • Densities: Using Standard Gaussian and Generalized Pareto nulls, the authors showed that their adaptive binning scheme significantly outperforms the standard Kolmogorov-Smirnov (KS) test and fixed-binning approaches. This was particularly evident for heavy-tailed distributions like the Pareto, where fixed-width bins are highly inefficient.

Conclusion

This work establishes that goodness-of-fit testing is not a "one size fits all" problem. By deriving sharp local minimax rates, the authors provide a more nuanced understanding of the sample complexity required for hypothesis testing. While this paper focuses on Lipschitz (first-order) smoothness, it opens the door for future research into higher-order smoothness classes (e.g., Sobolev spaces) and the development of locally adaptive confidence intervals. Their proposed tests offer both theoretical optimality and practical robustness, particularly in the high-dimensional and heavy-tailed regimes common in modern data science.

Summary updated

BibTeX
@misc{balakrishnan2017hypothesis,
  author = {Sivaraman Balakrishnan and Larry A. Wasserman},
  title = {{Hypothesis Testing For Densities and High-Dimensional Multinomials: Sharp Local Minimax Rates}},
  year = {2017},
  eprint = {1706.10003},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1706.10003},
}
Figure