ANOVA
ANOVA
ANOVA
Roderick D. Balce
Learning Outcomes
At the end of the lesson, the students should
be able to:
1. explain the use of ANOVA in hypothesis
testing;
2. compute for F-statistic;
3. make decision about the null hypothesis
based on computed F statistic and p-value;
4. perform post-hoc analysis when indicated
Basic Statistical Tests
Two Groups Three or More Groups
One Correlation
Measure Related/ Related/
Sample Independent Independent analysis
Matched Matched
Interval/ z test Independent Paired One-way Repeated Pearson
Ratio samples samples ANOVA measures correlation
t-test t-test t-test Factorial ANOVA
ANOVA
Ordinal Kolmorov- Kolmorov- Wilcoxon Kruskal- Friedman Spearman
Smirnov Smirnov test signed Wallis one- two-way
test Mann- ranks test way ANOVA ANOVA by
Whitney U ranks
test
Nominal Chi-square Chi-square McNemar Chi-square Cochran Q Phi
test test change test for m x k test
Goodness k x 2 tables test tables
of fit
One-way analysis of variance
(ANOVA)
A method of testing the equality of three or
more population means by analyzing sample
variances.
Step 6: Conclusion
When we reject the H0 we conclude that
not all population means are equal.
When we do not reject the H0 we
conclude that the population means
may all be equal.
Example:
Use the chest deceleration measurements
listed in the table below and a significance
level of = 0.05 to test the claim that the three
samples come from populations with means
that are all equal.
Procedure
Step 1: Hypotheses
H0: µS = µM = µL
H1: At least one mean is different
JASP
ANOVA - Deceleration
Cases Sum of Squares df Mean Square F p
Car size 162.867 2 81.433 4.094 0.028
Residuals 537.000 27 19.889
Step 5: Decision: _______________________
Step 6: Conclusion:
There is __________ evidence to
_________ the claim that the three
samples come from populations with
means that are all equal.
Post Hoc Analysis:
Identifying Means That Are Different
Tukey’s HSD Test
Mean
SE t p tukey
Difference
Small Medium 2.600 1.994 1.304 0.405
Large 5.700 1.994 2.858 0.021
Medium Large 3.100 1.994 1.554 0.282
Example:
The display shows that the mean for Sample 1
(small cars) is significantly different from the
mean for Sample 3 (large cars). Based on
post hoc analysis, it appears that the
measurements from small cars have a mean
that is significantly different from the mean
for large cars.
Fundamental Concepts
Assuming that the populations have the same
variance 2 (as required for the test), the F test
statistic is the ratio of these two estimates of 2:
(1) variance between samples (based on
variation among sample means); and
(2) variance within samples (based on the
sample variances).
Fundamental Concepts
An excessively
large F test statistic
is evidence against
equal population
means.
F Test Statistic and P-Value
Sample Calculations
Two-Way
Analysis of Variance
Involves two factors and the data are partitioned
into subcategories called cells.
No interaction: Interaction:
line segments are line segments
approximately parallel intersect
Block Level 1
Block Level 1
Mean Response
Mean Response
Block Level 3
Block Level 2
Block Level 2
Block Level 3
A B C A B C
Groups Groups
Step 1: Interaction Effect
MS(interaction) 7.389
F 0.34
MS(error) 21.611
MS(size) 77.389
Column Factor: F 3.58
MS(error) 21.611
Between MSB
SSB h–1 MSB = SSB / (h – 1)
blocks MSE
Between MSG
SSG k–1 MSG = SSG / (k – 1)
groups MSE
MSI
Interaction SSI (k – 1)(h – 1) MSI = SSI / (k – 1)(h – 1)
MSE
Error SSE kh(l – 1) MSE = SSE / kh(l – 1)
Step 3: Conclusion
We conclude that chest deceleration
measurements appear to be affected by
whether the car is foreign or domestic, but
those measurements do not appear to be
affected by the size of the car.
Repeated Measures
Analysis of Variance
A paired comparisons design in which
measurements of the same variable are made
on each subject on two or more different
occasions.