Professional Documents
Culture Documents
TWO MEANS
CHAPTER 15
A specific hypothesis is
generated about a population
parameter.
Population
Parameter: descriptive
statistic of a population
Inference
Sample statistics are used to
assess the likelihood that the
hypothesis is true.
Sample
Statistic: descriptive
statistic of a sample
q For each sample: compute the sample size, mean and standard
deviation;
!1, s1
q Sample 1: n1, X
!2 , s1
q Sample 2: n2, X
𝑋# − 𝑋$
n1 ≥ 30 and n2 ≥30 𝑧= Find critical value of z in Table
1 1
𝑆% +
𝑛# 𝑛$
SBP
Men Women
n 1623 1911
!
X 128.2 126.5
s 17.5 20.1
Men Women
n 1623 1911
X 128.2 126.5
s 17.5 20.1
• It falls between the std. dev. of the comparison groups (17.5 & 20.1) => closer to
20.1 as there is more women in the sample.
■ Procedures for hypothesis testing
2. Calculate z-test
SBP
Men Women
n 1623 1911
X 128.2 126.5
s 17.5 20.1
At α=0.05, p(Z>2.66)<0.05
à H0 is rejected.
. .
#1 − X
95% CI for μ1-μ2= X #2 ± Z0.05 (Sp + )
/! /"
The 95% CI for the difference in the mean SBP is calculated as:
Sample Standard
Mean
size deviation
Males 15 120.2 10.101
Females 15 108.2 10.483
X1 - X 2
t= Pooled sample standard deviation,
df= n1+n2-2
1 1
Sp +
n1 n2
= 10.29
X1 - X 2 120.2 - 108.2 12
t= = = = 3.19
1 1 1 1 3.757
Sp + 10.29 +
n1 n2 15 15
df = 28
§ At α=0.05
§ Critical t value for df=28
for upper-tailed test is
1.701
§ Since 3.19 > 1.7
§ H0 is rejected
à There is a difference in
mean SBP between men and
women.
Hypothesis testing:
Two independent sample means
■ Procedures for hypothesis testing
à Statistical decision: (b) 95% confidence interval method
95% CI for µ1-µ2= x1 - x2 ± t0.05 (S p 1 + 1 )
n1 n2
∑ 𝑑𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑐𝑒𝑠
𝑋& =
𝑛
254
= = 16.9
15
(∑ 𝐷𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑐𝑒𝑠)$
∑ 𝐷𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑐𝑒𝑠 $ −
𝑠& = 𝑛
Sum=254
𝑛−1
7110 - (254) 2 / 15
Is there a statistical evidence of reduction? sd =
15 - 1
Chapter 16. Hypothesis testing for two means = 200.64 = 14.2 30
Step 1:
# d − µd
X 16.9
t= = = 4.61 df=n-1
Sd/ n 14.21
15
33
Hypothesis testing:
Two dependent sample means
34
2) When n>30
# d − µd
X
Z=
Sd/ n