To test = σ = σ = · · · = σ = At least one pair of σ different
To test = σ = σ = · · · = σ = At least one pair of σ different
To test = σ = σ = · · · = σ = At least one pair of σ different
Analysis of To test
Variance
Test statistic
(n − k) SSTZ MSTZ
W = =
(k − 1) SSEZ MSEZ
where SSTZ and SSEZ are the usual sums of squares evaluated
for the new data zij where
zij = |xij − x i |.
If H0 is true
W ∼ Fisher-F(k − 1, n − k).
1/ 12
Example: PTSD Example (see handout).
Analysis of
Variance n = 45, k = 4.
Designed
Experiments
F-statistic F = 3.046
Critical Value F0.05 (3, 41) l 2.84
F0.025 (3, 41) l 3.46
F0.01 (3, 41) l 4.31
2/ 12
Analysis of
Why do we need the three assumptions ?
Variance
Designed
Experiments
I independence
I Normality
I equal variances
- so that we can predict (under H0 ) that
F ∼ Fisher-F(k − 1, n − k)
3/ 12
Analysis of
Variance
Designed
Experiments Under this hypothesis, the treatment labels
4/ 12
Randomization/Permutation Tests
Analysis of
Variance Suppose that there are N possible relabellings that give rise to
Designed
Experiments test statistics
F1 , F2 , . . . , FN
Then the rejection region for significance level α is the interval
to the right of
6/ 12
Analysis of
Variance
Designed
Experiments Example: PTSD Example.
There are
45!
= 2.610 × 1024
14!10!11!10!
possible relabellings: a very big number.
MST
We compute F = MSE for each relabelling. For the real data,
F = 3.046.
7/ 12
Analysis of
Example: PTSD Example (continued).
Variance
Designed
Using this approach, we compute for α = 0.05
Experiments
8/ 12
Analysis of Permutation Distribution
Variance
Designed
1.00
Experiments
0.75
Fisher−F(3,41) density
Density
0.50
0.25
0.00
0 2 4 6 8 10
F statistic
9/ 12
Analysis of
Variance
Designed
Experiments
REJECTED
10/ 12
Final Note on ANOVA F-test for a CRD
Analysis of
Variance
Designed
Experiments If k = 2, consider F = MST /MSE ;
k
1 X
MST = ni (x i − x)2 = n1 (x 1 − x)2 + n2 (x 2 − x)2
k −1
i=1
n1 n2
= (x 1 − x 2 )2
n1 + n2
k ni
1 XX
MSE = (xij − x i )2 = sP2
n−k
i=1 j=1
(n1 − 1)s12 + (n2− 1)s22
=
n1 + n2 − 2
11/ 12
Therefore
Analysis of
Variance µ ¶ 2
n1 n2
Designed
Experiments (x 1 − x 2 )2 (x 1 − x 2 )
n1 + n2
F = =
r1
sP2 1
sp +
n1 n2
t ∼ Student-t(n − 2)
F ∼ Fisher-F(1, n − 2)
12/ 12