Login
📚 Mostly Harmless Statistics
Chapters ▾
⇩ Download ▾

13.5 Mann-Whitney U Test

The Mann-Whitney U Test is the non-parametric alternative to the independent t-test. The test was expanded on Frank Wilcoxon’s Rank Sum test by Henry Mann and Donald Whitney.

Black and white portrait photograph of Henry Mann.
Henry Mann

The independent t-test assumes the populations are normally distributed. When these conditions are not met, the Mann-Whitney Test is an alternative method.

If two groups come from the same distribution and were randomly assigned labels, then the two different groups should have values somewhat equally distributed between the two groups. The Mann-Whitney Test looks at all the possible rankings between the data points. For large sample sizes, a normal approximation of the distribution of ranks is used.

Small Sample Size Case (n20)

Combine the data from both groups and sort from smallest to largest. Make sure to label the data values so you know which group they came from. Rank the data. Sum the ranks separately from each group. Let R1 = sum of ranks for group one and R2 = sum of ranks for group two.

Find the U statistic for both groups: U1=R1n1(n1+1)2,U2=R2n2(n2+1)2.

The test statistic U=Min(U1,U2) is the smaller of U1 or U2. Critical values are found given in the tables in Figures 13-6 (α=0.05) and 13-7 (α=0.01).

Figure 13-8: Critical Values for 2-Tailed Mann-Whitney U Test for α=0.05
n 2
n 1 234567891011121314151617181920
2------0000111112222
3---0112233445566778
4--01234456789101111121313
5-012356789111213141517181920
6-123568101113141617192122242527
7-1356810121416182022242628303234
8024681013151719222426293134363841
90247101215172123262831343739424548
100358111417202326293336394245485255
110369131619232630333740444751555862
1214711141822262933374145495357616569
1314812162024283337414550545963677276
1415913172226313640455055596467747883
15151014192429343944495459647075808590
16161115212631374247535964707581869298
172611172228343945515763677581879399105
1827121824303642485561677480869399106112
19271319253238455258657278859299106113119
202814202734414855626976839098105112119127
Figure 13-9: Critical Values for 2-Tailed Mann-Whitney U Test for α=0.01
n 2
n 1 234567891011121314151617181920
2-----------------00
3-------000111222233
4----001122334556678
5---01123456778910111213
6--0123456791011121315161718
7--013467910121315161819212224
8--1246791113151718202224262830
9-013579111316182022242729313336
10-0246911131618212426293134373942
11-02571013161821242730333639424546
12-13691215182124273134374144475154
13-137101317202427313438424549535660
14-147111518222630343842465054586367
15-258121620242933374246515560646973
16-259131822273136414550556065707479
17-2610151924293439444954606570758186
18-2611162126313742475358647075818792
1903712172228333945515663697481879399
20038131824303642465460677379869299105

If U is less than or equal to the critical value, then reject H0. Dashes indicate that the sample is too small to reject H0.

If you have only sample size above 20, use the following online calculator to find the critical value: https://www.socscistatistics.com/tests/mannwhitney/default.aspx.

Large Sample Size Case (n1>20 and n2>20)

Find the U statistic for both groups: U1=R1n1(n1+1)2, U2=R2n2(n2+1)2.

Let U=Min(U1,U2), the smaller of U1 or U2. The formula for the test statistic is:

z=(U(n1·n22))n1·n2(n1+n2+1)12

There are no shortcut keys on the TI calculators or Excel for this Nonparametric Test. Note that if your data has tied ranks, there are several methods not addressed in this text, to correct the standard deviation. Hence, the z-score in some software packages may not match your results calculated by hand.

Adapted from Mostly Harmless Statistics by Rachel Webb (Portland State University), hosted on LibreTexts (stats.libretexts.org) and licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.