Put a Confidence Interval on a 200-Example Eval Score
Last updated: November 29, 2026
Quick Overview
A new extraction prompt scores 184 out of 200 on your eval set, versus 188 out of 200 for the production prompt on the same examples. Give a 95% interval for the new prompt's accuracy, say whether the difference is meaningful, and estimate how many examples you would need for a plus or minus 2 point interval.
Ode
November 29, 20260
0
0 solved
A new extraction prompt scores 184 out of 200 on your eval set, versus 188 out of 200 for the production prompt on the same examples. Give a 95% interval for the new prompt's accuracy, say whether the difference is meaningful, and estimate how many examples you would need for a plus or minus 2 point interval.
Engineers at Ode report eval numbers to clients and decide prompt releases from them, often on small hand-labeled sets. The interviewer checks basic binomial reasoning, awareness that the comparison is paired, and a sense of how much data a claim needs.
What the Interviewer Expects
- Compute the normal or Wilson interval for a proportion
- Recognize the two prompts were run on the same examples, so use a paired test
- Apply McNemar's test using only the discordant examples
- Compute required sample size from the margin of error formula
- State the practical conclusion clearly
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
- Why is the Wilson interval preferred near 0% or 100%?
- How would you handle examples graded by a noisy LLM judge?
- What if errors cluster by vendor, so examples are not independent?
- How would you report this to a client who wants one number?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Each example is graded right or wrong, examples are independent draws from the traffic we care about, and both prompts saw the same 200 inputs. I also need the discordant counts: suppose the new promp...
Approach
Interval for one proportion with . Then a paired test for the difference, since an unpaired two-proportion test would ignore that most examples are shared successes. Then inve...