INSTRUMENT | Eval statistics
LLM Eval A/B Comparator: Paired Difference with Bootstrap CIs
4 cited sources
Run an LLM eval A/B test on paired graded scores: mean score difference with a bootstrap confidence interval, paired effect size, and win/tie/loss evidence.
Paste graded scores for the same items under a baseline and a candidate, and read the mean difference with a bootstrap confidence interval. Scoring every item under both systems makes a small difference readable; whether the comparison can be paired is settled before the runs. Pass or fail outcomes belong in McNemar's paired binary test instead.
Whether a delta is real, and how many runs it takes, are worked through in the eval significance walkthrough and the run-count derivation.
Showing your last valid result. Update the inputs above to recompute.
Mean score difference (candidate minus baseline)
+0.358
95% BCa bootstrap interval +0.142 to +0.55 across 12 pairs (seed 42, 10,000 resamples).
Difference and uncertainty
| Metric | Value | 95% interval |
|---|---|---|
| Baseline mean | 3.5 | |
| Candidate mean | 3.858 | |
| Mean difference (BCa) | +0.358 | +0.142 to +0.55 |
| Percentile interval, for contrast | +0.15 to +0.558 | |
| Median difference | +0.45 | |
| SD of differences | 0.373 | |
| Cohen's dz (percentile interval) | +0.96 | +0.42 to +2.11 |
Win, tie, loss evidence
| Metric | Value | 95% interval |
|---|---|---|
| Candidate wins | 8 | |
| Ties (margin 0) | 1 | |
| Baseline wins | 3 | |
| Win rate among decisive pairs | 72.7% | 43.4% to 90.3% |
| Exact sign test p (two-sided) | 0.227 | |
| Rank-biserial correlation | +0.82 |
mean diff = mean of (candidate minus baseline); CI = BCa bootstrap; dz = mean/sd of differencesHow?
How this is calculated
The paired design. Both columns must score the same items in the same order, because everything here runs on the per-item differences. Pairing subtracts each item's own difficulty out of the comparison, which is what makes a small eval set informative at all. If your outcomes are pass/fail rather than graded scores, the paired binary test belongs in the McNemar test calculator instead.
The bootstrap, and which interval is reported. The tool resamples the n differences with replacement B times (a case resample of the pairs) and reads confidence bounds off the resampled means. The headline interval is Efron's bias-corrected and accelerated (BCa) interval, which adjusts the plain percentile interval for median bias and for skew in the differences; the uncorrected percentile interval is shown one row below so the size of the correction is visible. Quantiles interpolate linearly between order statistics. Resampling uses a seeded deterministic generator, so the same data, seed, and resample count reproduce the same bounds exactly. In the rare case where the BCa correction is undefined, the tool reports the percentile interval and says so.
Effect size. Cohen's dz is the mean difference divided by the standard deviation of the differences: the paired-design effect size, on the standardized scale where 0.2, 0.5, and 0.8 are the conventional small, medium, and large landmarks. It is not comparable to a between-groups d, because the paired denominator excludes between-item spread. Its interval is the percentile interval of dz over the same resamples; BCa is reserved for the mean, where the jackknife acceleration is stable. With few pairs or coarse scores, some resamples can have zero spread, and the tool then withholds the dz interval rather than compute it from a censored set.
Win, tie, loss evidence. A pair counts as a candidate win when its difference exceeds the tie margin, a loss when it falls below the negative margin, and a tie in between. The sign test is the exact two-sided binomial test on wins versus losses with ties excluded, the standard treatment. The decisive win rate carries a Wilson score interval, and the rank-biserial correlation summarizes how one-sided the signed ranks of the differences are, from -1 to +1.
Ordinal scores. A mean of 1-to-5 judge ratings treats the step from 3 to 4 as equal to the step from 4 to 5, which the scale does not promise. The sign test, the win rate, and the rank-biserial correlation use only the direction and ordering of differences, so they survive that objection. When the mean-based and rank-based readings disagree on an ordinal scale, weight the rank-based ones.
Worked example. The preloaded 12 pairs give a mean difference of +0.358 with a 95% BCa interval of +0.142 to +0.55: the interval clears zero, so the candidate's advantage is unlikely to be item-sampling luck. The sign test on the same data reads 8 wins to 3 losses, p = 0.227, and fails to reach significance, because it discards the sizes of the differences and eleven decisive pairs are too few for direction alone to decide. Both readings are correct answers to different questions.
Honest limits. The interval covers one source of uncertainty: which items ended up in the eval set. It sees one score per item per system, so rerun-to-rerun noise inside either system is invisible to it; scoring each system once is a modeling choice this tool inherits from your data. Below roughly 20 pairs, bootstrap intervals tend to run narrow. Bounds also move slightly with the seed and resample count, which is ordinary Monte Carlo error; more resamples shrink it. The companion pieces on when an eval delta is statistically real and how many runs a reliable eval needs cover the decision this number feeds.
Formula: mean diff = mean of (candidate minus baseline); CI = BCa bootstrap; dz = mean/sd of differences
Questions
My eval went up 0.4 on a 1-to-5 rubric. Is that real?
The interval on the mean difference answers that; the headline number on its own cannot. An interval that sits clear of zero means the gain is unlikely to be item-sampling luck. An interval that straddles zero means this item set cannot tell a move that size from the noise floor, and a drop of the same size reads the same way in reverse. Small deltas on small eval sets usually land inside that noise. To size the eval set before you run it, the sample size and power calculator turns a target difference into an item count.
Should I use a paired test or an unpaired one?
Paired, whenever both systems scored the same items. Pairing subtracts each item's own difficulty out of the comparison, which is what makes a small eval set informative at all, and this tool assumes that design. Two systems scored on different item sets are an unpaired comparison, and the wider independent-sample bounds that case needs live in the benchmark rank uncertainty calculator, pasted as mean and standard error. If those unpaired outcomes are pass or fail rather than graded, the two rates go to the independent two-proportion test instead. Within a paired design the split is by outcome type: graded scores here, binary pass/fail in the paired binary test for pass/fail evals. Scores that are secretly binary (all 0s and 1s) belong there too.
The sign test and the confidence interval disagree. Which do I report?
They answer different questions from different parts of the data. The interval on the mean uses the sizes of the differences; the sign test uses only their directions and discards magnitude, which costs power on small samples. A candidate that wins often by a little and loses rarely by a little can clear the interval test while the sign test stays inconclusive. Report the one that matches the claim you are making, and say which you chose.
Can I just average my 1-to-5 judge ratings?
Averaging an ordinal scale assumes its steps are equally spaced, which judge rubrics rarely guarantee. The mean difference is still a useful summary and is standard practice, but read it beside the rank-based evidence this tool reports: the win rate, the sign test, and the rank-biserial correlation need only the ordering of scores. Agreement between the two readings is reassuring; disagreement on an ordinal scale is a reason to trust the rank-based reading.
Why do the interval bounds move when I change the seed?
The bootstrap estimates its quantiles from a finite number of resamples, so the bounds carry Monte Carlo error that varies with the random sequence. The movement should be small at 10,000 resamples; if a decision hinges on the third decimal of a bound, raise the resample count rather than hunting for a favorable seed. The seed exists so a reported interval can be reproduced exactly, and reporting the seed and resample count alongside the interval is good practice.
Sources
- Efron (1987), Better Bootstrap Confidence Intervals (the BCa interval)
- Efron and Tibshirani (1993), An Introduction to the Bootstrap
- Cohen (1988), Statistical Power Analysis for the Behavioral Sciences (2nd ed.)
- Kerby (2014), The Simple Difference Formula: An Approach to Teaching Nonparametric Correlation