← Back to article

Equation 7 · Measuring AI Agent Reliability: What the Evidence Actually Supports

What does this equation mean?

pass@k  :=  Etasks ⁣[ 1  −  (n−ck)(nk) ]\text{pass@}k \;:=\; \mathbb{E}_{\text{tasks}}\!\left[\, 1 \;-\; \frac{\binom{n-c}{k}}{\binom{n}{k}} \,\right]

Read the formula alongside the article passage below. Each part has a deeper page with its role in the equation, the supporting passage and nearby citations.

Start withbinomn-ck
Divide bybinomnk
This relates topass@k :
How to read the two sides of this formula. Follow the article passage for the meaning of each quantity.

This equation states an equality: the expressions on both sides have the same value under the article’s assumptions. Read the equation part by part below; each part has a contextual explanation and a link to its mathematical background.

Read it piece by piece

kk

Symbol k

the number of samples.

Understand this part →

Etasks\mathbb{E}_{\text{tasks}}

Symbol E_tasks

EtE_tasks appears inside an expected value, so its contribution is averaged under the distribution or condition shown by that operator.

Understand this part →

nn

Symbol n

n appears inside an expected value, so its contribution is averaged under the distribution or condition shown by that operator.

Understand this part →

cc

Symbol c

c occurs above the fraction bar. The numerator is divided by the entire denominator below it.

Understand this part →

=

=

The expressions on both sides represent the same quantity under the stated assumptions.

Understand this part →

See an illustrated explanation →
fraction

fraction

Divide the expression above the line by the one below it.

Understand this part →

See an illustrated explanation →
subtraction

subtraction

Subtract the following term or group from the preceding one. A leading minus marks a negative quantity.

Understand this part →

subscript

subscript

The lower label selects a particular version, component, or indexed member of the quantity. For example, x₀ and xₜ can be values at different positions.

Understand this part →

(n−ck)\binom{n-c}{k}

Numerator: binomn-ck

The complete quantity above the fraction bar.

Understand this part →

(nk)\binom{n}{k}

Denominator: binomnk

The complete quantity below the fraction bar; it must be nonzero for this division.

Understand this part →

How to interpret it

With a fixed numerator, increasing a nonzero denominator reduces the fraction. Read it with the definitions, units, and assumptions supplied by the article.

What the article says around this equation

Start with the metric that made repeated sampling a standard practice. When OpenAI’s Codex team evaluated a code-generating model against the HumanEval benchmark, they needed a way to score the strategy of drawing several candidate solutions from the model and keeping the best one. The obvious approach — generate exactly k samples per problem and check whether any of them pass — has an undesirable property: it is a valid estimate but a high-variance one, since it throws away information every time you happen to generate more or fewer than k samples. Their fix was to over-sample: draw n total samples per task, observe how many of them, c , actually pass, and then compute the exact probability…
Read the full surrounding passage
Start with the metric that made repeated sampling a standard practice. When OpenAI’s Codex team evaluated a code-generating model against the HumanEval benchmark, they needed a way to score the strategy of drawing several candidate solutions from the model and keeping the best one. The obvious approach — generate exactly k samples per problem and check whether any of them pass — has an undesirable property: it is a valid estimate but a high-variance one, since it throws away information every time you happen to generate more or fewer than k samples. Their fix was to over-sample: draw n total samples per task, observe how many of them, c , actually pass, and then compute the exact probability that a random draw of k items from those n would contain at least one success [ 2 ] . That combinatorial form is the unbiased estimator: it uses every one of the n observed outcomes rather than discarding some of them, and it has materially lower variance than the intuitive shortcut of raising a single measured success rate to a power. The paper is explicit that the naive alternative is biased, not merely noisier, so the difference is not a technicality — using the wrong formula changes which system looks better [ 2 ] . With n=100 samples per problem, their Codex model solved 70.2% of HumanEval problems by this best-of-many-samples criterion, against 28.8% at pass@1 [ 2 ] . That gap is not a measurement error. It is the honest size of the difference between “can this model ever produce a correct solution” and “does its single best guess happen to be correct.”

Read the equation in its article →

Sources cited in the surrounding passage

These citations give research context. Read each source to check which claims it supports.

Return to Measuring AI Agent Reliability: What the Evidence Actually Supports

See this formula across 1 published context →

Browse the mathematical compendium →