Академический Документы
Профессиональный Документы
Культура Документы
REVIEW
**Non parametric tests can be applied to Normal data but parametric tests
have greater power IF assumptions met.
3
A Wilcoxon Rank Sum Test is most often used for three types
of study design as an alternative for the independent t-test:
Determining if there are differences between two independent
groups
Determining if there are differences between interventions
Determining if there are differences in change scores
t-test relies on several conditions: independent samples,
normality, and equal variances. We can use the Wilcoxon
Rank Sum Test as an alternative when the distribution is not
normal.
24
29
33
57
35
10
17
23
19
22
21
Sex
The Wilcoxon Rank Sum Test requires that the two tested
samples be similar in shape (boxplot/histogram).
8
Sex
Time
Rank
1
2
3
4
5
6
7
8
9
10
11
12
9
Sex
Time
Rank
10
17
19
20
21
22
23
24
29
33
10
35
11
57
12
10
Sex
Sum of ranks
Boys
Girls
Sex
Sum of ranks
Boys
24
Girls
54
24
Critical value?
= 0.05, two tailed test
1 = 6 , 2 = 6 (1 is always smaller of the two groups)
From table D.8, critical value = 28
Reject or Do not reject H0 ?
(The obtained value needs to be equal to or less than the critical value in
order to be statistically significant).
12
High
Low
0.55
0.40
0.57
0.72
0.72
0.00
0.70
0.36
0.84
0.55
14
QoL scores
Before
After
12
12
12
10
16
After
12
12
12
10
Difference, d
Sign
Absolute value
Rank
The Wilcoxon W+ statistic is the sum of the ranks of the positive differences: ??
The Wilcoxon W- statistic is the sum of the ranks of the negative differences: ??
17
After
Difference, d
Sign
Absolute value
Rank
-3
4.5
12
-7
-6
-5
-1
1.5
1.5
12
-4
-3
4.5
12
10
The Wilcoxon W+ statistic is the sum of the ranks of the positive differences: 1.5 + 3 = 4.5 .
The Wilcoxon W- statistic is the sum of the ranks of the negative differences: 1.5 + 4.5 + 4.5 + 6 + 7
+ 8 + 9 = 40.5
Whichever of these sums is the smaller, is our value of W. So, W = 4.5 (obtained value)
18
Critical value?
= 0.05, two tailed test
n= 10-1 = 9 (omitting 0 dif ference)
From table D.7, critical value = 5.0195
19
The distribution was symmetric around the median. The Wilcoxon matched-pairs
signed rank test determined that there was a statistically significant median
different before and after the cognitive therapy (W=4.5, p=.033).
20
Child
1
2
3
4
5
Story 2 0.77 0.49 0.66 0.28 0.38
Story 1 0.40 0.72 0.00 0.36 0.55
Are the story 2 scores significantly higher than the story 1
scores?
21
KRUSKAL-WALLIS TEST
generally considered the nonparametric alternative to the one way ANOVA, which can be used when the data fail the
assumptions of the one -way ANOVA .
Assumption #1: The dependent variable is measured at
the continuous or ordinal level and the independent
variable consists of two or more categorical , independent
groups.
Assumption #2: You should have independence of obser vations ,
which means that there is no relationship between the
observations in each group of the independent variable or
between the groups themselves .
Assumption #3: The distribution of scores for each group of the
independent variable have the same shape. (N.B., having the
same shape also means having the same variability).
22
KRUSKAL-WALLIS TEST
The Kruskal-Wallis hypothesis test:
H 0 : All k populations have the same distribution.
H a : Not all k populations have the same distribution.
The Kruskal-Wallis test statistic:
where
n=sum of sample sizes
k=number of samples
R j =sum of ranks in the j th sample
n j =size of the j th sample
If each n j > 5, then H is approximately distributed as a 2 (Chisquare distribution).
23
KRUSKAL-WALLIS TEST
Do dif ferent departments have dif ferent class sizes?
Class size (Math)
23
55
30
41
60
40
54
72
18
78
45
34
66
70
44
KRUSKAL-WALLIS TEST
Group
M
M
M
M
M
E
E
E
E
E
H
H
H
H
H
Class size
23
41
54
78
66
55
60
72
45
70
30
40
18
34
44
Rank
25
KRUSKAL-WALLIS TEST
Group
M
M
M
M
M
E
E
E
E
E
H
H
H
H
H
Class size
23
41
54
78
66
55
60
72
45
70
30
40
18
34
44
Rank
2
6
9
15
12
10
11
14
8
13
3
5
1
4
7
26
KRUSKAL-WALLIS TEST
Group
M
M
M
M
M
E
E
E
E
E
H
H
H
H
H
Class size
23
41
54
78
66
55
60
72
45
70
30
40
18
34
44
Rank
2
Sum of group rank
6
for M =44
9
15
12
Sum of group rank
10
for E =56
11
14
8
13
3
Sum of group rank
for H =20
5
1
4
7
=
12
442
15(15+1) 5
562
5
202
5
3 15 + 1 = 6.72
27
KRUSKAL-WALLIS TEST
H=6.72 (Obtained value)
Critical value=?
=0.05, two tailed test
df=k-1=2
From chi-square dist. Table A .4, the critical value = 5.992
Reject or Do not reject H 0 ? (H is statistically significant if it is
larger than the critical value of Chi-Square)
KRUSKAL-WALLIS TEST
Further Analysis (Pairwise Comparisons of Average Ranks)
1
n(n 1) 1
( ,k 1 )
12 ni n j
2
Reject if D > C KW
29
KRUSKAL-WALLIS TEST
Pairwise Comparisons of Average Ranks
=
2 0.05,2
15(15 + 1) 1 1
+
12
5 5
2
5.992 (20)(5)
= 47.936 = 6.925
44
= 8.8
5
56
=
= 11.2
5
20
=
=4
5
=
30
KRUSKAL-WALLIS TEST
Distributions of class size were similar for all groups, as assessed by visual inspection of a
boxplot. The medians of class size were statistically significantly different between the Math,
History and English departments , 2 (2) = 6.72, p = .035. The post hoc analysis revealed
statistically significant differences in the class size between the History and English (p =.033)
departments but not between the other group combinations.
31