TapCub is live — analytics, insights and live chat, free on one platform
Glossary

What is differential privacy? Epsilon and Laplace noise with examples

Differential privacy bounds how much any output can reveal about one person. What epsilon means, Laplace noise on a count, privacy budgets, local vs central models and the 2020 US Census settings.

Su He Reviewed by Ethan Brooks Also called ε-differential privacy Last updated Dec 3, 2026 Glossary

Quick answer

Differential privacy is a mathematical guarantee that the output of an analysis changes very little whether or not any one person's data is included. It is usually achieved by adding calibrated random noise, with a parameter epsilon (ε): smaller means more privacy and less accuracy.

Formula: Pr[M(D1) ∈ S] ≤ e^ε × Pr[M(D2) ∈ S]; Laplace noise scale b = sensitivity ÷ ε

What is differential privacy?

Differential privacy is a mathematical guarantee about how an answer is produced: whether or not any one person's data is included, the chance of getting any particular result stays almost the same. Someone reading the output therefore learns very little about that person that they could not have learned if the person had been left out. The usual way to get the guarantee is to add carefully sized random noise before publishing a number.

Cynthia Dwork, Frank McSherry, Kobbi Nissim and Adam Smith introduced the definition in 2006. In the form used by NIST and by Dwork and Aaron Roth's textbook, a randomized mechanism M is ε-differentially private if, for any two datasets D1 and D2 that differ in one individual's data, and any set of possible outputs S:

Pr[M(D1) ∈ S] ≤ e^ε × Pr[M(D2) ∈ S]

Three things follow from reading the formula carefully:

  • It is a property of the process, not of a file. You cannot inspect a finished table and see whether it is differentially private.
  • The symbol ε (epsilon) sets how far apart the two worlds may be. Smaller ε means stronger privacy and more noise.
  • "One individual's data" has to be defined. Whether that means one person's whole history or a single event changes what is protected.

What epsilon means in plain words

e^ε is the largest factor by which any outcome can become more or less likely because of your data. One way to feel it: suppose an observer starts out thinking there is a 50% chance that a particular person is in the dataset, sees one released answer, and updates their belief. Under pure ε-differential privacy their confidence can rise at most to e^ε ÷ (1 + e^ε).

εLargest likelihood ratio e^εA 50% belief can rise to at most
0.11.1152.5%
0.51.6562.2%
12.7273.1%
27.3988.1%
514899.3%

Figures computed from the definition. These are upper bounds, not typical outcomes.

NIST SP 800-226 (March 2025) gives no official rule for choosing ε. It reports an analysis suggesting that 0.1 generally gives strong protection and that values below 1 are considered reasonable, notes that many deployments have used values between 1 and 20, and asks organizations to examine the risk of the released data especially when ε is above 1.

Laplace noise on a count: a worked example

For a count, one person changes the true answer by at most 1. That maximum change is the sensitivity. The Laplace mechanism adds random noise drawn from a Laplace distribution with scale b = sensitivity ÷ ε. The chance that the noise is larger than ±t is e^(−t/b), so 95% of draws fall within about ±3b.

Sample data: 400 users used a new export button last week, and 25 of them were on the smallest plan. We publish each count with Laplace noise.

εScale b95% of noise withinChance of being within ±595% error on 40095% error on 25
0.110±30.039.3%7.5%119.8%
0.52±6.091.8%1.5%24.0%
11±3.099.3%0.7%12.0%

The same absolute noise hits both counts, so the small segment suffers far more. You can reproduce five draws with this Python snippet, which applies the same five random numbers at two settings:

import math, random
rng = random.Random(2026)
us = [rng.random() - 0.5 for _ in range(5)]
for eps in (1, 0.1):
    b = 1 / eps
    noise = [-b * math.copysign(1, u) * math.log(1 - 2 * abs(u)) for u in us]
    print(eps, [round(400 + n) for n in noise], [round(25 + n) for n in noise])
Draw400 at ε = 1400 at ε = 0.125 at ε = 125 at ε = 0.1
13993862411
24004002525
34004002525
44014132638
5398384239

At ε = 0.1 the segment of 25 comes out anywhere from 9 to 38 in five tries. The snippet is for understanding the idea. NIST warns that ordinary floating-point arithmetic can leak information about the true value and advises well-tested libraries over custom code.

Privacy budget: why repeated queries add up

Differential privacy composes. If you release two answers from the same data, each with ε = 1, the combined guarantee is bounded by ε = 2. Ten analyses at ε = 0.1 add up to ε = 1. The total is called the privacy budget.

That changes how a dashboard has to be planned. Suppose the total budget for a period is ε = 1, one person can appear in every daily count, and you split the budget evenly:

What you publishε per numberLaplace scale95% of noise within
One total for the period11±3
7 daily counts1/77±21
30 daily counts1/3030±90

The decision rule: choose the questions first, then divide the budget. Every extra breakdown makes all the others noisier, and re-running a query with fresh noise spends budget again, because averaging many noisy answers would otherwise cancel the noise out. Processing an already released noisy answer (rounding it, charting it) costs nothing; this is called post-processing invariance.

Central vs local differential privacy

Where the noise is added decides whom you have to trust.

Central modelLocal model
Who adds noiseA curator who holds the raw dataEach person's device, before sending
Trust neededCurator must be honest and secureCollector never sees true values
AccuracyHigherMuch lower for the same ε
SuitsPublished statistics, internal analytics releasesPopularity estimates with very many users

Randomized response is the classic local method. With ε = 1, each device reports its true yes-or-no answer with probability 73.1% and the opposite answer otherwise. Sample data: 10,000 users, of whom 2,000 truly use a feature. The collector expects about 3,614 "yes" reports and can correct for the flipping: (0.3614 − 0.2689) ÷ (0.7311 − 0.2689) = 20%. The noise alone gives the corrected count a standard deviation of about 96 users, so 95% of runs fall within roughly ±188. A central Laplace mechanism at the same ε would be within ±3 users 95% of the time.

NIST SP 800-226 describes the same trade-off and notes that the local model is only useful for queries with a very strong signal.

Where differential privacy is used officially: the 2020 US Census

The largest official example is the US Census Bureau's 2020 Census. Its November 2021 handbook explains that the redistricting data files were the first 2020 Census data protected with differential privacy, using a system called the TopDown Algorithm: noise is added to tabulations at each geographic level, and post-processing then makes the tables consistent (no negative counts, and parts that add up).

Design choice in the redistricting filesWhat the handbook says
VariantZero-concentrated differential privacy with discrete Gaussian noise, not Laplace
Global ε, person file (δ = 10⁻¹⁰)17.14
Global ε, housing-unit file (δ = 10⁻¹⁰)2.47
Held exact ("invariant")Total population of each state, among a limited set
Not coveredApportionment counts released in April 2021
Effect of sizeNoise does not depend on cell size, so small areas have larger relative error

Two lessons travel to smaller projects. Real deployments choose ε values far above textbook examples after weighing accuracy, and the handbook itself notes that every exact figure sits outside the formal guarantee.

Questions to ask before trusting a "differentially private" claim

NIST SP 800-226 lists "privacy hazards", pitfalls that weaken a real system. Turned into questions:

  1. What is the unit of privacy? Event-level privacy protects one click or purchase. A heavy user with hundreds of events gets much weaker protection than user-level privacy would give.
  2. What are ε and δ, and over what period? A small per-query ε with daily releases can add up to a large yearly total.
  3. Can guarantees be compared? Numbers with different δ values or different units of privacy are not directly comparable.
  4. Is anything else published from the same data without noise? Differential privacy does not reduce the risk carried by other, exact releases.
  5. Who wrote the noise code? Custom implementations are a listed hazard.

Differential privacy vs aggregation and anonymization

Plain aggregationAggregation with minimum countsDifferential privacy
MethodReport totalsReport totals, hide small groupsReport totals with calibrated noise
Resists subtracting two reportsNoOnly if checked by handYes, within the budget
Exact numbersYesYes, for shown cellsNo
Measurable privacy lossNoNoYes: ε (and δ)
Main costLeaks through small cellsMissing cellsNoise, worst on small groups

The subtraction row is the core difference. If a report says 400 users used a button, and the same report excluding one named account says 399, the exact numbers reveal what that account did. With noise at ε = 1, a gap of 1 is indistinguishable from chance. Data aggregation on its own offers no such bound. Anonymization is a legal and practical outcome; differential privacy is one tool that may help reach it, and it still needs assessment in context. Where it sits among other techniques is covered in privacy-enhancing technologies.

Where TapCub fits

TapCub does not add differential-privacy noise to its reports; the console shows counts as collected and processed. If you need to publish figures with a formal guarantee, apply the mechanism yourself after exporting. For the export-button example:

  1. Decide the questions and the budget. Write down the two counts, the unit of privacy (one user, not one click) and the total ε.
  2. Make each user count once. In All-platform analytics › Data › Data export (Pro or above, Analyst role or above), export events for the week, then deduplicate by visitor or user in your own script so that one person changes each count by at most 1.
  3. Add noise with a maintained differential-privacy library, release only the noisy figures, and record the ε spent.
  4. Reduce what you hold in the first place. In Configuration › Privacy center, collection tier 1 keeps no persistent ID and rotates the salt daily. That is data minimization, not differential privacy, and it also means you cannot deduplicate users across days.

Do not publish the exact console numbers alongside the noisy ones: the exact release undoes the protection.

Sources

Was this explanation clear?

We use your answers to fix and expand this page.

Su He

Data Analyst

Explores traffic sources, conversion funnels, and retention, using clear metric definitions and concrete examples to explain what the numbers mean.

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What is differential privacy in simple terms?

It is a promise about the method: the published answer would look almost the same whether or not your data were included. Noise is added so that nobody can work backwards from the result to one person, while large patterns in the data remain visible.

What is a good epsilon value?

There is no official threshold. NIST SP 800-226 reports that 0.1 generally gives strong protection and values below 1 are considered reasonable, while many deployments use values from 1 to 20 and need their risk examined. Always read ε together with the unit of privacy and the time period.

Is differential privacy the same as anonymization?

No. Differential privacy is a property of a mechanism with a measurable privacy loss. Anonymization is an outcome judged by whether people can still be identified. Noisy outputs can support an anonymity assessment, but the raw data you keep is still personal data.

Does the US Census use differential privacy?

Yes. The Census Bureau applied it to 2020 Census data, starting with the redistricting files, with a global epsilon of 17.14 for the person file and 2.47 for housing units. Some figures, such as each state's total population, were published without noise.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics