Skip to main content

Module stats

Module stats 

Source
Expand description

Statistics over repeated trials and judge calibration.

  • pass_at_k and pass_hat_k: unbiased estimators from n trials with c successes of the chance that at least one of k trials passes (capability) and that all k pass (reliability, τ-bench’s pass^k).
  • Agreement: a judge’s binary verdicts against human labels: confusion matrix, raw agreement, TPR, TNR and Cohen’s kappa.

Structs§

Agreement
Agreement metrics; None where the denominator is zero (or, for kappa, when chance agreement is 1).
Confusion
A binary judge against binary human labels (positive = pass).

Functions§

pass_at_k
Unbiased pass@k from n trials with c passes: 1 - C(n-c, k) / C(n, k) (Chen et al. 2021, the Codex estimator of 1 - (1 - p)^k).
pass_hat_k
Unbiased pass^k from n trials with c passes: C(c, k) / C(n, k), the probability that k trials drawn without replacement all passed; its expectation is p^k for a per-trial pass probability p.