Professional Documents
Culture Documents
John
Loucks
St. Edward’s
University
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 1
or duplicated, or posted to a publicly accessible website, in whole or in part.
Analysis of Variance: A Conceptual Overview
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 2
or duplicated, or posted to a publicly accessible website, in whole or in part.
Analysis of Variance: A Conceptual Overview
H0: 1 = 2 = 3 = . . . = k
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 3
or duplicated, or posted to a publicly accessible website, in whole or in part.
Analysis of Variance: A Conceptual Overview
x3 3 x1 1 2 x2
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 5
or duplicated, or posted to a publicly accessible website, in whole or in part.
Analysis of Variance
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 6
or duplicated, or posted to a publicly accessible website, in whole or in part.
Analysis of Variance
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 7
or duplicated, or posted to a publicly accessible website, in whole or in part.
SSW – also called SSE ie, sum of squares Error
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 8
or duplicated, or posted to a publicly accessible website, in whole or in part.
Df1 – degree of freedom of numerator
= k – 1,
k – number of groups (samples)
= n – k,
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 9
or duplicated, or posted to a publicly accessible website, in whole or in part.
Excel Output
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 10
or duplicated, or posted to a publicly accessible website, in whole or in part.
Within-Treatments Estimate
of Population Variance 2
The estimate of 2 based on the variation of the
sample observations within each sample is called the
mean square error and is denoted by MSE.
k
2
(n j 1) s 2j
j1
MSE
nT k
Numerator is called
Denominator is the the sum of squares
degrees of freedom due to error (SSE)
associated with SSE
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 11
or duplicated, or posted to a publicly accessible website, in whole or in part.
Between-Treatments Estimate
of Population Variance 2
The estimate of 2 based on the variation of the
sample means is called the mean square due to
treatments and is denoted by MSTR.
j j
n (
j 1
x x ) 2
MSTR
k1
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 12
or duplicated, or posted to a publicly accessible website, in whole or in part.
Comparing the Variance Estimates: The F Test
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 13
or duplicated, or posted to a publicly accessible website, in whole or in part.
Comparing the Variance Estimates: The F Test
Sampling Distribution
of MSTR/MSE
Reject H0
Do Not Reject H0
MSTR/MSE
F
Critical Value
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 14
or duplicated, or posted to a publicly accessible website, in whole or in part.
ANOVA Table
for a Completely Randomized Design
Total SST nT - 1
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 16
or duplicated, or posted to a publicly accessible website, in whole or in part.
ANOVA Table
for a Completely Randomized Design
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 17
or duplicated, or posted to a publicly accessible website, in whole or in part.
Test for the Equality of k Population Means
Hypotheses
H0: 1 = 2 = 3 = . . . = k
Ha: Not all population means are equal
Test Statistic
F = MSTR/MSE
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 18
or duplicated, or posted to a publicly accessible website, in whole or in part.
Test for the Equality of k Population Means
Rejection Rule
p-value Approach: Reject H0 if p-value <
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 19
or duplicated, or posted to a publicly accessible website, in whole or in part.
Testing for the Equality of k Population Means:
A Completely Randomized Design
Example: AutoShine, Inc.
AutoShine, Inc. is considering marketing a long-
lasting car wax. Three different waxes (Type 1, Type 2,
and Type 3) have been developed.
In order to test the durability of these waxes, 5 new
cars were waxed with Type 1, 5 with Type 2, and 5
with Type 3. Each car was then repeatedly run
through an automatic carwash until the wax coating
showed signs of deterioration.
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 20
or duplicated, or posted to a publicly accessible website, in whole or in part.
Testing for the Equality of k Population Means:
A Completely Randomized Design
Example: AutoShine, Inc.
The number of times each car went through the
carwash before its wax deteriorated is shown on the
next slide. AutoShine, Inc. must decide which wax
to market. Are the three waxes equally effective?
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 21
or duplicated, or posted to a publicly accessible website, in whole or in part.
Testing for the Equality of k Population Means:
A Completely Randomized Design
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 22
or duplicated, or posted to a publicly accessible website, in whole or in part.
Testing for the Equality of k Population Means:
A Completely Randomized Design
Hypotheses
H0: 1 = 2 = 3
Ha: Not all the means are equal
where:
1 = mean number of washes using Type 1 wax
2 = mean number of washes using Type 2 wax
3 = mean number of washes using Type 3 wax
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 23
or duplicated, or posted to a publicly accessible website, in whole or in part.
Testing for the Equality of k Population Means:
A Completely Randomized Design
Mean Square Between Treatments
Because the sample sizes are all equal:
x ( x1 x2 x3 )/3 = (29 + 30.4 + 30)/3 = 29.8
SSTR = 5(29–29.8)2 + 5(30.4–29.8)2 + 5(30–29.8)2 = 5.2
MSTR = 5.2/(3 - 1) = 2.6
Mean Square Error
SSE = 4(2.5) + 4(3.3) + 4(2.5) = 33.2
MSE = 33.2/(15 - 3) = 2.77
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 24
or duplicated, or posted to a publicly accessible website, in whole or in part.
Testing for the Equality of k Population Means:
A Completely Randomized Design
Rejection Rule
p-Value Approach: Reject H0 if p-value < .05
Critical Value Approach: Reject H0 if F > 3.89
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 25
or duplicated, or posted to a publicly accessible website, in whole or in part.
Testing for the Equality of k Population Means:
A Completely Randomized Design
Test Statistic
F = MSTR/MSE = 2.60/2.77 = .939
Conclusion
The p-value is greater than .10, where F = 2.81.
(Excel provides a p-value of .42.)
Therefore, we cannot reject H0.
There is insufficient evidence to conclude that
the mean number of washes for the three wax
types are not all the same.
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 26
or duplicated, or posted to a publicly accessible website, in whole or in part.
Testing for the Equality of k Population Means:
A Completely Randomized Design
ANOVA Table
Total 38.4 14
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 27
or duplicated, or posted to a publicly accessible website, in whole or in part.
Testing for the Equality of k Population Means:
An Observational Study
Example: Reed Manufacturing
Janet Reed would like to know if there is any
significant difference in the mean number of hours
worked per week for the department managers at her
three manufacturing plants (in Buffalo, Pittsburgh,
and Detroit).
An F test will be conducted using = .05.
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 28
or duplicated, or posted to a publicly accessible website, in whole or in part.
Testing for the Equality of k Population Means:
An Observational Study
Example: Reed Manufacturing
A simple random sample of five managers from
each of the three plants was taken and the number of
hours worked by each manager in the previous week
is shown on the next slide.
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 29
or duplicated, or posted to a publicly accessible website, in whole or in part.
Testing for the Equality of k Population Means:
An Observational Study
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 30
or duplicated, or posted to a publicly accessible website, in whole or in part.
Testing for the Equality of k Population Means:
An Observational Study
p -Value and Critical Value Approaches
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 32
or duplicated, or posted to a publicly accessible website, in whole or in part.
Testing for the Equality of k Population Means:
An Observational Study
p -Value and Critical Value Approaches
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 33
or duplicated, or posted to a publicly accessible website, in whole or in part.
Testing for the Equality of k Population Means:
An Observational Study
ANOVA Table
Total 798 14
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 34
or duplicated, or posted to a publicly accessible website, in whole or in part.
Testing for the Equality of k Population Means:
An Observational Study
p –Value Approach
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 35
or duplicated, or posted to a publicly accessible website, in whole or in part.
Testing for the Equality of k Population Means:
An Observational Study
Critical Value Approach
4. Determine the critical value and rejection rule.
Based on an F distribution with 2 numerator
d.f. and 12 denominator d.f., F.05 = 3.89.
Reject H0 if F > 3.89
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 36
or duplicated, or posted to a publicly accessible website, in whole or in part.
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 37
or duplicated, or posted to a publicly accessible website, in whole or in part.
© 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied
Slide 38
or duplicated, or posted to a publicly accessible website, in whole or in part.