You are on page 1of 7

Mann-Whitney U test

pair no. S. male


P. male
thorax
thorax
width
width
1
4
2.8
2
3
2.7
3
2.6
2.6
4
3.85
2.7
5
2.65
2.6
6
2.7
2.6
7
2.85
2.7
8
2.85
2.8
9
3.2
2.9
10
2.9
2.6

Mann-Whitney U test

Push this to
sort the data in
an ascending
order

Mann-Whitney U test
rank
3
6
8.5
13.5
13.5
15.5
17
18
19
20

S. male
thorax
width
2.6
2.65
2.7
2.85
2.85
2.9
3
3.2
3.85
4

rank

Rank both lists as one combined list


I found this a time consuming task

3
3
3
3
8.5
8.5
8.5
11.5
11.5
15.5

P. male
thorax
width
2.6
2.6
2.6
2.6
2.7
2.7
2.7
2.8
2.8
2.9

Mann-Whitney U test
rank
3
6
8.5
13.5
13.5
15.5
17
18
19
20
R1=

S. male
thorax
width
2.6
2.65
2.7
2.85
2.85
2.9
3
3.2
3.85
4
30.6

rank
3
3
3
3
8.5
8.5
8.5
11.5
11.5
15.5
R2=

Sum the ranks for each sample


N1= # obs in 1

N2= # obs in 2

P. male
thorax
width
2.6
2.6
2.6
2.6
2.7
2.7
2.7
2.8
2.8
2.9
26.9

Mann-Whitney U test
Normally you would now use the formulas
and chart in the Brown reading.

U1=(N1)(N2)+[(N1)(N1+1)]/2 R1
U2=(N1)(N2)+[(N2)(N2+1)]/2 R2

U1=124.4
U2=128.2

However the sample size is larger than the


table will allow because any sample greater
than 20 can be assumed to mimic normality
We therefore use the equation to convert the
U statistic to a Z- score.

Mann-Whitney U test
U1=124.4
U2=128.2

N1=10
N2=10

Z = {largest U value [N1*N2]/2}


(N1)(N2)(N1+N2+1)]/12
Z = 5.9
If Z > 1.96 than P < 0.05
Therefore there is a significant difference
between the thorax width of single and
mated males

Wilcoxon Signed Rank


When N>15 use a z score conversion
T+ = N(N+1)/4
VarT+ = N(N+1)(2N+1)/24

Z = T+ - T+ / VarT+
= T+ - [N(N+1)/4]
[N(N+1)(2N+1)/24]
If Z > 1.96 than P < 0.05
reject null hypothesis

You might also like