# Mann-Whitney U-Test

### Mann-Whitney-Wilcoxon (MWW)

Wilcoxon Rank-Sum Test

### Mann-Whitney-Wilcoxon (MWW)<br>Wilcoxon Rank-Sum Test

Non-parametric tests are basically used in order to overcome the underlying assumption of normality in parametric tests. Quite general assumptions regarding the population are used in these tests.

## This article is a part of the guide:

Discover 34 more articles on this topic## Browse Full Outline

- 1Statistical Hypothesis Testing
- 2Relationships
- 3Correlation
- 4Regression
- 5Studentâ€™s T-Test
- 6ANOVA
- 7Nonparametric Statistics
- 8Other Ways to Analyse Data

A case in point is the Mann-Whitney U-test (Also known as the Mann-Whitney-Wilcoxon (MWW) or Wilcoxon Rank-Sum Test). Unlike its parametric counterpart, the t-test for two samples, this test does not assume that the difference between the samples is normally distributed, or that the variances of the two populations are equal. Thus when the validity of the assumptions of t-test are questionable, the Mann-Whitney U-Test comes into play and hence has wider applicability.

## The Method

The Mann-Whitney U-test is used to test whether two independent samples of observations are drawn from the same or identical distributions. An advantage with this test is that the two samples under consideration may not necessarily have the same number of observations.

This test is based on the idea that the particular pattern exhibited when 'm' number of X random variables and 'n' number of Y random variables are arranged together in increasing order of magnitude provides information about the relationship between their parent populations.

The Mann-Whitney test criterion is based on the magnitude of the Y's in relation to the X's, i.e. the position of Y's in the combined ordered sequence. A sample pattern of arrangement where most of the Y's are greater than most of the X's or vice versa would be evidence against random mixing. This would tend to discredit the null hypothesis of identical distribution.

## Assumptions

The test has two important assumptions. First the two samples under consideration are random, and are independent of each other, as are the observations within each sample. Second the observations are numeric or ordinal (arranged in ranks).

## How to Calculate the Mann-Whitney U

In order to calculate the U statistics, the combined set of data is first arranged in ascending order with tied scores receiving a rank equal to the average position of those scores in the ordered sequence.

Let T denote the sum of ranks for the first sample. The Mann-Whitney test statistic is then calculated using U = n1 n2 + {n1 (n1 + 1)/2} - T , where n1 and n2 are the sizes of the first and second samples respectively.

## An Example

An example can clarify better. Consider the following samples.

Sample A | |||||||
---|---|---|---|---|---|---|---|

Observation | 25 | 25 | 19 | 21 | 22 | 19 | 15 |

Rank | 15.5 | 15.5 | 9.5 | 13 | 14 | 9.5 | 3.5 |

Sample B | |||||||||
---|---|---|---|---|---|---|---|---|---|

Observation | 18 | 14 | 13 | 15 | 17 | 19 | 18 | 20 | 19 |

Rank | 6.5 | 2 | 1 | 3.5 | 5 | 9.5 | 6.5 | 12 | 9.5 |

Here, T = 80.5, n1 = 7, n2 = 9.Hence, U = (7 * 9) + [{7 * (7+1)}/2] - 80.5 = 10.5.

We next compare the value of calculated U with the value given in the Tables of Critical Values for the Mann-Whitney U-test, where the critical values are provided for given n1 and n2 , and accordingly accept or reject the null hypothesis. Even though the distribution of U is known, the normal distribution provides a good approximation in case of large samples.

## Hypothesis On Equality of Medians

Often this statistic is used to compare a hypothesis regarding equality of medians. The logic is simple - since the U statistic tests if two samples are drawn from identical populations, equality of median follow.

## As a Counterpart of T-Test

The Mann-Whitney U test is truly the non parametric counterpart of the two sample t-test. To see this, one needs to recall that the t-test tests for equality of means when the underlying assumptions of normality and equality of variance are satisfied. Thus the t-test tests if the two samples have been drawn from identical normal population. The Mann-Whitney U test is its generalization.

.## Comments

## Related articles

.Explorable.com (Apr 27, 2009). Mann-Whitney U-Test. Retrieved Aug 11, 2017 from Explorable.com: https://explorable.com/mann-whitney-u-test

## Want to stay up to date? Follow us!

.## Footer bottom

*Wilson Mizner: "If you steal from one author it's plagiarism; if you steal from many it's research."*Don't steal, do research.