Session 12 - 2023
Session 12 - 2023
QUANTITATIVE METHODS
FOR BUSINESS
Analysis of Variance
Session Overview
3
Section Goals
4
Reading List
5
Analysis of Variance
6
Analysis of Variance
7
General ANOVA Setting
8
One-Way Analysis of Variance
9
Completely Randomized Design
10
Hypotheses of One-Way ANOVA
• H0 : μ1 μ2 μ3 μk
– All population means are equal
– i.e., no treatment effect (no variation in means among
HA groups)
: Not all of the population means are the same
•
– At least one population mean is different
– i.e., there is a treatment effect
– Does not mean that all population means are different
(some pairs may be the same)
11
One-Factor ANOVA
H0 : μ1 μ2 μ3 μk
HA : Not all μi are the same
μ1 μ2 μ3
12
One-Factor ANOVA
(continued)
H0 : μ1 μ2 μ3 μk
HA : Not all μi are the same
At least one mean is different:
The Null Hypothesis is NOT true
(Treatment Effect is present)
o
r
μ1 μ2 μ3 μ1 μ2 μ3
13
Partitioning the Variation
14
Partitioning the Variation
(continued)
SST = SSB + SSW
15
Partition of Total Variation
16
Total Sum of Squares
17
Total Variation
(continued)
R espon se, X
18
Sum of Squares Between
SST = SSB +
SSW k
SSB ni ( x i x )2
i1
Where:
SSB = Sum of squares between
k = number of populations
ni = sample size from population i
xi = sample mean from population i
x = grand mean (mean of all data values)
19
Between-Group Variation
k
SSB ni ( x i x )2
i1
SSB
Variation Due to
Differences Among Groups MSB
k 1
Mean Square Between =
SSB/degrees of freedom
i j
20
Between-Group Variation
(continued)
SSB n1 ( x1 x )2 n 2 ( x 2 x )2 ... nk ( x k x )2
R espon se, X
X3
X2 X
X1
21
Sum of Squares Within
22
Within-Group Variation
k nj
SSW ( x ij x i )2
i1 j1
SSW
Summing the variation
MSW
within each group and then
adding over all groups Nk
Mean Square Within =
SSW/degrees of freedom
i
23
Within-Group Variation
(continued)
R espon se, X
X3
X2
X1
24
One-Way ANOVA Table
Source of SS df MS F ratio
Variation
Between SSB MSB
SSB k-1 MSB = F=
Samples k-1 MSW
Within SSW
SSW N-k MSW =
Samples N-k
SST =
Total N-1
SSB+SSW
k = number of populations
N = sum of the sample sizes from all populations
df = degrees of freedom
25
One-Factor ANOVA
F Test Statistic
H0: μ1= μ2 = … = μ k
HA: At least two population means are different
• Test statistic
MSB
F
MSW
MSB is mean squares between variances
MSW is mean squares within variances
• Degrees of freedom
– df1 = k – 1 (k = number of populations)
– df2 = N – k (N = sum of sample sizes from all populations)
26
Interpreting One-Factor ANOVA
F Statistic
28
One-Factor ANOVA Example:
Scatter Diagram
Distance
270
Club 1 Club 2 Club3
254 234 200 260 •
•
263
241
218
235
222
197
250 • X1
240 •
237 227 206 230
• ••
251 216 204 220 •
X2 • X
••
210
x1 249.2 x 2 226.0 x 3 205.8 200 •• X3
••
190
x 227.0
1 2 3
Club
29
One-Factor ANOVA Example
Computations
Club 1 Club 2 Club3 x1 = 249.2 n1 = 5
254 234 200 x2 = 226.0 n2 = 5
263 218 222
x3 = 205.8 n3 = 5
241 235 197
237 227 206 N = 15
x = 227.0
251 216 204 k=3
30
One-Factor ANOVA Example
Solution
Critical Decision:
Value:
F = 3.885
Reject H0 at = 0.05
Conclusion:
= .05
There is evidence that
0 Do not Reject H0 at least one μi differs
reject H0 F = 25.275
F.05 = 3.885 from the rest
31
ANOVA -- Single Factor:
Excel Output
32
The Tukey-Kramer Procedure
• Tells which population means are
significantly different
– e.g.: μ1 = μ2 μ3
– Done after rejection of equal means in ANOVA
• Allows pair-wise comparisons
– Compare absolute mean differences with
critical range
μ1= μ2 μ3 x
33
Tukey-Kramer Critical Range
MSW 1 1
Critical Range q
2 ni n j
where:
q = Value from standardized range table
with k and N - k degrees of freedom for
the desired level of
MSW = Mean Square Within
ni and nj = Sample sizes from populations (levels) i and j
34
Tukey-Kramer Critical Range
35
The Tukey-Kramer Procedure:
Example
qα 3.77
36
The Tukey-Kramer Procedure:
Example
4. Compare:
5. All of the absolute mean differences x1 x 2 23.2
are greater than critical range.
Therefore there is a significant x1 x 3 43.4
difference between each pair of
means at 5% level of significance. x 2 x 3 20.2
37
Fisher’s LSD test
38
Fisher’s LSD test
1 1
LSD t / 2 MSW
n n
i j
where:
t/2 = Value from t-table at the desired level of with N-k
degrees of freedom
MSW = Mean Square Within
ni and nj = Sample sizes from populations (levels) i and j
39
Fisher’s LSD test
40
Fisher’s LSD test
4. Compare:
5. All of the absolute mean differences x1 x 2 23.2
are greater than critical range.
Therefore there is a significant x1 x 3 43.4
difference between each pair of
means at 5% level of significance. x 2 x 3 20.2
41
Practical Assignment
The following data are from an experiment designed to investigate the perception of
corporate ethical values among individuals specializing in marketing (higher scores
indicate higher ethical values)
Marketing Managers Marketing Research Advertising
6 5 6
5 5 7
4 4 6
5 4 5
6 5 6
4 4 6
a. Use α 0.05 to test for significant differences in perception among the three groups.
b. At the α 0.05 level of significance, we can conclude that there are differences in the
perceptions for marketing managers, marketing research specialists, and advertising
specialists. Use the procedures in this section to determine where the differences occur.
Use α 0.05.
Reference