Module 4
Module 4
Module for
PM 212B(Research and Statistics)
Prepared by
GRADUATE SCHOOL
CONTENT :
Objectives:
At the end of the lesson, the students are expected to:
1. Explain and illustrate when, why, and how to use F-tests (One-Way and Two-
Way ANOVA).
2. Formulate the hypothesis of the problems on F-tests (One-Way and Two- Way
ANOVA).
3. Analyze and solve problems on F-tests (One-Way and Two- Way ANOVA).
4. Use SPSS and Excel to conduct statistical analysis
5. Demonstrate their ability to interpret statistical outputs for decisions
Introduction
F- test is another parametric test used to compare the means of two or more groups of
independent samples. Also known as analysis of Variance (ANOVA).
The F-test is used to find out if there is a significant difference between and among the
means of the two or more independent groups.
The F-test is used when there is a normal distribution and level of measurement is
expressed in interval or ratio data.
𝐺𝑇 2 (∑ 𝑋1 + ∑ 𝑋2 + ∑ 𝑋3 + … + ∑ 𝑋𝑛 )2
(1) CF = =
𝑁 𝑛1 + 𝑛2 + 𝑛3 + ... + 𝑛𝑟
(∑ 𝑋1 )2 (∑ 𝑋2 )2 (∑ 𝑋3 )2 (∑ 𝑋4 )2
(3) BSS = + + +...+ − 𝐶𝐹
𝑛1 𝑛2 𝑛3 𝑛𝑟
Where:
CF = Correction Factor(the Square of the Grand Total divided by total samples)
GT= Grand Total
TSS = Total Sum of Squares (the Total sum of squares minus Correction Factor)
BSS = Between Sum of Squares (Between sum of squares divided by its corresponding
samples minus Correction Factor
WSS = Within Sum of Squares (TSS minus BSS)
Example #1.
A professor is administering a 10-item quiz in Statistics to his students in the graduate school of 4
programs. He wants to find out if there is a significant difference in the average scores of their students in
the 4 programs. Use = 0.05 level of significance. The following data are recorded.
Programs
A B C D
9 2 3 8
8 2 4 3
8 4 9 4
7 3 3 7
6 4 5 5
10 5 6 5
9 6 7 4
Solution:
1. Problem: Is there a significant difference in the average scores of their students in the 4
programs ?
2. Hypotheses :
Null Hypothesis (Ho): There is no significant difference in the average scores of their
students in the 4 programs.
3. Level of Significance:
= 0.05
df = k -1 = 4 – 1 = 3 and (N-1)-(k-1) = (28-1) – (4-1) = 27-3 = 24
(2) TSS = ∑ 𝑋12 + ∑ 𝑋22 + ∑ 𝑋32 + ∑ 𝑋42 - CF = 475 + 110 + 225 + 204 – 869.14
= 144.86
(∑ 𝑋1 )2 (∑ 𝑋2 )2 (∑ 𝑋3 )2 (∑ 𝑋4 )2
(3) BSS = + + +...+ − 𝐶𝐹
𝑛1 𝑛2 𝑛3 𝑛𝑟
ANOVA Table
Sources of Degrees of Sum of Mean F- Value Decision
Variation Freedom Squares Squares Computed Tabular/Critical
(df) (SS) (MS)
Between 3 72.28 24.09 Reject Ho
Groups 7.98 3.01
Within 24 72.58 3.02 Significant
Groups
Total 27 TSS
5. Decision Rule:
If the absolute computed F-value is greater than or equal to the absolute F-tabular
value, Reject the Null Hypothesis (HO).
Excel Output
ANOVA
Source of
Variation SS df MS F P-value F crit
Between
Groups 72.28571429 3 24.095238
Within Groups 72.57142857 24 3.0238095 7.96850394 0.000738 3.008787
Total 144.8571429 27
1. Decision Rule:
If the absolute computed F-value is greater than or equal to the absolute F-tabular
value, Reject the Null Hypothesis (HO).
2. Conclusion :
Since, the F - computed value of 7.98 is greater than the F - tabular value of 3.01
at 0.05 level of significance with 3 and 24 degrees of freedom, then the Null Hypothesis
is rejected which means that there is a significant difference in the average scores of their
students in the 4 programs. Implying that students in program A perform better than in
program B, C, & D in the Statistics quiz.
ANOVA
Sum of
Squares df Mean Square F Sig.
Between
72.286 3 24.095 7.969 .001
Groups
Within Groups 72.571 24 3.024
Total 144.857 27
Descriptives
95% Confidence
Std. Interval for Mean
Deviatio Lower Upper
N Mean n Std. Error Bound Bound Minimum Maximum
A 7 8.1429 1.34519 .50843 6.8988 9.3869 6.00 10.00
B 7 3.7143 1.49603 .56544 2.3307 5.0979 2.00 6.00
C 7 5.2857 2.21467 .83707 3.2375 7.3339 3.00 9.00
D 7 5.1429 1.77281 .67006 3.5033 6.7824 3.00 8.00
Total 28 5.5714 2.31626 .43773 4.6733 6.4696 2.00 10.00
Multiple Comparisons
2. Conclusion :
Since, the F - computed value of 7.98 is greater than the F - tabular value of 3.01
at 0.05 level of significance with 3 and 24 degrees of freedom, then the Null Hypothesis
is rejected which means that there is a significant difference in the average scores of their
students in the 4 programs. Implying that students in program A perform better than in
program B, C, & D in the Statistics quiz.
A two-way ANOVA test is a statistical test used to determine the effect of two nominal
predictor variables on a continuous outcome variable. It is used to tests the effect of two
independent variables on a dependent variable and it is a test that analyzes the effect of the
independent variables on the expected outcome along with their relationship to the outcome
itself.
B. How do you use the F-test two way ANOVA with interaction effect?
Example # 2
Thirty (30) MPM students were randomly assigned to one of the three Professors in
graduate school and to one of the two methods of teaching then achievement was measured on a
test administered at the end of the semester. Use the two-way ANOVA with interaction effect at
0.05 level of significance to test the following hypothesis:
Factor TEACHER FACTOR
Method A B C
40 38 45
41 39 48
Method of
38 40 48
Teaching X
38 40 50
40 41 50
TOTAL
43 41 40
42 39 41
Method of
43 38 42
Teaching Y
46 38 42
50 40 45
TOTAL
1. Problem:
(1) Is there a significant difference in the performance of the three groups of
MPM students under three different professors?
(2) Is there a significant difference in the performance of the three groups of
MPM students under two different methods of teaching?
(3) Is there an Interaction effect between teacher and method of teaching factors ?
2. Hypotheses
(1) Ho: There is no significant difference in the performance of the three groups
of MPM students under three different professors.
(2) Ho: There is no significant difference in the performance of the three groups
of MPM students under two different methods of teaching.
3. Level of Significance
= 0.05
df total = N -1 = 30 – 1 = 29
df within = k(n – 1) = 6(5 – 1) = 24
df column = c–1=3–1=2
df row = r–1=2–1=1
df column x row = (c – 1)(r – 1) = (3 – 1)(2 – 1) = (2)(1) = 2
TEACHER FACTOR
Factor
Method A B C A2 B2 C2
Method 40 38 45 1,600 1,444 2,025
of 41 39 48 1,681 1,521 2,304
Teaching 38 40 48 1,444 1,600 2,304
X 38 40 50 1,444 1,600 2,500
40 41 50 1,600 1,681 2,500
TOTAL 197 198 241 636 7,769 7,846 11,633 27,248
Method 43 41 40 1,849 1,681 1,600
of 42 39 41 1,764 1,521 1,681
Teaching 43 38 42 1,849 1,444 1,764
Y 46 38 42 2,116 1,444 1,764
50 40 45 2,500 1,600 2,025
TOTAL 224 196 210 630 10,078 7,690 8,834 26,602
Grand 421 394 451 1,266 17,847 15,536 20,467 53,850
Total
𝐺𝑇 2 1,2662 1,602,756
(1) CF = = = = 53,425.20
𝑁 30 30
(2) SST = ∑ 𝐴2 + ∑ 𝐵2 + ∑ 𝐶 2 - CF
= 424.80
𝐴2𝑋 𝐴2𝑦 2
𝐵𝑋 𝐵𝑌2 2
𝐶𝑋 𝐶𝑌2
(3) SSw = (∑ 𝐴2 + ∑ 𝐵2 + ∑ 𝐶 2 ) − (∑ +∑ + ∑ +∑ +∑ +∑ )
𝑛 𝑛 𝑛 𝑛 𝑛 𝑛
(6) SSc r = SST - SSw – SSc - SSr = 424.80 - 92.80 –162.60 - 1.20 = 168.20
Two-Way ANOVA
Sources of df Sum of Mean F - Value Interpretation
Variation Squares Square Computed Tabular
(SS) (MS)
Teacher’s
162.60
Factor 2 81.30 21.024 3.40 Significant
Methods of Not
1 1.20 1.20 0.310 4.26
Teaching Significant
Factors*Met
hods 2 168.20 84.10 21.75 3.40 Significant
Interaction
Within
Group 24 92.80 3.867
Total 29 424.80
5. Decision Rule:
If the computed F value is greater than the F critical/tabular value, reject Null
Hypothesis, Ho.
6. Conclusion:
However, the F value (interaction) of 21.75 is greater than the F tabular value of
3.40 at 0.05 level of significance with 2 and 24 degrees of freedom. Thus the research
hypothesis is confirmed which means that the interaction effect is present between the
professors and their methods of teaching . MPM Students under professor C have better
EXCEL Output
Anova: Two-Factor With Replication
SUMMARY A B C Total
Method X
Count 5 5 5 15
Sum 197 198 241 636
Average 39.4 39.6 48.2 42
Variance 1.8 1.3 4.2 20
Method Y
Count 5 5 5 15
Sum 224 196 210 630
Average 44.8 39.2 42 42
Variance 10.7 1.7 3.5 10
Total
Count 10 10 10
Sum 421 394 451
Average 42.1 39.4 45.1
Variance 13.6555556 1.377778 14.1
ANOVA
Source of Variation SS df MS F P-value F crit
Sample(Methods) 1.2 1 1.2 0.3 0.58263 4.25968
Columns
(Teachers) 162.6 2 81.3 21 0.00001 3.40283
Interaction(T/M) 168.2 2 84.1 22 0.00000 3.40283
Within 92.8 24 3.866667
Total 424.8 29
SPSS Output
Descriptive Statistics
Dependent Variable: data
Std.
Factor Methods Mean Deviation N
A X 39.4000 1.34164 5
Y 44.8000 3.27109 5
Total 42.1000 3.69534 10
Books:
1. Angeles, Ma. Felisa and et al., Simplified Approach To Statistics, 2005
2. Bluman, Allan G., Elementary Statistics Step-by-Step Approach, 2008
3. Berenson, Mark L. and et el., Business Statistics Concepts and Applications, Eight Edition,
2002
Links :