Abstract
In this paper, we consider methods for performing hypothesis tests on data protected by a statistical disclosure control technology known as differential privacy. Previous approaches to differentially private hypothesis testing either perturbed the test statistic with random noise having large variance (and resulted in a significant loss of power) or added smaller amounts of noise directly to the data but failed to adjust the test in response to the added noise (resulting in biased, unreliable $p$-values). In this paper, we develop a variety of practical hypothesis tests that address these problems. Using a different asymptotic regime that is more suited to hypothesis testing with privacy, we show a modified equivalence between chi-squared tests and likelihood ratio tests. We then develop differentially private likelihood ratio and chi-squared tests for a variety of applications on tabular data (i.e., independence, sample proportions, and goodness-of-fit tests). Experimental evaluations on small and large datasets using a wide variety of privacy settings demonstrate the practicality and reliability of our methods.
Introduction
Hypothesis testing, particularly for categorical data using chi-squared ($\chi^2$) and likelihood ratio (LR) tests, is a fundamental tool in statistical analysis. However, the increasing need for privacy-preserving data analysis has introduced significant challenges. Differential Privacy (DP) provides a robust framework for protecting individual privacy by adding calibrated noise to data. Unfortunately, standard statistical tools are not designed to handle this additional noise, leading to a "pick your poison" dilemma for researchers: either suffer a massive loss in statistical power or produce biased, untrustworthy $p$-values.
The Pitfalls of Naive Private Testing
Traditional approaches to DP hypothesis testing typically follow one of two paths. Output perturbation calculates the test statistic on raw data and then adds noise. Because test statistics can be highly sensitive to individual data points, the required noise level often dwarfs the signal, rendering the test useless. Conversely, input perturbation adds noise to the raw counts before performing standard tests.
The danger of input perturbation lies in treating noisy counts as if they were original sampling data. Standard software assumes the variance in the data comes solely from the sampling process, ignoring the variance introduced by the privacy mechanism. This often results in "false discoveries," where a non-significant result is transformed into a highly significant one simply due to the added noise.
As shown in the tables above, adding noise to a contingency table (Figure 2 to Figure 1) changes the underlying proportions. Without adjusting the statistical test to account for this specific noise distribution, the resulting $p$-values become unreliable, potentially leading researchers to claim statistical significance where none exists.
Methodology: A New Asymptotic Framework
To address these issues, this research proposes a middle ground: adding noise to the input data to satisfy DP, but fundamentally rewriting the mathematics of the hypothesis tests to account for that noise.
A New Asymptotic Regime
Standard asymptotic theory (like the Central Limit Theorem) assumes that as the sample size $n$ increases, the noise becomes negligible. This is unrealistic for DP, where the noise level is often a function of the privacy budget $\epsilon$. The authors propose a new regime where the noise level is tied to the sample size, ensuring the "privacy signal" is correctly modeled in the limit.
Modified Distributions and Simulation
The authors derive the asymptotic distributions for LR and $\chi^2$ tests under Laplace noise. They demonstrate that while these tests are equivalent in classical statistics, they diverge under privacy constraints. Because the resulting distributions are mathematically complex, the paper provides algorithms for simulation-based $p$-value calculation, allowing for accurate inference even with noisy inputs.
Experimental Evaluation
The proposed methods were evaluated across diverse datasets, including small-scale social science data (e.g., the Rochdale and Czech datasets) and large-scale administrative data (NYC Taxi trip records).
Key Findings
- Reliability: Using Q-Q plots to measure $p$-value distribution under the null hypothesis, the authors' methods consistently followed the diagonal line, indicating honest $p$-values. In contrast, previous methods showed significant "upward bends," signaling a high rate of false positives.
- Scalability: The tests remained reliable even on the NYC Taxi dataset with an extremely strict privacy budget ($\epsilon = 0.0001$), where the added noise exceeded the standard deviation of the data.
- Sensitivity and Power: The research highlights that the "Diff" statistic—the absolute difference between actual and expected counts—is particularly effective for DP because of its low sensitivity, requiring less noise to maintain privacy.
Conclusion
While privacy noise inevitably reduces the power of statistical tests, this work demonstrates that it is possible to maintain statistical integrity. By explicitly modeling the privacy mechanism within the hypothesis testing framework, researchers can obtain reliable $p$-values that accurately reflect the uncertainty introduced by both sampling and privacy protection. Future work will focus on developing entirely new test statistics optimized for the DP domain and extending these methods to more complex, non-categorical data types.
Summary updated