You are on page 1of 13

Two-way Analysis

of variance
Fadhilah Hayati 4183111076
MESP 2018
INFERENTIAL STATISTICS
Introduction

Two-way anova has a difference compared to one-way anova. The


difference is in the number of independent variables. In one-way
anova there is only one independent variable, while in two-way
anova there are two or more independent variables (Witte & Witte,
2017: 340). Martin & Bridgmon (2012: 232) state that Two-Factor
Anova is used to test the effect of two independent variables (main
effect) on the same dependent variable and also examine how the
independent variables influence each other on the dependent
variable (interaction effect).
Martin & Bridgmon (2012: 236) state
that three assumptions are
fulfilled for the two-way ANOVA
test:
 Normality;
 Homogeneity of variance;
 Independence of observations.
Partition total
of squared
Formula:
Some of terms for 2-way Anava:
Some of the requirements for two-way Anava (Triola, 2018: 645) are as follows:
a. The sample comes from a population that is normally distributed
b. The population has the same variants.
c. The sample is a simple random sample of quantitative data
d. Samples are independent of each other (this procedure cannot be applied to samples that
are not independent)
e. Sample values are categorized on two lines (the basis is known as the two-way ANOVA
method)
f. Have the same number of samples (known as a balanced design)
Degree of Freedom (df)

Table Structure of 2-way ANAVA


Expalanation :

𝑏 𝑘 2 𝑇 2 ..
• 𝑆𝑆𝑇 = 𝑖=1 𝑗=1 𝑥𝑖𝑗 −
𝑏𝑘

1 𝑏 2 𝑇2
• 𝑆𝑆𝐵 = 𝑖=1 𝑇1 − • 𝑀𝑆𝐺 =
𝑆𝑆𝐺
𝑏 𝑏𝑘 (𝑏−1)(𝑘−1)

1 𝑘 2 𝑇 2 .. 𝑀𝑆𝐵
• 𝑆𝑆𝐾 = 𝑗=1 𝑇 .𝑗 − • 𝐹ℎ𝐵 =
𝑘 𝑏𝑘 𝑀𝑆𝐺

• 𝑆𝑆𝐺 = 𝑆𝑆𝑇 − 𝑆𝑆𝐵 − 𝑆𝑆𝐾 • 𝐹ℎ𝐾 =


𝑀𝑆𝐾
𝑀𝑆𝐺
𝑆𝑆𝐵
• 𝑀𝑆𝐵 =
𝑏−1

𝑆𝑆𝐾
• 𝑀𝑆𝐾 =
𝑘−1
Example
1. An analyst studied the premiums for auto insurance charged by an insurance company in six cities. Six
cities were selected to represent different sizes (Factor A: small, medium, large) and different areas of the
state (Factor B: east, west, south). There is only one city for each size and area combination. The amount of
premium charged for certain types of coverage under certain risk categories for each of the six cities is
given in the following table.
Factor B
Factor A
East West South
Small 135 175 180
Medium 150 180 160
Large 155 195 165
Problem Solving
1. Determine Hypothesis
Factor A 𝑏 𝑘 2 𝑇 2 ..
𝐻0 : 𝛼1 = 𝛼2 = 𝛼3 • 𝑆𝑆𝑇 = 𝑖=1 𝑗=1 𝑥𝑖𝑗 −
𝑏𝑘
𝐻1 : at least, there is 1 different mean 2 2
14952
2
= (135 +175 + ⋯ + 165 ) −
(3)(3)
Factor B = 251025 − 248336,1
𝐻0 : 𝛽1 = 𝛽2 = 𝛽3 = 2688,889
𝐻1 : at least, there is 1 different mean • 𝑆𝑆𝐵 =
1 𝑏 2
𝑇 −
𝑇2
𝑏 𝑖=1 1 𝑏𝑘
1 14952
2. Statistical Testing 2 2
= (490 + 490 + 515 − 2

Factor A Factor B Total


3 (3)(3)
745425 2235025
East West South = −
3 9
Small 135 175 180 490 = 138,889
Medium 150 180 160 490
Large 155 195 165 515
Total 440 550 515 1495
1 𝑘 𝑇 2 ..
• 𝑆𝑆𝐾 = 𝑇 2 .𝑗 − 𝑀𝑆
𝑘 𝑗=1 𝑏𝑘 • 𝐹ℎ𝐵 = 𝐵
𝑀𝑆𝐺
1 14952
2 2
= 450 + 550 + 505 − 2 69,444
3 (3)(3) =
127,778
= 2038,889 = 0,544
• 𝑆𝑆𝐺 = 𝑆𝑆𝑇 − 𝑆𝑆𝐵 − 𝑆𝑆𝐾 𝑀𝑆𝐾
• 𝐹ℎ𝐾 =
= 2688,889 − 138,889 − 2038,889 𝑀𝑆𝐺
= 511,111 1019,444
𝑆𝑆 =
• 𝑀𝑆𝐵 = 𝐵 127,778
𝑏−1 = 7,978
138,889
=
3−1 Table Of 2-way ANAVA Without Reaction
= 69,444
𝑆𝑆
• 𝑀𝑆𝐾 = 𝐾 Origin of Sum of Square Degree Mean of square 𝐹𝑐𝑜𝑢𝑛𝑡
𝑘−1
2038,889 Variance Freedom (df)
= 𝑆𝑆𝐵 𝑀𝑆𝐵 𝐹ℎ𝐵
3−1 Mean of row b-1
= 1019,444
𝑆𝑆𝐺 Mean of column 𝑆𝑆𝐾 k-1 𝑀𝑆𝐾 𝐹ℎ𝐾
• 𝑀𝑆𝐺 =
(𝑏−1)(𝑘−1)
511,111 Error 𝑆𝑆𝐺 (b-1)(k-1) 𝑀𝑆𝐺
=
3−1 3−1
Total 𝑆𝑆𝑇 bk-1 𝑀𝑆𝑇
= 127,778
3. Decision Rule
• Process 1
If value of 𝐹ℎ𝐵 < 𝑣𝑎𝑙𝑢𝑒 𝑡𝑎𝑏𝑙𝑒 𝑜𝑓 𝐹0,05 2,4 , so H0 accepted
If value of 𝐹ℎ𝐵 ≥ 𝑣𝑎𝑙𝑢𝑒 𝑡𝑎𝑏𝑙𝑒 𝑜𝑓 𝐹0,05 2,4 , so H0 rejected
• Process 2
If value of 𝐹ℎ𝐾 < 𝑣𝑎𝑙𝑢𝑒 𝑡𝑎𝑏𝑙𝑒 𝑜𝑓 𝐹0,05 2,4 , so H0 accepted
If value of 𝐹ℎ𝐾 ≥ 𝑣𝑎𝑙𝑢𝑒 𝑡𝑎𝑏𝑙𝑒 𝑜𝑓 𝐹0,05 2,4 , so H0 rejected
4. Conclusion
Factor A
• Based on result above, we can conclude that 𝐹ℎ𝐵 = 0,544 𝑎𝑛𝑑 𝐹0,05(2,4) = 6,944, so that 𝐹ℎ𝐵 < 𝐹0,05(2,4) ,
so H0 accepted. It means there are no differences in 3 types of Factor A
Factor B
• Based on result above, we can conclude that 𝐹ℎ𝐾 = 7,978 𝑎𝑛𝑑 𝐹0,05(2,4) = 6,944, so that 𝐹ℎ𝐾 ≥ 𝐹0,05(2,4) ,
so H0 rejected. It means there are differences in 3 types of Factor B
Learning Resources
01
Learning
02
Resources 03
Prof. Dr. Edy Syahputra Anava Dua Arah
Quantitative and statistical 04
Anonym. Rumus research methods From
Statistik. 2020 hypothesis to results.
Statistics, 11th
Martin, W. E., & Edition.
Bridgmon, K. D. (2012)
Witte, R. S., & Witte, J. S.
(2017).
T
H
A
N
K

Y
O
U

You might also like