The Mann–Whitney U test
Lecture 51
The Mann–Whitney U test is the true nonparametric
counterpart of the two-sample independent t test. This test is used when the samples are independent and the observations of both
samples are independently randomly selected. It is also used to test the differences between two independent groups or the medians of two populations when the data is either ordinal or continuous of identical shape but not normally
distributed.
Procedure to Perform Test:
To carry out the test, arrange the observations of both samples in ascending order of magnitude and assign ranks to them. Assign the average of ranks in case of tied observations. Compute the sum of ranks assigned to sample 1 and sample 2, denoted by R1 and R2, respectively.
The test statistic for small samples, i.e., n1, n2 < 8.
Mann – Whitney U test in case of group
data:
In the case of grouped data, add the frequencies of both groups and denote by Tj and find the cumulative frequencies of the Tj denoted by c.
|
Treated |
14 |
15 |
15 |
17 |
18 |
23 |
|
Untreated |
17 |
24 |
23 |
18 |
19 |
28 |
Use the Mann-Whitney U test to test the hypothesis that the medians of recovery times of treated
and untreated are identical at a 5% significance level.
Solution:
i. State the null and alternative hypotheses as:
H0: Median 1 = Median 2 vs. H1: Median 1
iv. Reject H0, when U is lies out side of (5, 31)
v. Computation:
Arrange the observations of both samples in ascending order of magnitude.
The test statistic for small samples
|
Grazed plants |
12 |
14 |
15 |
17 |
19 |
22 |
23 |
26 |
21 |
|
Ungrazed plants |
10 |
13 |
14 |
14 |
16 |
20 |
21 |
23 |
|
It is claimed that the number of trichomes on the
grazed leaves is significantly higher than those on the ungrazed leaves. The
sampled population are identical but non-normal.
Solution:
i. State the null and alternative hypotheses as:
H0: Median 1 = Median 2 vs. H1: Median 1 >
v. Computation
|
Wage |
1000
- 1200 |
1200
- 1400 |
1400
- 1600 |
1600
- 1800 |
1800
- 2000 |
|
No.
of workers in Factory A |
10 |
15 |
12 |
9 |
6 |
|
No.
of workers in Factory B |
11 |
13 |
18 |
7 |
5 |
Apply the Mann-Whitney U test to check whether the medians
of wages of the two factories are identical.
Solution:
i. State the null and alternative hypotheses as:
H0: Median 1 = Median 2 vs. H1: Median 1
iv. Reject H0, when |z| > 1.96
v. Computation:
- Remarks: Wilcoxon Rank Sum Test

%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
.jpeg)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
%20(1)%20(1).png)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
%20(1)%20(1).png)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
No comments:
Post a Comment