Lion Cipher Lab

Measure and reduce re-identification risk with k-anonymity

Why it matters

Deleting the name column feels like anonymising a dataset, and it is one of the most expensive mistakes in privacy. Latanya Sweeney showed that just three ordinary fields - ZIP code, date of birth and sex - uniquely pick out the large majority of the US population (her original estimate was about 87%), which is how she famously re-identified a state governor's medical record from a 'de-identified' hospital release. Those fields are QUASI-IDENTIFIERS: harmless-looking on their own, uniquely identifying in combination. k-anonymity is the first concrete, measurable defence against them - it…

What you'll learn

Steps in this lab

  1. The idea in one breath - quasi-identifiers and k-anonymity
  2. Set up - build a tiny synthetic dataset yourself
  3. MEASURE - compute the k of the raw dataset (the 'before' number)
  4. REDUCE, part 1 - generalisation (make the quasi-identifiers coarser)
  5. REDUCE, part 2 - suppression, and the 'after' number
  6. Judgment - what k-anonymity does NOT protect, and when it is enough

Open the full interactive lab →