Dwork Roth 2014 - Randomized Response

Summary

Warner’s two-coin randomized response (1965) predates DP by four decades and is -differentially private. Privacy comes from plausible deniability of every answer; accuracy comes from knowing the noise process, so the true proportion can be estimated as twice the “Yes” fraction minus . It is the prototype of local DP: no curator ever sees true values.

Overview

“Privacy is obtained by process, there are no ‘good’ or ‘bad’ responses. The process by which the responses are obtained affects how they may legitimately be interpreted.” Introduced in Sec. 2.3 as an early example of “privacy by randomized process”, developed in Sec. 3.2 with the privacy claim.

Main Content

Randomized response procedure (pp. 15, 29-30)

Question: “Have you engaged in XYZ in the past week?” (a sensitive property ). Each respondent:

  1. Flips a coin.
  2. If tails, responds truthfully.
  3. If heads, flips a second coin and responds “Yes” if heads and “No” if tails.

Plausible deniability. A “Yes” occurs with probability at least whether or not the respondent has property (first and second coin both Heads), so even a “Yes” is not incriminating.

Claim 3.5 (p. 30)

The version of randomized response described above is -differentially private.

Estimating the true fraction (p. 15-16)

Setup. Let be the true fraction of participants with property . Expected “Yes” fraction. . Estimator. , since . Accuracy “comes from an understanding of the noise generation procedure (the introduction of spurious ‘Yes’ and ‘No’ answers)“.

Generalising the coin biases (derived, not in the book)

Let the first coin show “random” with probability and the second coin show Yes with probability . Then and , giving

The book’s gives . The variance of is with . This is the same family as the -parameterised randomised response of Dwork 2006 - Differential Privacy Definition and Basic Examples, whose estimator has conditional standard deviation for the count.

Examples

Numerical check with the book’s two coins (, ). Expected Yes fraction ; should be close to with standard deviation .

import numpy as np
rng = np.random.default_rng(1)
n, p = 100_000, 0.3
truth = rng.random(n) < p
first, second = rng.random(n) < 0.5, rng.random(n) < 0.5     # heads = True
resp = np.where(~first, truth, second)                       # tails -> truthful; heads -> second coin
y = resp.mean()
print(y, 2 * y - 0.5)                                        # ~0.40 and ~0.30
# privacy ratio from the exact response probabilities
print((0.75 / 0.25), np.log(3))

(Running this snippet with seed 1 gives a Yes fraction of and .)

Cost of local privacy. At the standard error of with is about percentage points; a central count would have error people, i.e. a standard error on the proportion of about . The curator model is orders of magnitude more accurate; the local model needs no trusted party.

Connections

  • Marketing measurement. Any on-device or browser-side noising of a conversion indicator (flip with known probability) is randomized response. The analyst must debias with the known flip rate, which is the estimator above, and the variance inflation is . This matters for conversion modelling with local noise: the signal-to-noise ratio of a lift measurement degrades by the same factor, so plan sample size accordingly (Power Analysis and Sample Size).
  • Survey measurement of sensitive attitudes (brand safety, health product usage) is the original use.

See Also