Professional Documents
Culture Documents
Basic concepts
YOSNI BAKAR
STAB 2004
ANALYSIS OF VARIANCE
QUESTION 1
Why not use t-tests to compare more than
two groups?
Recall when we want to compare two groups we
Y1 Y2 ( 1 2 )
use t-test
t
/ 2 , df
1 1
s p
n1 n2
2
k (k 1)
2
We will have to
compare G1
compare G1
compare G2
-level=0.05
5% possibility to make Type I error, i.e. rejecting
H0, when H0 is actually true.
True
Accept Ho
Accept Ho
1-
Reject Ho
Type I error,
Reject Ho
Type II error,
1-
Decision
FER = (1 (0.95)n
Difference
in
means
small
relative to
overall
variability
Differenc
e in
means
large
relative to
overall
variability
X X
n 1
sum of squares
degree of freedom
X X
Variation
SS X X
85
7
5
6
5
Grand mean =
75
SStotal
Y
i 1 j 1
ij
SS Between ri Ygroup Y
k
i 1
85
7
5
6
5
C
A
Grand mean =
75
Deviation of observation
from group mean
85
7
5
6
5
C
A
Grand mean =
75
Variation of
each group
mean from
the grand
Between
mean
groups sum
of squares
(Explained
variation)
Variation
+ between each
observation
from its group
Within
group
mean
+ sum of
squares
(Unexplained
variation)
Variation: MS
X X
n 1
sum of squares
degree of freedom
Ho: 1 = 2 =3 = 0
If fertilizer means are equal, it implies that all i = 0. Remember
i = (i. ), therefore it is equivalent to
Ho : 1. = 2. = 3.
In words,
H0: The means of all groups are equal.
The alternative hypothesis
Ha : not all i equal 0
which is equivalent to
Ha : at least one of the i s is different
or Ha: The (pop.) means are not all equal. (Note: This is different than
saying they are all unequal !)
Fobs
MSB
variance between groups
Fobs F;k1,Nk
Fail to reject H0 if
Fobs < F;k1,Nk
Critical value