Statistical Foundations · 5 min read
Pass-at-k asks a practical question: if you let the model try k times, how often does at least one attempt pass? Estimating it well takes a little care.
Why not just generate k and count?
You could sample exactly k completions per problem, but that is noisy. A better approach is to sample n larger than k completions, count the c that pass, and compute what a random set of k of them would have done.
The estimator
There are C(n, k) unordered sets of k completions. The only failing sets draw all k from the n − c failures. So the fraction of successful sets is 1 − C(n − c, k) / C(n, k), where the second term is zero if n − c is less than k.
With two passes out of ten and k = 3, this gives 1 − 56/120 = 8/15, about 0.53. Plugging the observed pass rate into 1 − (1 − p̂)^k is a different, biased shortcut, because it is a nonlinear function of the estimate.
The 120 subsets are not 120 trials
Those 120 subsets reuse the same ten completions. Treating them as independent observations gives a confidence interval that is far too narrow. Compute one pass-at-k estimate per problem, then do the inference at the problem level, preserving problem families when problems share structure.
Match the metric to the deployment
Pass-at-k assumes something can pick the passing completion. If production serves one answer with no verifier or reranker, pass-at-1 is the aligned metric. A model that wins at pass-at-5 and loses at pass-at-1 may be the wrong choice for that product. Evaluate the real selection or verification policy separately.
