What is ε-differential privacy, and why does the Laplace mechanism satisfy it? For a counting query (sensitivity Δf=1) released with the Laplace mechanism at ε=0.5, what are the noise scale b, variance, standard deviation, and tail probability P(∣noise∣>5), and how do privacy and accuracy change across repeated queries?

ML systems and evaluation, Privacy
Level L4 Advanced. Length Medium. Nature Mat Mathematical.

What's being asked

Whether you know the definition of ε-DP (differential privacy), can derive the Laplace mechanism's density-ratio bound, can compute its noise moments and tail probability, and understand sequential composition.

Key idea

A randomised mechanism M is ε-differentially private if changing one record changes the probability of any output set by at most eε. Adding zero-mean Laplace noise Lap(b) with scale b=Δf/ε bounds the output density ratio between neighbouring datasets by exp⁡(∣f(D)−f(D′)∣/b)≤eε.

Steps

  1. Define ε-differential privacy: a randomised algorithm M satisfies ε-DP if for every pair of neighbouring datasets D,D′ differing in at most one record and every measurable output set S, P(M(D)∈S)≤eε P(M(D′)∈S), where smaller ε gives stronger privacy.
  2. Show why the Laplace mechanism satisfies ε-DP: for a scalar query f with ℓ1-sensitivity Δf=max⁡D∼D′∣f(D)−f(D′)∣ (the worst-case change from one record), output M(D)=f(D)+η with η∼Lap(b), density p(η)=12be−∣η∣/b, and b=Δf/ε. For any output z, the density ratio is pM(D)(z)pM(D′)(z)=e−∣z−f(D)∣/be−∣z−f(D′)∣/b=exp⁡ ⁣(∣z−f(D′)∣−∣z−f(D)∣b)≤exp⁡ ⁣(∣f(D)−f(D′)∣b)≤exp⁡ ⁣(Δfb)=eε, using the reverse triangle inequality.
  3. Compute the noise statistics for Δf=1 and ε=0.5: the scale is b=Δf/ε=1/0.5=2. A Lap(b) variable has variance 2b2=2(22)=8 and standard deviation 8=22≈2.83.
  4. Compute the tail probability P(∣η∣>5): by symmetry, P(∣η∣>t)=2∫t∞12be−u/b du=e−t/b. At t=5 and b=2, P(∣η∣>5)=e−5/2=e−2.5≈0.082 (about 8.2%).
  5. Explain the privacy–accuracy trade-off: tightening ε raises the scale b=Δf/ε and variance 2(Δf/ε)2, adding more error. Because Δf=1 for a count regardless of dataset size, a noise error around ±2.8 is minor for a count of 10,000 but large for a count of 10.
  6. State sequential composition: running k independent εi-DP mechanisms on the same dataset gives (∑i=1kεi)-DP overall. Answering 4 queries at ε=0.5 each uses a cumulative privacy budget of 4×0.5=2.0.

Common mistakes

How long your answer should be

4–5 minutes: definition, density-ratio proof, four numeric values, and two sentences on trade-offs and composition.

Read this

Previous in ML systems and evaluation: In a hospital study of 1,000 patients split evenly between mild (Z=0) and severe (Z=1) cases, recovery rates for treated (T=1) vs untreated (T=0) patients are 90/100 vs 320/400 among mild cases and 200/400 vs 40/100 among severe cases. How do these numbers exhibit Simpson’s paradox, what is the causal DAG and backdoor-adjusted effect P(Y=1∣do⁡(T=1))−P(Y=1∣do⁡(T=0)), and why does adjusting for a collider instead of a confounder introduce bias?
Next in ML systems and evaluation: How does DP-SGD (differentially private stochastic gradient descent) bound per-example influence and add noise during training? In a batch of size B=100 with clipping threshold C=1 and noise multiplier σ=1.2, two per-example gradients have ℓ2 norms 5 and 0.5: what are their clipping scale factors, what is the per-coordinate noise standard deviation on the averaged gradient, and why do per-example clipping, subsampling, and larger batches matter?