Professional Documents
Culture Documents
Statistics For Business and Economics
Statistics For Business and Economics
Statistics For Business and Economics
\
|
+
=
=
n
n
R
n n
H
p
j
j
j
Squared total of
each group
14 - 67
2003 Pearson Prentice Hall
Kruskal-Wallis H-Test
Example
As production manager,
you want to see if 3 filling
machines have different
filling times. You assign
15 similarly trained &
experienced workers,
5 per machine, to the
machines. At the .05 level,
is there a difference in the
distribution of filling times?
Mach1 Mach2 Mach3
25.40 23.40 20.00
26.31 21.80 22.20
24.10 23.50 19.75
23.74 22.75 20.60
25.10 21.60 20.40
14 - 68
2003 Pearson Prentice Hall
_
2
0
Kruskal-Wallis H-Test
Solution
H0:
Ha:
o =
df =
Critical Value(s):
Test Statistic:
Decision:
Conclusion:
14 - 69
2003 Pearson Prentice Hall
_
2
0
Kruskal-Wallis H-Test
Solution
H0: Identical Distrib.
Ha: At Least 2 Differ
o =
df =
Critical Value(s):
Test Statistic:
Decision:
Conclusion:
14 - 70
2003 Pearson Prentice Hall
_
2
0
Kruskal-Wallis H-Test
Solution
H0: Identical Distrib.
Ha: At Least 2 Differ
o = .05
df = p - 1 = 3 - 1 = 2
Critical Value(s):
Test Statistic:
Decision:
Conclusion:
14 - 71
2003 Pearson Prentice Hall
_
2
0 5.991
Kruskal-Wallis H-Test
Solution
H0: Identical Distrib.
Ha: At Least 2 Differ
o = .05
df = p - 1 = 3 - 1 = 2
Critical Value(s):
Test Statistic:
Decision:
Conclusion:
o = .05
14 - 72
2003 Pearson Prentice Hall
Kruskal-Wallis H-Test
Solution
Raw Data
Mach1 Mach2 Mach3
25.40 23.40 20.00
26.31 21.80 22.20
24.10 23.50 19.75
23.74 22.75 20.60
25.10 21.60 20.40
Ranks
Mach1 Mach2 Mach3
14 - 73
2003 Pearson Prentice Hall
Kruskal-Wallis H-Test
Solution
Raw Data
Mach1 Mach2 Mach3
25.40 23.40 20.00
26.31 21.80 22.20
24.10 23.50 19.75
23.74 22.75 20.60
25.10 21.60 20.40
Ranks
Mach1 Mach2 Mach3
1
14 - 74
2003 Pearson Prentice Hall
Kruskal-Wallis H-Test
Solution
Raw Data
Mach1 Mach2 Mach3
25.40 23.40 20.00
26.31 21.80 22.20
24.10 23.50 19.75
23.74 22.75 20.60
25.10 21.60 20.40
Ranks
Mach1 Mach2 Mach3
2
1
14 - 75
2003 Pearson Prentice Hall
Kruskal-Wallis H-Test
Solution
Raw Data
Mach1 Mach2 Mach3
25.40 23.40 20.00
26.31 21.80 22.20
24.10 23.50 19.75
23.74 22.75 20.60
25.10 21.60 20.40
Ranks
Mach1 Mach2 Mach3
2
1
3
14 - 76
2003 Pearson Prentice Hall
Kruskal-Wallis H-Test
Solution
Raw Data
Mach1 Mach2 Mach3
25.40 23.40 20.00
26.31 21.80 22.20
24.10 23.50 19.75
23.74 22.75 20.60
25.10 21.60 20.40
Ranks
Mach1 Mach2 Mach3
14 9 2
15 6 7
12 10 1
11 8 4
13 5 3
14 - 77
2003 Pearson Prentice Hall
Kruskal-Wallis H-Test
Solution
Raw Data
Mach1 Mach2 Mach3
25.40 23.40 20.00
26.31 21.80 22.20
24.10 23.50 19.75
23.74 22.75 20.60
25.10 21.60 20.40
Ranks
Mach1 Mach2 Mach3
14 9 2
15 6 7
12 10 1
11 8 4
13 5 3
65 38 17
Total
14 - 78
2003 Pearson Prentice Hall
Kruskal-Wallis H-Test
Solution
( )
( )
( ) ( )
( ) ( ) ( )
( )
( )
58 . 11
48 6 . 191
240
12
16 3
5
17
5
38
5
65
16 15
12
1 3
1
12
2 2 2
1
2
=
|
.
|
\
|
=
|
|
.
|
\
|
|
|
.
|
\
|
+ +
=
+
|
|
.
|
\
|
+
=
=
n
n
R
n n
H
p
j
j
j
14 - 79
2003 Pearson Prentice Hall
_
2
0 5.991
Kruskal-Wallis H-Test
Solution
H0: Identical Distrib.
Ha: At Least 2 Differ
o = .05
df = p - 1 = 3 - 1 = 2
Critical Value(s):
Test Statistic:
Decision:
Conclusion:
o = .05
H = 11.58
14 - 80
2003 Pearson Prentice Hall
_
2
0 5.991
Kruskal-Wallis H-Test
Solution
H0: Identical Distrib.
Ha: At Least 2 Differ
o = .05
df = p - 1 = 3 - 1 = 2
Critical Value(s):
Test Statistic:
Decision:
Conclusion:
Reject at o = .05
o = .05
H = 11.58
14 - 81
2003 Pearson Prentice Hall
_
2
0 5.991
Kruskal-Wallis H-Test
Solution
H0: Identical Distrib.
Ha: At Least 2 Differ
o = .05
df = p - 1 = 3 - 1 = 2
Critical Value(s):
Test Statistic:
Decision:
Conclusion:
Reject at o = .05
There Is Evidence Pop.
Distrib. Are Different
o = .05
H = 11.58
14 - 82
2003 Pearson Prentice Hall
Friedman F
r
-Test for a
Randomized Block Design
14 - 83
2003 Pearson Prentice Hall
Frequently Used
Nonparametric Tests
1. Sign Test
2. Wilcoxon Rank Sum Test
3. Wilcoxon Signed Rank Test
4. Kruskal Wallis H-Test
5. Friedmans F
r
-Test
6. Spearmans Rank Correlation Coefficient
14 - 84
2003 Pearson Prentice Hall
Friedman F
r
-Test
1. Tests the Equality of More Than 2 (p)
Population Probability Distributions
2. Corresponds to ANOVA for More Than
2 Means
3. Used to Analyze Randomized Block
Experimental Designs
4. Uses _
2
Distribution with p - 1 df
If either p, the number of treatments, or b,
the number of blocks, exceeds 5
14 - 85
2003 Pearson Prentice Hall
Friedman F
r
-Test
Assumptions
1. The p treatments are randomly
assigned to experimental units within
the b blocks Samples
2. The measurements can be ranked
within the blocks
3. Continuous population probability
distributions
14 - 86
2003 Pearson Prentice Hall
Friedman F
r
-Test
Procedure
1. Assign Ranks, R
i
= 1 p, to the p
treatments in each of the b blocks
Smallest Value = 1; Largest Value = p
Average Ties
2. Sum Ranks for Each Treatment
14 - 87
2003 Pearson Prentice Hall
Friedman F
r
-Test
Procedure
1. Assign Ranks, R
i
= 1 p, to the p
treatments in each of the b blocks
Smallest Value = 1; Largest Value = p
Average Ties
2. Sum Ranks for Each Treatment
3. Compute Test Statistic
( )
( ) 1 3
1
12
1
2
+
|
|
.
|
\
|
+
=
=
p b R
p bp
F
p
j
j r
Squared total of
each treatment
14 - 88
2003 Pearson Prentice Hall
Friedman F
r
-Test
Example
Three new traps were tested
to compare their ability to trap
mosquitoes. Each of the traps,
A, B, and C were placed side-
by-side at each five different
locations. The number of
mosquitoes in each trap was
recorded. At the .05 level, is
there a difference in the
distribution of number of
mosquitoes caught by the
three traps?
TrapA TrapB TrapC
3 5 0
23 17 15
11 5 7
8 4 2
19 11 5
14 - 89
2003 Pearson Prentice Hall
_
2
0
Friedman F
r
-Test
Solution
H0: Identical Distrib.
Ha: At Least 2 Differ
o =
df =
Critical Value(s):
Test Statistic:
Decision:
Conclusion:
14 - 90
2003 Pearson Prentice Hall
_
2
0
Friedman F
r
-Test
Solution
H0: Identical Distrib.
Ha: At Least 2 Differ
o = .05
df = p - 1 = 3 - 1 = 2
Critical Value(s):
Test Statistic:
Decision:
Conclusion:
14 - 91
2003 Pearson Prentice Hall
_
2
0 5.991
Friedman F
r
-Test
Solution
H0: Identical Distrib.
Ha: At Least 2 Differ
o = .05
df = p - 1 = 3 - 1 = 2
Critical Value(s):
Test Statistic:
Decision:
Conclusion:
o = .05
14 - 92
2003 Pearson Prentice Hall
Friedman F
r
-Test
Solution
Raw Data
TrapA TrapB TrapC
3 5 0
23 17 15
11 5 7
8 4 2
19 11 5
Ranks
TrapA TrapB TrapC
14 - 93
2003 Pearson Prentice Hall
Friedman F
r
-Test
Solution
Raw Data
TrapA TrapB TrapC
3 5 0
23 17 15
11 5 7
8 4 2
19 11 5
Ranks
TrapA TrapB TrapC
1
14 - 94
2003 Pearson Prentice Hall
Friedman F
r
-Test
Solution
Raw Data
TrapA TrapB TrapC
3 5 0
23 17 15
11 5 7
8 4 2
19 11 5
Ranks
TrapA TrapB TrapC
2 3 1
1
14 - 95
2003 Pearson Prentice Hall
Friedman F
r
-Test
Solution
Raw Data
TrapA TrapB TrapC
3 5 0
23 17 15
11 5 7
8 4 2
19 11 5
Ranks
TrapA TrapB TrapC
2 3 1
3 2 1
14 - 96
2003 Pearson Prentice Hall
Friedman F
r
-Test
Solution
Raw Data
TrapA TrapB TrapC
3 5 0
23 17 15
11 5 7
8 4 2
19 11 5
Ranks
TrapA TrapB TrapC
2 3 1
3 2 1
3 1 2
.
.
14 - 97
2003 Pearson Prentice Hall
Friedman F
r
-Test
Solution
Raw Data
TrapA TrapB TrapC
3 5 0
23 17 15
11 5 7
8 4 2
19 11 5
Ranks
TrapA TrapB TrapC
2 3 1
3 2 1
3 1 2
3 2 1
3 2 1
14 10 6
Total
14 - 98
2003 Pearson Prentice Hall
Friedman F
r
-Test
Solution
( )
( )
64 . 6 60 ) 332 (
60
12
) 1 3 ( ) 5 ( 3 ) 6 10 14 (
) 1 3 ( ) 3 )( 5 (
12
1 3
1
12
2 2 2
1
2
=
|
.
|
\
|
=
+
|
|
.
|
\
|
+ +
+
=
+
|
|
.
|
\
|
+
=
=
r
r
p
j
j r
F
F
p b R
p bp
F
14 - 99
2003 Pearson Prentice Hall
_
2
0 5.991
Friedman F
r
-Test
Solution
H0: Identical Distrib.
Ha: At Least 2 Differ
o = .05
df = p - 1 = 3 - 1 = 2
Critical Value(s):
Test Statistic:
Decision:
Conclusion:
o = .05
F
r
= 6.64
14 - 100
2003 Pearson Prentice Hall
_
2
0 5.991
Friedman F
r
-Test
Solution
H0: Identical Distrib.
Ha: At Least 2 Differ
o = .05
df = p - 1 = 3 - 1 = 2
Critical Value(s):
Test Statistic:
Decision:
Conclusion:
Reject at o = .05
o = .05
F
r
= 6.64
14 - 101
2003 Pearson Prentice Hall
_
2
0 5.991
Friedman F
r
-Test
Solution
H0: Identical Distrib.
Ha: At Least 2 Differ
o = .05
df = p - 1 = 3 - 1 = 2
Critical Value(s):
Test Statistic:
Decision:
Conclusion:
Reject at o = .05
There Is Evidence Pop.
Distrib. Are Different
o = .05
F
r
= 6.64
14 - 102
2003 Pearson Prentice Hall
Spearmans Rank
Correlation Coefficient
14 - 103
2003 Pearson Prentice Hall
Frequently Used
Nonparametric Tests
1. Sign Test
2. Wilcoxon Rank Sum Test
3. Wilcoxon Signed Rank Test
4. Kruskal Wallis H-Test
5. Friedmans F
r
-Test
6. Spearmans Rank Correlation Coefficient
14 - 104
2003 Pearson Prentice Hall
Spearmans Rank
Correlation Coefficient
1. Measures Correlation Between Ranks
2. Corresponds to Pearson Product
Moment Correlation Coefficient
3. Values Range from -1 to +1
14 - 105
2003 Pearson Prentice Hall
Spearmans Rank
Correlation Coefficient
1. Measures Correlation Between Ranks
2. Corresponds to Pearson Product
Moment Correlation Coefficient
3. Values Range from -1 to +1
4. Equation (Shortcut)
( ) 1
6
1
2
2
=
n n
d
r
s
14 - 106
2003 Pearson Prentice Hall
Spearmans Rank
Correlation Procedure
1. Assign Ranks, R
i
, to the Observations
of Each Variable Separately
2. Calculate Differences, d
i
, Between
Each Pair of Ranks
3. Square Differences, d
i
2
, Between Ranks
4. Sum Squared Differences for Each
Variable
5. Use Shortcut Approximation Formula
14 - 107
2003 Pearson Prentice Hall
Spearmans Rank
Correlation Example
Youre a research assistant for the FBI. Youre
investigating the relationship between a persons
attempts at deception
& % changes in their
pupil size. You ask
subjects a series of
questions, some of
which they must
answer dishonestly.
At the .05 level, what is the correlation coefficient?
Subj. Deception Pupil
1 87 10
2 63 6
3 95 11
4 50 7
5 43 0
14 - 108
2003 Pearson Prentice Hall
Spearmans Rank
Correlation Table
Subj. Decep. R
1i
Pupil R
2i
d
i
d
i
2
Total
14 - 109
2003 Pearson Prentice Hall
Spearmans Rank
Correlation Table
Subj. Decep. R
1i
Pupil R
2i
d
i
d
i
2
1 87 10
2 63 6
3 95 11
4 50 7
5 43 0
Total
14 - 110
2003 Pearson Prentice Hall
Spearmans Rank
Correlation Table
Subj. Decep. R
1i
Pupil R
2i
d
i
d
i
2
1 87 4 10
2 63 3 6
3 95 5 11
4 50 2 7
5 43 1 0
Total
14 - 111
2003 Pearson Prentice Hall
Spearmans Rank
Correlation Table
Subj. Decep. R
1i
Pupil R
2i
d
i
d
i
2
1 87 4 10 4
2 63 3 6 2
3 95 5 11 5
4 50 2 7 3
5 43 1 0 1
Total
14 - 112
2003 Pearson Prentice Hall
Spearmans Rank
Correlation Table
Subj. Decep. R
1i
Pupil R
2i
d
i
d
i
2
1 87 4 10 4 0
2 63 3 6 2 1
3 95 5 11 5 0
4 50 2 7 3 -1
5 43 1 0 1 0
Total
14 - 113
2003 Pearson Prentice Hall
Spearmans Rank
Correlation Table
Subj. Decep. R
1i
Pupil R
2i
d
i
d
i
2
1 87 4 10 4 0 0
2 63 3 6 2 1 1
3 95 5 11 5 0 0
4 50 2 7 3 -1 1
5 43 1 0 1 0 0
Total 2
14 - 114
2003 Pearson Prentice Hall
Spearmans Rank
Correlation Solution
( )
( )
( )
90 . 0
10 . 0 1
1 5 5
2 6
1
1
6
1
2
2
1
2
=
=
=
=
=
n n
d
r
n
i
i
s
14 - 115
2003 Pearson Prentice Hall
Conclusion
1. Distinguished Parametric &
Nonparametric Test Procedures
2. Explained a Variety of Nonparametric
Test Procedures
3. Solved Hypothesis Testing Problems
Using Nonparametric Tests
4. Computed Spearmans Rank Correlation
End of Chapter
Any blank slides that follow are
blank intentionally.