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.1 | 1.11 | 52.5% |
| 0.5 | 1.65 | 62.2% |
| 1 | 2.72 | 73.1% |
| 2 | 7.39 | 88.1% |
| 5 | 148 | 99.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 b | 95% of noise within | Chance of being within ±5 | 95% error on 400 | 95% error on 25 |
|---|---|---|---|---|---|
| 0.1 | 10 | ±30.0 | 39.3% | 7.5% | 119.8% |
| 0.5 | 2 | ±6.0 | 91.8% | 1.5% | 24.0% |
| 1 | 1 | ±3.0 | 99.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])
| Draw | 400 at ε = 1 | 400 at ε = 0.1 | 25 at ε = 1 | 25 at ε = 0.1 |
|---|---|---|---|---|
| 1 | 399 | 386 | 24 | 11 |
| 2 | 400 | 400 | 25 | 25 |
| 3 | 400 | 400 | 25 | 25 |
| 4 | 401 | 413 | 26 | 38 |
| 5 | 398 | 384 | 23 | 9 |
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 number | Laplace scale | 95% of noise within |
|---|---|---|---|
| One total for the period | 1 | 1 | ±3 |
| 7 daily counts | 1/7 | 7 | ±21 |
| 30 daily counts | 1/30 | 30 | ±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 model | Local model | |
|---|---|---|
| Who adds noise | A curator who holds the raw data | Each person's device, before sending |
| Trust needed | Curator must be honest and secure | Collector never sees true values |
| Accuracy | Higher | Much lower for the same ε |
| Suits | Published statistics, internal analytics releases | Popularity 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 files | What the handbook says |
|---|---|
| Variant | Zero-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 covered | Apportionment counts released in April 2021 |
| Effect of size | Noise 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:
- 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.
- What are ε and δ, and over what period? A small per-query ε with daily releases can add up to a large yearly total.
- Can guarantees be compared? Numbers with different δ values or different units of privacy are not directly comparable.
- Is anything else published from the same data without noise? Differential privacy does not reduce the risk carried by other, exact releases.
- Who wrote the noise code? Custom implementations are a listed hazard.
Differential privacy vs aggregation and anonymization
| Plain aggregation | Aggregation with minimum counts | Differential privacy | |
|---|---|---|---|
| Method | Report totals | Report totals, hide small groups | Report totals with calibrated noise |
| Resists subtracting two reports | No | Only if checked by hand | Yes, within the budget |
| Exact numbers | Yes | Yes, for shown cells | No |
| Measurable privacy loss | No | No | Yes: ε (and δ) |
| Main cost | Leaks through small cells | Missing cells | Noise, 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:
- Decide the questions and the budget. Write down the two counts, the unit of privacy (one user, not one click) and the total ε.
- 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.
- Add noise with a maintained differential-privacy library, release only the noisy figures, and record the ε spent.
- 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
- NIST, SP 800-226: Guidelines for Evaluating Differential Privacy Guarantees, March 2025.
- Cynthia Dwork and Aaron Roth, The Algorithmic Foundations of Differential Privacy, 2014.
- US Census Bureau, Disclosure Avoidance for the 2020 Census: An Introduction, November 2021. Checked 3 December 2026.
Was this explanation clear?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

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