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 mepurpose
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
- Apply the two-sided verdict rule to a result of
ksuccesses inntrials. - Explain why a one-sided rule publishes false failures.
- Keep ambiguous attempts out of the denominator of a rate.
- 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:
- Pass: the lower bound is 0.5 or more.
- Fail: the upper bound is under 0.5.
- 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 side | detection 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
| option | gain | cost | when it is correct |
|---|---|---|---|
| The one-sided rule | One bound to read | Each unproven result is a published failure. | Never for a published verdict |
| The two-sided rule | A fail must have evidence, as a pass must. | A third verdict that each reader must handle | Each published verdict |
| A minimum of 5 trials | No verdict from a very small run | More runs stay ambiguous. | Each run |
| More trials in each run | Fewer ambiguous runs | More attempts and more load on the target | When the band holds too many runs |
| Ambiguous attempts as failures | A larger count of trials | A tool with no failed attempt can show a rate of 0%. | Never |
| Ambiguous attempts out of the count | The rate counts only results that the oracle can decide. | Fewer trials in the count | Each 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.
| result | lower bound | upper bound | verdict at 0.5 |
|---|---|---|---|
| 0 of 5 | 0.000 | 0.434 | fail |
| 1 of 5 | 0.036 | 0.624 | ambiguous |
| 2 of 5 | 0.118 | 0.769 | ambiguous |
| 3 of 5 | 0.231 | 0.882 | ambiguous |
| 4 of 5 (80%) | 0.376 | 0.964 | ambiguous |
| 5 of 5 | 0.566 | 1.000 | pass |
| 16 of 20 (80%) | 0.584 | 0.919 | pass |
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.
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 passThe 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.
| trials | fewest successes for a pass (successes) | most successes for a fail (successes) | success counts that stay ambiguous (counts) |
|---|---|---|---|
| 5 trials | 5 | 0 | 4 |
| 10 trials | 9 | 1 | 7 |
| 15 trials | 12 | 3 | 8 |
| 20 trials | 15 | 5 | 9 |
| 25 trials | 18 | 7 | 10 |
| 30 trials | 21 | 9 | 11 |
| 35 trials | 24 | 11 | 12 |
| 40 trials | 27 | 13 | 13 |
| 45 trials | 30 | 15 | 14 |
| 50 trials | 32 | 18 | 13 |
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 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
- pass: one-sided rule, 387 runs 176; two-sided rule, 6,992 runs 2061
- fail: one-sided rule, 387 runs 211; two-sided rule, 6,992 runs 3561
- 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
| series | rule | runs |
|---|---|---|
| pass | one-sided rule, 387 runs | 176 |
| pass | two-sided rule, 6,992 runs | 2061 |
| fail | one-sided rule, 387 runs | 211 |
| fail | two-sided rule, 6,992 runs | 3561 |
| ambiguous | one-sided rule, 387 runs | 0 |
| ambiguous | two-sided rule, 6,992 runs | 1370 |
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
| problem | cause | correction |
|---|---|---|
| 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
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?
- Pass
- Ambiguous
- Fail
answer
c. Fail
The upper bound is under 0.5. Thus the run is a proven fail.
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.
A run has 0 passes, 0 fails, and 5 ambiguous attempts. What count goes into the rate?
- 0 of 0, thus the run has no bound
- 0 of 5, thus the run is a proven fail
- 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.
A configuration works 80% of the time. Which run is the first in this list to pass under the two-sided rule?
- 4 of 5
- 8 of 10
- 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.
| run | counts | bounds | one-sided | two-sided |
|---|---|---|---|---|
| A | 7 of 10 | 0.397 to 0.892 | fail | ambiguous |
| B | 3 of 20 | 0.052 to 0.360 | fail | fail |
| C | 2 of 2 | 0.342 to 1.000 | fail | ambiguous |
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
- My model of the run verdict, the two rules, and the ambiguous band, 2026-11 (not public).
- Benchmark platform, data (my test system): run verdicts in two rule periods, 2026-11 (not public).