Interactive engineering lab

Pairwise judge position bias: order flips and a sign test

Compare A-first judging with both-order outcomes, inspect seeded pair decisions, and export the complete synthetic experiment.

By Sandeep Belgavi · Published 2026-11-25 · Prepared 2026-11-24

Synthetic fixtures computed locally. No model or production service is contacted.

Experiment workspace

Decision trace

    The question this experiment answers

    Does a preference for answer position distort a pairwise evaluation? Each synthetic pair is judged twice, once with A first and once with B first. Picks are converted back to candidate identity. The four outcomes distinguish consistent A wins, consistent B wins, first-position wins in both presentations and second-position wins in both. No model is contacted, and no score represents a real model benchmark.

    Change one assumption at a time

    Pairs controls sample size, while Seed chooses reproducible random draws. First-position bias is an assumed log-odds contribution, not a measured parameter. Quality gap sets the assumed magnitude of the A-versus-B quality difference. Share favoring A chooses how often the sign of that difference favors A. The synthetic judge uses a logistic probability and independent draws for the two presentations. Run experiment after changing inputs; the existing result is otherwise the previous run.

    Expected outcomes

    With the defaults, 60 pairs and seed 7 produce 42 A-first wins, 12 consistent A wins, 11 consistent B wins and 37 order-sensitive pairs. Of the flips, 30 select the first position both times and 7 select the second position both times. The conditional sign-test p-value is 1. These exact synthetic counts are regression fixtures, not empirical model findings. Set 200 pairs, bias 4 and zero quality gap to make first-position preference dominate. Set bias 0, quality gap 5 and share favoring A to 1 to favor consistent A wins.

    Read the statistics carefully

    Order disagreement can arise from random draws even when position bias is zero. A nonzero flip rate alone does not prove systematic first-position preference. The sign test uses only consistent A and B wins, excluding flips, and therefore describes that selected subset. It is not the probability that A is correct. Explicit judge ties, refusals and malformed responses are not simulated here; a real evaluation must preserve those categories and its denominator.

    Trace and export

    The paired-outcome table contains every pair. Start trace hides the explanation steps; Next step reveals one; Show all reveals every row; the slider chooses the visible prefix. These controls do not resample the result. Reset inputs restores the documented fixture and recomputes it. Export JSON downloads all inputs, metrics, pair decisions, probabilities, the model version and limitations. Changing an input disables export until the experiment is rerun so stale results are not mistaken for the edited settings.

    Limits and verification

    The fixture assumes one scalar quality gap and independent synthetic draws. Real model judgments can share biases across both presentations and can prefer a wrong answer consistently. These results establish the arithmetic of this model only. The companion guide explains how to freeze a real rubric and task set, keep paired observations together and combine judging with deterministic correctness checks. Views are my own and do not represent any employer, past or present.