skip to content

statistics for benchmarks · lesson 2 of 9 · sources checked 2026-11-20

the two-sided verdict and the ambiguous band

This lesson shows how a verdict rule with two bounds separates a proven pass, a proven fail, and a result that must have more evidence.

status of this lesson: measured by me

purpose

A rule that calls each unproven result a failure publishes false failures. A small sample of trials can prove neither a pass nor a fail. A verdict must say when the evidence is not sufficient.

objectives

  1. Apply the two-sided verdict rule to a result of k successes in n trials.
  2. Explain why a one-sided rule publishes false failures.
  3. Keep ambiguous attempts out of the denominator of a rate.
  4. Find the number of trials that is necessary for a pass or a fail.

new terms

two-sided verdict
A verdict rule that passes on the lower bound, fails on the upper bound, and is ambiguous between them.
ambiguous band
The set of results where the interval contains the threshold.

how it works

A run is a group of trials of one configuration on one target, in one time window.

The trials of a run share one exit IP and one web session. For example, a run of 5 trials gives a count such as 4 of 5. The run gets one verdict from its counts and the 95% Wilson interval.

the one-sided rule

The old rule reads only the lower bound:

lower >= 0.5 ? pass : fail

Each result that does not prove a pass becomes a fail. But a result can be unproven because the sample is small, not because the configuration is weak.

example A run has 4 of 5. The interval is 0.376 to 0.964. The lower bound is under 0.5, thus the one-sided rule gives fail. But the upper bound is 0.964, and the evidence does not show a weak configuration. Thus this published failure is false.

the two-sided rule

The two-sided verdict reads both bounds:

  1. Pass: the lower bound is 0.5 or more.
  2. Fail: the upper bound is under 0.5.
  3. ambiguous: each other result.

The ambiguous band is the set of results where the interval contains the 0.5 line. For example, at 5 trials only 5 of 5 passes, and only 0 of 5 fails. Each result from 1 of 5 to 4 of 5 is in the band.

The band changes with the trial count. The table in the section "Data" gives the fewest successes that pass and the most successes that fail, for 5 to 50 trials.

An ambiguous result is not a weak result. The correction is more evidence. The pass line does not move.

A defense that blocks a part of the attempts at random gives results near 0.5. For example, a run of 3 of 5 against such a defense stays in the band. Thus a small benchmark cannot call that defense strong or weak.

how many trials are necessary

Each result must have a minimum number of trials before it can leave the band.

example A configuration works 80% of the time. At 4 of 5, the lower bound is 0.376. At 8 of 10, it is 0.490. At 16 of 20, it is 0.584, and the run passes. Thus such a configuration must have approximately 20 trials to prove a pass.

With one trial in each run, each interval is too wide. The interval of 1 of 1 is 0.207 to 1, and that of 0 of 1 is 0 to 0.793. Thus each run is ambiguous.

The rule also has a minimum of 5 trials for a pass or a fail. Under 5 trials, the result stays ambiguous. For example, 4 of 4 has a lower bound of 0.510, but it gives no pass.

ambiguous attempts stay out of the denominator

One attempt can also be ambiguous. Then the success oracle cannot decide if the attempt got the content.

Such an attempt is not a failure. Thus it stays out of the denominator of the rate.

example A run has 0 passes, 0 fails, and 5 ambiguous attempts. Its count is 0 of 0, and it has no bound. If the 5 attempts count as failures, the run becomes 0 of 5, a proven fail with no failed attempt.

what the stored verdicts show

The stored run verdicts of the benchmark platform, my test system, cover one period under each rule. Under the one-sided rule, runs with 1 to 4 passes of 5 got the verdict fail. Under the two-sided rule, a part of the runs is ambiguous. The second chart in the section "Data" shows the two periods.

the two sides

automation sidedetection side
At 5 trials, the only result that passes is 5 of 5. A configuration that works 80% of the time must have approximately 20 trials to prove a pass.A defense that blocks a part of the attempts at random keeps a small benchmark in the ambiguous band. The benchmark cannot call that defense strong or weak.

design decisions

optiongaincostwhen it is correct
The one-sided ruleOne bound to readEach unproven result is a published failure.Never for a published verdict
The two-sided ruleA fail must have evidence, as a pass must.A third verdict that each reader must handleEach published verdict
A minimum of 5 trialsNo verdict from a very small runMore runs stay ambiguous.Each run
More trials in each runFewer ambiguous runsMore attempts and more load on the targetWhen the band holds too many runs
Ambiguous attempts as failuresA larger count of trialsA tool with no failed attempt can show a rate of 0%.Never
Ambiguous attempts out of the countThe rate counts only results that the oracle can decide.Fewer trials in the countEach rate

diagram

A table of seven results: 0 of 5 to 5 of 5, and 16 of 20. Each row gives the lower bound, the upper bound, and the verdict at the 0.5 line. 0 of 5 fails, 5 of 5 and 16 of 20 pass, and 1 of 5 to 4 of 5 are ambiguous.

wilson intervals at 95% for 0 of 5 to 5 of 5, and 16 of 20, against the 0.5 line
resultlower boundupper boundverdict at 0.5
0 of 50.0000.434fail
1 of 50.0360.624ambiguous
2 of 50.1180.769ambiguous
3 of 50.2310.882ambiguous
4 of 5 (80%)0.3760.964ambiguous
5 of 50.5661.000pass
16 of 20 (80%)0.5840.919pass
Each result of 5 trials has a wide interval. Only 5 of 5 is fully above the 0.5 line, and only 0 of 5 is fully below it. At the same rate, 16 of 20 is above the line, but 4 of 5 is not.source: My model: Wilson intervals at 95% for a small sample

The rows from 1 of 5 to 4 of 5 are the ambiguous band at 5 trials.

code example

The example gives the verdict of the one-sided rule and of the two-sided rule for synthetic counts.

m31-x01-verdict.tstypescript

Compare the one-sided rule and the two-sided verdict rule with a minimum of 5 trials, for synthetic counts.

// The one-sided rule and the two-sided verdict rule. Synthetic data only.
type Verdict = "pass" | "fail" | "ambiguous";

function wilson(k: number, n: number, z = 1.96): { lower: number; upper: number } {
  const p = k / n;
  const z2 = z * z;
  const c = p + z2 / (2 * n);
  const s = z * Math.sqrt((p * (1 - p)) / n + z2 / (4 * n * n));
  const d = 1 + z2 / n;
  return { lower: Math.max(0, (c - s) / d), upper: Math.min(1, (c + s) / d) };
}

// Old rule: each result that is not a proven pass is a fail.
function oneSided(k: number, n: number): Verdict {
  return wilson(k, n).lower >= 0.5 ? "pass" : "fail";
}

// Two-sided rule. Under minTrials trials, the result stays ambiguous.
function twoSided(k: number, n: number, minTrials = 5): Verdict {
  if (n < minTrials) return "ambiguous";
  const i = wilson(k, n);
  if (i.lower >= 0.5) return "pass";
  if (i.upper < 0.5) return "fail";
  return "ambiguous";
}

const cases: Array<[number, number]> = [
  [0, 5], [1, 5], [2, 5], [3, 5], [4, 5], [5, 5],
  [1, 1], [0, 1], [4, 4], [8, 10], [16, 20],
];

for (const [k, n] of cases) {
  const i = wilson(k, n);
  const bounds = `[${i.lower.toFixed(3)}, ${i.upper.toFixed(3)}]`;
  console.log(`${k} of ${n} ${bounds} one-sided ${oneSided(k, n)}, two-sided ${twoSided(k, n)}`);
}

output

The bounds and the two verdicts of each count.

0 of 5 [0.000, 0.434] one-sided fail, two-sided fail
1 of 5 [0.036, 0.624] one-sided fail, two-sided ambiguous
2 of 5 [0.118, 0.769] one-sided fail, two-sided ambiguous
3 of 5 [0.231, 0.882] one-sided fail, two-sided ambiguous
4 of 5 [0.376, 0.964] one-sided fail, two-sided ambiguous
5 of 5 [0.566, 1.000] one-sided pass, two-sided pass
1 of 1 [0.207, 1.000] one-sided fail, two-sided ambiguous
0 of 1 [0.000, 0.793] one-sided fail, two-sided ambiguous
4 of 4 [0.510, 1.000] one-sided pass, two-sided ambiguous
8 of 10 [0.490, 0.943] one-sided fail, two-sided ambiguous
16 of 20 [0.584, 0.919] one-sided pass, two-sided pass

The output shows that the one-sided rule gives fail for each result from 1 of 5 to 4 of 5. The two-sided rule gives ambiguous for them.

data

verdict thresholds of the two-sided rule for 5 to 50 trials

status of this figure: example

Table for 10 trial counts, 5 to 50. At 5 trials, 5 successes pass, 0 successes fail, and 4 success counts stay ambiguous. At 50 trials, 32 successes pass, 18 or fewer fail, and 13 success counts stay ambiguous.

verdict thresholds of the two-sided rule for 5 to 50 trials
trialsfewest successes for a pass (successes)most successes for a fail (successes)success counts that stay ambiguous (counts)
5 trials504
10 trials917
15 trials1238
20 trials1559
25 trials18710
30 trials21911
35 trials241112
40 trials271313
45 trials301514
50 trials321813

source: My model: two-sided verdict rule with the Wilson interval; date 2026-11-16; condition: A run passes when the lower bound of the 95% interval is 0.5 or more. It fails when the upper bound is under 0.5.

The table is computed from the two-sided verdict rule. For each trial count, it gives the fewest successes that pass, the most successes that fail, and the success counts that stay ambiguous.

The values of the first chart are example values. The band holds more success counts at a larger trial count. But it holds a smaller part of all the possible counts.

run verdicts under the one-sided rule and the two-sided rule

status of this figure: measured by me

run verdicts under the one-sided rule and the two-sided ruleone-sided rule, 387 runstwo-sided rule, 6,992 runs206135611370unit: runs1. pass2. fail3. ambiguous
  1. pass: one-sided rule, 387 runs 176; two-sided rule, 6,992 runs 2061
  2. fail: one-sided rule, 387 runs 211; two-sided rule, 6,992 runs 3561
  3. ambiguous: one-sided rule, 387 runs 0; two-sided rule, 6,992 runs 1370

source: Benchmark platform, data (my test system): run verdicts in two rule periods; date 2026-11-03; sample of 7,379; condition: Under the two-sided rule, a pass is 5 of 5 attempts and a fail is 0 of 5. The one-sided rule has no ambiguous verdict.

data table
run verdicts under the one-sided rule and the two-sided rule
seriesruleruns
passone-sided rule, 387 runs176
passtwo-sided rule, 6,992 runs2061
failone-sided rule, 387 runs211
failtwo-sided rule, 6,992 runs3561
ambiguousone-sided rule, 387 runs0
ambiguoustwo-sided rule, 6,992 runs1370
Each bar counts runs under one rule. Under the one-sided rule, 36 of 387 runs had 1 to 4 passes of 5 and counted as fail. Under the two-sided rule, 19.6% of runs are ambiguous.

The second chart gives measured values from the stored runs of the benchmark platform. It shows the verdicts of each rule period, in pass, fail, and ambiguous. The one-sided rule has no ambiguous part, because it has no third verdict.

failure modes

problemcausecorrection
A configuration that works is published as a failure.The one-sided rule calls each unproven result a fail.Use the two-sided rule. A fail must have an upper bound under 0.5.
Each run is ambiguous.Each run has too few trials, for example one.Put more trials in each run.
A tool with no failed attempt shows a rate of 0%.Ambiguous attempts count as failures.Keep ambiguous attempts out of the denominator.
A run of 4 of 4 passes.The rule has no minimum trial count.Give no pass or fail under 5 trials.
The pass line moves after a set of ambiguous runs.The team reads the band as a fault of the rule.Keep the line. Get more evidence for each ambiguous run.

check questions

  1. A run has 3 successes in 20 trials. The 95% Wilson interval is 0.052 to 0.360. What is its verdict under the two-sided rule?

    1. Pass
    2. Ambiguous
    3. Fail
    answer

    c. Fail

    The upper bound is under 0.5. Thus the run is a proven fail.

  2. A run has 4 successes in 5 trials. Explain why the one-sided rule publishes a false failure for it.

    sample answer

    The one-sided rule reads only the lower bound, 0.376, and calls each result under 0.5 a fail. But the upper bound is 0.964, thus the evidence does not show a weak configuration. The result is unproven because the sample is small. The two-sided rule calls it ambiguous.

  3. A run has 0 passes, 0 fails, and 5 ambiguous attempts. What count goes into the rate?

    1. 0 of 0, thus the run has no bound
    2. 0 of 5, thus the run is a proven fail
    3. 5 of 5, thus the run is a proven pass
    answer

    a. 0 of 0, thus the run has no bound

    An ambiguous attempt is not a failure. It stays out of the denominator. Thus the count is 0 of 0.

  4. A configuration works 80% of the time. Which run is the first in this list to pass under the two-sided rule?

    1. 4 of 5
    2. 8 of 10
    3. 16 of 20
    answer

    c. 16 of 20

    The lower bounds are 0.376, 0.490, and 0.584. Only 16 of 20 has a lower bound of 0.5 or more.

exercise

exercise Give the verdict of three synthetic runs under the one-sided rule and the two-sided rule. Use the first code example, or the Wilson formula with z = 1.96 and a minimum of 5 trials. Use these inputs:

  • Run A: 10 trials, 7 successes.
  • Run B: 20 trials, 3 successes.
  • Run C: 6 attempts: 2 passes, 0 fails, and 4 ambiguous attempts.

For each run, write the counts, the bounds, and the two verdicts.

sample answer

The answer uses the Wilson formula, the two rules, and the inputs of the task.

runcountsboundsone-sidedtwo-sided
A7 of 100.397 to 0.892failambiguous
B3 of 200.052 to 0.360failfail
C2 of 20.342 to 1.000failambiguous

Run C keeps its 4 ambiguous attempts out of the count. Thus it has 2 trials, under the minimum of 5. Only run B is a proven fail. The one-sided rule calls each of the three runs a fail.

sources

  1. My model of the run verdict, the two rules, and the ambiguous band, 2026-11 (not public).
  2. Benchmark platform, data (my test system): run verdicts in two rule periods, 2026-11 (not public).