Software Open Access

Replication Package for "A Practical Method to Reduce Privacy Loss when Disclosing Statistics Based on Small Samples"

Chetty, Raj; Friedman, John N.

We develop a simple method to reduce privacy loss when disclosing statistics such as OLS regression estimates based on samples with small numbers of observations. We focus on the case where the dataset can be broken into many groups ("cells") and one is interested in releasing statistics for one or more of these cells. Building on ideas from the differential privacy literature, we add noise to the statistic of interest in proportion to the statistic's maximum observed sensitivity, defined as the maximum change in the statistic from adding or removing a single observation across all the cells in the data. Intuitively, our approach permits the release of statistics in arbitrarily small samples by adding sufficient noise to the estimates to protect privacy. Although our method does not offer a formal privacy guarantee, it generally outperforms widely used methods of disclosure limitation such as count-based cell suppression both in terms of privacy loss and statistical bias. We illustrate how the method can be implemented by discussing how it was used to release estimates of social mobility by Census tract in the Opportunity Atlas. We also provide a step-by-step guide and illustrative Stata code to implement our approach.

Version of record for "A Practical Method to Reduce Privacy Loss when Disclosing Statistics Based on Small Samples" appears in Journal of Privacy and Confidentality 2019 Vol 9 Issue 2 ( Based on

We are grateful for funding from the Chan-Zuckerberg Initiative, the Bill and Melinda Gates Foundation, the Overdeck Foundation, and Harvard University.
Files (25.1 MB)
Name Size
25.1 MB Download
All versions This version
Views 141141
Downloads 77
Data volume 175.9 MB175.9 MB
Unique views 134134
Unique downloads 77


Cite as