Randomized response #
Randomized response [DworkRoth2014, §3.2] is a survey protocol for a yes/no question. The
respondent flips a coin. On tails they answer truthfully; on heads they flip a second coin and
answer "Yes" on heads and "No" on tails. randomizedResponse truth is this protocol as a
ProbComp Bool program over fair coins, with true for "Yes" and for a truthful answer. The
privacy statements apply DifferentiallyPrivate to its output law
ProbComp.eval (randomizedResponse truth): the protocol is a finite program, and only its
semantics is a PMF.
The answer agrees with the truth with probability 3/4 (eval_randomizedResponse_apply), so
randomized response is (ln 3, 0)-differentially private for a single respondent
(differentiallyPrivate_randomizedResponse) [DworkRoth2014, Claim 3.5], and ln 3 is optimal
(differentiallyPrivate_randomizedResponse_iff).
randomizedResponseSurvey x lets each of n respondents answer independently. It is
(ln 3, 0)-private for Hamming adjacency (differentiallyPrivate_randomizedResponseSurvey). The
expected number of "Yes" answers is n / 4 + (number of true "Yes") / 2
(sum_eval_randomizedResponseSurvey_mul_card), so twice the fraction of "Yes" answers minus
1/2 is an unbiased estimator of the true fraction
(sum_eval_randomizedResponseSurvey_mul_estimator) [DworkRoth2014, §2.3].
Main definitions #
Cslib.Privacy.randomizedResponse: one respondent's randomized response.Cslib.Privacy.randomizedResponseSurvey:nindependent respondents.
Main results #
Cslib.Privacy.differentiallyPrivate_randomizedResponse,Cslib.Privacy.differentiallyPrivate_randomizedResponse_iff: exactly(ln 3, 0)-private.Cslib.Privacy.differentiallyPrivate_randomizedResponseSurvey: the survey is(ln 3, 0)-private for Hamming adjacency.Cslib.Privacy.renyiDifferentiallyPrivate_randomizedResponse,Cslib.Privacy.renyiDifferentiallyPrivate_randomizedResponseSurvey: order-αRényi differential privacy [Mironov2017, Proposition 5].Cslib.Privacy.sum_eval_randomizedResponseSurvey_mul_estimator: the unbiased estimator.
References #
Randomized response [DworkRoth2014, §3.2]: flip a coin; on tails (truthful = true) answer
truthfully, and on heads answer with a second fair coin.
Randomized response agrees with the truth with probability 3/4.
Randomized response is (ln 3, 0)-differentially private for a single respondent, whose
datum may change arbitrarily [DworkRoth2014, Claim 3.5].
ln 3 is optimal: randomized response is (ε, 0)-differentially private exactly when
ln 3 ≤ ε.
The survey's answers are independent randomized responses.
The randomized-response survey is (ln 3, 0)-differentially private for Hamming
adjacency.
Randomized response satisfies
(α, log ((3 / 4) · 3 ^ (α - 1) + (1 / 4) · 3 ^ (1 - α)) / (α - 1))-Rényi differential privacy
for every 1 < α [Mironov2017, Proposition 5].
The n-respondent randomized-response survey satisfies the same order-α Rényi differential
privacy bound under HammingAdjacent for every 1 < α.
The expected number of "Yes" answers is n / 4 + (number of true "Yes") / 2
[DworkRoth2014, §2.3].
The estimator 2 · (fraction of "Yes" answers) - 1/2 is unbiased for the fraction of
respondents whose true answer is "Yes" [DworkRoth2014, §2.3].