← Module 13 overview
Module 13 · Project 7 · Due the date on Canvas · Ethics, Privacy & Dashboard Detective · adaptive competency DV21

Small-cell & differencing-attack simulator

Module 13 · Step 3 of 9 · Guided10–12 min

Why this lab Block small-cell and differencing attacks before publishing a dashboard.

Granular filters can disclose outcomes with background information or overlapping releases. The \(n < 5\) threshold is illustrative and guarantees neither privacy nor precision. The simulator below issues overlapping queries, identifies the disclosures they permit and applies cell suppression and Laplace noise. Answers to many overlapping aggregate queries can be combined to reconstruct individual records (Dinur & Nissim, 2003).

Before the simulator · what protects a person
  1. Removing names is not enough. A 67% tile for three students reveals that exactly two of the three passed, since no other count of three rounds to 67%, but not which two. Background information, related releases or unanimous outcomes can reveal an individual outcome; removing names is insufficient, because the remaining attributes can be linked to other sources (Sweeney, 2002).
  2. Protect at the display layer. Suppress small cells where results are published, not in the data: never delete records or subgroups from the analysis dataset, because removing people changes the target population and may bias summaries. Suppress outcomes under the illustrative n < 5 policy, and document the threshold. For protected data, apply disclosure controls on the server before sending data to a browser; CSS hiding is not protection.

The three query results are a fixed synthetic fixture in m13.js. Subtracting overlapping queries or a filtered view from totals can reconstruct a hidden cell. Two evening-cohort queries differ by one known person: subtraction of their published passed counts (5 minus 4) reveals that person passed. The West subgroup is a separate fictional example, not a disaggregation of that cohort. Check totals, overlapping views and previous releases together.

Privacy simulator loading…

Differential privacy and the trade-off between noise and protection

A randomized mechanism \( M \) is \( \varepsilon \)-differentially private when, for every pair of datasets \( D \) and \( D' \) that differ in one person's record and every set \( S \) of possible outputs, \( P[M(D) \in S] \le e^{\varepsilon}\, P[M(D') \in S] \) (Dwork et al., 2006). At \( \varepsilon = 1 \), the presence of one person's record can make no output more than \( e \approx 2.72 \) times as likely, and a smaller \( \varepsilon \) tightens that bound. An ideal Laplace mechanism adds privately randomized noise with scale \( \Delta f / \varepsilon \), where \( \Delta f \) is the sensitivity (Dwork et al., 2006). For add/remove-one-person adjacency, this count has sensitivity 1. Basic sequential composition bounds the total \( \varepsilon \) by the sum across releases (McSherry, 2009); averaging already released values adds no new release. At a fixed \( \varepsilon \), the average of \( k \) independent Laplace errors has standard deviation \( \sqrt{2}/(\varepsilon\sqrt{k}) \), but a particular average need not improve. The seeded simulation below shows these calculations; it does not protect private data or enforce a real budget.

This is a reproducible synthetic demonstration with reference count 42, seed 90210 and a public 32-bit linear congruential generator in m13.js. Both the count and generator are visible. Predictable noise provides no differential-privacy guarantee. Epsilon ranges from 0.05 to 2 per simulated release. Reset starts another teaching series and retains prior evidence and cumulative illustrative spend.

The differential-privacy lab needs JavaScript.