Home > Statistical Methods calculators > Mann whitney U test example

2. Non parametric test - Mann whitney U test example ( Enter your problem )
  1. Example-1
  2. Example-2
Other related methods
  1. Non parametric test - Sign test
  2. Non parametric test - Mann whitney U test
  3. Non parametric test - Kruskal-wallis test
  4. Non parametric test - Chi square test
  5. Non parametric test - Median test
  6. Non parametric test - Mood's Median test
  7. Parametric test - F test
  8. Parametric test - t-test
  9. Parametric test - Standard error

1. Example-1
(Previous example)
3. Non parametric test - Kruskal-wallis test
(Next method)

2. Example-2





2. Non parametric test - Mann whitney U test for the following data
8,7,6,2,5,8,7,3
9,8,7,8,10,9,6,41, Significance Level `alpha=0.05` and One-tailed test


Solution:
Step-1: Take the hypothesis
Null Hypothesis `H_0` : The two populations are equal

Alternative Hypothesis `H_1` : The two populations are not equal

Step-2: Ranking all group values
First we assign ranks to all observations using low to high ranking process in the combined sample.
Size in Ascending OrderRankName of related sample
A for sample1, B for sample2
Rank for ARank for B
21A1
32A2
53A3
64.5B4.5
64.5A4.5
77B7
77A7
77A7
810.5B10.5
810.5B10.5
810.5A10.5
810.5A10.5
913.5B13.5
913.5B13.5
1015B15
4116B16
Total45.590.5

The rank total for A is `R_1=45.5`

The rank total for B is `R_2=90.5`


We have `n_1=8` and `n_2=8`

Step-3: Compute test statistic
test statistic using `R_1`

`U_1 = n_1 * n_2 + (n_1(n_1+1))/2 - R_1`

`=8 * 8 + (8(8+1))/2 - 45.5`

`=64 + 36 - 45.5`

`=54.5`

`mu_U=(n_1 n_2)/2=(8*8)/2=32`

`sigma_U=sqrt((n_1 n_2 (n_1+n_2+1))/12)=sqrt((8*8*(8+8+1))/12)=9.4868`

According the limits of acceptance region, keeping in view 10% level of significance.
As the z value for 0.45 of the area under the normal curve is 1.64, we have the following limits of acceptance region.
Upper limit = `mu_U + 1.64 sigma_U=32 + 1.64 * 9.4868=47.5584`

Lower limit = `mu_U - 1.64 sigma_U=32 - 1.64 * 9.4868=16.4416`

The value of `U_1` is 54.5 which is not in the acceptance region, we reject the null hypothesis and conclude that the two samples do not come from identical populations at 10% level.


test statistic using `R_2`

`U_2 = n_1 * n_2 + (n_2(n_2+1))/2 - R_2`

`=8 * 8 + (8(8+1))/2 - 90.5`

`=64 + 36 - 90.5`

`=9.5`

The value of `U_2` does not lies in the acceptance region and as such our conclusion remians the same.


This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then Submit Here



1. Example-1
(Previous example)
3. Non parametric test - Kruskal-wallis test
(Next method)





Share this solution or page with your friends.


 
Copyright © 2024. All rights reserved. Terms, Privacy
 
 

.