Mathwords logoMathwords

Randomized Response — Definition, Formula & Example

Randomized response is a survey method for sensitive questions. A private chance device, such as a die, decides whether each person answers truthfully or gives a preset answer, so no single "yes" reveals anything about that person.

In the forced-response design, each respondent answers the sensitive question truthfully with known probability ptp_t, is instructed to say "yes" with known probability pyp_y, and is instructed to say "no" otherwise. If π\pi is the population proportion with the sensitive trait, then P(yes)=λ=ptπ+pyP(\text{yes}) = \lambda = p_t\pi + p_y. The unbiased estimator of π\pi is π^=(λ^−py)/pt\hat{\pi} = (\hat{\lambda} - p_y)/p_t, where λ^\hat{\lambda} is the observed proportion of "yes" answers. Warner (1965) introduced the original version of the technique.

Key Formula

λ=pt π+py⟹π^=λ^−pypt\lambda = p_t\,\pi + p_y \quad\Longrightarrow\quad \hat{\pi} = \frac{\hat{\lambda} - p_y}{p_t}
Where:
  • π\pi = True proportion of the population with the sensitive trait (the parameter you want)
  • λ\lambda = Probability that a respondent says "yes"
  • λ^\hat{\lambda} = Observed proportion of "yes" answers in the sample
  • ptp_t = Known probability that the device tells the respondent to answer truthfully
  • pyp_y = Known probability that the device forces a "yes"
  • π^\hat{\pi} = Estimate of the true proportion

Worked Example

Problem: A university surveys a random sample of 300 students: "Have you ever cheated on an exam?" Each student privately rolls a fair die. On a 1 the student says "yes," on a 6 the student says "no," and on 2 through 5 the student answers truthfully. The survey records 120 "yes" answers. Estimate the proportion of students who have cheated.
Step 1: Identify the known probabilities. Four of six faces mean answer truthfully, and one face forces "yes." The observed yes-proportion is 120 out of 300.
pt=46=23,py=16,λ^=120300=0.40p_t = \tfrac{4}{6} = \tfrac{2}{3}, \qquad p_y = \tfrac{1}{6}, \qquad \hat{\lambda} = \tfrac{120}{300} = 0.40
Step 2: Count it out. About 300/6 = 50 students rolled a 1 and were forced to say "yes." About 200 students answered truthfully. Removing the forced answers leaves 120 − 50 = 70 truthful "yes" answers.
70200=0.35\frac{70}{200} = 0.35
Step 3: Confirm with the formula.
π^=0.40−1623=7/302/3=720=0.35\hat{\pi} = \frac{0.40 - \tfrac{1}{6}}{\tfrac{2}{3}} = \frac{7/30}{2/3} = \frac{7}{20} = 0.35
Answer: An estimated 35% of students have cheated on an exam. The raw survey showed 40% "yes." No individual "yes" can be traced to cheating, because any student might have rolled a 1.

Why It Matters

Researchers use randomized response to estimate rates of drug use, tax evasion, and academic dishonesty, where direct questions produce strong response bias. The same idea underlies local differential privacy. Google's RAPPOR system, for example, uses randomized response to collect usage statistics from devices without learning any one user's true data.

Common Mistakes

Mistake: Treating randomized response as a free fix for dishonest answers, with no cost to precision.
Correction: The deliberate noise inflates the estimator's variance to λ(1−λ)/(n pt2)\lambda(1-\lambda)/(n\,p_t^2). The smaller ptp_t is, the more privacy each respondent gets, and the wider your confidence interval becomes. Plan for a larger sample size than a direct-question survey would need.

Related Terms

  • Response Bias — The dishonest-answer problem this technique is designed to reduce
  • Population — Group whose true sensitive-trait proportion is being estimated
  • Random Sample — Needed so the corrected estimate generalizes to the population
  • Sample Size — Must be larger to offset the added random noise
  • Sample (Statistics) — Source of the observed yes-proportion used in the formula
  • Nonsampling Error — Reduces untruthful answers, a type of nonsampling error
  • Sample Survey — Survey design technique for asking sensitive questions