4.1 Non Parametric and Sample Size Selection
4.1 Non Parametric and Sample Size Selection
4.1 Non Parametric and Sample Size Selection
Reference Material
NONPARAMETRIC TESTS
Reference Material
Reference Material
Enter OK.
Reference Material
KRUSKAL-WALLIS TEST
12 n i R i - R
Test Statistic, H =
i =1
N ( N + 1)
where, ni = number of observations in group i
N = Total sample size
Enter OK.
Reference Material
A vs. B Analysis
poor
Reference Material
A2
A1
B1
B2
Hypotheses
We want to compare processes A and B.
Our hypotheses are:
Ho: A = B
Ha: A B
How large is the risk, if we obtain the
Sequence
Reference Material
A
A
B
B
- Risk
good
poor
A
A
B
B
A
B
A
B
A
B
B
A
B
B
A
A
B
A
B
A
B
A
A
B
A
A
B
B
Reference Material
- Risk
Reference Material
A
A
A
B
B
B
Overlapping Results
We take 5 results each from processes A and B.
In practice, we frequently obtain overlaps.
A
A
A 4
A
B
B
A
B
3
B
B
Reference Material
Decision-Making Rule
The 6 9 12 Rule is the decision-making rule.
If the number of A samples is equal to or no more than 20 %
greater than the number of B samples, then A is better than B
with a statistical alpha risk of:
5 %
1 %
0,1 %
6
9
12
Reference Material
Reference Material
CASE 2
C o n fid e n c e L e ve l
95%
95%
A verage
100
100
S a m p le S ize
10
1000
C o n fid e n ce In ter v a l
9 6 - 1 04
9 8 .5 - 10 1
WHY?
Reference Material
14
hence
1
Hence, Sample Size
ConfidenceInterval
Reference Material
15
1. Test sensitivity
2. Risks
Reference Material
16
EXAMPLE
The machine is set at 100 mm at time t = 1. As the time
progresses there is a gradual shift of mean to 100.1 & 102
mm. The standard deviation throughout is constant at 1 mm.
At TIME = 1
Average = 100
SD = 1
At TIME = 2
At TIME = 3
SD = 1
Reference Material
17
EXAMPLE
100
100.1
SHIFT (
) = 0.1 mm
Comparison of T= 1 & 2
100
102
SHIFT (
) = 2 mm
Comparison of T= 1 & 3
18
ANOTHER EXAMPLE
The machine is set at 100 mm at time t = 1. As the time
progresses there is a gradual shift of mean to 100.5 mm.
Case 1 : Mean shifts from 100 to 100.5 and SD is 1 mm
Case 2 : Mean shifts from 100 to 100.5 and SD is 0.1 mm
At TIME = 1
At TIME = 2
Average = 100
Average = 100.5
CASE 1: SD = 1 mm
CASE 2: SD = 0.1 mm
19
ANOTHER EXAMPLE
100
100
100.5
Case 1
SHIFT ( ) = 0.5 mm
100.5
Case 2
SHIFT ( ) = 0.5 mm
20
TEST SENSITIVITY
Hence, lower the standard deviation it is easier to
detect the shift, and more the shift it is easier to
detect it.
The shift per standard deviation is called test
sensitivity.
Test sensitivity = (
/
)
Higher the test sensitivity (
/
), the more
confidence in making a right judgement of change.
Reference Material
21
PUNISHED
OK
Error
(Type I Error)
Error
(Type II Error)
OK
22
Jailed
Shakti Kapoor
ERROR
OK
23
ERROR
24
Reference Material
()
25
Z/2
=
n
(or)
n =
Z2/2 2
Z/2
Reference Material
p (1 - p)
=
n
or
n =
Z2/2 p (1 - p)
2
26
n =
Reference Material
Z2/2 p (1 - p)
27
28