Beruflich Dokumente
Kultur Dokumente
The 1-way In the experiment, there is only one factor, temperature, and
ANOVA the analysis of variance that we will be using to analyze the
effect of temperature is called a one-way or one-factor
ANOVA.
The 2-way or We could have opted to also study the effect of positions in
3-way ANOVA the oven. In this case there would be two factors,
temperature and oven position. Here we speak of a two-way
or two-factor ANOVA.
(never,former,current)
Two-way ANOVA
2 factors-e.g. gender and smoking status
Three-way ANOVA
3 factors-e.g. gender, smoking and beer
consumption
• F(2,27) = 8.80, p < .05
◦ F = test statistic
◦ 2,27
2 =df between groups
27 = df within groups
◦ 8.80 = obtained value of F
◦ p < .05 = probability less than 5% that null
hypothesis is true
Reject the null hypothesis
Some of the group means differ significantly from
each other.
Example
◦ An apple juice manufacturer is planning to develop
a new product -a liquid concentrate.
◦ The marketing manager has to decide how to
market the new product.
◦ Three strategies are considered
Emphasize convenience of using the product.
Emphasize the quality of the product.
Emphasize the product’s low price.
Example continued
◦ An experiment was conducted as follows:
In three cities an advertisement campaign was
launched .
In each city only one of the three characteristics
(convenience, quality, and price) was
emphasized.
The weekly sales were recorded for twenty weeks
following the beginning of the campaigns.
Convnce Quality Price
529 804 672
Week 658
793
514
630
774
717
531
443
596
ly 663
719
679
604
602
502
711 620 659
sales 606
461
697
706
689
675
529 615 512
498 492 691
663 719 733
Wee
604
495
787
699
698
776
kly
485
557
572
523
561
572
353 584 469
sales
557
542
634
580
581
679
614 624 532
Weekl
y sales
In the context of this problem…
Response variable – weekly sales
Responses – actual sale values
Experimental unit – weeks in the three cities
when we record sales figures.
Factor – the criterion by which we classify the
populations (the treatments). In this problems
the factor is the marketing strategy.
Factor levels – the population (treatment)
names. In this problem factor levels are the
marketing strategies.
Solution
◦ The data are interval
◦ The problem objective is to compare sales in
three cities.
◦ We hypothesize that the three population
means are equal
• Solution
H0: µ 1 = µ 2= µ 3
j=1
x1 = 577.55x2 = 653
.00 x3 = 608
.65
k
SST = ∑nj (xj −x)2
j=1
=
he grand mean is calculated by 20(577.55 - 613.07)2 +
n1x1 + n2x2 + ...+ nkxk + 20(653.00 - 613.07)2 +
X= + 20(608.65 - 613.07) 2
=
n1 + n2 + ...+ nk
= 57,512.23
Large variability within the samples
weakens the “ability” of the sample
means to represent their corresponding
population means.
Therefore, even though sample means
SST SSE
MST = M S E=
k −1 n− k
57 ,512 .23 5 0 9,9 8 3.5 0
= =
3 −1 6 0− 3
= 28 ,756 .12 = 8,8 9 4.4 5
MST
F=
MSE
28 ,756 .12
=
8,894 .45
Required Conditions: = 3.23
1. The populations tested
are normally distributed.
with the following degrees of freedom:
2. The variances of all the
populations tested arev1=k -1 and v2=n-k
equal.
And finally the hypothesis test:
H0: µ 1 = µ 2 = …=µ k
H1: At least two means differ
Test statistic:
MST
R.R: F>Fα ,k-1,n-k F=
MSE
MST
F=
MSE
Ho: µ 1 = µ 2= µ 3 28,756.12
=
H1: At least two means differ 8,894.17
=3.23
Test statistic F= MST/ MSE= 3.23
SUM MARY
G roups Count Sum Average Variance
Conv enience 20 11551 577.55 10775.00
Q uality 20 13060 653.00 7238.11
Price 20 12173 608.65 8670.24
ANO VA
Source of Variation SS df MS F P-value F crit
Between G roups 57512 2 28756 3.23 0.0468 3.16
W ithin G roups 506984 57 8894
Total 564496 59
Calculations are
H0: µ Conv. =µ Quality =µ Price
based on the sum of
square for factor A
SS(A)
∑
SS(A) = rb
i=1
(x[A]i − x)2 (10(2){(xconv. − x) 2 + ( xquality − x) 2 + ( x price − x) 2 }
∑
SS(B) = ra
j=1
(x[B]j − x)2 (10 )(3){( xTV − x) 2 + ( x Newspaper − x ) 2 }
a b
SS(AB) = r∑ ∑ (x[AB]ij − x[A]i − x[B]j + x)2
i=1 j=1
a b r
SSE = ∑∑∑
i =1 j =1 k =1
( xijk − x[ AB ]ij ) 2
Test for the difference between the levels of the main
factors A and B
SS(A)/(a-1) SS(B)/(b-1)
MS(A) MS(B)
F= F=
MSE MSE SSE/(n-ab)
Rejection region: F > Fα ,a-1,n-ab F
> Fα , b-1, n-ab
• Test for interaction between factors A and B
MS(AB) SS(AB)/(a-1)(b-1)
F=
MSE
Rejection region: F > Fα,( a-
1)(b-1),n-ab
1. The response distributions is normal
2. The treatment variances are equal.
3. The samples are independent.
Convenience Quality Price
TV 491 677 575
TV 712 627 614
TV 558 590 706
TV 447 632 484
TV 479 683 478
TV 624 760 650
TV 546 690 583
TV 444 548 536
TV 582 579 579
TV 672 644 795
Newspaper 464 689 803
Newspaper 559 650 584
Newspaper 759 704 525
Newspaper 557 652 498
Newspaper 528 576 812
Newspaper 670 836 565
Newspaper 534 628 708
Newspaper 657 798 546
Newspaper 557 497 616
Newspaper 474 841 587
Example – continued
◦ Test of the difference in mean sales between the
three marketing strategies
H0: µ conv. =µ quality =µ price
ANOVA
Source of Variation SS df MS F P-value F crit
Sample 13172.0 1 13172.0 1.42 0.2387 4.02
Columns 98838.6 2 49419.3 5.33 0.0077 3.17
Interaction 1609.6 2 804.8 0.09 0.9171 3.17
Within 501136.7 54 9280.3
Total 614757.0 59
ANOVA
Source of Variation SS df MS F P-value F crit
Sample 13172.0 1 13172.0 1.42 0.2387 4.02
Columns 98838.6 2 49419.3 5.33 0.0077 3.17
Interaction 1609.6 2 804.8 0.09 0.9171 3.17
Within 501136.7 54 9280.3
Total 614757.0 59
ANOVA
Source of Variation SS df MS F P-value F crit
Sample 13172.0 1 13172.0 1.42 0.2387 4.02
Columns 98838.6 2 49419.3 5.33 0.0077 3.17
Interaction 1609.6 2 804.8 0.09 0.9171 3.17
W ithin 501136.7 54 9280.3
Total 614757.0 59
Interaction AB = Marketing*Media
Example - continued
◦ Test for interaction between factor A and B
H 0: µ TV*conv. =µ TV*quality =…=µ newsp.*price
F = MS(Marketing*Media)/MSE = .09