Application of ANOVA
Application of ANOVA
What is ANOVA?
1 2 3
Population 1 Population 2 Population 3
Testing Hypothesis
Thehypothesis
The hypothesistest
testof
ofanalysis
analysisof
ofvariance:
variance:
HH00::11==22==33==44==......r r
HH11::Not alli(i(i==1,
Notall 1,...,
...,r)r)are
areequal
equal
i
•• The
Thetest
teststatistic
statisticof
ofanalysis
analysisof ofvariance:
variance:
••
•• F(r-1,n-r)
F(r-1, n-r) ==Estimate
Estimateof ofvariance
variancebased
basedon onmeans
meansfromfromrrsamples
samples
•• Estimateof
Estimate ofvariance
variancebased
basedononallallsample
sample
observations
observations
•• That
Thatis,is,the
thetest
teststatistic
statisticininan
ananalysis
analysisof ofvariance
varianceisisbased
basedononthe
theratio
ratio
oftwo
of twoestimators
estimatorsof ofaapopulation
populationvariance,
variance,andandisistherefore
thereforebased
basedon on
theFFdistribution,
the distribution,with
with(r-1)
(r-1)degrees
degreesof offreedom
freedomininthethenumerator
numeratorand
and
(n-r)degrees
(n-r) degreesof offreedom
freedomininthe thedenominator.
denominator.
Extension of ANOVA to Three Factors
Source of Sum of Degrees
Variation Squares of Freedom Mean Square F Ratio
Factor A SSA a-1 SSA MSA
MSA F
a 1
MSE
Factor B SSB b-1 SSB MSB
MSB F
b 1 MSE
Factor C SSC c-1 SSC MSC
MSC F
c 1 MSE
Interaction SS(AB) (a-1)(b-1) SS ( AB ) MS ( AB )
MS ( AB ) F
(AB) ( a 1)( b 1) MSE
multiple
2 =
(SS x 1 + SS x 2 + SS x 1x 2)/ SS y
N-way Analysis of Variance
The significance of the overall effect may be tested by an F test, as
follows
(SS x 1 + SS x 2 + SS x 1x 2)/dfn
F=
SS error/dfd
SS x 1,x 2,x 1x 2/ dfn
=
SS error/dfd
MS x 1,x 2,x 1x 2
=
MS error
where
dfn = degrees of freedom for the numerator
= (c1 - 1) + (c2 - 1) + (c1 - 1) (c2 - 1)
= c1c2 - 1
dfd = degrees of freedom for the denominator
= N - c1c2
MS = mean square
N-way Analysis of Variance
If the overall effect is significant, the next step is to examine the
significance of the interaction effect. Under the null hypothesis of no
interaction, the appropriate F test is:
SS x 1x 2/dfn
F=
SS error/dfd
MS x 1x 2
=
MS error
where
dfn = (c1 - 1) (c2 - 1)
dfd = N - c1c 2
N-way Analysis of Variance
The significance of the main effect of each factor may be tested
as follows for X1:
SS x 1/dfn MS x 1
F= =
SS error/dfd MS error
where
dfn = c1 - 1
dfd = N - c 1c 2
Issues in Interpretation
• The most commonly used measure in ANOVA is omega squared, . This measure
2indicates what proportion of the variation in the dependent variable is related to a particular
independent variable or factor. The relative contribution of a factor X is calculated as
• follows:
SS x -(dfx x MS error)
2x =
SS total + MS error
• Normally, is interpreted only for statistically significant effects.
2
Repeated Measures ANOVA
In the case of a single factor with repeated measures, the total
variation, with nc - 1 degrees of freedom, may be split into
between-people variation and within-people variation.
SStotal = SSbetween people + SSwithin people
The between-people variation, which is related to the
differences between the means of people, has n - 1 degrees
of freedom. The within-people variation has
n (c - 1) degrees of freedom. The within-people variation may,
in turn, be divided into two different sources of variation. One
source is related to the differences between treatment means,
and the second consists of residual or error variation. The
degrees of freedom corresponding to the treatment variation
are c - 1, and those corresponding to residual variation are
(c - 1) (n -1).
Repeated Measures ANOVA
Thus,