When to use it instead of a t-test
Choose Mann–Whitney when your data is ordinal (ranks, Likert scores), clearly non-normal with a small sample, or has outliers that would distort a mean. With larger samples (n ≳ 30 per group) the t-test is robust and usually preferred for its power; the which-test wizard can help you decide.
What it actually tests
The test asks whether one group's values tend to rank higher than the other's (stochastic dominance). It is often described as comparing medians, but that interpretation is only exact when the two distributions have the same shape — otherwise it compares overall location.
Assumptions
- Independent groups — for paired data use the Wilcoxon signed-rank test instead.
- At least ordinal data that can be ranked.
- Similar distribution shapes if you want a clean median interpretation.
Worked example
Group A satisfaction ratings 3,4,4,5,5 versus Group B 1,2,2,3,4: Group A consistently ranks higher: U = 22.5 and p ≈ 0.043 (normal approximation with a tie correction), so the groups differ at α = 0.05 — though with only five values per group the evidence is modest. Paste two groups above for U and the p-value.
Common mistakes
- Using it on paired data — that calls for the Wilcoxon signed-rank test.
- Always calling it a test of medians — only when shapes match.
- Reaching for it by default — with large, roughly normal samples the t-test has more power.