Advanced Topic 51 of 51 Security & Cryptography
Differential Privacy
Adding noise so aggregate results hide individuals.
How it works
Differential privacy is a mathematical framework that guarantees the output of an analysis changes very little whether or not any single individual's data is included, limiting what can be learned about any person. It works by adding calibrated random noise, for example Laplace or Gaussian, scaled to the query's sensitivity and a privacy budget epsilon; smaller epsilon means stronger privacy and less accuracy. Composition theorems track how privacy loss accumulates across many queries.
Step-by-step walkthrough
- A database holds personal records.
- Someone asks for a statistic.
- The system adds random noise sized by the privacy budget epsilon.
- The answer is accurate in aggregate.
- Adding or removing one person barely changes the output.
Where it is used
Statistical agencies such as the US Census, technology companies collecting usage statistics, private machine-learning training with DP-SGD and data sharing for research use it.
Common pitfall
Too little noise gives weak protection, while too much destroys utility, especially for small groups. Repeated queries consume the budget, so it must be managed globally. Implementation bugs, such as floating-point attacks, can leak data. Choosing epsilon is a policy question. Combine with access control and use vetted libraries instead of ad hoc noise.
Where it fits in the course
Differential Privacy is topic 51 of 51 in Security & Cryptography, rated Advanced. It follows Cryptographic Protocol Design. It is the last topic in this area.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Security & Cryptography quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Security & Cryptography quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Differential Privacy?
Where do people use Differential Privacy?
What is the most common mistake with Differential Privacy?
What should I learn before this topic?
How can I practice it?
Is Differential Privacy hard to learn?
How long does it take to learn Differential Privacy?
Which topics are related to Differential Privacy?
What should I study after Differential Privacy?
Related topics
- Cryptographic Protocol Design (Security & Cryptography)
- Supply Chain Security (Security & Cryptography)
- Secure Multi-Party Computation (Security & Cryptography)
- Zero Trust Architecture (Security & Cryptography)