Analysis of Variance ANOVA
Analysis of Variance ANOVA
and F-test.
Comparison of three or more
samples/populations
One way and two way ANOVA
An F-test is any statistical test in which the test statistic has
an F-distribution under the null hypothesis. It is most often
used when comparing statistical models that have been fitted
to a data set, in order to identify the model that best fits the
population from which the data were sampled.
3. Find the F Statistic which is the critical value for this test. This
F-statistic formula is the ratio of the variance of the group means
divided by the mean of the within-group variances.
9
The Logic and the Process of Analysis of Variance
(cont.)
• The test statistic for ANOVA is an F-ratio, which is a
ratio of two sample variances. In the context of
ANOVA, the sample variances are called mean
squares, or MS values.
• The top of the F-ratio MSbetween measures the size of
mean differences between samples. The bottom of
the ratio MSwithin measures the magnitude of
differences that would be expected without any
treatment effects.
11
The Logic and the Process of Analysis of Variance
(cont.)
• Thus, the F-ratio has the same basic structure as the
independent-measures t statistic presented in Chapter 10.
12
The Logic and the Process of Analysis of Variance
(cont.)
• A large value for the F-ratio indicates that the obtained sample mean
differences are greater than would be expected if the treatments had
no effect.
• Each of the sample variances, MS values, in the F-ratio is computed
using the basic formula for sample variance:
SS
sample variance = MS = ──
df
13
The Logic and the Process of Analysis of Variance
(cont.)
• The two components of the F-ratio can be described
as follows:
• Between-Treatments Variability: MSbetween measures
the size of the differences between the sample
means. For example, suppose that three treatments,
each with a sample of n = 5 subjects, have means of
M1 = 1, M2 = 2, and
M3 = 3.
Notice that the three means are different; that is, they
are variable.
14
The Logic and the Process of Analysis of Variance
(cont.)
15
The Logic and the Process of Analysis of Variance
(cont.)
• Within-Treatments Variability: MSwithin measures the
size of the differences that exist inside each of the
samples.
• Because all the individuals in a sample receive exactly
the same treatment, any differences (or variance)
within a sample cannot be caused by different
treatments.
16
One-Way ANOVA
One way Classification of
variance
What are the hypotheses of a One-Way ANOVA?
In a one-way ANOVA there are two possible hypotheses.
• The null hypothesis (H0) is that there is no difference between
the groups and equality between means. (Walruses weigh the
same in different months)
• The alternative hypothesis (H1) is that there is a difference
between the means and groups. (Walruses have different weights
in different months)
Analysis of Variance; one-way classification of
variance
Calculate the following items:
1. Find out total SS
2. Find out treatment SS
3. Find out Residual/error SS
4. Find the Total df, Treatment df, residual df
5. Estimate mean square (MS) for Treatment and Residual
6. Estimate variance ratio (F-value)
Two-Way ANOVA
(Two-way Classification of variance)
Two –way Analysis of variance
In statistics, the two-way analysis of variance ( ANOVA) is an
extension of the one-way ANOVA that examines the influence
of two different categorical independent variables on one
continuous dependent variable.
What is Being Compared? The means of three or more groups of an The effect of multiple groups of two
independent variable on a dependent variable. independent variables on a dependent
variable and on each other.