Skip to main content
QUICK REVIEW

[Paper Review] Differentially Private Chi-Squared Hypothesis Testing: Goodness of Fit and Independence Testing

Marco Gaboardi, Hyun Woo Lim|arXiv (Cornell University)|Feb 7, 2016
Privacy-Preserving Technologies in DataComputer Science21 references41 citations
TL;DR

This paper proposes differentially private chi-squared tests for goodness of fit and independence in categorical data, using noise-injected statistics with rigorous significance control. It introduces Monte Carlo and asymptotic methods that maintain target significance levels and achieve near-classical power with only a modest increase in sample size, especially under Laplace noise.

ABSTRACT

Hypothesis testing is a useful statistical tool in determining whether a given model should be rejected based on a sample from the population. Sample data may contain sensitive information about individuals, such as medical information. Thus it is important to design statistical tests that guarantee the privacy of subjects in the data. In this work, we study hypothesis testing subject to differential privacy, specifically chi-squared tests for goodness of fit for multinomial data and independence between two categorical variables. We propose new tests for goodness of fit and independence testing that like the classical versions can be used to determine whether a given model should be rejected or not, and that additionally can ensure differential privacy. We give both Monte Carlo based hypothesis tests as well as hypothesis tests that more closely follow the classical chi-squared goodness of fit test and the Pearson chi-squared test for independence. Crucially, our tests account for the distribution of the noise that is injected to ensure privacy in determining significance. We show that these tests can be used to achieve desired significance levels, in sharp contrast to direct applications of classical tests to differentially private contingency tables which can result in wildly varying significance levels. Moreover, we study the statistical power of these tests. We empirically show that to achieve the same level of power as the classical non-private tests our new tests need only a relatively modest increase in sample size.

Motivation & Objective

  • Address the challenge of performing valid hypothesis testing on sensitive categorical data while preserving individual privacy.
  • Overcome the failure of classical chi-squared tests when applied to differentially private contingency tables, which suffer from unpredictable significance levels.
  • Develop new hypothesis tests that account for the distribution of noise added for differential privacy, ensuring Type I error control.
  • Achieve statistical power close to classical non-private tests despite the added noise, minimizing sample size inflation.
  • Provide both computationally efficient asymptotic tests and robust Monte Carlo-based alternatives for practical deployment.

Proposed method

  • Inject Laplace or Gaussian noise into observed counts of multinomial or contingency table data to ensure differential privacy.
  • Construct a differentially private chi-squared statistic by applying the standard formula to the noisy counts.
  • For the Monte Carlo test (MCGOF and MCIndep), simulate null distributions under the null hypothesis using noisy data to compute p-values.
  • For the asymptotic tests (PrivGOF and PrivIndep), derive the asymptotic distribution of the private chi-squared statistic as a linear combination of independent chi-squared variables with one degree of freedom.
  • Use the 'CompQuadForm' R package with the Imhof method to compute critical values and p-values for the asymptotic distribution.
  • Apply a two-step maximum likelihood estimation (2MLE) procedure to estimate parameters from private counts, especially when cell counts are small.

Experimental results

Research questions

  • RQ1Can differentially private chi-squared tests maintain the target significance level (1−α) when noise is added to contingency tables?
  • RQ2How does the statistical power of differentially private tests compare to classical non-private tests under the same privacy budget?
  • RQ3What is the impact of noise type (Laplace vs. Gaussian) on the performance of private hypothesis tests?
  • RQ4Can asymptotic approximations of the private chi-squared statistic be used effectively for significance testing with rigorous error control?
  • RQ5How much additional sample size is needed for private tests to achieve the same power as classical tests?

Key findings

  • The proposed Monte Carlo and asymptotic tests (MCGOF, PrivGOF, MCIndep, PrivIndep) achieve significance levels close to the target 1−α, even under differential privacy.
  • When using Laplace noise, the tests achieve power comparable to classical tests with less than 3,000 additional samples, significantly better than the expected 1/ε blowup.
  • Gaussian noise leads to lower power than Laplace noise due to higher variance for the same privacy budget (ε,δ).
  • For small sample sizes (e.g., n=100), all private tests fail to reject the null in 1,000 trials due to low cell counts, consistent with classical test behavior.
  • The asymptotic distribution of the private chi-squared statistic under the null is a linear combination of independent χ²(1) variables, enabling efficient critical value computation.
  • The use of the Imhof method in R for tail probability estimation of quadratic forms in normals enables accurate and efficient p-value computation for the asymptotic tests.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.