Differential privacy
Intermediate
What you need first. Nothing else on this path comes first. This page is part of Applications.
In privacy, differential privacy is a promise that the distribution of a released analysis barely changes when one person’s data are added or removed. A hospital can publish a table of average lengths of stay and still reveal a particular patient’s record, if the table is fine enough and the listener knows that the patient was included. Differential privacy is a mathematical promise about that risk: the distribution of the released analysis barely changes when one person’s row is added or removed. The promise is a property of the randomised algorithm that produces the release. It is a bound on ratios of probabilities, so that a rare output stays rare on every neighbouring file.[1][2]
Differential privacy
| Fact | Value |
|---|---|
| Topic | Applications |
| Listed on | Applications |
| Worked example | 1 |
Motivating example
An insurer is about to see a published average. Suppose the file is a list of binary indicators, one per person, and the published number is the exact count of the sensitive indicator. Two files that differ only in one person’s bit produce counts that differ by one. Some outputs that are certain for one file are impossible for the other, so the ratio of those probabilities is infinite and no finite satisfies the bound. The count is already free of names, and it still moves when one person is added or removed. An attacker who already knows a great deal can combine that knowledge with a published average and learn something new. The guarantee limits the change in the odds that comes from one person’s participation. If a bad outcome happens, the presence of that one row is what the bound keeps from being the cause.[1][3]
Definition
A randomised algorithm is -differentially private if, for every set of possible outputs and for every pair of databases and whose rows differ by at most one person,
The probability is over the coin flips in . When , is -differentially private: every output that can arise from can arise from , and the probabilities differ by at most the factor . The 2006 definition is this pure case, written for data sets that differ in at most one element. The histogram form of the same idea measures neighbours by an distance of at most 1. Wasserman and Zhou write the pure bound for a data-release mechanism as
with the ratio read as 1 when both probabilities are 0, and with the number of rows on which the two databases differ. Their is the privacy parameter called above.[3][1][2]
The curator may publish a synthetic file, a table of summaries, or answers to questions one at a time. In the interactive case the analyst can choose the next question after seeing earlier answers. The definition applies to the whole mechanism, including that adaptivity. A count query has sensitivity 1, so the noise scale is set from that one-person change rather than from the number of cells.[1][3]
Interpretation
The inequality is a worst-case statement over pairs of neighbouring files and over output events. Ratios, rather than differences of probabilities, are what protect an output that is rare under both files: a small absolute probability can still jump by a large factor. A small , much smaller than one over the number of rows, is the regime in which the additive slack does not swallow the definition. A on the order of can be met by a mechanism that publishes a few complete records and is careful with the rest. Even a tiny changes the logic. -privacy says that every output is nearly equally likely on every neighbouring file. -privacy allows a small set of outputs to break that rule.[3][2]
Group privacy follows by repeating the one-person bound. If people are considered together, an -private mechanism is -private for that group: the factor becomes . The bound gets weaker as the group grows, which matches the aim of releasing facts about large groups. Post-processing cannot spend the privacy budget again. Any mapping of the released output, chosen without looking at the private file, leaves the same .[1][3]
The same ratio limits a hypothesis test aimed at one person. Suppose is released by an -differentially private mechanism. Any level- test, based on , of whether subject equals one value or another has power at most . With and , the power is at most . A test that cannot beat its level by more than that factor cannot reliably say who was in the file. Sampling from an ordinary histogram, with no extra smooth component, does not meet the definition: one row can move a cell count onto a value the neighbouring file gives probability zero. A smoothed histogram that mixes in a positive uniform weight can meet the bound when the number of draws, the number of bins, and that weight satisfy the stated inequality.[2]
Worked example
Take and , so . Suppose that on database the probability of an output set is . The definition requires
for every neighbour of . A mechanism that puts probability on when the database is fails the definition for this pair, even if the two databases differ by a single row.[3][2]
Your turn. Keep and . If , what is the upper bound on for a neighbour ?
The bound is .
Connections
K-anonymity limits how rare a combination of quasi-identifiers is in a released table. Differential privacy limits how much one person can move the distribution of any release. A table can pass a frequency test and still move sharply when one person is included, if the sensitive fields inside a group are extreme. Sampling and confidence intervals describe uncertainty from a random sample. The noise here is added on purpose, on top of whatever sampling produced the file, and the privacy account is a bound on output probabilities rather than a standard error. Official releases of tabular data are the setting in which both the frequency test and the probability bound are discussed.[3][2]
Check yourself
Try these questions before opening an answer.
An exact count
Why does publishing the exact count of a binary attribute fail pure differential privacy?
Neighbouring files produce counts that differ by one, so an output with probability 1 on one file has probability 0 on the other. No finite factor bounds that ratio.
A test of membership
A release is alpha-differentially private. A level-gamma test based only on the release asks whether a named subject is in the file. How does alpha limit the power?
The power is at most times . The test cannot separate the two neighbouring files by more than that factor.
A later summary
An analyst maps a differentially private release to a new summary without looking at the private file. What happens to the privacy parameters?
The mapped release remains differentially private with the same and . The mapping does not spend an additional privacy budget.
History
A 1977 desideratum asked that nothing about an individual be learnable from a statistical database that could not be learned without it. That absolute goal cannot be formalised in the style of semantic security, because auxiliary information plus a harmless-looking average can reveal a person who is not even in the file. The Terry Gross example is the illustration: an average height of Lithuanian women, together with the auxiliary fact that she is two inches shorter than that average, reveals her height whether or not she is a row in the file. The 2006 definition replaced that absolute goal with a relative one. The probability of any output shifts by at most a factor when one person is added or removed. The mechanism that adds symmetric exponential noise scaled to the sensitivity meets the pure bound, and the same argument covers an adaptive sequence of queries once the sensitivity is taken over the whole strategy. The 2014 monograph records the form, in which a small additive slack is allowed, together with the post-processing and group-privacy consequences. A statistical reading of the same definition compares release mechanisms by how fast a distribution estimated from the sanitised sample approaches the distribution of the original sample.[1][3][2]
See also
Abundance estimation · Actuarial science · Astrostatistics · Biostatistics · Business analytics · Censoring · Chemometrics · Computational biology
References
- ^ a b c d e f a. (pp. 8–9, Definition 2) b. (pp. 1–3, the height example; pp. 8–9, Definition 2) c. (pp. 8–9, Definition 2) d. (pp. 9–11, Theorems 4 and 5) e. (p. 9) f. (pp. 1–3, 8–11) Dwork, C. (2006). Differential Privacy. In Automata, Languages and Programming, ICALP 2006 (pp. 1–12). Springer. https://doi.org/10.1007/11787006_1
- ^ a b c d e f g a. (§2, the definition) b. (§2, the definition) c. (§2) d. (§2, the testing bound; §4.1) e. (§2, the definition) f. (§1) g. (§1; §2) Wasserman, L. & Zhou, S. (2010). A Statistical Framework for Differential Privacy. Journal of the American Statistical Association, 105(489), 375–389. https://doi.org/10.1198/jasa.2009.tm08651
- ^ a b c d e f g h a. (pp. 17–18, the definition) b. (pp. 17–18, the definition) c. (§2.2, p. 11) d. (pp. 17–18) e. (pp. 19–20, the post-processing and group-privacy results) f. (p. 17, the definition) g. (pp. 17–18) h. (pp. 17–20) Dwork, C. & Roth, A. (2014). The Algorithmic Foundations of Differential Privacy. Now Publishers. https://doi.org/10.1561/0400000042
Cite this page
StatWiki (2026). "Differential privacy." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/differential-privacy.html
@misc{statwiki_differential_privacy,
author = {{StatWiki}},
title = {{Differential privacy}},
year = {2026},
url = {https://www.statwiki.io/articles/differential-privacy.html},
urldate = {2026-12-02},
note = {StatWiki, last updated 2 December 2026}
}