Professional Documents
Culture Documents
LESSON 2 Test Concerning Means Part 2
LESSON 2 Test Concerning Means Part 2
Properties of ANOVA:
One-way ANOVA
𝐻0 : 𝜇1 = 𝜇2 = 𝜇3 = ⋯ 𝜇𝑘 where k = population
Sum of
Source of variation Df Mean Square F computed
Squares
𝑆𝑆𝐵 𝑠12
Between SSB 𝑘−1 𝑠12 = 𝐹= 2
𝑘−1 𝑠2
𝑆𝑆𝑊
Within SSW 𝑘 (𝑛 − 1) 𝑠22 =
𝑘 (𝑛 − 1)
Total SST 𝑛𝑘 − 1
In the ANOVA table above, 𝑘 is the number of groups while 𝑛 is the sample
size for each group given that the sample sizes of the groups are equal.
𝑇. .2
2
𝑆𝑆𝑇 = ∑ ∑ 𝑥𝑖𝑗 − =If equal sample size
𝑛𝑘
𝑗 𝑖
SSW= SST-SSB
Sum of
Source of variation Df Mean Square F computed
Squares
𝑆𝑆𝐵 𝑠12
Between SSB 𝑘−1 𝑠12 = 𝐹= 2
𝑘−1 𝑠2
𝑆𝑆𝑊
Within SSW 𝑁−𝑘 𝑠22 =
𝑁−𝑘
Total SST 𝑁−1
2 𝑇..2
𝑆𝑆𝑇 = ∑ ∑ 𝑥𝑖𝑗 −
𝑁
𝑗 𝑖
𝑘
𝑇𝑖 .2 𝑇..2
𝑆𝑆𝐵 = ∑ −
𝑛𝑖 𝑁
𝑖=1
Example 1:
Below are the ages that female get married in Valencia City, Malaybalay City
and Maramag at a 0.05 level of significance, perform an ANOVA Test to see if the
average age of marriage in these 3 municipalities are equal.
Steps:
1. 𝐻0 : 𝜇1 = 𝜇2 = 𝜇3
𝐻𝑎 : 𝑎𝑡 𝑙𝑒𝑎𝑠𝑡 2 𝑚𝑒𝑎𝑛𝑠 𝑎𝑟𝑒 𝑛𝑜𝑡 𝑒𝑞𝑢𝑎𝑙
2. 𝛼 = 0.05
3. Critical Region: Reject H0 if 𝐹 > 3.35
2
∑∑𝑥𝑖𝑗 = 11 506 (Sum of squares of all observations)
𝑇1⋅ = 201 (Total of the first column)
𝑇2⋅ = 182 (Total of the first column)
𝑇3⋅ = 201 (Total of the first column)
𝑇⋅⋅ = 584 (Grand Total)
5842
𝑆𝑆𝑇 = 182 + 192 + 202 + ⋯ + 232 −
30
= 11,506 − 11,368.53333
= 137.4667
Note:
The formula used in the computation is for equal sample sizes of the groups.
ANOVA TABLE
Sum of
Source of variation Df Mean Square F computed
Squares
Between 24.067 2 12.034 2.87
Within 113.400 27 4.200
Total 137.467 29
6. Decision: The computed F-value is 2.87 this is < 3.35. So, we accept 𝐻0 .
Example 2:
A study was done to see whether the source of dietary fat affects visual
discrimination. Rats were placed on one of four diets for 2 months: Diet 1 had 5%
corn oil; Diet 2 was the same as Diet 1 with the addition of 20% safflower oil; Diet 3
was Diet 1 with 20% added coconut oil; Diet 4 was Diet 1 with 20% added olive oil.
All the rats were trained on a simple visual discrimination task, and their errors
before achieving a certain criterion were recorded. Test the data to see whether the
different diets affected learning of the task. Use a 0.01 level of significance.
Answer:
1. 𝐻0 : 𝜇1 = 𝜇2 = 𝜇3 = 𝜇4
2. 𝛼 = 0.01
3. Critical Region: Reject 𝐻0 if the computed 𝐹 > 16.26
(𝑑𝑓1 = 4 − 1 = 3, 𝑑𝑓2 = 36 − 4 = 32,
𝛼 = 0.01. See Table A.3)
4. Test Statistic: F-test / ANOVA
5. Computation:
8262
𝑆𝑆𝑇 = 132 + 202 + 312 + ⋯ + 35 −
36
= 21,126 − 18,952.11111 = 2,173.8889
ANOVA TABLE
Sum of
Source of variation Df Mean Square F computed
Squares
Between 1,573.2429 3 524.4143 27.94
Within 600.6460 32 18.7701
Total 2,173.8889 35