Skip to content

Privacy and preparation

Sample vs full dataset privacy review: what the approval still covers

By SourceX Editorial · Reviewed by Noah Loul ·

10 sections

Short answer

A privacy approval given on a sample covers that sample's population, fields, preparation version and recipient, nothing more. Before the full dataset moves, compare the two on each and rerun what changed: scan every record for pattern-detectable identifiers, compute set-level risks on the whole file and review new fields. In a public 1,500-record test set, a 100-record sample misses every driver's license number 71 percent of the time.

Redaction

Sample

This page covers sample vs full dataset privacy review: what the approval still covers.Illustrative

Key takeaways

  • A sample approval is tied to the sample's population, fields, preparation version and recipient; extending it to the full dataset is a new decision.
  • Rare identifiers escape small samples: in presidio-research's 1,500-record synthetic test set, a 100-record random sample contains no driver's license number 71 percent of the time and no Social Security number 33 percent of the time.
  • Six differences decide whether anything carries over; only more records of the same population, fields and version lets the rules carry, and even then the absence of findings does not.
  • Pattern scans and set-level counts belong on every record; human review of free text can stay sampled, stratified by what those full-file checks flag.
  • Replace the sample sign-off with a full-dataset approval record that names scope, version, recipient, results, exceptions and the hashes of the exact package reviewed.

What does a sample privacy approval actually cover?

A sample approval covers the sample: its population, its fields, the preparation version that produced it, the recipient it was reviewed for and the checks the reviewer ran. It says nothing reliable about records, fields, code versions or recipients the reviewer never saw, so extending it to the full dataset is a new decision, not a formality.

The decision in front of a privacy or security reviewer is therefore one of three: let the approval carry over, run a check on the difference, or validate the full dataset again. A useful answer needs four pieces of evidence: what the sample contained, what the full dataset contains, which preparation version produced each, and who will receive the result.

Rule-makers treat a de-identification judgment as tied to its release. U.S. health privacy guidance from HHS, which applies to protected health information under HIPAA, says covered entities will need an expert to examine whether future releases of the data to the same recipient, such as monthly reporting, should be subject to additional or different de-identification processes consistent with current conditions. The UK Information Commissioner's Office tells organizations to use its motivated intruder test as part of any review of their risk assessment and anonymisation techniques. Neither is legal advice for a given company; counsel decides which rule applies.

Measured: what a 100-record sample misses in a public PII test set

A great deal. In Microsoft's presidio-research synthetic test set of 1,500 labeled sentences, a random 100-record sample contains none of the 5 records with a U.S. driver's license number 71 percent of the time, none of the 14 with an IP address 38 percent of the time and none of the 16 with a Social Security number 33 percent of the time. A reviewer who found nothing of those types in the sample would have learned little about the full file.

These are exact probabilities, not simulations: for a simple random sample drawn without replacement, the chance of missing every record of a type follows from three numbers, the file size, the count of records with that type and the sample size. Doubling the sample to 200 still leaves a 49 percent chance of seeing no driver's license number at all.

The test set also shows why rare identifiers cluster. The driver's license numbers come from a single one of the set's 209 sentence templates, and the IBAN codes from three. A 100-record sample is expected to touch about 80 of the 209 templates. In business records, the equivalents are a field one department used, an attachment type that appears in a few hundred tickets, or a legacy system's free-text column, which is exactly where a sample review is least likely to look.

The table lists the seven rarest of the set's 17 labeled entity types; for each of the other ten, a 100-record sample misses every record of the type no more than about 2.1 percent of the time, the highest being the type labeled NRP:

Measured: what a 100-record sample misses in a public PII test set
Entity type as labeledRecords with it (of 1,500)Chance a 50-record sample has noneChance a 100-record sample has noneChance a 200-record sample has none
US_DRIVER_LICENSE584%71%49%
IP_ADDRESS1462%38%13%
US_SSN1658%33%10%
IBAN_CODE2149%23%5%
DOMAIN_NAME3728%8%Under 0.5%
ZIP_CODE3728%8%Under 0.5%
EMAIL_ADDRESS4918%3%Under 0.5%
A dot chart of four rare identifier types from a 1,500-record synthetic test set, showing for each the chance that a random sample of 50, 100 or 200 records contains none of them: driver's license 84, 71 and 49 percent; IP address 62, 38 and 13 percent; SSN 58, 33 and 10 percent; IBAN 49, 23 and 5 percent.
Chance a clean-looking random sample contains no record of each type. Exact hypergeometric values from presidio-research synth_dataset_v2.json, commit 7f568b6.

Six differences that decide whether the approval carries over

Six differences between the approved sample and the full dataset decide the question, and only the first lets anything carry over. Compare the two on each before the full dataset moves, and write the result down whichever way it falls.

The test is an editorial framework, not a legal standard. Where a difference could sit in two rows, apply the stricter one:

Six differences that decide whether the approval carries over
Difference from the approved sampleWhy the sample result stops applyingCarries over?What to run on the full dataset
Same population and fields, more recordsRare identifier types and outliers surface only at volume, as the test set showsThe rules do; the absence of findings does notA pattern scan of every record and field, then review of the strata the scan flags
A new date range, system or business unitOther forms, fields and habits produce identifiers the sample never heldNoTreat it as a new lot: its own scan, its own sample and a scope note
New fields, attachments or free textIdentifiers sit in places the reviewer never openedNoA field inventory comparison, then a decision and a check for each new field
A changed preparation version or ruleThe evidence described a different transformationNoRerun the pipeline at the new version and repeat the reviewer's checks
A new recipient, purpose or release modelIdentifiability depends on who receives the data and what they could link it toNoRepeat the intruder assessment for that recipient and update the residual risk report
Set-level propertiesRecords per person and rare combinations exist only in the whole fileNever measured by the sampleCompute them on the full file before release

Which checks run on every record, and which can stay sampled?

Anything a machine can find by pattern should run on every record; anything that needs judgment can stay sampled, as long as the strata come from what the full-file checks flagged. The trade-off in each row is between what the check protects and what it can cost the dataset's usefulness.

Pattern scans are cheap at full scale and close the gap the test set measured: a scan that reads all 1,500 records removes the sampling risk entirely, leaving only the detector's own accuracy to check. Human review of free text is expensive, which is why it is sampled; drawing that sample from the strata the scan and the field comparison flag puts the reviewer's time where identifiers are most likely to be. The matrix below sets a pass rule for each check:

Which checks run on every record, and which can stay sampled?
CheckRuns onPrivacy risk it addressesCost to usefulnessPass rule
Pattern scan for structured identifiers such as card, SSN-style, IBAN, email, phone and IP valuesEvery record and fieldDirect identifiers a sample missedLow when matches become consistent tokensEvery match replaced or its record excluded
Field inventory comparisonThe full schema against the sample's schemaIdentifiers in fields nobody reviewedDropping a field can remove task signalEvery field has a recorded decision
Records-per-person countThe full file, per pseudonymLong histories that profile one personCapping history can cut longitudinal valueAn agreed cap, or a written reason for each pseudonym above it
Smallest group on chosen quasi-identifiersThe full filePeople singled out by a rare combinationCoarser dates and places blur detailNo group below the agreed threshold without a documented exception
Human review of free textA stratified sample drawn from scan and field flagsContext clues no pattern findsReviewer time; heavy redaction can remove meaningFinding rate under the agreed limit in every stratum

Why set-level risk never shows up in a sample

Because set-level risk is a property of the whole file. How many records share one pseudonym, how small the rarest combination of age band, job title and site is, and how many tables a pseudonym links across can only be counted on the dataset that will actually be released.

A sample shrinks every one of those measures. Illustrative arithmetic: a customer who appears in 400 tickets of a 150,000-ticket file turns up, on average, in 2.7 tickets of a 1,000-ticket random sample (400 x 1,000 / 150,000), so the reviewer sees a few unconnected records where the full file holds a detailed history of one person. The ICO's motivated intruder test asks what a determined person could reasonably do to identify people, and a long linked history gives that person far more to work with than any single record.

The fix is arithmetic, not more sampling. Compute records per pseudonym and smallest-group sizes on the full file, set the thresholds before seeing the results, and send anything above them to the same decision a reviewer would make for a risky field: cap, generalize, exclude or record a justified exception.

The strongest objection: same code, more rows

The objection runs: the de-identification code passed on the sample, so the same code applied to more rows must pass too. It holds only when the full dataset matches the sample on population, fields and version, and even then it covers the transformation, not the absence of identifiers the code was never written to catch.

Same code is not the same input. The test set's driver's license numbers would pass any sample review that never contained one, and a rule that handles the sample's fields says nothing about a column the full export adds. Preparation versions can also change between sample and delivery, and when they do, the approval described the old one.

A passed review also never meant zero risk. SourceX's own legal framework page puts it plainly for its deals: de-identification reduces risk but cannot remove it entirely, and re-identification may still be possible from the de-identified data alone or combined with other sources. Removing direct identifiers or securing transfer does not settle privacy risk, and it settles no rights question at all: records from a system the sample did not cover may sit under customer contracts the rights review never read.

Illustrative: one support archive, four differences found

Illustrative: a services company approved a 200-ticket sample drawn from its current help desk for 2024, with subject, body and category fields, prepared under version 1 of its de-identification rules. Months later the full dataset ready for licensing runs from 2019 to 2025. Everything in this example is invented to show the test working.

Run against the six rows, four differences appear. Tickets from 2019 to 2021 come from a legacy tool the sample never touched (a new system), the export adds an attachment file-name field (a new field), the rules moved to version 2 when date shifting was added (a changed version), and a handful of customers account for hundreds of tickets each (a set-level property). The recipient and purpose are unchanged, so that row raises nothing.

The result is not a rejection but a scoped approval. The 2024 help desk tickets keep their reviewed rules, rerun at version 2 with a full pattern scan. The legacy years become their own lot with their own scan and stratified review, the file-name field is dropped because the task does not need it, and customers above the agreed ticket cap are capped or justified one by one. Each of those decisions goes into the approval record below.

The approval record that replaces a sample sign-off

Replace the sample sign-off with an approval record written for the full dataset. It should let someone who never saw the sample confirm what was approved, for whom and on what evidence, and every item should be checkable without asking the preparer:

At a glance

The approval record that replaces a sample sign-off

  • Scope: the systems, date range, record types and fields of the full dataset, with the differences from the sample listed against the six rows above.
  • Version: the preparation code version and rule set that produced the full dataset, and the version the sample came from.
  • Recipient and purpose: who receives the data and for what use, matching the review's intruder assumptions.
  • Full-file results: pattern scan counts by type, the field inventory decisions, records-per-person and smallest-group results against their thresholds.
  • Sampled results: the strata, the sample drawn in each, the method used to draw it and the finding rate per stratum.
  • Exceptions: each threshold breach accepted, with its reason and the name of whoever accepted it.
  • Sign-off: a reviewer who did not prepare the data, dated, with the file hashes of the exact package reviewed.
  • Triggers: the changes that reopen the approval, such as a new recipient, a new lot or a new preparation version.

How a SourceX deal pins the dataset down

In a SourceX deal the dataset is fixed in writing before anything moves, which gives a full-dataset review a stable target. The how-it-works page says the supplier and SourceX sign a short Dataset Deal Confirmation that "fixes the exact dataset," along with the rights, the processing route and the deadlines, and that "a material change later needs a signed amendment."

On SourceX's trust page, the supplying company draws the boundary itself, choosing the systems, records and periods that go in while the rest stays behind, and SourceX de-identifies the data through approved processing routes before it is used or shared and reviews the result against the agreed scope. The legal framework page adds that the method used is recorded for each dataset. A supplier's own sample review stays useful as an early signal, but the scope the Confirmation names is the population any approval has to cover.

Records that change after signing raise exactly the questions in the six-row test, which is one more reason to settle scope before the first extract. Finding out whether a company's records fit starts with a short assessment that needs no data uploads; it checks fit, is not an offer and promises no payment.

Methods note: the sample-miss calculation

The measurement uses data/synth_dataset_v2.json from Microsoft's presidio-research repository, cloned on 28 October 2026 at commit 7f568b6 (file SHA-256 beginning ec08a771). The repository describes it as synthetic sentences built from templates and fake PII. The script reads only each record's span labels and template ID; it never reads, saves or prints any sentence or value.

A record counts as containing a type when at least one of its spans carries that label, compared exactly as written in the file; 113 of the 1,500 records carry no labeled span. For a simple random sample of n records drawn without replacement from N = 1,500, the chance that none of the K records with a type is drawn is C(N - K, n) divided by C(N, n), computed with exact integers and rounded half up to a whole percent once, at the end. Expected template coverage sums, over the 209 templates, one minus the chance that none of a template's records is drawn. Sample sizes are 50, 100, 200 and 500; results for 500 appear only in the script output.

Not measured: real business records, whose identifier mix will differ; how any detector or reviewer performs, since the labels are taken as true; stratified or systematic samples; and the set-level measures in the matrix, which the test set's independent sentences cannot represent. Recompute any row from the table: for driver's license numbers, C(1,495, 100) divided by C(1,500, 100) is about 0.708, or 71 percent.

Frequently asked questions

How big should a privacy sample be before approving a full dataset?

No single size settles it, because the sample's job is judgment on free text and context, not finding rare structured identifiers. Scan those on every record instead. In the public test set measured here, even a 200-record random sample missed every driver's license number 49 percent of the time; a full scan removes that sampling risk and leaves only the detector's accuracy to test.

Does a sample approval ever carry over to the full dataset?

Its rules and the reviewer's judgments about record types the sample actually contained can carry over when the population, fields, preparation version and recipient all match. The absence of findings never carries over on its own; it has to be re-established by checks that run on the full file.

Who should sign the full-dataset privacy approval?

A reviewer who did not prepare the data, signing a dated record that names the preparation version, the recipient and the file hashes of the exact package reviewed. That makes the approval checkable later by someone who never saw the sample.

What if the full dataset is too large to review?

Automated scans and full-file counts scale with the number of records and rarely need sampling. Human review is what gets sampled, stratified by what the scans flag. If even scanning is impractical, split the dataset into lots and approve each lot on its own evidence rather than extrapolating from one.

Is repeating validation a HIPAA requirement?

HIPAA applies to protected health information held by covered entities and their business associates. For those releases, HHS guidance says an expert should examine whether future releases need additional or different de-identification. For other business records the same practice is sound risk management; counsel decides what any law requires.

Sources

  • Microsoft's presidio-research repository includes a fake data generator that creates synthetic sentences from templates and fake PII; its data/synth_dataset_v2.json (commit 7f568b6) holds 1,500 labeled records from 209 templates, which this article counted. Source
  • HHS de-identification guidance (HIPAA) says covered entities will need an expert to examine whether future releases of the data to the same recipient should be subject to additional or different de-identification processes, and notes that some practitioners use time-limited certifications. Source
  • ICO anonymisation guidance (UK GDPR) asks organizations to consider all practical steps and means a motivated person could reasonably use to identify people, and to use that test as part of any review of the risk assessment and techniques. Source
  • SourceX's how-it-works page says the Dataset Deal Confirmation fixes the exact dataset, rights, processing route and deadlines, and that a material change later needs a signed amendment. Source
  • SourceX's trust page says the supplying company chooses the systems, records and periods in scope, and that SourceX de-identifies the data through approved processing routes before it is used or shared and reviews the result against the agreed scope. Source
  • SourceX's legal framework page says the de-identification method is recorded for each dataset, that de-identification reduces risk but cannot remove it entirely, and that re-identification may still be possible. Source

See if your company qualifies

A short company assessment. No data uploads are needed.

See if your company qualifies