Chapter 6
Chapter 6
Statistical Inferences
about Two
Populations
University of Economics
Ho Chi Minh City
• Hypothesis Testing:
𝑥1 − 𝑥2 − (𝜇1 − 𝜇2 )
𝑡=
𝑠12 𝑛1 − 1 + 𝑠22 𝑛2 − 1 1 1
+
𝑛1 + 𝑛2 − 2 𝑛1 𝑛2
df= 𝑛1 + 𝑛2 −2
The populations are normally distributed
The population variances are approximately equal
Dang Van Thac 3/17
Hypothesis Testing and Confidence Intervals about Two Populations
Means (Independent samples, 𝝈𝟐 𝐔𝐧𝐤𝐧𝐨𝐰𝐧, 𝐭 𝐒𝐭𝐚𝐭𝐢𝐬𝐭𝐢𝐜)
𝑥1 − 𝑥2 − (𝜇1 − 𝜇2 )
𝑡=
𝑠12 𝑠22
+
𝑛1 𝑛2
2 2
𝑠12 𝑠2
𝑛1 +𝑛
2
𝑑𝑓 =
2 2 2 2
𝑠1 𝑠2
𝑛1 𝑛2
+
𝑛1 − 1 𝑛2 − 1
The populations are normally distributed
The population variances are not equal
Dang Van Thac 4/17
Hypothesis Testing and Confidence Intervals about Two Populations
Means (Independent samples, 𝝈𝟐 𝐔𝐧𝐤𝐧𝐨𝐰𝐧, 𝐭 𝐒𝐭𝐚𝐭𝐢𝐬𝐭𝐢𝐜)
Step 1: 𝐻0 : 𝜇1 − 𝜇2 = 0
𝐻𝑎 : 𝜇1 − 𝜇2 ≠ 0
47.73−56.5 −(0)
Step 6: 𝑡 =
19.495 15−1 +18.273 12−1 1 1
25
+
15 12
= −5.20
Step 7: Because -5.20 <-2.06 => reject 𝐻0
• Confidence Intervals:
𝑠12 𝑛1 − 1 + 𝑠22 𝑛2 − 1 1 1
𝑥1 − 𝑥2 −𝑡 + ≤ 𝜇1 − 𝜇2
𝑛1 + 𝑛2 − 2 𝑛1 𝑛2
𝑠12 𝑛1 − 1 + 𝑠22 𝑛2 − 1 1 1
≤ 𝑥1 − 𝑥2 +𝑡 +
𝑛1 + 𝑛2 − 2 𝑛1 𝑛2
df= 𝑛1 + 𝑛2 −2
Example: A
coffee manufacturer is interested in estimating the difference in
the average daily coffee consumption of regular-coffee drinkers and
decaffeinated-coffee drinkers. Its researcher randomly selects 13
regular-coffee drinkers and asks how many cups of coffee per day they
drink. He randomly locates 15 decaffeinated-coffee drinkers and asks
how many cups of coffee per day they drink. The average for the
regular-coffee drinkers is 4.35 cups, with a standard deviation of 1.20
cups. The average for the decaffeinated-coffee drinkers is 6.84 cups, with
a standard deviation of 1.42 cups. The researcher assumes, for each
population, that the daily consumption is normally distributed, and he
constructs a 95% confidence interval to estimate the difference in the
averages of the two populations.
Dang Van Thac 10/17
Hypothesis Testing and Confidence Intervals about Two Populations
Means (Independent samples, 𝝈𝟐 𝐔𝐧𝐤𝐧𝐨𝐰𝐧, 𝐭 𝐒𝐭𝐚𝐭𝐢𝐬𝐭𝐢𝐜)
𝑑−𝐷
𝑡= , df = n − 1
𝑠𝑑 / 𝑛
n= number of pairs
D = mean population difference
𝑠𝑑 = standard deviation of sample difference
𝑑 = mean sample difference
−5.857 − 0
𝑡= = −2.54
6.0945/ 7
• Confidence Intervals:
𝑠𝑑 𝑠𝑑
𝑑−𝑡 ≤𝐷 ≤𝑑+𝑡 , df=n-1
𝑛 𝑛
1.382 ≤ 𝐷 ≤ 10.332
Dang Van Thac 17/17