Académique Documents
Professionnel Documents
Culture Documents
Economics
Chapter 8
Design of Experiments and
Analysis of Variance
Learning Objectives
1. Describe Analysis of Variance (ANOVA)
2. Explain the Rationale of ANOVA
3. Compare Experimental Designs
4. Test the Equality of 2 or More Means
• Completely Randomized Design
• Factorial Design
Experiments
Experiment
Experimental
Designs
Completely Factorial
Randomized
One-Way Two-Way
ANOVA ANOVA
Completely Randomized
Design
Experimental Designs
Experimental
Designs
Completely Factorial
Randomized
One-Way Two-Way
ANOVA ANOVA
Completely Randomized
Design
• Experimental units (subjects) are assigned
randomly to treatments
– Subjects are assumed homogeneous
• One factor or independent variable
– Two or more treatment levels or
classifications
• Analyzed by one-way ANOVA
Randomized Design Example
Experimental
Designs
Completely Factorial
Randomized
One-Way Two-Way
ANOVA ANOVA
One-Way ANOVA F-Test
Pop 5 Pop 5
Pop 4 Pop 6 Pop 4 Pop 6
Total variation
SS Total X11 X X 21 X X kj X
2 2 2
Response, X
Response, X
X3
X
X2
X1
Response, X
X3
X2
X1
2. Degrees of Freedom
• 1 = k - 1
• 2 = n - k
— k = Number of groups
— n = Total sample size
One-Way ANOVA
Summary Table
Degrees Mean
Source of Sum of
of Square F
Variation Squares
Freedom (Variance)
Treatment k-1 SST MST = MST
SST/(k - 1) MSE
Error n-k SSE MSE =
SSE/(n - k)
Total n-1 SS(Total) =
SST+SSE
One-Way ANOVA F-Test
Critical Value
If means are equal, F
= MST / MSE 1.
Only reject large F! Reject H 0
Do Not
Reject H 0
0 F
F(α; k – 1, n – k)
Always One-Tail!
© 1984-1994 T/Maker Co.
One-Way ANOVA F-Test
Example
As production manager, you
want to see if three filling Mach1 Mach2 Mach3
machines have different mean 25.40 23.40 20.00
filling times. You assign 15 26.31 21.80 22.20
similarly trained and 24.10 23.50 19.75
experienced workers, 5 per 23.74 22.75 20.60
machine, to the machines. At 25.10 21.60 20.40
the .05 level of significance,
is there a difference in mean
filling times?
One-Way ANOVA F-Test
Solution
• H0: 1 = 2 = 3
Test Statistic:
• Ha: Not all equal
• = .05
• 1 = 2 2 = 12
• Critical Value(s):
Decision:
= .05
Conclusion:
0 3.89 F
Summary Table
Solution
From Computer
Degrees Mean
Source of Sum of
of Square F
Variation Squares (Variance)
Freedom
Total 15 - 1 = 14 58.2172
One-Way ANOVA F-Test
Solution
• H0: 1 = 2 = 3
Test Statistic:
• Ha: Not All Equal
MST 23 .5820
• = .05 F 25.6
• 1 = 2 2 = 12 MSE .9211
• Critical Value(s):
Decision:
Reject at = .05
= .05
Conclusion:
There is evidence population
0 3.89 F means are different
One-Way ANOVA F-Test
Thinking Challenge
You’re a trainer for Microsoft
Corp. Is there a difference in
mean learning times of 12 people
using 4 different training methods
( =.05)?
© 1984-1994 T/Maker Co.
M1 M2 M3 M4
10 11 13 18
9 16 8 23
5 9 9 25
Use the following table.
Summary Table
(Partially Completed)
Degrees Mean
Source of Sum of
of Square F
Variation Squares (Variance)
Freedom
Treatment 348
(Methods)
Error 80
Total
One-Way ANOVA F-Test
Solution*
• H0: 1 = 2 = 3 = 4
Test Statistic:
• Ha: Not all equal
• = .05
• 1 = 3 2 = 8
• Critical Value(s):
Decision:
= .05
Conclusion:
0 4.07 F
Summary Table
Solution*
Degrees Mean
Source of Sum of
of Square F
Variation Squares (Variance)
Freedom
Treatment 4-1=3 348 116 11.6
(Methods)
Error 12 - 4 = 8 80 10
Total 12 - 1 = 11 428
One-Way ANOVA F-Test
Solution*
• H0: 1 = 2 = 3 = 4
Test Statistic:
• Ha: Not All Equal
MST 116
• = .05 F 11.6
• 1 = 3 2 = 8 MSE 10
• Critical Value(s):
Decision:
Reject at = .05
= .05
Conclusion:
There is evidence population
0 4.07 F means are different
Tukey Procedure
• Tells which population
means are significantly
different
– Example: μ1 = μ 2 ≠ μ 3 f(X)
Variation Due to
Random Sampling
SSE
Conditions Required for a Valid
ANOVA F-test:
Randomized Block Design
1. The blocks are randomly selected, and all
treatments are applied (in random order) to
each block
2. The distributions of observations
corresponding to all block-treatment
combinations are approximately normal
3. All block-treatment distributions have equal
variances
Randomized Block Design
F-Test Test Statistic
1. Test Statistic
• F = MST / MSE
— MST is Mean Square for Treatment
— MSE is Mean Square for Error
2. Degrees of Freedom
• 1 = k – 1 2 = n – k – b + 1
— k = Number of groups
— n = Total sample size
— b = Number of blocks
Randomized Block Design
Example
A production manager wants to see if three assembly
methods have different mean assembly times (in
minutes). Five employees were selected at random and
assigned to use each assembly method. At the .05 level
of significance, is there a difference in mean assembly
times?
Employee Method 1 Method 2 Method 3
1 5.4 3.6 4.0
2 4.1 3.8 2.9
3 6.1 5.6 4.3
4 3.6 2.3 2.6
5 5.3 4.7 3.4
Random Block Design F-Test
Solution*
• H0: 1 = 2 = 3
Test Statistic:
• Ha: Not all equal
• = .05
• 1 = 2 2 = 8
• Critical Value(s):
Decision:
= .05
Conclusion:
0 4.46 F
Summary Table
Solution*
Degrees Mean
Source of Sum of
of Square F
Variation Squares (Variance)
Freedom
Treatment 3-1=2 5.43 2.71 12.9
(Methods)
Block 5-1=4 10.69 2.67 12.7
(Employee)
Experimental
Designs
Completely Factorial
Randomized
One-Way Two-Way
ANOVA ANOVA
Factorial Design
• Experimental units (subjects) are assigned
randomly to treatments
– Subjects are assumed homogeneous
• Two or more factors or independent
variables
– Each has two or more treatments (levels)
• Analyzed by two-way ANOVA
Two-Way ANOVA
Data Table
Factor Factor B
A 1 2 ... b Observation k
1 X111 X121 ... X1b1
X112 X122 ... X1b2 Xijk
2 X211 X221 ... X2b1
X212 X222 ... X2b2 Level i Level j
: : : : : Factor Factor
a Xa11 Xa21 ... Xab1 A B
Experimental
Designs
Completely Factorial
Randomized
One-Way Two-Way
ANOVA ANOVA
Two-Way ANOVA
Low Low
A B C A B C
Two-Way ANOVA
Total Variation Partitioning
Total Variation
SS(Total)
= .05 Conclusion:
0 4.39 F
Two-Way ANOVA
Summary Table
Corrected
11 735.25
Total
Treatment Means F-Test
Solution
• H0: The 6 treatment
Test Statistic:
means are equal
• Ha: At least 2 differ F
MST
7.65
• = .05 MSE
• 1 = 5 2 = 6
• Critical Value(s): Decision:
Reject at = .05
= .05
Conclusion:
There is evidence population
0 4.39 F means are different
Interaction F-Test
Solution
• H0:The factors do not
Test Statistic:
interact
• Ha:The factors interact
• = .05
• 1 = 2 2 = 6
• Critical Value(s): Decision:
= .05
Conclusion:
0 5.14 F
Two-Way ANOVA
Summary Table
Source of Degrees of Sum of Mean F
Variation Freedom Squares Square
A 1 546.75 546.75 17.40
(Row)
B 2 531.5 265.75 8.46
(Column)
AB 2 123.5 61.76 1.97
(Interaction)
Error 6 188.5 31.42
Total 11 SS(Total) Same as other
designs
Interaction F-Test
Solution
• H0: The factors do not
Test Statistic:
interact
• Ha: The factors interact F MS ( AB) 1.97
• = .05 MSE
• 1 = 2 2 = 6
• Critical Value(s): Decision:
Do not reject at = .05
= .05
Conclusion:
There is no evidence the
0 5.14 F factors interact
Main Factor A F-Test
Solution
• H0: No difference between
Test Statistic:
motivation levels
• Ha: Motivation levels differ
• = .05
• 1 = 1 2 = 6
• Critical Value(s): Decision:
= .05
Conclusion:
0 5.99 F
Two-Way ANOVA
Summary Table
Source of Degrees of Sum of Mean F
Variation Freedom Squares Square
A 1 546.75 546.75 17.40
(Row)
B 2 531.5 265.75 8.46
(Column)
AB 2 123.5 61.76 1.97
(Interaction)
Error 6 188.5 31.42
Total 11 SS(Total) Same as other
designs
Main Factor A F-Test
Solution
• H0: No difference between
Test Statistic:
motivation levels
• Ha: Motivation levels differ F
MS ( A)
17.4
• = .05 MSE
• 1 = 1 2 = 6
• Critical Value(s): Decision:
Reject at = .05
= .05
Conclusion:
There is evidence
0 5.99 F motivation levels differ
Main Factor B F-Test
Solution
• H0: No difference between
Test Statistic:
training methods
• Ha: Training methods differ
• = .05
• 1 = 2 2 = 6
• Critical Value(s): Decision:
= .05
Conclusion:
0 5.14 F
Two-Way ANOVA
Summary Table
Source of Degrees of Sum of Mean F
Variation Freedom Squares Square
A 1 546.75 546.75 17.40
(Row)
B 2 531.5 265.75 8.46
(Column)
AB 2 123.5 61.76 1.97
(Interaction)
Error 6 188.5 31.42
Total 11 SS(Total) Same as other
designs
Main Factor B F-Test
Solution
• H0: No difference between
Test Statistic:
training methods
• Ha: Training methods differ F MS ( B ) 8.46
• = .05 MSE
• 1 = 2 2 = 6
• Critical Value(s): Decision:
Reject at = .05
= .05
Conclusion:
There is evidence
0 5.14 F training methods differ
Conclusion