FAILURE MAP
← Case archive

FA-74348 / Experiment statistics / Member archive

Sample ratio mismatch check: Design weights are assumed to be equal · case 03

A deliberate 2:1 allocation is flagged as a sample ratio mismatch on every readout.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

counts and weights are per-arm lists. Expected count = total * w / sum(weights). chi2 sums (observed - expected)^2 / expected over positive-weight arms; any unit in a zero-weight arm is an immediate mismatch [None, True]. df = number of positive-weight arms - 1; mismatch iff chi2 exceeds the alpha = 0.001 critical value (10.828, 13.816, 16.266, 18.467, 20.515 for df 1..5). No units or df < 1 -> [0.0, False]. Return [round(chi2, 6), mismatch].

Why this case matters

SRM checks are the first gate on any experiment readout; a broken check hides assignment bugs.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
drained arm does not loosen the threshold[1684.006667, true][11.56, true]Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗