Professional Documents
Culture Documents
Non-Parametric Hypothesis Testing
Non-Parametric Hypothesis Testing
Non-Parametric Hypothesis Testing
Methods
Learning Objectives
What is Parametric Hypothesis Testing
What is Nonparametric Hypothesis Testing
Different Types of Nonparametric Tests
– 1-Sample Sign Test
– 1-Sample Wilcoxon Sign Rank Test
– 2-Sample Sign Test ? ?
– 2-Sample Wilcoxon Sign Rank Test ?
– Mann-Whitney Test
– Kruskal-Wallis Test
– Mood’s Median Test
– Levene’s Test
Normal?-Yes
1-Proportion Test
•1-Sample z Test •2-Sample z Test •One-Way Anova
•1-Sample t Test •2-Sample t Test •F-test/Barlett’s
2 Test -Variances Equal
-Variances Unequal
•Pair-t Test
Anova
Normal?- Yes or No
Quantitative Y Quantitative Y
(More than one factor) (One factor only)
Friedmans
Ho Ha
Gather evidence (sampling)
DECIDE:
What does the evidence
suggest? State practical implications
in “English”
Reject H0? Or Not Reject H0?
Recall:
The sample median is a measure of central tendency that
divides the data into two equal parts, half below the median
and half above.
50% 50%
~
o
~ ) 0 .5
P( X
~ ) 0 .5
P( X
o
o
~
~
~
~ o
o
~
Ho : ~ ~
Ha : ~
o o
Seagate Confidential 15 Supplier Six Sigma Modular Training
Non-Parametric Statistics
~ ''
X1 Data transform
o
into binary
~ ''
X2 o distribution
~ ' '
X3 o
~ ' '
X4 o
~ 0 Ignore zero
X5 o during
computation
Seagate Confidential 16 Supplier Six Sigma Modular Training
Non-Parametric Statistics
~
Ho : ~
o
Seagate Confidential 18 Supplier Six Sigma Modular Training
Non-Parametric Statistics
Accept~ H
Ho : ~ ~r-) >
Ha(r:+,
if min
o o
~ r*(Two tailed)
o
Rejection Acceptance
Zone Zone
Accept Ho if r- > r*
~
Ho : ~ Ha : ~
~ (One tailed)
o o
0 r* n/2 r
Accept Ho if r+ > r*
~
Ho : ~ ~
Ha : ~ (One tailed)
o o
r+ n/2
P(R+ r+)
Reject Zone,
r+
P(R+ r+)
/2
r+
Seagate Confidential 22 Supplier Six Sigma Modular Training
Non-Parametric Statistics
~ is
Accept Ho if
included in the
confidence interval
~
~
o
(x(min), x(max))
Seagate Confidential 23 Supplier Six Sigma Modular Training
Non-Parametric Statistics
197 198
Perform sign test to determine if the median setting is different from the design setting of 200 F. Use
= 0.05
203.4 203.7
204.1 198.5
202.5 201.3
206.3 199
r+ = of ‘+’ = 6
r- = of ‘-’ = 4
Seagate Confidential 26 Supplier Six Sigma Modular Training
Non-Parametric Statistics
r* = 1 r
0 n/2
Accept Reject
= 2(0.377)
= 0.754
Since P-value > 0.05 (), cannot reject Ho.
r-
r+ P-value Approach:
P-value > 0.05
Cannot reject Ho
Seagate Confidential 31 Supplier Six Sigma Modular Training
Non-Parametric Statistics
Confidence Interval
Non linear
Approach:
~ =200 is included in the
interpolation
o
interval, cannot reject Ho.
Seagate Confidential 34 Supplier Six Sigma Modular Training
Non-Parametric Statistics
Steps
1. ~ )=d
Form the difference (xi - o i.
2. P-value Approach
Type of Test Alternative Hypothesis Accept H o Criteria
Two-tailed test o P-value = 2P (W w m ax) >
One-tailed test > o P-value = P (W w -) >
< o P-value = P (W w +) >
Confidence Interval
Approach:
~ = 200 is included
o
in the interval,
cannot reject Ho.
Seagate Confidential 46 Supplier Six Sigma Modular Training
2-Sample Sign Test
Non-Parametric Statistics
H : ~ ~ 0
1. Form the difference (xi - yi) = di. a x y
H : ~
~ 0
2. Calculate a x y
Example 2
A new drug is developed to cure a
particular illness. Test was conducted on
10 patients to determine the effectiveness
of the new drug. Data can be found in file:
Nonparametric.mtw.
d.DECIDE:
What does the evidence c. Severity Before (X) Severity After (Y)
2 2
suggest? 2 1
Reject H0? Or Not Reject H0? 1 2
1 1
3 1
e.State practical implications in 4 2
“English” 5 3
3 2
1 1
5 1
d.DECIDE:
What does the evidence
suggest?
Reject H0? Or Not Reject H0?
Session Window
P-value
Approach:
P-value < 0.05,
Wilcoxon Signed Rank Test: Delta reject Ho.
Test of median = 0.000000 versus median > 0.000000
N for Wilcoxon Estimated
N Test Statistic P Median
Delta 10 7 26.0 0.026 1.000
Using Minitab
Stat Nonparametrics 1-Sample Wilcoxon
Session Window
???
Mann-Whitney Test
Equivalent to 2-sample t test.
Assumption:
– X1 and X2 distributions have the same
shape and spread, only differ in their
locations.
Mann-Whitney Test
Steps Ho : μ~ μ~
1 2
1. Rank all N = n1 + n2 observations
Ha : ~ ~
1 2
in ascending order.Assign tied
Ha : ~ ~
observations the average of the 1 2
tied ranks. Ha : ~ ~
1 2
2. Sum the ranks of group 1 and group 2 separately.
w1 = sum of ranks of group 1
w2 = sum of ranks of group 2
3. Decision Making
Critical Value Approach
Session Window
Mann-Whitney Test and CI: Alloy 1, Alloy 2
Confidence Interval
Alloy 1 N = 10 Median = 3227.0 Approach:
Alloy 2 N = 10 Median = 3230.0 ‘0’ is included in the interval,
cannot reject Ho.
Point estimate for ETA1-ETA2 is -6.0
95.5 Percent CI for ETA1-ETA2 is (-29.0,17.0)
W = 99.0 Critical Value Approach
Kruskal-Wallis Test
Equivalent to one-way ANOVA
Assumption:
– Random sample from each population.
– Samples were taken independently of each
other.
– Populations have approximately the same
shape (variances must be approximately
the same).
Kruskal-Wallis Test
~
H0 : ~ .....
~
1 2 i
~
H0 : ~ .....
~
1 2 i
Steps
1. Rank all N = n1 + n2+ …..+ni observations in
ascending order.Assign tied observations the
average of the tied ranks.
2. Sum the ranks of individual group.
r1 = sum of ranks of group 1
r2 = sum of ranks of group 2
Kruskal-Wallis Test
4. Calculate the Krusal-Wallis test statistic
12 a ri2
kw 3(N 1)
N(N 1) i 1 ni
5. Decision Making:
Critical Value Approach:
Cannot reject Ho if kw i21,
P-value Approach:
Cannot reject Ho if P-value >
Example 4a
a.State problem in “English”
a. To determine whether cotton
content has any effect on fiber
b.Translate into statistical hypotheses
(H0 and Ha) tensile strength
~ μ
b. Ho : μ ~ μ ~ μ
~ μ ~
1 2 3 4 5
c.Gather evidence (sampling)
H :μ~ μ ~ μ~ μ~ μ ~
1 1 2 3 4 5
d.DECIDE:
What does the evidence c. 15 Percent 20 Percent 25 Percent 30 Percent 35 Percent
suggest? 7 12 14 19 7
Reject H0? Or Not Reject H0? 7 17 18 25 10
15 12 18 22 11
11 18 19 19 15
e.State practical implications in 9 18 19 23 11
“English”
Example 4a
d.DECIDE:
What does the evidence
suggest?
Reject H0? Or Not Reject H0?
Using Minitab
Example 4a
Stat Nonparametrics Kruskal-Wallis
Session Window
Kruskal-Wallis Test: Stack versus Percent
Kruskal-Wallis Test on Stack
Percent N Median Ave Rank Z
15 5 9.000 5.5 -2.55
20 5 17.000 13.2 0.07
Example 4a
a.State problem in “English”
mm = i [(fi-ei)² ÷ ei ]
5. Decision Making:
Critical Value Approach:
Cannot reject Ho if mm k21,
P-value Approach:
Cannot reject Ho if P-value >
Levene’s Test
The non-parametric equivalent of the F-Test (k=2)
and Bartlett’s Test (k>2), the Levene’s Test is
used for comparing the variance of 2 or more
continuous populations.
Levene’s Test
Steps
~
1. For each of the groups, determine the median Yi.
2. For each of the observation within group i,
~
let dij = |Yij - Yi|
3. Perform a 1-Way ANOVA on dij; using groups as
treatments
4. Let F* = Mean Square of dij Mean Square of Error
5. Compare F* vs F(1-; k-1, N-k)
Nozzle A
Bartlett's Test
Nozzle C
Nozzle D
Levene's Test
Nozzle F
5 15 25
End of Topic
What question do you have?
Reference Books
Author:
Ajit C. Tamhane
Dorothy D Dunlop
Publisher:
Prentice-Hall, Inc.
ISBN: 0-13-744426-5
Reference Books
Author:
Ryan/ Joiner
Publisher:
Duxbury Thomson Learning
ISBN: 0 534-37093-4
Reference Books
Author:
Myles Hollander and D
Wolfe
Publisher:
New York: Wiley, 1973