2026-11-18·von Sijie Wang#cybernetics#engineering#testing

detection-floor

Detection floor — the smallest difference a test set can see

A test set of nn cases has a resolution. Differences below it are noise, whatever the dashboard shows. nondeterminism-statistics says to check significance before raising an alarm; this note is the arithmetic behind that.

The interval on one score

For a pass rate pp over nn independent cases, the 95% interval is about

p±1.96p(1−p)np \pm 1.96\sqrt{\frac{p(1-p)}{n}}

At p=0.70p = 0.70:

Cases nnHalf-widthInterval
600.1160.584 – 0.816
2000.0640.636 – 0.764
1,0000.0280.672 – 0.728
5,0000.0130.687 – 0.713

A published worked case with 60 tickets reports 0.700 with a bootstrap interval of 0.583 to 0.817, which matches the first row. Halving the width takes four times the cases.

Comparing two versions

  • Pair them. Score both versions on the same cases and look at the per-case differences. The interval on the difference is narrower than the interval on either score, because the case-to-case difficulty cancels. McNemar's test is the standard tool for pass/fail pairs.
  • A difference whose interval includes zero is noise. In the same worked case, two prompt versions both scored 0.700; the difference was +0.000 with an interval of −0.117 to +0.117, and the second version had got worse on 14% of cases while getting better on others.
  • The floor. With 60 cases the smallest detectable difference is about 12 points. A 5-point regression cannot be seen. To see it, do the power calculation first and collect that many cases.
  • Many tries, one winner. Test 20 variants and keep the best, and one of them will look about 10 points better by luck. Correct for it, or confirm the winner on cases it has not seen.

When there were no failures at all

Zero failures in nn independent trials does not mean a zero rate. Solving (1−p)n=0.05(1-p)^n = 0.05 gives the 95% upper bound

p≲3np \lesssim \frac{3}{n}
Clean trialsUpper bound on the failure rateAt 1,000,000 calls a day
3001%up to 10,000 failures
5,0000.06%up to 600 failures
100,0000.003%up to 30 failures

This bound needs the trials to be a random sample of real use. A red-team battery is chosen to be hard, so it is not such a sample, and its clean result bounds nothing about the rate in production. It says only that those known attacks did not get through (automated-red-teaming).

What to put on the dashboard

The pass rate with its interval, the detection floor for the current nn, and the share of cases that got worse. A bare pass rate invites reading noise as progress.

Up: testing-software-3-0 · Kin: nondeterminism-statistics · judge-agreement · capability-vs-reliability

Source: Miller, "Adding Error Bars to Evals" (2024, arXiv:2411.00640); Makarevych, "Evals: how to know whether an AI system actually works" (X article, 2026-10-03) for the 60-ticket case, the 12-point floor and the 20-variant figure; NIST AI 800-3 (2026-02) on separating benchmark accuracy from generalized accuracy. The two tables and the zero-failure bound are computed here from the formulas.

über diesen eintrag

Einer von sijie's Wiki-Einträgen. Die KI auf dieser Site ist im selben Corpus verankert und antwortet in sijie's Stimme mit Zitaten zurück auf Einträge wie diesen — das Beantworten kostet sijie Geld, daher wartet sie hinter einem Code: zugriffscode eingeben →