AOAnnotation Ops Kit
Annotation QA · Sample size

How many labels should you QA from a batch?

Sample size depends on batch size, the margin of error you can accept and the expected error rate. The tables show how many items to review under the assumptions listed below them.

Short answer

Items to review at ±3% margin of error
Batch size (items)Expected error 5% (95% conf, SRS, FPC)Unknown rate, conservative 50% (95% conf, SRS, FPC)
500145341
2,400188739
10,000199965
50,0002021,045
Items to review at ±5% margin of error
Batch size (items)Expected error 5% (95% conf, SRS, FPC)Unknown rate, conservative 50% (95% conf, SRS, FPC)
50064218
2,40071332
10,00073370
50,00073382

Assumptions for both tables: 95% confidence (z = 1.959964, often rounded to 1.96), a simple random sample (SRS) of items, the normal approximation with finite population correction (FPC), rounded up. "Expected error 5%" means you expect about 5% of items to be wrong, which is the same as 95% expected accuracy. If you don't know the error rate, use the 50% column. It gives the largest sample, so it is safe for any true rate.

Small-sample note: 500 items at ±5% with 5% expected error gives 64 items, which expects only about 3 errors (64 × 5% = 3.2). With that few errors the normal approximation is weak, so read the result with a Wilson or exact interval instead.

These numbers size a sample for estimating the error rate. To accept a batch, you also need an explicit error threshold and a decision rule. See accept or reject below and QA Core.

For your batch, use the free sample size calculator. It uses the same formula. Enter accuracy there: 5% expected error is 95% expected accuracy, and 50% stays 50%.

The formula

Step 1
n₀ = z² × p × (1 − p) ÷ e², with z = 1.959964 for 95% confidence (the same value the calculator uses), p the expected error rate and e the margin of error.
Step 2
n = n₀ ÷ (1 + (n₀ − 1) ÷ N), where N is the batch size.
Step 3
Round n up. Review that many items, chosen at random.

Worked example: N = 2,400, e = 3%, p = 5% gives n₀ = 202.7 and n = 187.02, so 188 items. With p = 50%, n₀ = 1,067.1 and n = 738.9, so 739 items.

Two different jobs: estimate, then accept or reject

Job 1: estimate the error rate. The tables size a sample for the chosen margin of error at 95% confidence.

Job 2: decide to accept or reject the batch. Agree on an error target with the vendor before delivery. QA Core handles this. Its acceptance rule uses a Wilson interval around the observed error rate. The QA Tracker computes the interval, and the rule returns Accept, Reject or Incomplete. A fictional worked example is on the QA Core page. The NIST e-Handbook, section 7.2.4.1 explains the Wilson interval.

Why reviewing 10% doesn't guarantee the precision you need

A fixed share gives different margins of error across batch sizes. Precision depends mostly on how many items you review.

Margin of error if you review 10%
Batch size (items)10% reviewed (items)Expected error 5% (95% conf, SRS, FPC)Unknown rate, conservative 50% (95% conf, SRS, FPC)
50050±5.7%±13.2%
2,400240±2.6%±6.0%
10,0001,000±1.3%±2.9%
50,0005,000±0.6%±1.3%

Margin = z × √(p(1 − p) ÷ n × (N − n) ÷ (N − 1)), same assumptions as above.

On a small batch, 10% can be too few. On a large batch, it can be far more than you need. At 50,000 items, 202 to 1,045 items give ±3%, while 10% is 5,000.

Before you review

The p in the formula is your best estimate of the vendor's error rate, based on a pilot or past batches. It is separate from your quality target, which belongs in the accept or reject decision. Draw the sample at random from the whole batch. The calculator page covers how to sample a batch and expected vs target accuracy, so they aren't repeated here.

When the sample isn't enough

  • Correlated items. Frames from one video or sentences from one document tend to share errors. Sample whole clips or documents, or sample more.
  • Rare classes. A random sample may contain only a few items from a rare class. Sample that class separately if it matters.
  • Critical errors. If one error type is unacceptable, track it on its own rather than inside the overall rate.
  • Very small counts. With few expected errors in the sample, the normal approximation gets rough. An exact or Wilson interval on the result helps.

For a deeper treatment, including acceptance sampling as an alternative to estimating the error rate, see Klie et al., ACL 2024.

FAQ

Does a bigger batch need a much bigger sample?

The increase is small. At ±3% and 5% expected error, 2,400 items need 188 and 50,000 need 202. As batches grow, the sample size levels off near 203.

What if I want 99% confidence?

The sample grows. The calculator has 90%, 95% and 99% options. The tables here use 95% only.

Next step: does the batch pass?

The free calculator gives a sample size. QA Core uses a Wilson interval to return Accept, Reject or Incomplete after review.

Free calculatorQA Core · $99

Related: data annotation QA templates, annotation guidelines template and how to evaluate data annotation vendors. Prefer a spreadsheet? Download the free sheet + error taxonomy (.zip).