Professional Documents
Culture Documents
Anova: More Than Two Opulations
Anova: More Than Two Opulations
• MID-SIZE VEHICLES
COMPARISON AMONG MEANS :
1 2
PICKUP TRUCKS
SUV’S MID-SIZE VEHICLES
MID-SIZE
SUV
MIDSIZE
SUV
PICKUP
3 4
• AN O VA
•
ANOVA
5 6
1
An Introduction to Experimental Design
and Analysis of Variance
An Introduction to Experimental Design In this section three types of experimental designs are
and Analysis of Variance introduced.
Analysis of Variance and • a completely randomized design (One-way
the Completely Randomized Design ANOVA)
Multiple Comparison Procedures • a randomized block design Two-way
• a factorial experiment ANOVA
7 8
9 10
Testing for the Equality of k Population Means: Testing for the Equality of k Population Means:
A Completely Randomized Design A Completely Randomized Design
Example: AutoShine, Inc.
The number of times each car went through the Wax Wax Wax
carwash before its wax deteriorated is shown on the Observation Type 1 Type 2 Type 3
next slide. AutoShine, Inc. must decide which wax 1 27 33 29
to market. Are the three waxes equally effective? 2 30 28 28
3 29 31 30
4 28 30 32
5 31 30 31
11 12
2
One-way ANOVA: Identifying Factor, Treatments, Experimental Units, and
Response Variables Sampling Scheme for Independent Samples
Wax Wax Wax
Observation Type 1 Type 2 Type 3
1 27 33 29
2 30 28 28
3 29 31 30
4 28 30 32
5 31 30 31
13 14
15 16
ANOVA Table
Completely Randomized Design for a Completely Randomized Design
One-way ANOVA
17 18
3
ANOVA Table
for a Completely Randomized Design
OR
19 20
k k
2
n (x j j x )2 (n j 1) s 2j
j1
MSTR
j 1
MSE
k1 nT k
Numerator is called
Denominator is the Numerator is called Denominator is the the sum of squares
degrees of freedom the sum of squares due degrees of freedom due to error (SSE)
associated with SSTR to treatments (SSTR) associated with SSE
21 22
Comparing the Variance Estimates: The F Test Comparing the Variance Estimates: The F Test
If the null hypothesis is true and the ANOVA Sampling Distribution of MSTR/MSE
assumptions are valid, the sampling distribution of
MSTR/MSE is an F distribution with MSTR d.f. Sampling Distribution
equal to k - 1 and MSE d.f. equal to nT - k. of MSTR/MSE
If the means of the k populations are not equal, the
value of MSTR/MSE will be inflated because MSTR Reject H0
overestimates s 2.
Hence, we will reject H0 if the resulting value of
Do Not Reject H0
MSTR/MSE appears to be too large to have been MSTR/MSE
selected at random from the appropriate F F
distribution. Critical Value
23 24
4
ANOVA Table Test for the Equality of k Population Means
for a Completely Randomized Design
Hypotheses
ANOVA can be viewed as the process of partitioning
the total sum of squares and the degrees of freedom H0: 1=2=3=. . . = k
into their corresponding sources: treatments and error. Ha: Not all population means are equal
25 26
Test for the Equality of k Population Means Testing for the Equality of k Population Means:
A Completely Randomized Design
Rejection Rule Example: AutoShine, Inc.
p-value Approach: Reject H0 if p-value < AutoShine, Inc. is considering marketing a long-
lasting car wax. Three different waxes (Type 1, Type 2,
Critical Value Approach: Reject H0 if F > F and Type 3) have been developed.
In order to test the durability of these waxes, 5 new
where the value of F is based on an cars were waxed with Type 1, 5 with Type 2, and 5
F distribution with k - 1 numerator d.f.
with Type 3. Each car was then repeatedly run
and nT - k denominator d.f.
through an automatic carwash until the wax coating
showed signs of deterioration.
27 28
Testing for the Equality of k Population Means: Testing for the Equality of k Population Means:
A Completely Randomized Design A Completely Randomized Design
Example: AutoShine, Inc.
The number of times each car went through the Wax Wax Wax
carwash before its wax deteriorated is shown on the Observation Type 1 Type 2 Type 3
next slide. AutoShine, Inc. must decide which wax 1 27 33 29
to market. Are the three waxes equally effective? 2 30 28 28
3 29 31 30
Factor . . . Car wax 4 28 30 32
Treatments . . . Type I, Type 2, Type 3 5 31 30 31
Experimental units . . . Cars
Sample Mean 29.0 30.4 30.0
Response variable . . . Number of washes
Sample Variance 2.5 3.3 2.5
𝛼 = 0.05
29 30
5
Testing for the Equality of k Population Means: Testing for the Equality of k Population Means:
A Completely Randomized Design A Completely Randomized Design
Hypotheses Mean Square Between Treatments
H0: 1=2=3 Because the sample sizes are all equal:
Ha: Not all the means are equal x ( x1 x2 x 3 )/3 = (29 + 30.4 + 30)/3 = 29.8
where: SSTR = 5(29–29.8)2 + 5(30.4–29.8)2 + 5(30–29.8)2 = 5.2
1 = mean number of washes using Type 1 wax MSTR = 5.2/(3 - 1) = 2.6
2 = mean number of washes using Type 2 wax Mean Square Error
3 = mean number of washes using Type 3 wax
SSE = 4(2.5) + 4(3.3) + 4(2.5) = 33.2
MSE = 33.2/(15 - 3) = 2.77
31 32
Testing for the Equality of k Population Means: Testing for the Equality of k Population Means:
A Completely Randomized Design A Completely Randomized Design
Rejection Rule Test Statistic
p-Value Approach: Reject H0 if p-value < .05 F = MSTR/MSE = 2.60/2.77 = .939
Critical Value Approach: Reject H0 if F > 3.89 Conclusion
The p-value is greater than .10, where F = 2.81.
where F.05 = 3.89 is based on an F distribution
(Excel provides a p-value of .42.)
with 2 numerator degrees of freedom and 12
Therefore, we cannot reject H0.
denominator degrees of freedom
There is insufficient evidence to conclude that
the mean number of washes for the three wax
types are not all the same.
33 34
Total 38.4 14
35