THE F-Test
THE F-Test
(Analysis of Variance)
ANOVA
One-way ANOVA
•used when there is only one variable involved
Two-way ANOVA
•used when two variables are involved: the column
and the row variables
The F-TEST (ONE-WAY ANNOVA)
Example 1:
A sari-sari store is selling 4 brands of shampoo. The owner is
interested if there is a significant difference in the average
sales for one week. The following data are recorded.
BRAND
A B C D
7 9 2 4
3 8 3 5
5 8 4 7
6 7 5 8
9 6 6 3
4 9 4 4
3 10 2 5
Perform the analysis of variance and test the hypothesis at
.05 level of significance that the average sales of the four brands
of shampoo are equal.
II. Hypotheses:
Ho: There is no significant difference in the average sales of
the four brands of shampoo.
H1: There is a significant difference in the average sales of
the four brands of shampoo.
III. Level of Significance:
α = .05 df = 3 and 24
IV. Statistics
F-test one-way-analysis of variance computation:
A B C D
X1 X12 X2 X22 X3 X32 X4 X42
7 9 2 4
3 8 3 5
5 8 4 7
6 7 5 8
9 6 6 3
4 9 4 4
3 10 2 5
∑X1 = ∑X2 = ∑X3 = ∑X4 =
∑X12= ∑X22= ∑X32= ∑X42=
n1 = n2 = n3 = n4 =
X1 = X2 = X3 = X4 =
A B C D
X1 X12 X2 X22 X3 X32 X4 X42
7 49 9 81 2 4 4 16
3 9 8 64 3 9 5 25
5 25 8 64 4 16 7 49
6 36 7 49 5 25 8 64
9 81 6 36 6 36 3 9
4 16 9 81 4 16 4 16
3 9 10 100 2 4 5 25
∑X1 = 37 ∑X2 = 57 ∑X3 = 26 ∑X4 = 36
∑X12=225 ∑X22= 475 ∑X32= 110 ∑X42= 204
n1 = 7 n2 = 7 n3 = 7 n4 = 7
X1 = 5.29 X2 = 8.14 X3 = 3.71 X4 = 5.14
Formulas:
CF = (∑X1+∑X2 +∑X3+∑X4)2 / (n1+n2+n3+n4)
Where:
CF = computed f
TSS = total sum of squares
BSS = sum of squares between groups
WSS = sum of squares within the group
Analysis of Variance Table
1 2 3
15 27 37
25 18 40
30 35 27
27 45 50
45 38 43
40 32 26