What is k-anonymity?
k-anonymity. A check that every combination of identifying details in a dataset, such as age band, town and job title, is shared by at least k people. If one combination belongs to one person, that person can be picked out.
General information, not legal advice.
What it means
k-anonymity is a privacy check on a table of records. A dataset is k-anonymous if every combination of quasi-identifiers, such as age band, postal area and job title, appears for at least k people. With k set to five, any one person blends in with at least four others.
It is reached by generalizing values, such as replacing exact age with a ten-year band, or by removing rare records that cannot be grouped.
Why it matters in a data deal
k-anonymity gives a measurable answer to "could someone be picked out by their details?" for structured data like CRM fields or claims tables, and that measure can go into the de-identification record.
It has limits. If everyone in a group shares the same sensitive value, the value leaks anyway, and it does not cover free text. Reviewers use it alongside other checks.
An example
A staffing firm checks its placement table on three fields: role, city and year placed. One record is the only "marine biologist" placed in its city in 2019. The firm generalizes the role to "scientist" and the city to the state, and the table reaches k of five.
Read more: De-identification.
Questions to ask
- Which fields act as quasi-identifiers in this table?
- What value of k did we aim for, and how many records had to be generalized or removed?
- Does any group share the same sensitive value, so it leaks anyway?
Related terms
- Quasi-identifier
- A detail that does not name a person but can identify them when combined with others, such as age, postal code and a rare diagnosis, or a job title and a start date.
- Re-identification
- Working out who a person is from data that was cleaned. A de-identification record shows how the risk was tested and who could attempt it.
- De-identification
- Removing or replacing the personal information in data, then testing whether anyone could still be identified. Each privacy law sets its own test, so the work is done to the strictest one that applies.
- Differential privacy
- A method that adds a small amount of random noise to results so that no single person can be picked out. It is used when sharing statistics and does not replace removing names and IDs from records.