14_Two-Sample Tests
14_Two-Sample Tests
iormuntidenu two
between populations
Reference: “Statistics for Managers Using Microsoft Excel” 8th edition, Pearson, 2017
Two-Sample Tests
Difference Between Two Means
Two-Sample Tests
th 責
Group 2 before vs. after Proportion 2 Variance 2
i
treatment
HM
and
CUHK
mnus.mn 不胂 iz 不不
符it
( X1 - X 2 ) ± tα/2 æ1 ö
tnutwopornnmnane
1
• Theetest
n statistic is:
are Hypothesised
S 2p çç + ÷
Point estimate difference
n n ÷
è 1 ø
( X1 - X 2 ) - ( μ 1 - μ 2 ) 2
t STAT = in
æ1
S 2p çç +
1
è n1 n 2
ö
÷
÷
ø in 譽 品
• tα/2 has d.f. = n1 + n2 – 2
• tSTAT has d.f. = n1 + n2 – 2 y.mn
in spt.tn
灬灬
cnn.in
H
_change a
enǐiiiiio
on_no
cv.tx.d.it
t.ir 6802
t.neje.tn
Pooled-Variance t Test Example Pooled-Variance t Test Example:
• You are a financial analyst for a brokerage firm. Is there a difference in
Confidence Interval for µ1 - µ2
dividend yield between stocks listed on the NYSE & NASDAQ? You collect
the following data: Since we rejected H0 can we be 95% confident that µNYSE > µNASDAQ?
NYSE NASDAQ
Sample size 21 25 95% Confidence Interval for µNYSE - µNASDAQ:
Sample mean
Sample std dev
n.s.sz
n3.27
1.30
2.53
1.16
si 偷偷
• Assuming both populations are approximately normal with equal
variances, is there a difference in mean dividend yield (a = 0.05)?
u nn n.in ii i
cnun54o
mmz
Hi u Ho ic 灬
ijiii
mmto
⼆
5以44
cnn.name
叫 Since 0 is less than the entire interval, we can be 95% confident that
44 哈
灬 灬 灬
nnn2 µNYSE > µNASDAQ.
in
in n tnnn
mii.in in54
no
4numparina
国 不不2
snninent
evidence
that is
thereadinerenuinmeundnnentyien
neienno
戀
Hypothesis Tests for µ1 - µ2
σ1 and σ2 Unknown and Not Assumed Equal
In this class we discussed:
• Comparing the means of two
Assumptions
• Samples are randomly and independently drawn. Class independent populations
• Point estimation
• Populations are normally distributed or both sample sizes
are at least 30.
Summary • Interval estimation
• Hypothesis testing
• Population variances are unknown and cannot be assumed
to be equal.
-> Use the separate-variance t test (not covered in this
course)
is butenq
populationvariance unknown
apopulationisnorman distributionorsample
ns.so
pooktvananietten
不上了5,5 51⼆ 3
⼜2 33 Szi 4
SF 24Ǘtmx42
35.5 33
ttq
12.5 新店
215
jyreiea
venue
d.fi48 驠
ǐorf
theAnytest
edsto
⼝ ⼀
些
pvalue Yiiiii
T r
ii
li.in It 2
必
前坊以
⼆ 215I2.6822 ⼈與