ANOVA Dasar
ANOVA Dasar
ISI:
Menjelaskan konsep dasar ANOVA
(Uji F)
Rumus dan cara penghitungan berbagai
item dalam ANOVA
Contoh penggunaan ANOVA
Fisher test untuk uji perbedaan diantara
rata-rata sampel yang ada
. .=
. .=
x
Sampling Distribution of
Given H0 is True
x2
n
x2
x1
x3
x
Sampling Distribution of
Given H0 is False
x3
x1 1
x2
Analysis of Variance:
Testing for the Equality of k Population
Means
Between-Treatments Estimate
of Population Variance
MSTR
2
n
(
x
x
)
j j
j 1
k 1
Denominator represents
the degrees of freedom
associated with SSTR
Numerator is the
sum of squares
due to treatments
and is denoted SSTR
Within-Samples Estimate
of Population Variance
MSE
2
(
n
1
)
s
j
j
j 1
nT k
Denominator represents
the degrees of freedom
associated with SSE
Numerator is the
sum of squares
due to error
and is denoted SSE
10
11
Hypotheses
H0: 1=2=3=.
. .=
Test Statistic
F = MSTR/MSE
12
Rejection Rule
p-value Approach: Reject H0 if p-value <
Critical Value Approach: Reject H0 if F > F
where the value of F is based on an
F distribution with k - 1 numerator d.f.
and nT - k denominator d.f.
13
Rejection Region
Sampling Distribution
of MSTR/MSE
Reject H0
Do Not Reject H0
F
Critical Value
MSTR/MSE
14
ANOVA Table
Source of Sum of Degrees of Mean
Variation Squares Freedom Squares
F
k1
Treatment SSTR
MSTR MSTR/MSE
nT k
SSE
Error
MSE
SST
Total
nT - 1
SST is
partitioned
into SSTR and
SSE.
SSTs degrees of
freedom
(d.f.) are partitioned
into
SSTRs d.f. and SSEs
d.f.
15
ANOVA Table
SST
SST divided
divided by
by its
its degrees
degrees of
of freedom
freedom nnTT 11 is
is the
the
overall
overall sample
sample variance
variance that
that would
would be
be obtained
obtained ifif we
we
treated
treated the
the entire
entire set
set of
of observations
observations as
as one
one data
data set.
set
With
With the
the entire
entire data
data set
set as
as one
one sample,
sample, the
the formula
formula
for
for computing
computing the
the total
total sum
sum of
of squares,
squares, SST,
SST, is:
is:
k
nj
16
ANOVA Table
ANOVA
ANOVA can
can be
be viewed
viewed as
as the
the process
process of
of partitioning
partitioning
the
the total
total sum
sum of
of squares
squares and
and the
the degrees
degrees of
of freedom
freedom
into
erro
into their
their corresponding
corresponding sources:
sources: treatments
treatments and
and error
erro
Dividing
Dividing the
the sum
sum of
of squares
squares by
by the
the appropriate
appropriate
degrees
degrees of
of freedom
freedom provides
provides the
the variance
variance estimates
estimates
and
and the
the FF value
value used
used to
to test
test the
the hypothesis
hypothesis of
of equal
equal
population
population means.
means.
17
18
19
Observation
1
2
3
4
5
Plant 1
Buffalo
48
54
57
54
62
Sample Mean
55
Sample Variance 26.0
Plant 2
Pittsburgh
73
63
66
64
74
68
26.5
Plant 3
Detroit
51
63
61
54
56
57
24.5
20
= .05
2. Specify the level of significance.
3. Compute the value of the test statistic.
22
25.667
23
490
308
798
2
12
14
245
25.667
F
9.55
24
27
Hypotheses
H 0 : i j
H a : i j
Test Statistic
t
xi xj
MSE( 1n 1n )
i
j
28
Rejection Rule
p-value Approach:
Reject H0 if p-value <
Critical Value Approach:
Reject H0 if t < -ta/2 or t > ta/2
where the value of ta/2 is based on a
t distribution with nT - k degrees of freedom.
29
Hypotheses
H 0 : i j
H a : i j
Test Statistic
xi xj
Rejection Rule
Reject H0 if xi xj
where
> LSD
LSD t / 2 MSE( 1n 1n )
i
j
30
LSD t / 2 MSE( 1n 1n )
i
j
32
Hypotheses (A) H 0 : 1 2
H a : 1 2
Rejection Rule
Reject H0 if x1 x2
> 6.98
Test Statistic
x1 x2 = |55 68| = 13
Conclusion
The mean number of hours worked at Plant 1 is
not equal to the mean number worked at Plant 2.
33
Hypotheses (B) H 0 : 1 3
H a : 1 3
Rejection Rule
Reject H0 if x1 x3
> 6.98
Test Statistic
x1 x3 = |55 57| = 2
Conclusion
Hypotheses (C) H 0 : 2 3
H a : 2 3
Rejection Rule
Reject H0 if x2 x3
> 6.98
Test Statistic
x2 x3 = |68 57| = 11
Conclusion
The mean number of hours worked at Plant 2 is
not equal to the mean number worked at Plant 3.
35
EW = 1 (1 )(k 1)!
36
End of Chapter
37