Wasserman Zhou 2010 - Differential Privacy as a Hypothesis-Testing Constraint
Summary
If is -DP, then any level- test of versus based on the released (even one that knows and ) has power at most . So for small the test is barely better than a coin with rejection probability : an adversary cannot tell whether a given individual’s record is or . This is the statistical reading of DP and the form cited in Dwork et al.’s 2016 reprint as Eq. (3).
Overview
The paper motivates the DP definition with a statistical scenario: “suppose that two subjects each believe that one of them is in the original database. Given and full knowledge of and can they test who is in ?” (Here the standing assumption that the user does not know is dropped.) The answer is Theorem 2.4, proved by the Neyman-Pearson lemma and the definition of DP.
Main Content
Theorem 2.4 (p. 6)
Suppose is obtained from a data release mechanism that satisfies -differential privacy. Any level- test which is a function of , and of versus has power bounded above by .
Proof (Sec. 9.1, p. 20)
Without loss of generality take . Define the marginal laws of under the two hypotheses by averaging over the other entries, which are i.i.d. from and independent of the test:
By the Neyman-Pearson lemma the most powerful test rejects when , where and is chosen so that . Since and differ in only one coordinate, DP gives for every (integrate the pointwise bound over ). Hence the power is .
Bayes factors (p. 7). “A similar calculation shows that if one does a Bayes test between and then the Bayes factor is always between and .” (Own check: the same argument gives and for replace-one neighbours, so and the Bayes factor lies in for a pair ; the printed is a valid but looser statement.) The paper points to Dwork et al. (2006), Dwork (2006), Ganta et al. (2008) and Rastogi et al. (2009) for more on motivation and consequences.
Reading the bound. With level and , power : a test that rejects a false hypothesis only 5.5% of the time versus 5% of the time when it is true. With the bound is ; with it is (vacuous for ). In ROC terms DP forces the whole ROC curve for distinguishing neighbouring inputs below the line (and, by symmetry in the proof, ).
Tightness (derived example). Randomized response with on a single bit: the optimal test of vs given rejects when , with and power . Then exactly, so : the bound cannot be improved. For : and power .
Link to the original paper. Dwork, McSherry, Nissim and Smith (2016 reprint, Sec. 2.2) restate this result: for -DP, i.i.d. data, index and disjoint sets of values of , every test of against satisfies , “the test rejects the hypothesis with approximately the same probability regardless of whether the hypothesis is true” (Dwork 2006 - Postprocessing, Composition and Group Privacy). In the textbook, the same content appears as the bound on privacy loss and (Dwork Roth 2014 - Basic Composition and Divergence Tools).
Examples
import numpy as np
alpha = np.log(3)
q = np.exp(alpha) / (np.exp(alpha) + 1) # randomized response keep probability = 0.75
rng = np.random.default_rng(0)
n = 400_000
x = rng.random(n) < 0.5 # secret bit; H0: x=0, H1: x=1
z = np.where(rng.random(n) < q, x, ~x)
reject = z # NP test: reject H0 when Z=1
gamma_hat = reject[~x].mean() # level (type-I error) ~ 0.25
power_hat = reject[x].mean() # power ~ 0.75
print(gamma_hat, power_hat, gamma_hat * np.exp(alpha)) # power ~ gamma * e^alphaLikelihood-ratio view of a Bayesian adversary. With prior odds for the posterior odds after observing lie in pointwise; for a prior probability of and the posterior probability lies in .
Connections
- Marketing measurement. This is the correct language for explaining a stated to stakeholders: “any attempt to infer whether a given user converted (or was exposed) from the privatised report has power at most times its false-positive rate”. It also ties to experimentation vocabulary (size, power, Neyman-Pearson) in Power Analysis and Sample Size. The Bayes-factor reading parallels the positive-predictive-value arguments in Ioannidis 2005 - PPV of Research Findings and the 2x2 Framework.
- The bound is about one record; multiple records or repeated releases compose (Dwork Roth 2014 - Advanced Composition and the Gaussian Mechanism).