mann_whitney_u
Compare two independent samples non-parametrically to detect systematic differences when t-test assumptions fail. Returns U statistic and p-value for ordinal or skewed data.
Instructions
The non-parametric alternative to two_sample_t_test -- use when that test's own small-n warning makes a normal-theory result suspect, or the data is ordinal/skewed. Tests whether values from sample a are systematically larger or smaller than values from sample b, by ranking the combined data rather than assuming normal populations. statistic is U for sample a; pair with rank_biserial_correlation for a standardized effect size. Returns the same result shape as the parametric tests (statistic, p_value, citation, warnings).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | first independent sample | |
| b | Yes | second independent sample | |
| alpha | No | significance level for the test (and any confidence interval); default 0.05 |