Differentially Private Nonparametric Hypothesis Testing

Simon Couch, Zeki Kazan, Kaiyan Shi, Andrew Bray, Adam Groce

TL;DR

This paper introduces new differentially private nonparametric hypothesis tests that offer significantly improved statistical power compared to existing private methods, even outperforming private parametric tests in many scenarios. This advancement is crucial for enabling robust scientific research on sensitive data while preserving individual privacy.

What Problem Does This Paper Address?

Scientific research often relies on hypothesis testing to draw conclusions from data. However, when dealing with sensitive personal information (like medical records), privacy concerns can prevent data sharing, hindering reproducibility and further analysis. Differential privacy offers a rigorous framework to protect individual privacy while allowing statistical queries. The challenge lies in developing hypothesis tests that are both differentially private and statistically powerful. Traditional nonparametric tests are attractive because they don't assume specific data distributions, but making them differentially private while retaining power has been difficult. This paper tackles the problem of creating differentially private nonparametric hypothesis tests that are not only privacy-preserving but also achieve high statistical power, a critical factor for practical scientific applications.

Methods

The authors develop new differentially private nonparametric hypothesis tests by adapting established nonparametric tests like Kruskal-Wallis, Mann-Whitney, and Wilcoxon signed-rank tests. Their core innovation lies in designing novel test statistics that are amenable to privacy mechanisms like the Laplace mechanism, and crucially, in developing accurate methods for computing reference distributions to obtain valid p-values.

Key methodological contributions include:

  • Rank-based Statistics: They leverage rank-based statistics, which are inherently less sensitive to outliers and distributional assumptions than parametric statistics, making them more robust in the private setting.
  • Novel Test Statistics: For the Kruskal-Wallis test (multiple groups), they introduce a modified statistic that uses absolute differences instead of squared differences, leading to lower sensitivity and higher power.
  • Pratt Variant for Wilcoxon: For the Wilcoxon signed-rank test (paired data), they adopt the Pratt variant, which handles zero differences more gracefully in the private setting, significantly improving power compared to prior work.
  • Private Reference Distributions: A critical aspect is their method for approximating the null distribution of the private test statistic. This involves simulating data under the null hypothesis and computing p-values, ensuring that the type I error rate remains controlled.
  • Privacy Guarantees: The proposed tests achieve $(\epsilon, \delta)$-differential privacy, with most tests achieving $(\epsilon, 0)$-differential privacy.

Datasets

The paper uses synthetic data for extensive experimental evaluations, including power analyses and uniformity of p-values. They also apply their methods to a real-world dataset:

  • Global Findex Database: Used to examine whether income quintiles statistically differ by age in the United States using the differentially private Kruskal-Wallis test.
  • NYC Yellow Taxi Data: Used to demonstrate the Wilcoxon signed-rank test on trip time, trip distance, and number of passengers, comparing its performance to existing private methods.

Key Insights and Ideas

  • Nonparametric Tests Shine in Private Settings: A surprising and consistent finding is that rank-based nonparametric tests, when adapted for differential privacy, often outperform their private parametric counterparts in terms of statistical power, even when the data does meet the assumptions of parametric tests. This is contrary to the public setting where parametric tests typically have higher power.
  • Privacy vs. Utility Trade-off is Not Fixed: The paper demonstrates that the choice of privacy parameter $\epsilon$ significantly impacts utility (power). However, their novel test statistics allow for substantial power even at conservative $\epsilon$ values.
  • Novel Statistics Matter: Simply adding noise to existing private test statistics is often insufficient. The development of new statistics, like the absolute value Kruskal-Wallis or the Pratt variant Wilcoxon, is crucial for achieving high power in the private setting.
  • Reference Distribution is Key: The accuracy of the reference distribution for computing p-values is as important as the private test statistic itself. The authors' methods for approximating this distribution are a significant contribution.

Key Results

  • Significant Power Improvements: The proposed nonparametric tests achieve large improvements in statistical power compared to existing private methods. For example, their private Kruskal-Wallis variant requires only 23% of the data needed by a state-of-the-art private ANOVA test to achieve 80% power.
  • Outperforming Parametric Tests: In multiple scenarios (many groups, two groups, paired data), their private nonparametric tests demonstrated higher power than private parametric alternatives.
  • Robustness to Data Characteristics: The tests show robustness to variations in effect size, group size inequality, and the presence of ties in the data.
  • Practical Utility: The real-world data experiments show that their differentially private tests can achieve meaningful statistical power with reasonable sample sizes, suggesting that private query interfaces can be sufficient for many important tasks, obviating the need for raw data release.

Limitations and Future Work

  • Computational Cost: While the methods are designed for efficiency, simulating reference distributions can still be computationally intensive, especially for large datasets or many simulations.
  • Optimal Privacy Budget Allocation: For some tests (e.g., Mann-Whitney), the optimal allocation of the privacy budget between estimating group sizes and the test statistic itself is crucial and requires careful consideration. The paper provides guidance but notes that this can be parameter-dependent.
  • Further Optimization: The authors suggest that their tests are not necessarily optimal and that further research could push the boundaries of power and efficiency in differentially private hypothesis testing. They also note that for very large sample sizes and certain effect sizes, the power of their tests might plateau, indicating potential areas for future investigation.

Summary updated

BibTeX
@inproceedings{couch2019differentially,
  author = {Simon Couch and Zeki Kazan and Kaiyan Shi and Andrew Bray and Adam Groce},
  title = {{Differentially Private Nonparametric Hypothesis Testing}},
  booktitle = {CCS},
  year = {2019},
  doi = {10.1145/3319535.3339821},
}
Figure