CohortWeir · Clinical Privacy Tools Open Workbench →

QUASI-IDENTIFIER RISK · EQUIVALENCE CLASS MATH

k-Anonymity & re-identification risk calculator.

Select quasi-identifier columns (such as 3-digit ZIP, age band, sex, and admission year), choose a target threshold (k = 5 or k = 10), and quantify exact equivalence class sizes, Prosecutor and Journalist re-identification risk, and small-cell groups locally.

Free local utility · CohortWeir Solo $149 one-time

EQUIVALENCE CLASS & SMALL-CELL ANALYZER

Drop a local CSV cohort or paste rows below

Computes exact k-anonymity and l-diversity in memory with zero outbound telemetry.

QUASI-IDENTIFIER COLUMNS
Ready to evaluate quasi-identifiers.
Minimum k 0
Equivalence Classes 0
Prosecutor / Journalist Risk 0%
Rows Below Target k 0%

Smallest Equivalence Classes (Highest Risk First)

Quasi-Identifier Combo Group Size (k) l-Diversity Prosecutor Risk (1/k) Status

k-Anonymity FAQ

Interpreting Prosecutor risk, Journalist risk, and small-cell suppression.

What is the difference between Prosecutor risk and Journalist risk?

Prosecutor risk assumes an attacker already knows a target individual is in the dataset, giving a maximum re-identification probability of 1 / min(k). Journalist risk applies when the dataset is a sample of a larger population and is bounded above by Prosecutor risk when population equivalence class sizes are unknown.

Why do IRBs and HIPAA Expert Determination reviews often target k ≥ 5?

A minimum equivalence class size of 5 caps single-record Prosecutor risk at 20% (0.20) and eliminates unique quasi-identifier rows (k = 1) that can be linked against public voter or census registries even after direct identifiers are removed.

TOOL

HIPAA 3-Digit ZIP Truncator

Coarsen 5-digit ZIP codes and zero all 17 restricted prefixes to improve k.

Open ZIP Truncator →
TOOL

Clinical Date Shifter & Age 90+ Capper

Shift patient dates deterministically and aggregate ages above 89 to 90+.

Open Date Shifter →
WORKBENCH

CohortWeir 100k Streaming Workbench

Stream 100,000+ rows in a Web Worker with live k-anonymity and PDF certificates.

Launch Workbench →