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
November 29, 20260
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
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- 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 QuestionsSample 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 . Two goals...
Approach
For the bound with zero observed errors, the 95% upper bound solves . For estimation, use . Then turn the totals into a stratified, cluster-aware plan....