k-anonymity and differential privacy on the UCI Adult census extract: who is unique, and what noise costs, two ways
Our own measurement, 8 November 2026 (UTC), for the article "Anonymised data that stays useful: k-anonymity vs differential privacy on one real dataset, measured". Data: adult.data from the UCI Machine Learning Repository (Adult, also called Census Income: 48,842 records extracted from the 1994 US Census; the training file holds 32,561). Quasi-identifiers: age, sex, race, native-country. k-anonymity: way 1 counts each combination and sums the people in small groups; way 2 looks up, person by person, the size of their own group; the two agree exactly. Differential privacy: Laplace mechanism on counts (sensitivity 1); way 1 the closed form (mean absolute error = 1/epsilon), way 2 a fixed-seed simulation (seed 20261108, 200,000 draws, Laplace as the difference of two exponentials); they agree within 1%.
What we found
- In the UCI Adult census extract (the 32,561-record training file of the 48,842 records taken from the 1994 US Census), four everyday attributes, exact age, sex, race and native country, split the people into 2,382 groups: 1,330 people (4.08%) are the only person with their combination, and 3,035 (9.32%) share it with fewer than four others.
- Generalised to 10-year age bands and US or not US, the same four attributes give 143 groups: 12 people (0.04%) are unique and 89 (0.27%) are in groups under 5. Most of that gain is paid in detail: 2,382 groups became 143.
- Differential privacy with the Laplace mechanism on the counts of people in each of the 18 age-band-by-sex cells adds noise with a mean absolute error of 1/epsilon people: 1 person at epsilon 1, 2 at 0.5 and 10 at 0.1 (a fixed-seed simulation of 200,000 draws gives 1.003, 2.006 and 9.968).
- At epsilon 0.1 that error is 71.4% of the smallest cell (women aged 90, 14 people) and 0.17% of the largest (men in their 30s, 6,037 people): the same noise that hides one person in a big group swamps a small one.
What this cannot tell you: how many of these people could actually be named (that needs an outside list to link against), or the error for queries other than simple counts.