Microdata (statistics)
Microdata are data in which each record describes a single unit, such as one person, household, business, or farm, instead of a total or average for a group.[1] They are also called unit record data.[1]
Statistical offices collect microdata through censuses, sample surveys, and administrative records. They add up the records to make the published tables of official statistics.[1][2]
Microdata let users do work that published tables cannot support:
- Study how characteristics relate to each other, which makes microdata key to social and economic research.[2]
- Design and check policies.[2]
- Build custom tables that the published tables do not provide.[3]
Because the records describe real people and firms, agencies protect them. They remove names, group some values into broader categories or change them, and limit who can see the most detailed files.[4]
What a microdata file looks like
A microdata file is a table with one row for each unit and one column for each characteristic, or variable. The units are called observation units. They can be any of these:[1][2]
- persons
- households
- businesses
- farms
- institutions
- transactions
- scientific measurements
- geographic units, such as villages or towns (listed by the World Bank)
A single file can be large. Each person record in the US American Community Survey Public Use Microdata Sample (PUMS) has more than 250 variables, and the files hold separate records for people and for housing units.[5][3]
The records may be raw answers. They may also be answers that have already been checked and corrected, which are called edited data.[1]
Microdata and aggregate data
Aggregate data are counts, totals, or averages for groups, and most published statistics are made by aggregating microdata.[1] The two forms suit different users.
| Microdata | Aggregate data | |
|---|---|---|
| One row is | one unit, such as a person or firm | a group, such as all adults in a state |
| Questions it answers | any the user designs, including links between variables | only those the table's maker chose |
| Geographic detail | usually limited, to protect the people and firms in the data | often finer |
| Ease of use | needs software, weights, and documentation | ready to read |
The US Census Bureau describes its public microdata as a way for users to create custom estimates and tables that its ready-made tables do not provide.[3] Its staff note the trade-off: the public microdata come from a smaller sample, show fewer geographic areas, and have some answers grouped into broader categories.[5]
Where microdata come from
Microdata come from three main kinds of collection, alone or combined.[1][2]
- Censuses, which try to count every unit in a population.
- Sample surveys, which question a chosen subset of units (see survey sampling).
- Administrative records, such as tax or benefit files kept to run government programs.
Commercial data sources are also used.[1] The choice of source shapes what the records can show, as this comparison shows.[6]
| Source | Detail | Coverage |
|---|---|---|
| Tax records | High | Only people who have to pay tax, so they tend to include too few low-income households |
| Household surveys | Lower | Everyone |
Analysing microdata
Custom tables and relationships
The first public census sample was created so that researchers could make "tabulations which they cannot fully specify in advance".[7] With one row per unit, an analyst can make tables of any variables against each other and study the relationships among them.[3][2]
Survey weights
Survey microdata are weighted samples, so each record stands for many units in the population.[8] A record's weight can be read, loosely, as the number of people or households it represents.[8] Estimates must apply the weights; this is called survey weighting.
To estimate how many people belong to a group, add the weights of the records in that group:
Here is the set of sample records in the group, is the weight of record , and is the estimated number of people in the group. Summing the person weights over every record in a state's file gives the estimated population of that state.[8]
Weights also give the uncertainty of an estimate. The American Community Survey files carry 80 replicate weights per record, which are alternate sets of weights used to measure how much an estimate could vary.[8] The Census Bureau recommends this formula for the standard error:[8]
Here is the estimate made with the main weights and is the same estimate made with the th replicate weight.
Microsimulation
Microsimulation models apply policy rules, such as tax and benefit rules, to each record in a microdata file.[6]
The idea comes from a 1957 paper by Guy Orcutt. He argued that the economic models of his time said little about how policy affects households and firms.[6]
A static model looks at people and households at one point in time. It applies the rules to that snapshot and does not model how they change over time.[6] A static tax-benefit model, for example, takes a survey or administrative sample, applies tax and benefit rules to each record, and counts the cost of a reform and who gains or loses.[6]
Documentation
Microdata need good metadata to be used correctly, such as questionnaires, notes on sampling and weights, and codebooks. A codebook is a guide that describes each variable in a dataset and what its coded values mean.[9] The Data Documentation Initiative (DDI) is a family of standards for describing research data in the social, demographic, economic, and health sciences.[10]
Why microdata create privacy risks
Direct identifiers and quasi-identifiers
The main risk is that someone, called an intruder, finds out which record belongs to a known person or firm. The SDC Practice Guide sorts variables by how much they help an intruder:[11]
- Direct identifiers name a person or firm outright, such as names, passport numbers, and addresses. Removing them is always the first step, but it is often not enough.
- Quasi-identifiers, or key variables, identify no one alone but can single out a person in combination, such as birth date, sex, and postal code.
- Non-identifying variables cannot be used for matching, but they may hold the sensitive facts an intruder wants.
Linking to outside data
An intruder can match quasi-identifiers in released microdata against an outside list that includes names. This is re-identification.
A few quasi-identifiers can single out most people. Two studies estimated the share of the US population with a unique combination of these traits.[12][13]
| Study | Census year | Share unique | Traits used |
|---|---|---|---|
| Latanya Sweeney, 2000 | 1990 | 87% (216 million of 248 million), likely unique | 5-digit ZIP code, sex, full date of birth |
| Philippe Golle, 2006 | 1990 | 61% | 5-digit ZIP code, sex, full date of birth |
| Philippe Golle, 2006 | 2000 | 63% | 5-digit ZIP code, sex, full date of birth |
Golle could not explain the gap between his results and Sweeney's.[13]
Types of disclosure
The SDC Practice Guide names three types of disclosure:[11]
- Identity disclosure: an intruder links a known person to a released record and so learns everything else in it.
- Attribute disclosure: an intruder learns a new fact about a person, sometimes without finding the record. If every female patient aged 56 to 60 in a file has cancer, anyone known to be in that group is exposed.
- Inferential disclosure: the released data let an intruder estimate a person's value, such as income, more accurately than before.
Protecting microdata
The set of methods that lower these risks is called statistical disclosure control (SDC), or anonymization.[4] Each method trades some usefulness of the data for lower risk.
Measuring risk with k-anonymity
Risk is measured on keys, which are the combinations of quasi-identifier values in a record.[11] The sample frequency of a key is the number of records in the file that share it. A record with is a sample unique, and rarer keys carry higher risk.[11]
A file is k-anonymous when every record shares its key with at least others, so an intruder always finds at least matching records.[11] A record violates -anonymity when
where is a threshold the agency picks. The guide calls -anonymity often necessary but not sufficient, because it ignores sample weights.[11]
Common methods
Methods are either non-perturbative, which remove detail without changing values, or perturbative, which change values to create doubt about the true ones.[14] Some methods work on continuous variables, which are numeric variables, such as income or body height, that can take any value in a range.[11]
| Method | Type | What it does |
|---|---|---|
| Global recoding | non-perturbative | Merges categories or turns numbers into ranges, for every record |
| Top and bottom coding | non-perturbative | Groups only the extreme values, such as very high incomes or ages |
| Local suppression | non-perturbative | Blanks out single values in risky records |
| Post-randomization method (PRAM) | perturbative | Randomly changes categories with known probabilities |
| Microaggregation | perturbative | Replaces values with the average of small groups of similar records |
| Noise addition | perturbative | Adds random error, called noise, to values of continuous variables |
| Shuffling, rank swapping | perturbative | Exchange values of continuous variables between records |
Sources: SDC Practice Guide[14] and the Handbook on Statistical Disclosure Control.[15]
Top coding is common in public files. The American Community Survey public files, for example, recorded anyone in Florida older than 94 as 94.[5] Agencies often reach -anonymity by recoding first and then suppressing the few values that remain risky.[11]
The post-randomization method
PRAM changes each record's category at random, following a transition matrix .[14] This is a table that gives the chance that each category is changed into each other category. Entry is the chance that a value in category is reported as category .[14]
The SDC Practice Guide gives this matrix for a region variable with the categories capital, rural1, and rural2:[14]
Capital stays unchanged because most people live there and need no protection. A file with 5,000 capital, 500 rural1, and 400 rural2 records is expected to show 5,045, 460, and 395 after PRAM.[14] An intruder who finds a match cannot be sure it is the right person.
Synthetic data and differential privacy
Synthetic data replace real values with values drawn from a model of the data. Donald Rubin proposed this for disclosure control in 1993, building on his work on multiple imputation.[16] In the same year, Roderick Little proposed synthesizing only the variables or records with high risk, now called partially synthetic data.[16][17]
Differential privacy adds random noise to published results. The noise is sized to keep the privacy loss, meaning how much the results can reveal about any one person or household, under a set limit called the privacy-loss budget.[18]
From 1990 to 2010, the US Census Bureau protected census data with record swapping. It paired some households with similar households in other areas and exchanged their records between the two places.[19] For the 2020 census, it replaced swapping with the TopDown Algorithm, the series of formulas and steps the Bureau uses to apply differential privacy to census data.[20][18]
The TopDown Algorithm produces a privacy-protected microdata file, with one record per person and per housing unit, from which the published tables are built.[20]
Access tiers
Agencies release microdata at several levels, trading detail against control over who uses it.[4][21]
| Tier | Who can use it | Protection |
|---|---|---|
| Public use files | Anyone who accepts simple terms, such as not selling the data | Direct and indirect identifiers removed or grouped into broader categories |
| Licensed or scientific use files | Approved users who sign an agreement | Direct identifiers removed; some indirect identifiers may remain |
| Online query tools | Users who run tables on restricted data through a website | Built-in checks limit risky output |
| Data enclaves | Approved researchers in a secure physical or virtual setting | Detailed data stay inside; outputs are checked before release |
Sources: IHSN[4] and the US Federal Committee on Statistical Methodology.[21]
Physical enclaves use computers with no internet link and no way to copy files out.[4]
Enclaves are costly to run, so some agencies run them with universities. Examples are the Michigan Census Research Data Center and Statistics Canada's Research Data Centres program.[4]
Data kept in enclaves include complete census datasets, enterprise surveys, and some confidential health data.[4]
The Five Safes
The Five Safes framework is a common way to compare access options.[21] It was developed in 2003 at the UK Office for National Statistics to describe its Virtual Microdata Laboratory, and the safe data dimension was added in 2007.[22]
Each of the five dimensions asks one question:[22]
| Dimension | Question |
|---|---|
| Safe projects | Is this use of the data appropriate? |
| Safe people | Can the researchers be trusted to use it properly? |
| Safe data | Is there a disclosure risk in the data itself? |
| Safe settings | Does the access facility limit unauthorized use? |
| Safe outputs | Do the results avoid revealing information about individuals? |
Public use files rely only on safe data, while physical enclaves may use controls on all five dimensions.[21]
History
The US Census Bureau made the first census microdata from the 1960 census.[7] Researchers wanted custom tables, but paying the Bureau to produce them was too costly for many university researchers.[7]
The main steps, as traced by IPUMS researchers, were these:[7]
- At a 1956 meeting of the Population Association of America, an unnamed discussant suggested giving researchers copies of census cards so they could make their own tables. This is the earliest known proposal.
- In 1959, Conrad Taeuber of the Census Bureau circulated a memo proposing a sample of individual returns without detailed geography, "equally available to anyone".
- The Bureau drew a 1-in-1,000 sample, removed names, addresses, and other identifying details, and announced the "One-In-A-Thousand Sample" in October 1962. With financial support from the Population Council, non-profit buyers paid $1,500.
- For the 1970 census, the Bureau released six independent 1-in-100 samples covering six percent of the population, with much more geographic detail.
Later projects combined census microdata from many countries into common formats. IPUMS International reports data from 104 countries, with 656 censuses and surveys and more than 1 billion person records.[23]
References
- Glossary, Handbook on Management and Organization of National Statistical Systems, United Nations Statistics Division, accessed 2025.
- What do we mean by microdata?, World Bank Data Help Desk, accessed 2025.
- Public Use Microdata Sample (PUMS), US Census Bureau, accessed 2025.
- Access options, International Household Survey Network, accessed 2025.
- ACS PUMS Webinar Transcript, US Census Bureau, 2016.
- Review of Ann Harding (ed.), Microsimulation and Public Policy, Journal of Artificial Societies and Social Simulation, 1998.
- The Invention of Public Use Microdata at the US Census Bureau, Version 2, IPUMS Working Paper, 2024.
- Analyzing Census microdata, in Analyzing US Census Data, Kyle Walker, accessed 2025.
- What is a codebook?, ICPSR, University of Michigan, accessed 2025.
- DDI Alliance, DDI Alliance, accessed 2025.
- Measuring Risk, SDC Practice Guide, World Bank and Statistics Austria, accessed 2025.
- Simple Demographics Often Identify People Uniquely, Latanya Sweeney, Carnegie Mellon University Data Privacy Working Paper 3, 2000.
- Revisiting the Uniqueness of Simple Demographics in the US Population, Philippe Golle, Workshop on Privacy in the Electronic Society, 2006.
- Anonymization Methods, SDC Practice Guide, World Bank and Statistics Austria, accessed 2025.
- Handbook on Statistical Disclosure Control, Anco Hundepool et al., 2024.
- On the Formal Privacy Guarantees of Synthetic Data (Generated Without Formal Privacy Guarantees), Marcel Neunhoeffer, Jeremy Seeman, and Jörg Drechsler, Harvard Data Science Review, 2026.
- Statistical Analysis of Masked Data, Roderick J. A. Little, Journal of Official Statistics, 1993.
- Disclosure Avoidance and the 2020 Census: How the TopDown Algorithm Works, US Census Bureau, accessed 2025.
- Disclosure Avoidance Techniques Used for the 1970 through 2010 Decennial Censuses of Population and Housing, Laura McKenna, US Census Bureau, 2018.
- The 2020 Census Disclosure Avoidance System TopDown Algorithm, Abowd et al., Harvard Data Science Review, 2022.
- Tiered Access Models, Data Protection Toolkit, Federal Committee on Statistical Methodology, accessed 2025.
- Five Safes: designing data access for research, Tanvi Desai, Felix Ritchie, and Richard Welpton, University of the West of England, 2016.
- IPUMS International, IPUMS, University of Minnesota, accessed 2025.
