What does Differential Privacy for Business Statistics conclude, in numbers, about “Classical Sources East and West: Han Feizi on the Difficulty of Persuasion and Warner's Randomized Response”?

Answer: Chapter 7 examines "words that touch the hidden matter" in the Han Feizi and Warner's randomized response of 1965 (a spinner probability of 0.8 implies an epsilon of 1.386).

Scope of the numbers: Chapter 3 deals with sensitivity: revenue clipped per person has a root mean square error of 6545 yuan in the illustrative data, 4.09 % of revenue, and a customer profile spends the budget only once by parallel composition. Marked boxes separate published evidence, runnable Python calculations (20 programs), classical sources and the author's hypotheses.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.8, 1.386

root mean square error, n500, true share 0.3
design p 0.6 p 0.7 p 0.8 p 0.9
Warner eps = ln(p/q)0.405 0.847 1.386 2.197
Warner RMSE0.1114 0.0552 0.0362 0.0265
direct, T1.00 0.0205
direct, T0.95 0.0252
direct, T0.90 0.0360
direct, T0.80 0.0630
direct, T0.60 0.1212
simulated Warner at p 0.8: mean 0.3012, sd 0.0360
Show the full program
# Chapter 7. p72: Warner's 1965 trade - variance for honesty.
# Warner's device: with probability p the respondent answers "I belong
# to group A", otherwise "I do not belong to group A", and only she
# knows which. Estimate: pi_hat = (lambda_hat - (1 - p)) / (2 p - 1),
# variance pi (1 - pi) / n + p (1 - p) / (n (2 p - 1)**2). Direct
# questioning is cheaper in variance but biased when members of A tell
# the truth only with probability T: bias = -pi (1 - T). Root mean square
# errors for n = 500 and pi = 0.3 (illustrative); eps = ln(p / (1 - p))
# is the local privacy level that Warner's p implies.
import math
import random

N, PI = 500, 0.3
PS = [0.6, 0.7, 0.8, 0.9]


def rmse_rr(p):
    var = PI * (1 - PI) / N + p * (1 - p) / (N * (2 * p - 1) ** 2)
    return math.sqrt(var)


def rmse_direct(t):
    seen = PI * t
    return math.sqrt((PI - seen) ** 2 + seen * (1 - seen) / N)


print("root mean square error, n = %d, true share %.1f" % (N, PI))
print("%-22s" % "design" + "".join("%9s" % ("p %.1f" % p) for p in PS))
print("%-22s" % "Warner eps = ln(p/q)" + "".join(
    "%9.3f" % math.log(p / (1 - p)) for p in PS))
print("%-22s" % "Warner RMSE" + "".join("%9.4f" % rmse_rr(p) for p in PS))
for t in (1.0, 0.95, 0.9, 0.8, 0.6):
    print("%-22s" % ("direct, T = %.2f" % t) + "%9.4f" % rmse_direct(t))
rng = random.Random(20261113)
p, ests = 0.8, []
for _ in range(4000):
    yes = 0
    for _ in range(N):
        a = rng.random() < PI
        say = a if rng.random() < p else not a
        if say:
            yes += 1
    ests.append((yes / N - (1 - p)) / (2 * p - 1))
m = math.fsum(ests) / len(ests)
sd = math.sqrt(math.fsum((e - m) ** 2 for e in ests) / (len(ests) - 1))
print("simulated Warner at p 0.8: mean %.4f, sd %.4f" % (m, sd))

Single source and citation

Fan, Y. (2026). Differential Privacy, the Laplace Mechanism and Privacy-Budget Accounting: Publishing Business Statistics without Exposing Any Individual (Version 1.0.0), Chapter 7: Classical Sources East and West: Han Feizi on the Difficulty of Persuasion and Warner's Randomized Response. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-296 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026296,
  author    = {Fan, Yafu},
  title     = {Differential Privacy, the Laplace Mechanism and Privacy-Budget Accounting: Publishing Business Statistics without Exposing Any Individual},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book