Robust hypothesis testing and distribution estimation in Hellinger distance

Ananda Theertha Suresh

Abstract

Classical hypothesis testing, exemplified by the Neyman-Pearson test, achieves optimal sample complexity but is notoriously fragile to distribution perturbations. This paper introduces HellingerTest, a parameter-free test statistic that matches the efficiency of Neyman-Pearson on clean data while maintaining robustness against noise and modeling errors. By utilizing a bounded symmetric chi-squared statistic as a proxy for Hellinger distance, the proposed method provides "robustness for free" and extends naturally to differentially private settings and distribution estimation tasks.

The Fragility of Optimal Testing

In the realm of simple hypothesis testing—deciding whether a set of samples $X^n$ originates from distribution $P$ or $Q$—the Neyman-Pearson (NP) test is the theoretical gold standard. It is proven to be the most sample-efficient decision rule. However, this efficiency comes at a cost: extreme sensitivity. Even a minute deviation from the assumed distributions (due to outliers or sensor noise) can cause the NP test to fail catastrophically.

Conversely, robust alternatives like the Scheffé test offer protection against such perturbations but are often significantly less sample-efficient, requiring a "sample tax" to ensure reliability. This paper bridges this gap, presenting a test that is both robust and optimally efficient.

The HellingerTest Statistic

The core innovation is HellingerTest, which replaces the volatile likelihood ratio of the NP test with a statistic $T$ based on the symmetric chi-squared distance:

$$T(P, Q, X^n) = \frac{1}{n} \sum_{i=1}^{n} \frac{P(X_i) - Q(X_i)}{P(X_i) + Q(X_i)}$$

This approach offers three critical advantages:

  1. Boundedness: The individual terms are strictly bounded between -1 and 1. This ensures that no single outlier can disproportionately influence the final decision.
  2. Hellinger Proxy: The expected value of $T$ relates directly to the Hellinger distance $H^2(P, Q)$, which characterizes the fundamental limits of statistical distinguishability.
  3. Simplicity: The test is parameter-free; the decision is made simply by checking the sign of the sum.

Robustness for Free

The most striking result is that HellingerTest achieves the same $\Theta(\frac{\log(1/\delta)}{H^2(P, Q)})$ sample complexity as the optimal non-robust test. This means practitioners do not have to sacrifice performance to gain robustness.

Figure 5: Comparison of error probabilities for Neyman-Pearson (a) and HellingerTest (b) under varying levels of contamination (w). While NP fails as n increases with noise, HellingerTest remains stable.

As shown in the figure above, when data is contaminated (e.g., $w=0.08$), the error probability of the Neyman-Pearson test actually increases toward 1.0 as more samples are collected—a total failure of the model. In contrast, HellingerTest successfully drives the error probability to zero even in the presence of noise.

Performance on Clean Data

To verify that no "sample tax" is paid, the author compared HellingerTest against NP on clean Gaussian data.

Figure 6: Type II error rates for Neyman-Pearson (NP) and HellingerTest (HT) on clean Gaussian data. The performance is virtually indistinguishable.

The empirical results confirm the theoretical claims: on well-modeled data, HellingerTest is just as effective as the Neyman-Pearson test.

Broader Implications: Privacy and Estimation

Beyond simple testing, the bounded nature of the HellingerTest statistic makes it an ideal candidate for Differential Privacy (DP). Adding Laplace noise to the bounded sum allows for $\epsilon$-DP testing with minimal impact on sample requirements.

Furthermore, the test serves as a robust "subroutine" for distribution estimation. By running HellingerTest against an $\epsilon$-cover of candidate distributions, one can learn an unknown distribution with Hellinger-accurate guarantees, even when the true distribution only approximately lies within the model class.

Conclusion

HellingerTest provides a rare "win-win" in statistical inference. It matches the sample efficiency of the best-known tests while providing the rigorous robustness guarantees required for real-world data. While future work remains to close the small constant gap in robustness bounds, the current results offer a powerful, parameter-free tool for robust and private statistical analysis.

Summary updated

BibTeX
@inproceedings{suresh2021robust,
  author = {Ananda Theertha Suresh},
  title = {{Robust hypothesis testing and distribution estimation in Hellinger distance}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
}
Figure