SRMResult
Result of a Sample Ratio Mismatch (SRM) check.
Attributes
- chi2 (
float) – The calculated chi-square statistic. - p_value (
float) – The p-value of the test, rounded to 5 decimals. - expected (
dict[Hashable, float]) – Expected counts for each variant. - observed (
dict[Hashable, int]) – Observed counts for each variant. - alpha (
float) – Significance level used for the check. - is_srm (
bool) – True if an SRM was detected (chi-square p-value < alpha), False otherwise. - warning (
str or None) – Warning message if the test assumptions might be violated (e.g., small expected counts).