Frequentist
frequentist
Frequentist parametric and non-parametric statistical tests.
This module provides standard frequentist testing engines, implementing Welch's t-test for unequal variances (with Satterthwaite degrees of freedom) and the non-parametric Mann-Whitney U rank-sum test.
| FUNCTION | DESCRIPTION |
|---|---|
run_welch_t_test |
Performs Welch's t-test for difference of means with unequal variances. |
run_mann_whitney_u |
Performs nonparametric Mann-Whitney U test for ordinal or non-normal continuous data. |
run_welch_t_test
Performs Welch's t-test for difference of means with unequal variances.
Welch's t-test is a two-sample location test used to test the hypothesis that two populations have equal means (\(H_0: \\mu_A = \\mu_B\)). Unlike Student's t-test, Welch's t-test does not assume equal variances, making it the standard default for digital and scientific A/B testing.
| PARAMETER | DESCRIPTION |
|---|---|
group_a
|
Array of numeric outcomes for control (Group A).
TYPE:
|
group_b
|
Array of numeric outcomes for treatment (Group B).
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
dict
|
A dictionary containing:
-
TYPE:
|
Source code in src\xpyrment\analyze\inference\frequentist.py
run_mann_whitney_u
Performs nonparametric Mann-Whitney U test for ordinal or non-normal continuous data.
The Mann-Whitney U test evaluates the null hypothesis that the probability that a randomly drawn observation from Group B is larger than a randomly drawn observation from Group A is equal to 0.5. This test is non-parametric; it does not assume normality, making it extremely robust against extreme outliers.
| PARAMETER | DESCRIPTION |
|---|---|
group_a
|
Array of numeric outcomes for control (Group A).
TYPE:
|
group_b
|
Array of numeric outcomes for treatment (Group B).
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
dict
|
A dictionary containing:
-
TYPE:
|