2. ANOVA
Analysis of Variance
The basic principle is to test for differences among the
means of the populations by examining the amount of
variation within each of these samples, relative to the
amount of variation between the samples.
3. F = Estimate of population variance based on between samples
variance
Estimate of population variance based on within samples variance
5. Example 1
Set up an analysis of variance table for the following per
acre production data for three varieties of wheat, each
grown on 4 plots and state if the variety differences are
significant.
Plot
of
Land
Per acre
Production data
Variety of Wheat
A B C
1 6 5 5
2 7 5 4
3 3 3 3
4 8 7 4
Step1: Obtain the mean of each sample, X1 , X2 , X3 ,
…. Xk
Step2: Obtain the mean of sample means
X = X1 + X2 + X3 + …. Xk
No. of samples (k)
Step3: Calculate sum of squares for
variance between the samples, SS Between
= n1(X1 – X) 2 + n2(X2 – X) 2 + ……….nk(Xk – X)2
6. Step4: Calculate mean square between samples, MS Between = SS Between
k-1
Step5: Calculate sum of squares for variance within the samples, SS Within
= Σ(X1i – X1) 2 + Σ(X2i – X2) 2 + ………. Σ(Xki – Xk)2 where i= 1,2,3,….
Step6: Calculate mean square within samples, MS Within = SS Within
n-k
Step7: SS for total variance = = Σ(Xij – X) 2 where i= 1,2,3,…. And j= 1,2,3,….
For a check, SS for total variance (should be) = SS between + SS within
and n-1 (should be) = (k-1) + (n-k)
Step8: F ratio = MS between
MS within
If calculated value of F is less than its table value, the difference is taken as insignificant
8. ANOVA Table for One-Way ANOVA
Source of
Variation
Sum of
Squares (SS)
Degrees of
Freedom
(d.f.)
Mean Square
(MS)
F-ratio
Between
samples
= n1(X1 – X) 2 +
n2(X2 – X) 2 +
…….nk(Xk – X)2
k-1
SS Between
k-1
MS Between
MS Within
Within
samples
= Σ(X1i – X1) 2 +
Σ(X2i – X2) 2 +
…... Σ(Xki – Xk)2
n-k
SS Within
n-k
Total Σ(Xij – X) 2 n-1
9. Example 2
Below are given the yields per acre of wheat for six plots
entering a crop competition, there of the plots being
sown with wheat of variety A and three with B.
Variety Yields in field per acre
1 2 3
A 30 32 22
B 20 18 16
Set up a table of analysis of variance and calculate F.
State whether the difference between the yields of
two varieties is significant.