Comparison to Student's t-test The Mann–Whitney
U test tests a null hypothesis that the
probability distribution of a randomly drawn observation from one group is the same as the probability distribution of a randomly drawn observation from the other group against an alternative that those distributions are not equal (see Mann–Whitney U test#Assumptions and formal statement of hypotheses). In contrast, a
t-test tests a null hypothesis of equal means in two groups against an alternative of unequal means. Hence, except in special cases, the Mann–Whitney
U test and the t-test do not test the same hypotheses and should be compared with this in mind. ;Ordinal data: The Mann–Whitney
U test is preferable to the
t-test when the data are
ordinal but not interval scaled, in which case the spacing between adjacent values of the scale cannot be assumed to be constant. ;Robustness:As it compares the sums of ranks, the Mann–Whitney
U test is less likely than the
t-test to spuriously indicate significance because of the presence of
outliers. However, the Mann–Whitney
U test may have worse
type I error control when data are both heteroscedastic and non-normal. ;Efficiency:When normality holds, the Mann–Whitney
U test has an (asymptotic)
efficiency of 3/ or about 0.95 when compared to the
t-test. For distributions sufficiently far from normal and for sufficiently large sample sizes, the Mann–Whitney
U test is considerably more efficient than the
t. This comparison in efficiency, however, should be interpreted with caution, as Mann–Whitney and the t-test do not test the same quantities. If, for example, a difference of group means is of primary interest, Mann–Whitney is not an appropriate test. The Mann–Whitney
U test will give very similar results to performing an ordinary parametric two-sample
t-test on the rankings of the data.
Different distributions The Mann–Whitney
U test is not valid for testing the null hypothesis P(Y>X)+0.5P(Y=X)= 0.5 against the alternative hypothesis P(Y>X)+0.5P(Y=X)\neq 0.5, without assuming that the distributions are the same under the null hypothesis (i.e., assuming F_1=F_2). Specifically, under the more general null hypothesis P(Y>X)+0.5P(Y=X)= 0.5, the Mann–Whitney
U test can have inflated type I error rates even in large samples (especially if the variances of two populations are unequal and the sample sizes are different), a problem the better alternatives solve. As a result, it has been suggested to use one of the alternatives (specifically the Brunner–Munzel test) if it cannot be assumed that the distributions are equal under the null hypothesis. In that situation, the
unequal variances version of the
t-test may give more reliable results. Similarly, some authors () suggest transforming the data to ranks (if they are not already ranks) and then performing the
t-test on the transformed data, the version of the
t-test used depending on whether or not the population variances are suspected to be different. Rank transformations do not preserve variances, but variances are recomputed from samples after rank transformations. The
Brown–Forsythe test has been suggested as an appropriate non-parametric equivalent to the
F-test for equal variances. A more powerful test is the
Brunner-Munzel test, outperforming the Mann–Whitney
U test in case of violated assumption of exchangeability. The Mann–Whitney
U test is a special case of the
proportional odds model, allowing for covariate-adjustment. See also
Kolmogorov–Smirnov test. ==Related test statistics==