Mann-Whitney Non Parametric U Test

The preferred non-parametric method for unpaired samples is the Mann-Whitney non parametric hypothesis test or Mann-Whitney test (it is also called as Wilcoxon Rank Sum Test or the Mann-Whitney Wilcoxon Test) and thus the non parametric solution to evaluating two independent datasets comparable to the Student’s T-test.

The Mann-Whitney U test is a non-parametric statistical test used to compare two independent samples. It assesses whether the distribution of values in one sample is stochastically greater or less than the distribution of values in another sample. This test does not specifically compare sample means, but rather it evaluates whether the two samples come from the same population or if one tends to have higher values than the other.

A few researchers also interpret the Mann-Whitney test will help to compare the medians of the two populations. Usually, parametric tests will compare the means (Null hypothesis: μ1=μ2) between the independent groups. Whereas, the null hypotheses and the two-sided hypotheses non-parametric tests can be indicated as follows:

  • Null Hypotheses H0: Two populations are equal
  • Alternative Hypotheses H1: Two populations are not equal.

The Mann-Whitney test is regularly performed as a two-sided test, therefore the investigative hypothesis indicates that the two populations are not equal, instead of specifying the directionality.

Assumptions of the Mann-Whitney:

  • The sample drawn from the population is random.
  • Independence within the samples and also mutual independence is assumed.  That means that an observation is in one group or in the other (it cannot be in both).
  • Identical (non-normal) distributions
  • An Ordinal measurement scale is assumed.

Uses of Mann-Whitney

Mann-Whitney U test is can be used for every industry. But is more frequently used in healthcare, nursing, business, and also many other disciplines.  In medicine, it is a more efficient method to know the effect of two medicines and whether they are equal or not.  It is also used to know whether or not a particular medicine cures an ailment or not. 

Procedure to conduct Mann-Whitney test

  • Combine two samples of data together, and sort the data in ascending order
  • Convert data to ranks (1, 2, 3,… Y)
  • Separate ranks back into two samples
  • Compute the test statistic, U
  • Determine the critical value of U from the Mann-Whitney table
  • Finally, Formulate a decision and conclusion

Calculation of Mann-Whitney Test

Case 1: For comparing two small sets of observations (samples sizes less than 20)

U1 = n1n2+0.5n1(n1+1)-R1

U2 = n1n2+0.5n2(n2+1)-R2

Where U1+U2=n1n2

  • n1 is the observations from the first population
  • n2 is the observations from the second population
  • R1 is the sum of observation ranks for the first population
  • R2 is the sum of observation ranks for the second population

Finally, calculate the U statistic as the smaller U1 and U2. U= min (U1, U2)

Case2: Normal approximation and tie correction

For sample sizes above ~20, the distribution of U rapidly approaches the normal distribution

U mean = μU =0.5 n1n2

Example of Mann-Whitney Test

A researcher, while conducting studies on the Biomass of various trees, wished to determine if there was a difference in the biomass of male and female Juniper trees. So, he randomly selected 6 individuals of each gender from the field. He dries them to constant moisture, chips them, and then weighs them to the nearest kg.

  • H0: There is no difference between the biomass of male and female Juniper trees– Biomassmale = Biomassfemale (medians are equal)
  • H1: There is a difference between the biomass of male and female Juniper trees– Biomassmale ≠ Biomassfemale (medians are not equal)

The data are ratings (ordinal data), and hence a non-parametric test is appropriate – the Mann-Whitney U test (the non-parametric counterpart of an independent measures t-test).

  • n1 =6
  • n2 =6
  • R1 = 1.5 + 3 + 5.5 + 7.5 + 4 + 1.5 = 23
  • R2 = 5.5 + 11 + 10 + 12 + 9 + 7.5 = 55

And then calculate U1 and U2

  • U1 = n1n2+0.5n1(n1+1)-R1 = 6 *6 + 0.5 * 6(7) – 23 = 34
  • U2 = n1n2+0.5n2(n2+1)-R2 = 6 * 6 + 0.5 * 6(7) – 55 = 2

U= min (U1, U2) = 2

Mann-Whitney Table: For Two-Tailed Test at a 5% Significance Level

Mann-Whitney Non Parametric Hypothesis test table

Ucritical = 5

Calculated U is a value less than the critical value of U for a 0.05 significance level. Ucalculated < Ucritical . Hence, we can reject the null hypothesis.

So, we can say there is a highly significant difference between male and female Juniper trees’ biomass.

Six Sigma Black Belt Certification Mann-Whitney Test Questions:

Question: Which of the following test is calculated by ranking all the participant’s scores from lowest to highest and adding up the ranks separately for each of the groups?

(A) Wilcoxon signed rank test
(B) Kruskal Wallis test
(C) Mann-Whitney test
(D) Friedman Test

Answer:

Unlock Additional Members-only Content!

To unlock additional content, please upgrade now to a full membership.
Upgrade to a Full Membership
If you are a member, you can log in here.

Thank You for being a Member!

Here’s some of the bonus content that is only available to you as a paying member.

C. In the Mann-Whitney test, combine two data sets and then arrange the observations in ascending order. Rank the two groups, similarly if it ties average their rank numbers.

Comments (14)

“Mann-Whitney test is a non-parametric test that is to compare two sample means”
How come Non-parametric test and used to compare means?

Hi Mohamed,

I think you’re asking why you would use a non-parametric test to test means. I’ll answer that. If you had a different question in mind, just leave another comment.

You would use a non-parametric test of means when the distribution you’re testing against isn’t normal.

Best, Ted.

“Calculated U is value less than the critical value of U for a 0.05 significance level. Ucalculated Shouldn’t it means reject null instead?

I agree with you. The following sentence means that the null hypothesis was rejected.

> So, we can say that seem like there is a highly significant difference between biomass of male and female Juniper trees.

Thank you.

Those disagreements between the conclusions in the same articles are really annoying. Led to massive misunderstanding!

Hi Ted

I have juste a question please
I observe that there is a lot of reference of certification
Like IASSC, ASQ, 6 sigma study , councel six sigma
in your point of views which certifications better ,
and what reference should we avoid

I am somewhat confused.

In Paired T Test, when the calculated statistic is below the Critical value, we fail to reject it.

In non-parametric Mann Whitney, when calculated statistic is below the Critical value, we reject it?

Hello mohamed ramzi bentoumi,

The Mann-Whitney U test is used to compare differences between two independent groups. It is the non-parametric counter part to the t-test for the independent samples. t-test checks is there a difference in mean. In other hand, Mann-Whitney U test checks is the difference in the rank sum. When we have two groups, we check is there a difference in rank sum of the first group and the second group. Please refer article on how to calculate the rank sum.

Thanks

Hi meshach

Independent non-parametric tests:

Mann-Whitney U test
Kruskal-Wallis test
Friedman test
Kolmogorov-Smirnov test

Dependent non-parametric tests:

Wilcoxon signed-rank test
Sign test
McNemar’s test
Friedman’s test with repeated measures

Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.