Professional Documents
Culture Documents
64
H0 : 1 2 Two-Sample Tests
65
Non-Parametric Tests Here, we wish to test that the students have benefited by coaching that
means average score before the coaching is less than average score after
the coaching. If 1 and 2 denote the average (median) score before and
after the coaching then our claim is 1 2 and its complement is
1 2 . Since complement contains the equality sign so we can take the
complement as the null hypothesis and the claim as the alternative
hypothesis. Thus,
H0 : 1 2
H1 : 1 2 students have benefited by coaching
Since the alternative hypothesis is left-tailed so the test is left-tailed
test.
Since in this exercise the increment in marks is given that means we are
given that the difference of after on before, that is, Y − X instead of
X – Y therefore, for testing the null hypothesis, the test statistic is the
sum of negative ranks (T −) instead of sum of positive ranks (T+).
Calculation for T:
Roll Difference Absolute Rank of Signed
No. d Difference d d Rank
1 6 6 6.5 6.5
2 −2 2 1.5 −1.5
3 8 8 8 8
4 −4 4 3.5 −3.5
5 10 10 9 9
6 2 2 1.5 1.5
7 5 5 5 5
8 −4 4 3.5 −3.5
9 6 6 6.5 6.5
10 Tie --- --- ---
1 4 5 –1 1 2 –2
2 6 4 2 2 5 5
3 8 5 3 3 7.5 7.5
4 9 8 1 1 2 2
5 4 1 3 3 7.5 7.5
6 7 9 –2 2 5 –5
7 6 2 4 4 9 9
8 5 3 2 2 5 5
9 8 2 6 6 10 10
10 6 7 –1 1 2 –2
67
Non-Parametric Tests E9) It is case of two independent populations and the assumption of
normality of both the populations is not given so we cannot use t-test in
this case. So we go for Mann-Whitney U test.
Here, we want to test that village boys are more fit than town boys that
means average (median) score of village boys is greater than average
(median) score of town boys. If µ 1 and µ 2 denote the average (median)
score of the village boys and town boys respectively then our claim is
1 2 and its complement is 1 2 . Since complement contains the
equality sign so we can take the complement as the null hypothesis and
the claim as the alternative hypothesis. Thus,
H0 : 1 2
H 1 : 1 2 village boys are more fit than town boys
To perform the Mann-Whitney U test, we combine the observations of
both samples and for convenient, we arrange the observations in
ascending order. Then rank all these combined observations from
smallest to largest as:
Village Boys(V) Ranks Town Boys (T) Ranks
4.5 5 2.7 1
5.6 6.5 2.8 2
6.5 9.5 3.2 3
7.2 12 3.6 4
8.2 15 5.6 6.5
9.0 16 6.1 8
10.6 17 6.5 9.5
11.4 18 6.7 11
12.4 20 7.9 13.5
12.9 23 7.9 13.5
15.7 23 11.8 19
16.2 25 12.6 21
12.7 22
Total 190
Here, n1 =12 and n2 = 13. Since n1 is less than n2 therefore we take sum
of ranks corresponding to village boys.
Since we consider the first sample so test statistic U is given by
n1 n 1 1 12 12 1
U S 190 112
2 2
The upper critical value of test statistic for right-tailed corresponding to
n1 = 12 and n2 = 13 at 5% level of significance is U U, U U, 0.01 198.
Since calculated value of test statistic (=112) is less than upper critical
value (= 198) so we do not reject the null hypothesis and reject the
alternative hypothesis i.e. we support the claim at 5% level of
significance.
Thus, we conclude that the samples provide us sufficient evidence
against the claim so village boys are not more fit than town boys.
68
E10) It is case of two independent populations and the assumption of Two-Sample Tests
normality of both the populations is not given so we cannot use two
sample t-test in this case. So we go for Mann-Whitney U test.
Here, we want to test that average life of two brands of batteries is
same. If µ 1 and µ 2 denote the average (median) life of batteries of
brands A and B respectively then our claim is 1 2 and it
complement is 1 2 . Since claim contains the equality sign so we can
take the claim as the null hypothesis and the complement as the
alternative hypothesis. Thus
H 0 : 1 2 average life of two brands of batteries is same
H1 : 1 2 average life of two brands of batteries is not same
To perform the Mann-Whitney U test, we combine the observations of
both samples and for convenient, we arrange the observations in
ascending order. Then rank all these combined observations from
smallest to largest as:
Brand A Ranks Brand B Ranks
30 1.5 35 4
30 1.5 40 8.5
35 4 45 12.5
35 4 50 16
40 8.5 50 16
40 8.5 50 16
40 8.5 50 16
40 8.5 55 20
40 8.5 55 20
45 12.5 60 23
50 16 60 23
55 20 60 23
Total 102
69
Non-Parametric Tests exist between two distributions that is, location, dispersion, skewness,
etc.
70