Back to Data Scientist Mind Map
中文·English
📈 Data ScientistID: ds-srm-sample-ratio-mismatch-detection

SRM Detection & Chi-Square Diagnostics

样本比例失衡 SRM 卡方检测排查
🎯Core Definition
Sample Ratio Mismatch (SRM) Detection & Root-Cause Diagnostics serves as the primary health-check guardrail in online experimentation platforms; SRM occurs when the observed sample counts between control and treatment (OT,OCO_T, O_C) deviate with extreme statistical significance from design traffic ratios (expected ET,ECE_T, E_C, e.g. 50/50); Detection uses Pearson's Chi-Square Goodness-of-Fit test: χ2=(OiEi)2Ei\chi^2 = \sum \frac{(O_i - E_i)^2}{E_i} (df=1df = 1); if χ2>3.84\chi^2 > 3.84 (p<0.001p < 0.001), the entire experiment is fundamentally invalid and must be terminated immediately; SRM signals critical underlying engineering defects (e.g. redirect tracking loss, client-side crash drops, bot traffic skew, or performance latency timeouts dropping slow connections).
💡Use Cases
Automated experimentation platform guardrail checks, experimental validity auditing, and debugging engineering instrumentation bugs.
Key Problems Solved
Eliminates catastrophic false discoveries (e.g. a variant appearing to 'win' because a client bug crashed low-end devices, artificially leaving only high-spending users in the bucket).
🎯5 High-Frequency Exam Points
1
Derive the simplified Chi-Square statistic χ2=(NTNC)2NT+NC\chi^2 = \frac{(N_T - N_C)^2}{N_T + N_C} for symmetric 50/50 split SRM verification?
2
Detail the 4 root-cause categories of SRM: Tracking Loss, Crash Dropouts, Latency Timeouts, and Bot Skew with diagnostic steps?
3
Explain how latency-induced dropouts create Survivorship Bias, converting a disastrous UX regression into a phantom metric lift?
4
Why must user randomization logs trigger precisely at feature exposure rather than generic app launch to prevent dilution and SRM?
5
Why does industry strictly mandate discarding SRM-compromised experiments rather than attempting post-hoc statistical weighting corrections?
Updated 2026-08-14
🎯
Test Your Knowledge: Practice Questions for "SRM Detection & Chi-Square Diagnostics"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardCUPED Variance Reduction DerivationNext CardA/A Testing & Hash Bucketing Uniformity

🔗 More Data Scientist Knowledge Cards

Hypothesis Testing, Type I/II & PowerSample Size Derivation & MDE BudgetP-hacking, Peeking & mSPRT SequentialMultiple Comparisons: FWER vs FDR-BH