Mann Whitney U Test: Definition, How to Run in SPSS

Statistics Definitions >


  1. What is the Mann Whitney Test?
  2. Null Hypothesis
  3. Direct Method
  4. Assumptions
  5. How to run a Mann Whitney Test in SPSS (Video)

What is a Mann Whitney U Test?

The Mann-Whitney U test is the nonparametric equivalent of the two sample t-test. While the t-test makes an assumption about the distribution of a population (i.e. that the sample came from a t-distributed population), the Mann Whitney U Test makes no such assumption.

Null Hypothesis for the Test

The test compares two populations. The null hypothesis for the test is that the probability is 50% that a randomly drawn member of the first population will exceed a member of the second population.

Another option for the null hypothesis is that the two samples come from the same population (i.e. that they both have the same median).

The result of performing a Mann Whitney U Test is a U Statistic. For small samples, use the direct method (see below) to find the U statistic; For larger samples, a formula is necessary. Or, you can use technology like SPSS to run the test.

mann whitney u test
Either of these two formulas are valid for the Mann Whitney U Test. R is the sum of ranks in the sample, and n is the number of items in the sample.

Mann Whitney U Test Direct Method

This method is limited only by how much computation you want to perform. The larger the sample, the more complex the math:

  1. Name the sample with the smaller ranks “sample 1” and the sample with the larger ranks “sample 2”. Choosing the sample with the smaller ranks to be “sample 1” is optional, but it makes the computation easier.
  2. Take the first observation in sample 1. Count how many observations in sample 2 are smaller than it. If the observations are equal, count it as one half. For example, if you have ten that are less and two that are equal: 10 + 2(1/2) = 11.
  3. Repeat Step 2 for all observations in sample 1.
  4. Add up all of your totals from Steps 2 and 3. This is the U statistic.

Assumptions for the Mann Whitney U Test


Comments? Need to post a correction? Please Contact Us.