Calculator
pass@k and pass^k calculator
pass@k is the chance that at least one of k attempts succeeds, pass^k the chance that all k do. Compute both, plus the unbiased pass@k estimator.
pass@3: at least one of 3 succeeds
98.4%
1 − (1 − p)^k. Useful when a reliable check, or a person, picks out the success.
pass^3: all 3 succeed
42.2%
p^k. The reliability of unattended or repeated work.
- pass@k (at least one)
- pass^k (all k)
Convention
Here pass@k means at least one of k attempts succeeds, and pass^k means all k succeed. Some sources, including write-ups of τ-bench results, call the all-k quantity “pass@k”. Check the definition before comparing numbers.
Estimate pass@k from samples
You drew n samples for one task and c of them passed.
Unbiased pass@5
91.7%
The share of k-subsets of your n samples that contain at least one pass.
Plug-in 1 − (1 − c/n)^k
83.2%
Concave in c/n, so on average it reads low (Jensen's inequality).
Plug-in's average error
−7.2 pts
Expected plug-in minus true pass@k if the true rate were c/n. The unbiased estimator's average error is zero.
Needs at least k samples per task. Estimate per task, then average across tasks; for an interval, resample tasks, not samples.
Unattended or repeated work needs pass^k. At p = 75%, 3 attempts contain a success 98.4% of the time, which helps only if something reliably picks it out, but all 3 succeed only 42.2% of the time. Both curves assume independent attempts at one rate. Across a suite, difficulty varies by task, so compute per task and average: with uneven difficulty, average pass@k comes out lower and average pass^k higher than these curves at the mean rate.
pass@k is the probability that at least one of k attempts succeeds; pass^k is the probability that all k succeed. They answer different questions, and the gap between them widens as k grows. Set the per-attempt success rate and k to compare them, then estimate pass@k from your own samples.
What it computes#
For independent attempts at one success rate :
pass@k is useful when a reliable check, or a person, picks out the success from k tries. pass^k is the reliability of unattended or repeated work, where every run has to succeed.
Estimating pass@k from samples#
If you drew samples for one task and of them passed, the unbiased estimator of Chen et al. (2021) is
with . The plug-in reads low on average. Compute the estimate per task, average across tasks, and give it an interval by resampling tasks.
Cautions#
- Both formulas assume independent attempts at one rate. When difficulty varies across tasks, compute them per task and then average.
- Some sources label the all-k quantity "pass@k"; check which one a reported number means before comparing it.
- The handbook gives no unbiased estimator for pass^k.
The chapter Estimands, pass rates, and intervals develops both quantities.