Skip to content

Privacy and preparation

Dataset sample minimization: the smallest sample for a buyer's question

By SourceX Editorial · Reviewed by Noah Loul ·

9 sections

Short answer

Size a data sample around the decision the buyer must make, not the volume they ask for. Write the question down, decide whether records are needed at all, pick the test and the tolerance that would change the buyer's decision, and compute the fewest records, fields and months that test needs. Release them through an expiring, logged route with a checksum manifest, and record when the copy is deleted.

Redaction

Dataset sample minimization

This page covers dataset sample minimization: the smallest sample for a buyer's question.Illustrative

Key takeaways

  • Many buyer questions, such as schema fit or field coverage, can be answered with documentation, aggregates or synthetic rows and need no real records.
  • When records are needed, the tolerance the buyer will accept sets the count: for a share estimated within plus or minus 10 points at 95 percent confidence, about 97 records per group is enough.
  • Rows are one axis; fields, time span, identifiers and free text are usually where the privacy exposure sits, and each can be cut to what the test reads.
  • An exchange record covering approval, access expiry, checksums, transfer log, revocation and deletion lets both sides prove exactly what was shared.
  • Stop and get privacy and legal review when the question requires direct identifiers, sensitive categories or free text that cannot be reduced.

How do you size a data sample around the buyer's actual question?

Start from the decision, not the request. Ask the buyer to state the question the sample must answer and what answer would make them walk away. Then pick the single test that answers it, set the tolerance at which the result would change their decision, and compute the smallest set of records, fields and dates that test reads. Anything beyond that adds exposure without adding information.

Buyers often ask for a large sample because size feels safer, or because the first request was written before anyone knew what they wanted to check. A ten-minute scoping call that turns we want to look at the data into we need to know whether resolution codes are filled on most closed tickets usually shrinks the sample by orders of magnitude.

This is the same logic data protection law applies to personal data. The GDPR's data minimization principle requires personal data to be adequate, relevant and limited to what is necessary for the purpose, and the UK regulator's guidance tells organizations to identify the minimum amount of personal data needed to fulfill that purpose. A sample is a purpose too, and it should be sized like one.

Which buyer questions need records at all?

Classify the buyer's question before you count anything. Several common questions are answered better by documentation or aggregates than by a pile of records, and one important question cannot be answered by a pre-license sample at all.

Which buyer questions need records at all?
Buyer questionBest evidenceRecords neededExposure if over-shared
Does the schema fit our pipeline?Data dictionary, schema file and a handful of synthetic rowsNone, or a few synthetic rowsReal values leaked for a structural question
Are key fields populated?Fill rates and value counts computed by the supplierNone if the buyer accepts supplier aggregates; otherwise a spot-check setFull records shared to answer a counting question
What share of records have a given property?Random sample sized to the toleranceComputed from the margin of error, per groupOversized sample with every field attached
Do rare scenarios exist in the data?Targeted examples plus counts from the full setA few examples per scenarioRandom sample too large to contain the rare case anyway
Are labels or outcomes reliable?Paired sample with label, evidence fields and reviewer instructionsSized to the error rate the buyer can tolerateUnrelated fields included with every labeled record
Will this data improve our model?An evaluation agreement or compute-to-data test, not a sampleNot answerable with a small pre-license sampleLarge uncontrolled copy made for a test it cannot support

Which lines does the sample minimization worksheet walk through?

Fill in one worksheet per buyer question. If the buyer has three questions, the release is the union of three small worksheets, not one large export. Keep the completed worksheet with the release record; it is the evidence that each row and field had a reason.

Which lines does the sample minimization worksheet walk through?
Worksheet lineInput to recordDecision ruleMinimization move
1. QuestionThe buyer's question in one sentenceMust name a property of the data, not a general wish to lookReject open-ended requests until restated
2. DecisionWhat result would make the buyer stop or proceedIf no result changes the decision, no sample is neededAnswer from documentation instead
3. TestCount, share estimate, presence check, label review or schema checkChoose the cheapest test that answers line 2Prefer supplier-computed aggregates where accepted
4. ToleranceMargin of error and confidence, or number of examples per scenarioSet the widest tolerance that still decides line 2Wider tolerance means fewer records
5. GroupsSegments the buyer must see separatelyEach group needs its own count; merge groups the decision does not splitFewer groups means fewer records
6. RecordsComputed count per group and selection methodRandom within groups unless the test targets rare casesRelease the computed count, not a round larger number
7. FieldsFields the test reads, plus keys to join themEvery field traces to line 3Drop all other fields, especially free text
8. Time spanMonths the test needsUse the shortest recent window that shows the propertyAvoid full history in a sample
9. IdentifiersDirect identifiers, quasi-identifiers and free-text mentions presentRemove or tokenize unless the test needs them; if it does, escalateTokenize keys consistently so joins still work
10. AccessRoute, expiry, named recipients and deletion dateShortest expiry and fewest recipients that allow the testView-only or compute-to-data when a copy is not needed

How many records does an estimate actually need?

For a share estimated from a random sample, the count follows from three inputs. The NIST/SEMATECH e-Handbook of Statistical Methods lists them as the confidence level, the sampling error permitted and the population proportion, and notes that assuming a proportion of one half gives the largest sample size, which makes it the safe default when nothing is known.

With the usual normal approximation, the count is the squared z-value times p times one minus p, divided by the squared margin. At 95 percent confidence (z of about 1.96) and p of one half, a margin of plus or minus 5 points needs about 385 records, and plus or minus 10 points needs about 97. Halving the margin roughly quadruples the sample, which is why the tolerance in worksheet line 4 is the most powerful minimization lever.

Groups multiply the count. If the buyer must see the share separately for three product lines, each line needs its own 97 or 385 records. Before agreeing, ask whether the decision really differs by group; often the buyer only needs an overall figure plus a presence check for each group.

Rare scenarios follow different arithmetic. To show a buyer a few examples of something that occurs in one record in a thousand, a random sample would need thousands of records and still might miss it. Pull targeted examples instead and report the scenario's count across the full dataset as an aggregate.

How do you cut fields, time span and identifiers, not just rows?

Most of the privacy exposure in a sample sits in its columns, not its row count. A 400-record sample with names, addresses and free-text notes can reveal more than 5,000 records with only coded fields. Cut every field the test does not read, and treat free text as a field that needs its own justification.

The UK regulator describes the minimization test as three parts: data should be adequate to fulfil the purpose, relevant in the sense of having a rational link to it, and limited to what is necessary. Applied to a sample, adequate means the test can actually be run, relevant means each field is read by the test, and limited means nothing else goes along for the ride.

Time span and identifiers are the other two levers. A recent three-month window usually shows whether a field is populated as well as three years would. Replace account and person identifiers with consistent tokens so joins across tables still work, and shift or coarsen dates when the test does not depend on exact timing.

Whether a given sample counts as personal data, and which legal basis covers sharing it, depends on the records, the jurisdictions and the agreement. That determination belongs with the company's privacy lead and counsel, not with the worksheet.

What exchange record proves which sample was shared and that it was deleted?

Keep an exchange record that both sides can check. A minimized sample loses much of its value if nobody can later show which version was shared, who opened it and when it was deleted. The UK regulator's AI guidance says technical teams should record and document all movements and storage of personal data and delete intermediate files as soon as they are no longer required.

Expiring links and checksum manifests make the record concrete. As one example, Amazon S3 presigned URLs signed with Signature Version 4 can be valid for at most seven days, links created in the S3 console for at most 12 hours, and a link created with temporary credentials expires when those credentials do. For integrity, the BagIt packaging format requires a payload manifest that lists every payload file exactly once with its checksum, and treats a package as valid only when it is complete and every checksum verifies.

What exchange record proves which sample was shared and that it was deleted?
Exchange stepControlEvidence the supplier keepsEvidence the buyer returns
ApprovalNamed approver signs off the completed worksheet and sample versionApproval record with worksheet and version IDAcknowledgement of the permitted test and terms
AccessNamed recipients, shortest workable expiry, no forwardingLink or account creation log with expiryList of people who opened the sample
IntegrityChecksum manifest covering every fileManifest and the hash of the manifestVerification result against the manifest
TransferOne route, logged at both endsTransfer log entry with time and sizeReceipt confirmation with time
RevocationAbility to cut access before expiryRecord of any early revocationConfirmation that access ended
RetentionDeletion date tied to the end of the testDeletion request sent on scheduleWritten confirmation that all copies and intermediate files were deleted

How does an illustrative 50,000-record ask shrink to a 600-record sample?

All figures are illustrative. A buyer evaluating dispatch records from a regional service company asks for 50,000 work orders to check quality. On the scoping call the buyer states two real questions: whether technicians record a reschedule reason on most rescheduled jobs, and whether the data includes jobs canceled on site.

The first question is a share estimate. The buyer will walk away if fewer than about two thirds of rescheduled jobs carry a reason, and a margin of plus or minus 5 points at 95 percent confidence is enough to decide, so 385 randomly chosen rescheduled jobs are sampled. The buyer does not need the share by branch, so there is one group.

The second question is a presence check. On-site cancellations are rare, so the supplier pulls 15 targeted examples and reports the full-dataset count as an aggregate. With a few hundred more random jobs for a field fill-rate check, the release is about 600 records.

Fields drop from 64 to 11: job ID token, dates coarsened to the week, job type, status history, reschedule reason code, cancellation code and five equipment fields. Customer names, addresses and technician notes are excluded. The sample goes out through a link that expires in five days with a checksum manifest, and the buyer confirms deletion when the test ends.

Which assumption changes the decision, and when should you stop?

The assumptions most likely to change the answer are the tolerance, the proportion and the preparation. A buyer who later asks for a tighter margin needs a much larger sample, so agree the tolerance in writing first. If the true share is close to the buyer's threshold, the interval will straddle it; report the interval rather than a single figure so the buyer sees the uncertainty. And if the sample is prepared differently from the eventual delivery, the test measures the wrong thing, so apply the same transformations the full release would receive.

Stop and send the request to privacy and legal review when the buyer's question cannot be answered without direct identifiers, health or other sensitive categories, or free text that cannot be reduced. Narrow the question instead when the only way to answer it is a large copy; a compute-to-data test or an evaluation agreement is usually the better route for questions about model improvement.

Can the first conversation stay sample-free?

It can with SourceX, where qualification rests on a short company assessment and no records are uploaded to find out whether a company fits. Any sample a deal later needs comes after that and can be sized with the worksheet above.

No record leaves before the company has approved the scope and terms and signed, and SourceX does not host multi-terabyte deliveries: they remain in the company's own storage or ship on encrypted drives.

Frequently asked questions

What is dataset sample minimization?

It is sizing a data sample to the smallest set of records, fields, dates and access that still answers the specific question a buyer needs answered. It applies data minimization thinking to pre-license sharing: every row and field in the sample should be traceable to a test the buyer will run.

How large should a data sample for an AI buyer be?

It depends on the question. Structural questions need no real records, a share estimate within plus or minus 10 points at 95 percent confidence needs about 97 random records per group, and within plus or minus 5 points about 385. Questions about model improvement are not answerable with a small sample.

Can the supplier compute aggregates instead of sharing records?

Often, yes. Fill rates, value counts and scenario counts computed on the full dataset answer many buyer questions with no record-level exposure. Buyers who need assurance can spot-check a small random set against the aggregates.

Does de-identifying a sample make it safe to share?

It reduces exposure but does not settle the question. Removing names can leave quasi-identifiers and free text that point to people, and de-identification alone does not create a right to license the data. A privacy lead should review the specific sample.

How do we prove the buyer deleted the sample?

Agree a deletion date in advance, send a deletion request on that date and keep the buyer's written confirmation that all copies and intermediate files were deleted. Expiring access links and a checksum manifest make it clear which package the confirmation covers.

Sources

  • GDPR Article 5(1)(c) requires personal data to be adequate, relevant and limited to what is necessary for the purposes of processing. Source
  • The ICO tells organisations to identify the minimum personal data needed for their purpose and explains adequate, relevant and limited. Source
  • The ICO's AI guidance says to record all movements and storage of personal data and delete intermediate files once no longer required. Source
  • The NIST/SEMATECH e-Handbook lists confidence, sampling error and the population proportion as the inputs to a proportion sample size and notes p = .5 gives the largest size. Source
  • Amazon S3 Signature Version 4 presigned URLs can be valid for at most seven days. Source
  • Presigned URLs created in the S3 console last at most 12 hours, and URLs created with temporary credentials expire with the token. Source
  • BagIt requires payload manifests that list every payload file once with a checksum and defines a valid bag as complete with every checksum verified. Source

See if your company qualifies

A short company assessment. No data uploads are needed.

See if your company qualifies