You gained 3 points on 200 questions. Did you win?
At the 200-question scale, a 3-point gap usually cannot justify a procurement decision; unless you can show a paired design, a confidence interval, and a question count matched to your decision threshold, the honest conclusion is that no difference was observed.
On this page
Suppose you have two model quotes, A and B, the same evaluation harness, the same 200 questions. A scores 71%, B scores 68%. Three points apart, twenty percent apart on price. The vendor says B is more consistent, and you need a reason you can put in a purchase order. Three points does not sound like much, but on 200 questions it is six questions. This article computes exactly one thing: whether six questions can carry a procurement decision.
First, convert 3 points into 6 questions
The scenario above is invented, and the numbers were chosen so the arithmetic is easy. It is not taken from any real report. But it is typical enough: one table, two percentage columns, a narrow gap, a wide price gap. Most people read 71% and 68% as “B is slightly better”, then as “three points is not worth twenty percent more money”. Both readings might be right, but neither is read off the data.
Three points on 200 questions is six questions. Put differently: if B had gotten six other questions wrong, the two models would tie. Six flips is a very ordinary event in language model evaluation. Temperature, random seed, one extra space in a prompt template, whether the scoring script normalizes case — any one of these can move a handful of items. You cannot read a stable capability difference out of six questions.
What the pass@k formula actually estimates
pass@k is not a number you get from one run. The approach in the Codex paper is: generate n samples per problem (they used n=200), run the unit tests and count the c that pass, then estimate pass@k as one minus the probability that none of the n samples pass, that is, 1 - C(n-c, k) / C(n, k). The paper states that this estimator is unbiased: repeat the whole experiment many times and the average of the estimates converges to the true pass@k.[1]
“Unbiased” is easy to misread. It says the expected value is right, not that your particular run is right. An unbiased estimator with large variance can produce a single result far from the truth while the average stays correct. A report always hands you a single result, so unbiasedness does very little for you at decision time. What you need is an interval, not an expectation.
The formula contains one extreme case worth checking yourself. Suppose a problem has exactly one passing sample out of 200, so c=1. Then C(199, k) / C(200, k) equals (200-k)/200, and the estimated pass@k is simply k/200. At k=100, that problem is scored at 50%. One lucky sample carries half of a “this model can solve it” judgment. The formula is not wrong — it is correct. The problem is that when c is tiny, the estimate is driven almost entirely by the extrapolation “given more attempts, it would probably pass”, not by what you observed.
There is also a constraint that gets overlooked: the number of questions. HumanEval itself has 164 problems, which is the scale the paper documents.[1] Most code model reports rest on a test set of that size. Question count is the hardest thing to change in procurement. You can add samples, you can swap scoring scripts, but you cannot turn a 164-item set into 1640 distinct items. The ceiling on resolution is fixed the moment you pick the test set.
Variance has two sources, and the bigger one is usually ignored
Split the evaluation open and randomness comes from two layers. The first is sampling: the same model on the same problem produces different code each time. The second is item selection: your 200 questions are drawn from an imagined larger pool of questions, and a different 200 would give a different score. The central argument of Adding Error Bars to Evals is about that second layer — treat questions as a sample from a larger pool and compute standard errors accordingly, rather than accounting only for randomness in model outputs.[2] In that frame, heterogeneity across questions is often the dominant source of variance, because difficulty differences between items are much larger than run-to-run noise on a single item.
| Design | Assumption | Gap | Standard error | 95% interval | Can you conclude anything |
|---|---|---|---|---|---|
| Two independent samples, 200 questions each | The models were tested on different items | 3.0 pts | 4.6 pts | -6.0 to 12.0 pts | No, the interval is too wide to inform |
| Paired, same 200 questions | 130 both correct, 12 only A, 6 only B, 52 both wrong | 3.0 pts | 2.1 pts | -1.2 to 7.2 pts | No, still contains zero |
| Paired, 400 questions, same discordance rate | Same proportions, doubled | 3.0 pts | 1.5 pts | 0.1 to 5.9 pts | Barely, it just clears zero |
This table is a worked example, not numbers from either paper, and the contingency table is invented to make the point. The arithmetic is plain. For independent samples, the standard error of the difference is the square root of the sum of the two proportion variances. For paired samples, only the discordant items matter, and the standard error is the square root of the discordant count divided by the question count. At 200 questions and 71% versus 68%, that gives 4.6 points unpaired and 2.1 points paired. The entire difference comes from the 130 items both models got right, which the independent calculation treats as two separate random fluctuations and the paired calculation cancels.
Why pairing saves roughly half the variance has a concrete reason: both models fail on the same items. The same ambiguous question, the same formatting trap, the same problem that needs an external library — they get those wrong together. That shared movement cancels when you take the difference. It also explains why comparing A's published score against B's self-reported score is the least reliable comparison available. It is not paired, it is two independent samples, and the items may not even be the same.
Pairing does not rescue a gap that is too small. At the discordance rate above, making 3 points resolvable takes roughly 400 questions. That is what “question count sets resolution” means in practice. It is not that more questions give a more accurate score; it is that with few questions you cannot distinguish a gap of this size at all. If 3 points is your decision line, 200 questions is not enough. Either add questions or downgrade the conclusion to “no difference observed”. Both are more honest than “B is slightly better, so we pick B”.
Four things to add to your own evaluation
- Decide the smallest difference that would change your decision before you test. Write down one sentence: “I would switch vendors at a gap of N points.” That number is an input to the design, not an output of the test. Without it, you will not know which column to believe when the results arrive.
- Use a paired design. Same questions, same scoring script, same sampling budget, same prompt template. If you must compare against a published number, first check how many items the two sets share.
- Report intervals, not points. Replace “71% versus 68%” with “3 points apart, paired 95% interval -1 to 7”. When the interval crosses zero, the correct statement is “no difference observed”, not “slightly better”.
- Size the test set from the decision line. If 3 points is your line, 200 questions is not enough; plan for 400 or more. If the budget only covers 200, set the decision line at 6 points or higher, or accept that this evaluation can only conclude the two vendors are close.
- Put k and n together into the contract appendix. Writing “reaches X% at pass@10” without stating samples per problem is equivalent to writing nothing — for the same model, pass@10 estimated from n=20 and from n=200 can differ by several points.
The fifth item looks like paperwork and is in fact the most practical. The pass@k estimate depends on n. That is not an implementation detail you can leave out; it is part of the metric's definition. A contract that locks k but not n lets a vendor switch to a more generous sampling budget while staying within the letter of the agreement, and you have no grounds to complain.
One more thing is worth doing before you test: compare the two models' error sets. If the six extra items B gets right cluster in one category — recursion, long inputs, anything specific — then the 3 points are statistically insignificant but directionally interesting, and worth a separate look. If those six items are scattered across unrelated problem types, noise is the better explanation. Significance testing answers “could this be chance”; the error distribution answers “what would chance look like”. Reading both beats reading either.
What this arithmetic cannot reach
The first limit is the independence assumption. Every calculation above treats each question as an independent draw from the same distribution, and they are not: difficulty has a heavy tail, with a few very hard items and a few giveaways, so the true variance tends to exceed what the binomial formula produces. The intervals in that table are therefore optimistic lower bounds; real intervals are wider. This matters most when the question count is small, because a couple of outlier items can drag the whole average.
The second limit is that pass@k answers a narrow question. It answers “given k attempts, does one succeed”. It does not answer “does the first attempt succeed”, and it does not answer whether the passing code is maintainable, whether it introduces vulnerabilities, or whether it runs inside a real repository. Those three carry far more weight in a procurement decision than pass@k does. Using a narrow metric for a broad decision is the most common misuse of evaluations like this, and the fault lies in the usage, not the metric.
So here is the one thing you can do immediately: pull out the evaluation report you already have and check whether it states samples per problem, whether it gives an interval, and whether both models were tested on the same items. Missing one of the three, the score is a reference, not a basis. Missing all three, what you actually hold is a sentence saying “we tested it”.
