Sizing A Human QA Sample For Extraction Accuracy

Last updated: November 29, 2026

Quick Overview

Reviewers can audit only a fraction of the medical facts the extraction pipeline produces. How many facts must they sample to claim the error rate is below 1% with 95% confidence, how many to estimate a rate near 2% within half a percentage point, and how should the sample be drawn?

EvenUp
Statistics & Math
Data Scientist
EvenUp
November 29, 2026
Data Scientist
Technical Screen
Statistics & Math
Medium

0

0

0 solved


Reviewers can audit only a fraction of the medical facts the extraction pipeline produces. How many facts must they sample to claim the error rate is below 1% with 95% confidence, how many to estimate a rate near 2% within half a percentage point, and how should the sample be drawn?

EvenUp combines AI extraction with human review, and quality claims to customers and internal SLAs depend on audit sampling being done correctly. The screen tests binomial confidence bounds, the zero-failure case, sample size formulas, and stratification across very different document types.

What the Interviewer Expects
  • Uses the binomial model and states independence assumptions
  • Solves the zero-error upper bound correctly (rule of three intuition)
  • Applies the normal approximation sample size formula with a target margin
  • Recommends stratified sampling by fact type or provider
  • Recognizes clustering within cases reduces effective sample size
Key Topics to Cover
Binomial confidence intervals
Sample size
Rule of three
Stratified sampling
Cluster sampling
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • You sampled 300 facts and found 2 errors: what can you claim?
  • Errors in dollar amounts matter more than in provider addresses: how does that change the design?
  • How would you monitor this weekly without re-auditing everything?
  • How would you use sequential testing to stop early?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify

A fact is an extracted item (date of service, CPT code, billed amount) and is either correct or wrong per a reviewer. Treat sampled facts as independent Bernoulli trials with error rate pp. Two goals...

Approach

For the bound with zero observed errors, the 95% upper bound pup_u solves (1−pu)n=0.05(1 - p_u)^n = 0.05. For estimation, use n=z2p(1−p)/E2n = z^2 p(1-p) / E^2. Then turn the totals into a stratified, cluster-aware plan....


Submit Your Answer
Markdown supported

Related Questions