When to use it
You want to compare two independent groups but the data are not normal, are ordinal, or contain outliers.
When not to: The data are roughly normal (the two-sample/Welch's t-test is more powerful in that case), the two measurements are paired or matched on the same subjects (use the Wilcoxon signed-rank test instead), or more than two groups are being compared (use Kruskal-Wallis).
Step by step
Open it from the menu
Click Analyze in the menu bar; under Nonparametric choose Mann-Whitney U Test.
Fill in the form
Choose the columns: What you measured, The two groups. The form lists only columns whose type fits each field.
Check the options
The options start at their defaults: How strict to be, What you expect, Small-step correction. Change one only when your question needs it.
Run the analysis
Press Run analysis. The Result Card opens on its Results tab.
What to choose in the form
| What you measured Numeric Var required | One numeric or ordered categorical column. A number or ordered column. The two groups are compared by ranks, not averages. |
|---|---|
| The two groups Group Var required | One categorical column. A column with exactly two kinds. With three or more groups, use the Kruskal-Wallis Test. |
| How strict to be Alpha | The cut-off for the p-value. Below it, the card reports evidence of a difference; a smaller cut-off is stricter. Not sure? Keep 0.05. It is the usual convention in most fields. |
| What you expect Alternative | two-sided: different in either direction. less: group 1 (first alphabetically) lower. greater: group 1 higher. Choose a direction only if decided beforehand. Not sure? Keep two-sided. It is the usual choice because it does not assume a direction. |
| Small-step correction Continuity correction | Adjusts the approximate p-value by half a step (continuity correction). It changes nothing when the exact p-value is used. Not sure? Keep it on. It is the usual default and slightly more careful. |
How to read the card
The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.
What it assumes
- Independence of observations
If it does not hold: Mann-Whitney assumes observations in and across groups are independent; violating this invalidates the test regardless of the shape check.
How to check: Not checked by KernelStats: assumed from the study design; stated directly as a standing reminder.
A worked example
Comparing satisfaction scores between customers who received staff training and those who did not (n1=42, n2=38).
Result: U = 1102, normal-approximation p-value (with continuity correction) = .003; rank-biserial r = 0.38 (medium effect), median1 = 8, median2 = 6.
Customers who received staff training tend to rank higher on satisfaction than those who did not, with a medium-sized effect. Because both groups exceed 8 observations, the normal-approximation route applies automatically rather than the exact permutation route, and the card names this explicitly so the p-value's provenance is never ambiguous.
From the Statistics Library.
The code tabs
Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.
Understand the statistics
Ask Oobi
Type one of these into Ask Oobi beside your data:
- Do customers who received staff training report higher satisfaction scores than those who did not?
- Explain the Mann-Whitney U test in plain words.
- What does rank-biserial correlation mean?
Last reviewed November 16, 2026.
