Professional Documents
Culture Documents
TWO – WAY
CLASSIFICATION
ANALYSIS OF
VARIANCE (ANOVA)
Adam Julian L. Che, Ph.D.
WHAT IS ANOVA?
• AnoVa stands for analysis of
variance.
• Statistical Analysis of at least two
population means can be performed
by conducting an ANOVA.
• This method partitions the total
variance of the variables of interest
into several components of sources.
ANOVA: Single Factor
A single factor or one-way ANOVA
is used to test the null hypothesis
that the means of several
populations are all equal.
PROCEDURES FOR ONE-WAY ANOVA
PROCEDURES:
1. Ho: μ1= μ2=…= μp , That the p population
means are equal
Ha: μi ≠ μk , At least two means are not equal.
3. Decision Criterion:
i =1 j =1
= (73 + 892 + ... + 792 + 152 ) − 185096.03
2
= 198707 − 185096.03
= 13610.97
SOLUTION:
• c. p 2
yi.
BSS = − CF
i =1 ni
817 2 10662 8382
= + + − 185096.03
12 15 13
= 185399.92 − 185096.03
= 303.89
• d. WSS = TSS − BSS = 13610.97 − 303.89
= 13307.08
SOLUTION:
Computation Formulas:
BSS 303.89
e. MSB = = = 151.95
( p − 1) (3 − 1)
WSS 13307.08
f. MSW = = = 359.65
(n − p ) (40 − 3)
SOLUTION:
Computation Formulas:
MSB 151.95
g. Fc = = = 0.4225
MSW 359.65
The ANOVA Table
Source of Degrees of Sum of Mean Computed
Variation Freedom Squares Square F or F-
(SV) (DF) (SS) (MS) Ratio
Between Groups p–1 BSS MSB Fc
Within Groups n–p WSS MSW
Total n-1 TSS
6. Conclusion:
Therefore, the average grades given by the three teachers
do not differ significantly.
Roger is a pilot and he does extensive bad weather
3. Decision Criterion:
a. Reject Ho’ if Fc( row ) ³ Fa [(r-1),(r-1)(c-1)]
b. Reject Ho’’ if Fc(column) ³ Fa [(c-1),( r-1)(c-1)]
4. Computation
The ANOVA Table
Source of Degrees of Sum of Mean Computed
Variation Freedom Squares Square F
Row r–1 SSRow MSRow Fc(row)
Column c–1 SSColumn MSColumn Fc(column)
Error (r – 1)(c – 1) SSError MSError
Total rc - 1 SSTotal
Plastic Humidity
Total Mean
Type 30% 50% 70% 90%
A 38.2 32.5 34.2 33.0 137.9 34.48
B 30.9 27.8 28.4 30.5 117.6 29.40
C 27.3 30.4 27.3 31.6 116.6 29.15
Total 96.4 90.7 89.9 95.1 372.1
Mean 32.13 30.23 29.97 31.7 31.01
SOLUTION:
( 372.1)
2
a. 2
x..
CF = = = 11538.20083
rc ( 3 )( 4 )
SOLUTION:
c=4
Plastic Humidity
Total Mean
Type 30% 50% 70% 90%
A 38.2 32.5 34.2 33.0 137.9 34.48
B 30.9 27.8 28.4 30.5 117.6 29.40
C 27.3 30.4 27.3 31.6 116.6 29.15
Total 96.4 90.7 89.9 95.1 372.1
r=3 Mean 31.01
SOLUTION:
r c
SSTotal = å å x ij 2 -CF
b.
i=1 j=1
Plastic Humidity
Total Mean
Type 30% 50% 70% 90%
A 38.2 32.5 34.2 33.0 137.9 34.48
B 30.9 27.8 28.4 30.5 117.6 29.40
C 27.3 30.4 27.3 31.6 116.6 29.15
Total 96.4 90.7 89.9 95.1 372.1
Mean 31.01
SOLUTION:
r
c.
å i.
x 2
é 137.92 +117.62 +116.62 ù
SSPlastic = i=1
-CF = ê ú -11538.20083
c ë 4 û
46441.73
= -11538.20083
4
SSPlastic = 72.23167
SOLUTION:
c=4
Plastic Humidity
Total Mean
Type 30% 50% 70% 90%
A 38.2 32.5 34.2 33.0 137.9 34.48
B 30.9 27.8 28.4 30.5 117.6 29.40
C 27.3 30.4 27.3 31.6 116.6 29.15
Total 96.4 90.7 89.9 95.1 372.1
Mean 31.01
SOLUTION:
c
d. åx .j
2
Plastic Humidity
Total Mean
Type 30% 50% 70% 90%
A 38.2 32.5 34.2 33.0 137.9 34.48
B 30.9 27.8 28.4 30.5 117.6 29.40
C 27.3 30.4 27.3 31.6 116.6 29.15
Total 96.4 90.7 89.9 95.1 372.1
r=3
Mean 31.01
SOLUTION:
e. SSError = SSTotal -SSPlastic -SSHumidity
=113.6892- 72.2317-10.2892
SSError = 31.1683
SOLUTION:
f. SSPlastic 72.2317
MSPlastic = =
r -1 3 -1
MSPlastic = 36.1159
SOLUTION:
g.
SSHumidity 10.2892
MSHumidity = =
c -1 4 -1
MSHumidity = 3.4297
SOLUTION:
h.
SSError 31.1683
MSError = =
( )( ) ( )( )
r -1 c -1 3 -1 4 -1
MSError = 5.1947
SOLUTION:
i.
MSPlastic 36.1159
Fc(Plastic ) = =
MSError 5.1947
Fc(Plastic ) = 6.9525
SOLUTION:
j.
MSHumidity 3.4297
Fc(Humidity ) = =
MSError 5.1947
Fc(Humidity ) = 0.6602
The ANOVA Table
Source of Degrees of Sum of Mean Computed
Variation Freedom Squares Square F
Plastic Type 2 72.2317 36.1159 6.95*
Humidity 3 10.2892 3.4297 0.66ns
Error 6 31.1683 5.1947
Total 11 113.6892
5. Decision
a. Since Fc(plastic ) = 6.95 ³ F0.05[(3-1),(3-1)(4-1)] = 5.14 , reject Ho’.
6. Conclusion:
a. At least two of the plastic types differ significantly at 5% level in
terms of the mean force required to pull glued plastic apart.
b. The mean force required to pull the glued plastic apart do not
differ significantly at 5% level of significance among humidity
conditions.
ANOVA IN EXCEL: IT’S YOUR TURN AGAIN!
To start with the ANOVA function, open the workbook
containing the data you want to run the test on. Then, follow these
steps:
1. Click in a cell on your spreadsheet where your output will begin. The
results, of course, will cover a range of cells.
2. Click on the Data tab from the main ribbon and select data analysis,
which should be in the analysis menu on the right.
3. Select the appropriate ANOVA test from the options in the Data
Analysis menu.
The following table presents the final grades obtained
Problem
by five students in Mathematics, English, ESP, and
Science:
(MS EXCEL) 1
2
80
86
78
90
85
93
79
91
– “Two-Way 3
4
75
78
78
80
83
84
79
76
Classification 5 83 87 85 87
ANOVA w/o Use 0.05 level of significance to test the ff. hypotheses:
Replication” a. Students have equal ability;
b. Subjects are of equal difficulty.
The following table presents the final grades obtained
Problem
by five students in Mathematics, English, ESP, and
Science:
(JAMOVI) 1
2
80
86
78
90
85
93
79
91
– “Two-Way 3
4
75
78
78
80
83
84
79
76
Classification 5 83 87 85 87
ANOVA w/o Use 0.05 level of significance to test the ff. hypotheses:
Replication” a. Students have equal ability;
b. Subjects are of equal difficulty.
ANOVA: Two Factor with Replication
3. Decision Criterion:
a. Reject Ho’’’ if 𝐹𝑐(𝑖𝑛𝑡𝑒𝑟𝑎𝑐𝑡𝑖𝑜𝑛) ≥ 𝐹𝛼[ 𝑟−1 ,(𝑟−1)(𝑐−1]
b. Reject Ho’ if Fc ( row ) ³ Fa [( r -1),( r -1)(c-1)]
c. Reject Ho’’ if Fc (column ) ³ Fa [(c-1),( r -1)(c-1)]
4. Computation using Excel:
PROCEDURES
5. State your decision based on the decision
criterion and computed F.
EXCEL)–
“Two-Way
Classification
ANOVA with
Replication”
Problem
Marathon Times. Listed below are New York Marathon
running times (in seconds) for randomly selected
runners who completed the marathon. At 0.05 level of
Set #12.B. significance, are the running times affected by an
interaction between gender and age bracket? Are
(JAMOVI)– running times affected by gender? Are running times
affected by age bracket?
“Two-Way
Classification
ANOVA with
Replication”
REFERENCES