The randomized response protocol is an algorithm originally used to survey people for sensitive true/false questions. The goal is to ensure plausible deniabilityโthat if someone knew our survey response, they canโt make any immediate conclusions.
To do this, we follow the below procedure:
- Flip a coin. If itโs heads, answer the question truthfully.
- If itโs tails, flip another coin. Answer โyesโ if itโs heads and โnoโ if itโs tails.
Even though our answers are somewhat randomized, we can get the truth proportion of โyesโ with some math. Let
If
and can solve for
Differential Privacy Analysis
Randomized response is a differentially private algorithm, and we prove it below.
Consider the distribution of outputs from all participants. Let
Our dataset
This is the proportionate change in our total dataset probabilities, so setting
Generated Analysis
Assume our first coin is biased; with probability
Applying the same analysis as above, we get the