# Differential privacy

> Canonical: https://skillalmanac.com/glossary/differential-privacy | Last verified: 2026-11-24 | Index status: index-eligible

Differential privacy bounds how much an analysis’s output distribution can change between specified neighboring datasets. The privacy parameters, definition of neighbors and implementation determine the guarantee; arbitrary noise addition does not establish it.

Also called: DP, differential privacy machine learning, differential privacy AI, differentially private.

## In plain language

Imagine publishing a survey count while limiting what participation reveals about a respondent. A suitable mechanism can add carefully calibrated randomness. Its guarantee depends on what one person can contribute and the chosen privacy parameters. Repeated releases also need privacy accounting. More noise is not, by itself, a complete privacy specification or a promise of useful results.

## Technical definition

For approximate differential privacy, a mechanism M satisfies Pr[M(D) in S] <= exp(epsilon) Pr[M(D′) in S] + delta for every neighboring pair D,D′ and output event S. Specify the neighboring relation and privacy parameters. Composition accounts for multiple analyses; event-level and user-level protection can differ.

## How it shows up when you use agents

Differential privacy seldom appears in a coding-agent session unless you work on data about people. It can come up when you ask Claude Code, Codex or Cursor to help publish statistics, share an analytics table or train a model on user records. A vendor or a library may claim a result is differentially private. The claim is only meaningful with its settings stated.

What breaks when it is misunderstood: treating the label as a yes-or-no badge. NIST's guidance describes a pyramid of factors and common pitfalls it calls privacy hazards, which signals that implementation details matter. An agent that adds noise with an ad hoc formula has not produced a guarantee. Separately, removing names from a file is a different step from differential privacy.

A practical next step: ask what the privacy budget is, who chose it, what the guarantee covers, and which library produced it. Treat the answers as a risk decision for a person or team to own. The entry on [AI privacy](/glossary/ai-privacy) covers the wider picture, and [training data](/glossary/training-data) explains why personal records in a training set matter. The catalogue has no skill that implements differential privacy, so the examples are contrast cases.

## Worked example (illustrative)

Imagine releasing a count today and another tomorrow from the same respondents. Analyze the combined privacy loss rather than treating each release as the only analysis. The accounting depends on the mechanisms and privacy definition; this scenario does not specify or certify a mechanism.

## Common confusions

- **Differential privacy versus anonymisation.** Removing or masking identifiers changes the data. Differential privacy is a property of how a result is computed, measured as privacy loss.
- **Differential privacy versus encryption.** Encryption hides data from people without the key. Differential privacy limits what published results reveal about individuals.
- **Privacy versus accuracy.** Abadi et al. report a modest privacy budget for their neural-network experiments; that statement applies to their work, not to every system.
- **Myth: a differentially private model cannot leak anything.** The guarantee depends on the stated budget and a correct implementation, which NIST's discussion of hazards addresses.

## Worked examples in this catalogue

### [sensitive-data-redaction](https://skillalmanac.com/skills/skill-almanac/sensitive-data-redaction)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill replaces emails, phones, cards, IBANs, keys, IPs and listed names in a file with consistent placeholders before you share it.

Why it exercises the concept: A contrast case. Redaction removes listed identifiers from a file; differential privacy limits what a published result reveals about any one person. Redacted data can still be re-identified from other fields, and the skill does not provide a differential privacy guarantee. Illustrative, not executed.

### [threat-model-stride-worksheet](https://skillalmanac.com/skills/skill-almanac/threat-model-stride-worksheet)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill walks a feature through a STRIDE threat-modelling worksheet using assets, actors, trust boundaries and data flows you supply.

Why it exercises the concept: It is a way to ask where personal data flows in a feature before choosing any privacy technique. It does not implement differential privacy. Illustrative, not executed.

### [data-analysis-eda](https://skillalmanac.com/skills/skill-almanac/data-analysis-eda)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill is a fixed exploratory-analysis procedure and CSV profiler that keeps findings descriptive, evidenced and caveated.

Why it exercises the concept: Exploratory summaries of a table are the kind of output differential privacy aims to protect when the data concerns people. The skill adds no noise and gives no guarantee; the catalogue has no differential privacy skill. Illustrative, not executed.

## Related terms

- [AI privacy](https://skillalmanac.com/glossary/ai-privacy.md)
- [Training data](https://skillalmanac.com/glossary/training-data.md)
- [Machine learning (ML)](https://skillalmanac.com/glossary/machine-learning.md)
- [Neural network](https://skillalmanac.com/glossary/neural-network.md)
- [Responsible AI](https://skillalmanac.com/glossary/responsible-ai.md)
- [AI governance](https://skillalmanac.com/glossary/ai-governance.md)

## Sources

- [Guidelines for Evaluating Differential Privacy Guarantees (NIST SP 800-226)](https://csrc.nist.gov/pubs/sp/800/226/final), NIST (accessed 2026-11-24)
- [Deep Learning with Differential Privacy — Abadi et al.](https://arxiv.org/abs/1607.00133), arXiv (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
