Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Doing right by people and by the record
Every dataset of people was made of real lives, and every published result will be built on by others. Ethical research asks for consent and keeps promises of confidentiality, weighs harms against benefits, reports what was actually done and found, and gives fair credit. Good intentions are not enough: “anonymous” data can often be traced back to the people in it.
300,000 synthetic people in 40 postcodes. A research dataset holds 10% of them without names; a public voter list holds 60% with names. Released attributes:
In Exercise 2, postcode, sex and birth date made 86.4% of a synthetic population unique, and linking a research sample to a voter list re-identified 55.1% of its records.
- 1. Removing names from a dataset…
- 2. Informed consent requires that participants…
- 3. Fabrication, falsification and plagiarism are…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.By hand
- Principles (Belmont Report, 1979): respect for persons (informed consent), beneficence (minimise harm, maximise benefit), justice (fair selection and sharing of burdens and benefits).
- Oversight: research with human participants or identifiable data needs review by an institutional review board or ethics committee; many venues now ask for ethics statements.
- Privacy: quasi-identifiers (postcode, sex, birth date, occupation) can identify people in combination; k-anonymity requires every combination to be shared by at least k records; stronger protection comes from differential privacy (topic P-4) and controlled access.
- Integrity: no fabrication, falsification or plagiarism; report all experiments and analyses, including negative results (topic O2-7); keep data and code for verification.
- Credit and conflicts: authorship by contribution (topic O4-2), acknowledgement of others’ work, disclosure of funding and conflicts of interest.
- Impact: consider misuse and dual use, effects on groups not in the data, and the cost of studies too small to answer their question.
- 1. The Belmont Report's three principles are…
- 2. A table is k-anonymous when…
- 3. A quasi-identifier is…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 25 minUndergraduate students and practising engineers.Measuring re-identification risk
Exercise 1.
- For each record, count the records sharing its values on chosen columns (its equivalence class).
- The table’s k-anonymity is the smallest class; also the share of unique records.
- Coarsen values (for example ages to bands) and measure again.
Practice.
- Assume linkage: test released data against the public datasets an attacker could use.
- Release less: coarsen or drop quasi-identifiers, and prefer aggregate statistics or controlled access.
- Get consent and ethics approval before collecting data about people.
- Plan studies large enough to answer their question.
- Report everything you did, and disclose conflicts.
def class_sizes(*columns):
ids = combo_ids(*columns); return bincount(ids)[ids]
unique = (class_sizes(postcode, sex, year, day) == 1).mean()
one = bincount(keys[voter])[keys] == 1 # exactly one voter matches
reidentified = (one & voter)[research].mean()- 1. With a voter list covering everyone in Practice 1, the share of research records re-identified was about…
- 2. Ten independent four-valued attributes made about…
- 3. Studies with 10 participants per group in Practice 5 that found a true effect of 0.3 reported on average…
Level 3: Advanced
★★★★☆ Advanced⏱ 25 minGraduate level, with full derivations and proofs.Theory
When combinations become unique. If N people share a postcode and sex and their birth dates are spread over C equally likely values, a given person is unique with probability (1 − 1/C)^(N−1) ≈ e^(−N/C). For N = 3,750 and C = 70 × 365 = 25,550, this is e^(−0.147) = 86%: the same as L. Sweeney’s estimate for the United States.
Linkage. A research record is re-identified when its person is on the voter list (probability v) and no other voter shares the combination, about e^(−vN/C). With v = 0.6 the share is 0.6 × e^(−0.088) = 0.55.
Many weak attributes. With n people and k independent attributes of m equally likely values, a person is unique with probability about e^(−n/m^k). Each attribute divides the expected number of look-alikes by m, so uniqueness jumps from almost none to almost all within a few attributes: 22% at 4^8 and 91% at 4^10 for n = 100,000.
Consent and selection. If people with a condition (prevalence p) consent with probability c − g and others with c, the prevalence among consenters is p(c − g)/(p(c − g) + (1 − p)c): 6.9% instead of 10% for c = 0.6 and g = 0.2.
- 1. A person sharing a postcode and sex with N others is unique with probability about…
- 2. Each extra independent attribute with m values divides the expected number of look-alikes by…
- 3. If people with a condition consent less often, the estimated prevalence among consenters is…
Level 4: Expert
★★★★★ Expert⏱ 30 minResearchers: original papers and open problems.How many people in a de-identified dataset can be re-identified by linking it to a public list, and how much does coarsening the released attributes help?
History.
- The Nuremberg Code (1947) and the Declaration of Helsinki (1964) set out consent and the duty to avoid harm; revelations about the Tuskegee syphilis study (1932 to 1972) led to the Belmont Report (1979).
- L. Sweeney (1997, 2000) estimated that 87% of Americans were unique by five-digit ZIP code, sex and birth date, and re-identified the Massachusetts governor’s medical record by linking hospital data to a voter list.
- A. Narayanan and V. Shmatikov (2008) re-identified Netflix Prize users from a few movie ratings; L. Rocher, J. Hendrickx and Y.-A. de Montjoye (2019) estimated that 15 demographic attributes re-identify 99.98% of Americans.
- K. Button and colleagues (2013) estimated the median statistical power of neuroscience studies at about 21%; NeurIPS introduced broader-impact statements in 2020 and ethics review in 2021.
Exercise 2.
- 300,000 synthetic people in 40 five-digit postcodes (about 7,500 each; 10 postcodes per three-digit prefix), with sex, a birth date from 1935 to 2004 (older years rarer) and an occupation from a Zipf law over 100.
- A research dataset holds a random 10% without names; a voter list holds a random 60% with names. A research record is matched when exactly one voter shares its quasi-identifiers, and re-identified when that voter is the right person.
Seed 0:
| quasi-identifiers | unique | in classes under 5 | mean class size | records matching one voter | re-identified |
|---|---|---|---|---|---|
| postcode, sex, birth date | 86.4% | 100.0% | 1.1 | 58.3% | 55.1% |
| postcode, sex, birth year | 0.0% | 0.0% | 54.8 | 0.0% | 0.0% |
| postcode, sex, birth year, occupation | 34.7% | 68.2% | 4.3 | 33.5% | 26.4% |
| 3-digit postcode, sex, decade of birth | 0.0% | 0.0% | 5,041.9 | 0.0% | 0.0% |
Seeds 1 and 2: postcode, sex and birth date 86.3% and 86.2% unique, 54.9% and 54.9% re-identified; with occupation 34.5% and 34.5% unique, 25.9% and 25.8% re-identified.
Findings.
- A full birth date with postcode and sex made about 86% of people unique, and linkage to a voter list covering 60% of people re-identified about 55% of research records, in every seed.
- Coarsening the birth date to a year removed uniqueness entirely for these postcode sizes.
- Adding a single extra attribute, occupation, brought it back: about 35% unique and 26% re-identified.
- Protection depends on all the attributes released together and on what else is public, not on whether names were removed.
Ethics in practice
- Apply for ethics review early, for any work with human participants or data about people, including scraped data and crowdsourcing.
- Minimise data: collect and keep only what the question needs; separate identifiers; plan retention and deletion.
- Release responsibly: coarsen quasi-identifiers, test linkage risk, use controlled access or differential privacy (topic P-4), and document consent terms with the data (topic P-5).
- Keep the record honest: preregister where appropriate (topic O2-3), report all analyses, share code and data, correct errors publicly.
- Think about impact: who could be harmed, who is missing from the data, and how the work could be misused.
References
- National Commission for the Protection of Human Subjects (1979). The Belmont Report. US Department of Health, Education and Welfare.
- L. Sweeney (2000). “Simple demographics often identify people uniquely.” Carnegie Mellon University, Data Privacy Working Paper 3.
- A. Narayanan and V. Shmatikov (2008). “Robust de-anonymization of large sparse datasets.” IEEE Symposium on Security and Privacy.
- L. Rocher, J. M. Hendrickx and Y.-A. de Montjoye (2019). “Estimating the success of re-identifications in incomplete datasets using generative models.” Nature Communications.
- K. S. Button and colleagues (2013). “Power failure: why small sample size undermines the reliability of neuroscience.” Nature Reviews Neuroscience.