How SRM detection works
The calculator uses a chi-square goodness-of-fit test to compare observed sample sizes against expected proportions.
For a two-variant test with expected ratio r and total sample N: expected counts are E_A = N × r/(1+r) and E_B = N × 1/(1+r). The chi-square statistic is χ² = Σ(O − E)²/E with 1 degree of freedom. A p-value below 0.001 (the standard threshold) indicates a significant mismatch.
χ² = Σ (Oᵢ − Eᵢ)² / Eᵢ
Chi-square goodness-of-fit statistic for sample counts.