Beruflich Dokumente
Kultur Dokumente
25
x3 20
x3 20
20 20
19
x 2 15
16 x 2 15
15
14
x1 10 12
11 x1 10
10 10
9 9
n ( x y )2
t
2 2
s 2p
Numerator of t2: measures variation between the
groups in terms of the difference between their
sample means
Denominator: measures variation within groups by the
pooled estimator of the common variance.
If the within-group variation is small, the same
variation between groups produces a larger statistic
and a more significant result.
One Way Analysis of Variance:
Example
Example 1
– 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.
Example 1 - 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.
One Way Analysis of Variance
Solution
– The data are quantitative
– The problem objective is to compare
sales in three cities.
– We hypothesize that the three
population means are equal
Defining the Hypotheses
• Solution
H0: 1 = 2 = 3
HA: At least two means differ
1 2 k
First
observation,
X11 X12 X1k
first sample x21 x22 x2k
. . .
. . .
Second observation, . . .
second sample Xn1,1 Xn2,2 Xnk,k
n1
n2 nk
x1
x2 xk
Sample size
Sample mean
k
SSG n j (x j x) 2
j1
j 1 i 1 (n3 -1)s32
SSG SSE
MSG MSE
k 1 nk
57, 512.23 506,983.50
3 1 60 3
28, 756.12
8,894.45
Calculation of the test statistic
MSG
F
MSE
with the following degrees of
28, 756.12 freedom:
8,894.45 v1=k -1 and v2=n-k
3.23
Required Conditions:
1. The populations tested
are normally distributed.
2. The variances of all the
populations tested are
equal.
The F test rejection region
H0: 1 = 2 = …=k
HA: At least two means differ
MSG
Test statistic: F
MSE
R.R: F>Fa,k-1,n-k
The F test MSG
F
MSE
28, 756.12
Ho: 1 = 2= 3 8, 894.45
HA: At least two means differ 3.23
0.1
0.08
0.06 p Value = P(F>3.23) = .0469
0.04
0.02
0
0 1 2 3 4
-0.02
Excel single factor ANOVA
SUMMARY
Groups Count Sum Average Variance
Convenience 20 11551 577.55 10775.00
Quality 20 13060 653.00 7238.11
Price 20 12173 608.65 8670.24
ANOVA
Source of Variation SS df MS F P-value F crit
Between Groups 57512 2 28756 3.23 0.0468 3.16
Within Groups 506984 57 8894
Total 564496 59
1 1
( xi x j ) ta 2, n k s
ni n j
d . f . n k , s MSE
Experiment-wise Type I error rate
(the effective Type I error)
The preceding “regular” method may result in an
increased probability of committing a type I error.
The experiment-wise Type I error rate is the
probability of committing at least one Type I
error at significance level a. It is calculated by:
experiment-wise Type I error rate = 1-(1 – a)g
where g is the number of pairwise comparisons (i.e.
g = k C 2 = k(k-1)/2.
For example, if a=.05, k=4, then
experiment-wise Type I error rate =1-.735=.265
The Bonferroni adjustment determines the
required Type I error probability per pairwise
comparison (a*) , to secure a pre-determined
overall a.
Bonferroni Adjustment
The procedure:
– Compute the number of pairwise comparisons
(g)
[g=k(k-1)/2], where k is the number of
populations.
– Set a* = a/g, where a is the true probability
of making at least one Type I error (called
experiment-wise Type I error).
– Calculate the following CI for i – j
1 1
( xi x j ) ta * 2, n k s
ni n j
d . f . n k , s MSE
Bonferroni Method
Example - continued
– Rank the effectiveness of the marketing
strategies (based on mean weekly sales).
– Use the Bonferroni adjustment method
Solution
– The sample mean sales were 577.55, 653.0,
608.65.
– We calculate g=k(k-1)/2 to be 3(2)/2 = 3.
– We set a* = .05/3 = .0167, thus t.0167/2, 60-3 = 2.467
(Excel).
– Note that s = √8894.447 = 94.31