Skip to content

Calculator

Wilson confidence interval calculator for pass rates

The Wilson 95% interval for an observed eval pass rate, and how many independent tasks a target half-width needs.

InteractivePass-rate intervals and sample size
100
72%

Report it as

72%

95% Wilson CI 63%–80%, n = 100

Half-width

±8.7 pts

Shrinks roughly with 1/√n.

Passes / tasks

72 / 100

±0±8±15±22±30101001,00010,000Tasks n (log scale)Half-widthn = 100

Near an 80% pass rate the interval is about ±11 points at 50 tasks, ±8 at 100, ±4 at 400 and ±2.5 at 1,000. Claims about a slice need that slice's own n — and repeated trials on the same task are not new tasks.

A pass rate measured on n tasks is an estimate, and its interval says how far from the true rate it could be. Enter the number of tasks and the observed pass rate to get the Wilson interval, or switch modes and set a target half-width to see how many independent tasks that precision needs.

What it computes#

The observed pass rate p^=k/n\hat p = k/n estimates the true rate pp of the population the claim is about. The Wilson interval around it has

center=p^+z2/(2n)1+z2/nhalf-width=z1+z2/np^(1−p^)n+z24n2\begin{aligned} \text{center} &= \frac{\hat p + z^2/(2n)}{1 + z^2/n} \\ \text{half-width} &= \frac{z}{1 + z^2/n}\sqrt{\frac{\hat p(1 - \hat p)}{n} + \frac{z^2}{4n^2}} \end{aligned}

where zz is the standard normal quantile, 1.96 for 95%. The half-width shrinks roughly with 1/n1/\sqrt{n}, so halving it takes about four times as many tasks.

When it applies#

The Wilson interval is the default for independent binary outcomes at moderate n. Unlike the Wald form, it keeps a nonzero width when every task passes or every task fails.

  • The tasks must represent the population the claim is about. A suite drawn from another distribution estimates a different estimand, however narrow its interval.
  • When trials repeat within tasks, for example several attempts per task, the outcomes are not independent: resample whole tasks instead.
  • The sample size it suggests counts independent tasks, before clustering or stratification.

Report every pass rate with its interval and its n. The derivation and worked examples are in Estimands, pass rates, and intervals.

Terms on this page

The chapter behind it

Handbook · ValidationEstimands, pass rates, and intervalsWrite the estimand first, then report n, an honest interval and the right functional, from Wilson to pass^k to reweighted estimates.

More calculators