Chap 011
Chap 011
McGraw-Hill/Irwin Copyright © 2015 by The McGraw-Hill Companies, Inc. All rights reserved.
Chapter 11
Analysis of Variance
Chapter Contents
11-2
Chapter 11
Analysis of Variance
11-3
Chapter 11
Analysis of Variance
11-4
Chapter 11
LO11-1 11.1 Overview of ANOVA
11-5
Chapter 11
LO11-1 11.1 Overview of ANOVA
11-6
Chapter 11
LO11-1 11.1 Overview of ANOVA
11-7
Chapter 11
LO11-1 11.1 Overview of ANOVA
11-8
Chapter 11
LO11-1 11.1 Overview of ANOVA
Figure 11.3
11-10
Chapter 11
LO11-2 11.1 Overview of ANOVA
11-11
Chapter 11
11.1 Overview of ANOVA
ANOVA Calculations
11-12
Chapter 11
LO11-3
11.2 One-Factor ANOVA
(Completely Randomized Model)
LO11-3: Recognize from data format when one-factor ANOVA
is appropriate.
Data Format
• A one-factor ANOVA only compares the means of c groups
(treatments or factor levels).
• Consider the format for a one-factor ANOVA with treatments T1,
T2, …, Tc.
Hypothesis to Be Tested
11-14
Chapter 11
LO11-3
11.2 One-Factor ANOVA
(Completely Randomized Model)
One-Factor ANOVA as a Linear Model
• An equivalent way to express the one-factor model is
to say that treatment j came from a population with a
common mean (m) plus a treatment effect (Tj) plus
random error (eij):
• yij = m + Tj + eij
j = 1, 2, …, c and i = 1, 2, …, n
• Random error is assumed to be normally distributed
with zero mean and the same variance for all
treatments.
11-15
Chapter 11
LO11-3
11.2 One-Factor ANOVA
(Completely Randomized Model)
One-Factor ANOVA as a Linear Model
11-16
Chapter 11
LO11-4
11.2 One-Factor ANOVA
(Completely Randomized Model)
LO11-4: Interpret sums of squares and calculations in
an ANOVA table.
Group Means
• The mean of each group is calculated as:
11-17
Chapter 11
LO11-4
11.2 One-Factor ANOVA
(Completely Randomized Model)
Partitioned Sum of Squares
11-18
Chapter 11
LO11-4
11.2 One-Factor ANOVA
(Completely Randomized Model)
Partitioned Sum of Squares
• This relationship is true for sums of squared deviations, yielding
partitioned sum of squares:
11-19
Chapter 11
LO11-4
11.2 One-Factor ANOVA
(Completely Randomized Model)
Partitioned Sum of Squares
11-20
Chapter 11
LO11-4
11.2 One-Factor ANOVA
(Completely Randomized Model)
11-21
Chapter 11
LO11-5
11.2 One-Factor ANOVA
(Completely Randomized Model)
LO11-5: Use EXEL or other software for ANOVA
calculations.
• The ANOVA calculations are mathematically simple but involve
tedious sums.
• One can use Excel’s one-factor ANOVA menu using Data
Analysis to analyze data.
11-22
Chapter 11
LO11-4
11.2 One-Factor ANOVA
(Completely Randomized Model)
Test Statistic
• The F distribution describes the ratio of two variances.
• The F statistic is the ratio of the variance due to
treatments (MSA) to the variance due to error (MSE).
11-23
Chapter 11
LO11-5
11.2 One-Factor ANOVA
(Completely Randomized Model)
Test Statistic
• When F is near zero, then there is little difference
among treatments and we would not expect to reject
the hypothesis of equal treatment means.
Decision Rule
11-24
Chapter 11
LO11-5
11.2 One-Factor ANOVA
(Completely Randomized Model)
11-25
Chapter 11
11.2 One-Factor ANOVA
(Completely Randomized Model)
Example: Carton Packing.
Is the variation among stations within the range attributable to
chance, or do these samples indicate actual differences in the
means?
11-26
Chapter 11
11.2 One-Factor ANOVA
(Completely Randomized Model)
Example: Carton Packing.
As a preliminary step, we plot the data to check for any time
pattern and just to visualize the data. We see some potential
differences in means, but no obvious time pattern (otherwise we
would have to consider observation order as a second factor).
Figure 11.6
11-27
Chapter 11
11.2 One-Factor ANOVA
(Completely Randomized Model)
Example: Carton Packing.
11-28
Chapter 11
LO11-6
11.2 One-Factor ANOVA
(Completely Randomized Model)
LO11-6: Use a table or Excel to find critical values for the
F distribution.
Example: Carton Packing.
11-29
Chapter 11
LO11-5
11.2 One-Factor ANOVA
(Completely Randomized Model)
LO11-5: Use Excel or other software for ANOVA calculations.
11-30
Chapter 11
11.2 One-Factor ANOVA
(Completely Randomized Model)
11-31
Chapter 11
LO11-7 11.3 Multiple Comparison Tests
LO11-7: Understand and perform Tukey's test for paired
means.
Tukey’s Test
• After rejecting the hypothesis of equal mean, we naturally want to
know: Which means differ significantly?
• In order to maintain the desired overall probability of type I error, a
simultaneous confidence interval for the difference of means must
be obtained.
• For c groups, there are c(c – 1)/2 distinct pairs of means to be
compared.
• These types of comparisons are called Multiple Comparison
Tests.
11-32
Chapter 11
LO11-7 11.3 Multiple Comparison Tests
Tukey’s Test
• Tukey’s studentized range test (or HSD for
“honestly significant difference” test) is a multiple
comparison test that has good power and is widely
used.
• Named for statistician John Wilder Tukey (1915 –
2000)
• This test is not available in Excel’s Tools > Data
Analysis but is available in MegaStat and Minitab.
11-33
Chapter 11
LO11-7 11.3 Multiple Comparison Tests
Tukey’s Test
• Tukey’s is a two-tailed test for equality of paired means from c
groups compared simultaneously.
• The hypotheses are:
Decision Rule
11-34
Chapter 11
LO11-7 11.3 Multiple Comparison Tests
Tukey’s Test
• For example, here is the upper 5% of studentized range:
11-35
Chapter 11
11.4 Tests for Homogeneity of
LO11-8
Variances
LO11-8: Use Hartley's test for equal variances in c treatment
groups.
ANOVA Assumptions
• ANOVA assumes that observations on the response variable are
from normally distributed populations that have the same
variance.
• The one-factor ANOVA test is only slightly affected by inequality
of variance when group sizes are equal.
• One can test this assumption of homogeneous variances by
using Hartley’s Fmax Test.
11-36
Chapter 11
11.4 Tests for Homogeneity of
LO11-8
Variances
Hartley’s Test
• The hypotheses are
• The test statistic is the ratio of the largest sample variance to the
smallest sample variance
11-37
Chapter 11
11.4 Tests for Homogeneity of
LO11-8
Variances
Hartley’s Test
11-38
Chapter 11
11.4 Tests for Homogeneity of
LO11-8
Variances
Hartley’s Test
• Assuming equal
group sizes,
critical values of
Fmax are found
using degrees
of freedom
11-39
Chapter 11
11.4 Tests for Homogeneity of
LO11-8
Variances
Levene’s Test
11-40
Chapter 11
11.4 Tests for Homogeneity of
LO11-8
Variances
Levene’s Test
for carton-packing data
11-41
Chapter 11
Please refer to your text for information
on Sections 11.5, 11.6 and 11.7
11-42