Professional Documents
Culture Documents
Test of Hypothesis
Hypothesis Testing:
Two Population Means
The test statistic is the standard normal
(Z) if :
– The population standard deviations are known, or
– The population standard deviations are unknown
but the two samples both contain at least 30
observation.
X1 X 2
Z
2 2
s1 s2
n1 n2
cont..
Note : The Z test statistic
– No assumption about the shape of either
population is required
– The samples are from independent population
(that are not related in any way)
– Variance of distribution of differences in sample
means :
2 2 2
s1 s2
s X1 X 2
n1 n2
cont..
The test statistic is the t distribution if one
or both the samples contain fewer than 30
observation
– Both populations must follow the normal
distribution
– The population must have equal standard
deviation
– The samples are independent
Cont..
Pooled Sample Variance:
( n 1) s 2
( n 1) s 2
sp
2 1 1 2 2
n1 n2 2
Test Statistic: X1 X 2
t
1 1
s
2
n1
p
n2
X1 X 2
t
( n1 1) s12 ( n2 1) s2 2 1 1
n1 n2 2 n n
1 2
cont..
Dependent samples are samples that are
paired observation or related in some
fashion.
d
t
sd / n
– where d is the average of the differences d d
n
– sd is the standard deviation of the differences
– n is the number of pairs (differences)
( d d ) 2 ( d ) 2
d2
sd or sd n
n 1 n 1
Contoh
UTS UAS
Mean 63.11111 65.88888889
Variance 94.86111 178.8611111
Observations 9 9
Pearson Correlation 0.509675
Hypothesized Mean Difference 0
df 8
t Stat -0.70193
P(T<=t) one-tail 0.251314
t Critical one-tail 1.859548
P(T<=t) two-tail 0.502629
t Critical two-tail 2.306004
Contoh
Berikut adalah data gaji karyawan perusahaan A dan
perusahaan B