Professional Documents
Culture Documents
Inference About Comparing Two Populations: Hypothesis Testing
Inference About Comparing Two Populations: Hypothesis Testing
Inference About Comparing Two Populations: Hypothesis Testing
Inference About
Comparing Two
Populations: Hypothesis
Testing
Learning Objectives
In this chapter, you learn how to use hypothesis testing for
comparing the difference between:
Independent Alternative
Null hypothesis
samples hypothesis
Two-tail test H0 : 1 = 2 H1 : 1 2
a a a/2 a/2
1.504
(ii) Comparing the Means When the
Samples Are Dependent
Tests in which the samples are dependent are also
referred to as matched pairs.
Dependent Alternative
Null hypothesis
samples hypothesis
Two-tail test H0 : d = 0 H1 : d 0
σ 𝑑𝑖
where 𝑥ҧ𝑑 = and
𝑛
degree of freedom: v = n – 1 The sum of squared
of each d
n is the number of pairs of observations
Company A B C D E F
Method 1 90 18 70 112 77 40
Method 2 84 20 64 105 77 25
Do these data provide sufficient evidence to indicate that the
adoption of method 2 results in a lower after-tax profit? Test
with a = 0.05.
Do these data provide sufficient evidence to indicate that the
adoption of method 2 results in a lower after-tax profit? Test
with a = 0.05.
Question ask you to prove that the after tax profit using
method 2 is less than method 1.
What is the steps:
Company A B C D E F
d 6 -2 6 7 0 15
H0 : d = 0 Test at a = 0.05 Remember: you
H1 : d > 0 need to find 𝒙𝒅
𝟔+ −𝟐 +𝟔+𝟕+𝟎+𝟏𝟓 and 𝒔𝒅 to
𝒙𝒅 = = 𝟓. 𝟑𝟑𝟑
𝟔 calculate t*
𝟏 𝟏𝟎𝟐𝟒
𝒔𝒅 = 𝟑𝟓𝟎 − = 𝟓. 𝟗𝟖𝟗
𝟓 𝟔
5.333
2.181
Test Statistic : t* = 5.989 / 6
Refer to t table and use the a
Critical value : t 0.05, 5 = 2.015 as given as the test is one tail
Reject H0 because t > 2.015
*
+2.015
2.181
Decision:
Reject Ho because
2.181 (t*) > 2.015. (t0.05,5)
Testing the Difference Between
Two Populations Proportions
Independent Alternative
Null hypothesis
samples hypothesis
Two-tail test H0 : p1 = p2 H1 : p1 p2
𝑝Ƹ1 − 𝑝Ƹ 2
Test Statistic : Z * =
1 1
𝑝(1
Ƹ − 𝑝)Ƹ +
𝑛1 𝑛2
𝑥1 + 𝑥2 𝑛1 𝑝Ƹ1 + 𝑛2 𝑝Ƹ 2
𝑝Ƹ = or 𝑝Ƹ =
𝑛1 + 𝑛2 𝑛1 + 𝑛2
Conclusion:
There is no enough evidence to indicate that the proportion of
public support for the death penalty was lower in 1999 as
compared with 1989.
Reject Ho Fail to
Reject Ho
-2.3263
- 1.324
Example: Pooled-Variance t Test
t STAT
X 1
X 2 μ 1 μ 2
3.27 2.53 0 2.040
1 1 1 1
S
2
1.5021
21 25
p
n1 n 2
n
S2 1
1 S 2
1 n 2 1 S 2
2
21 11.302
25 11.162
1.5021
(n1 1) (n 2 1) (21 - 1) ( 25 1)
P
Pooled-Variance t Test Example: Hypothesis
Test Solution
df = 21 + 25 - 2 = 44 -2.0154 0 2.0154 t
Critical Values: t = ± 2.0154
2.040
Test Statistic: Decision:
3.27 2.53 Reject H0 because tstat (2.040) >
t STAT 2.040 2.0154
1 1 Conclusion:
1.5021
21 25 There is enough evidence of a
difference in mean yield
Fast Revision:
(iv) Make sure you can make decision to perform one tail test or two
tail test after read the question.
(v) For one tail test no need to divide a by 2 to find the critical
value for Z or t
(vi) For two tail test must divide a by 2 to find the critical value
for Z or t