Professional Documents
Culture Documents
ESTIMATION AND
HYPOTHESIS TESTING:
TWO POPULATIONS
(PART 1)
Opening Example
Inchapter 9 we discussed the estimation and hypothesis-
testing procedures for involving a single population.
2 2
𝜎 𝜎
𝜎 𝑥¯ − 𝑥¯ =
1 2
√+
𝑛1 𝑛2
1 2
Figure 10.1
.
Hypothesis Testing About (μ1 – μ2
and known)
It often necessary to compare the means of two
is
populations. For example, we may want to know if the mean
price of houses in Chicago is different than that in Los
Angeles. Similarly, we may be interested in knowing if, on
average, Bangladeshi children spend fewer hours in school
than Indian children do. In both these cases, we will perform
a test of hypothesis about ()
𝑥1− ¯
(¯ 𝑥2 )−( 𝜇1 − 𝜇2)
𝑧=
𝜎 ¯𝑥 − ¯𝑥
1 2
From H0
Example 10-4: Solution
Step
5: Make a decision
Because the value of the test statistic z = 8.515 falls inthe
rejection region, we reject the null hypothesis .
( ¯𝒙 𝟏 − ¯
𝒙 𝟐) −(𝝁 𝟏 − 𝝁 𝟐)
𝒕=
𝒔¯𝒙 − ¯𝒙
𝟏 𝟐
1 1
𝑠 ¯𝑥 − ¯𝑥 =𝑠 𝑝
1 2
√ +
𝑛 1 𝑛2
Example 10-6
A sample of 14 cans of Brand I diet soda gave the
mean number of calories of 23 per can with a standard
deviation of 3 calories. Another sample of 16 cans of
Brand II diet soda gave the mean number of calories
of 25 per can with a standard deviation of 4 calories.
At the 1% significance level using the critical value
approach, can you conclude that the mean number of
calories per can are different for these two brands of
diet soda? Assume that the calories per can of diet
soda are normally distributed for each of the two
brands and that the standard deviations for the two
populations are equal.
Example 10-6: Solution
and be the mean numbers of calories per can for diet soda
Let
of Brand I and Brand II, respectively, and let and be the
means of the respective samples. From the given information,
= 14 = 23 =3
= 16 = 25 = 4
=.01
2 2
(𝑛1 −1)𝑠 +(𝑛2 −1)𝑠
𝑠 𝑝=
√ 1
𝑛1 +𝑛2 −2
2
= √(14−1)¿¿¿
Example 10-6: Solution
Step 1:
The mean time spent watching television by children in
New York State is equal to that for children in California.
This can be written as μ1 = μ2 or μ1 – μ2 = 0
Hence H0: μ1 – μ2 = 0
Step 3:
α = .025
Area in the right tail of the t distribution = α = .025
df = n1 + n2 – 2 = 40 + 35 – 2 = 73
Critical value of t is 1.993
Figure 10.4
Example 10-7: Solution
Step 4:
2 2
(𝑛1 −1)𝑠 +(𝑛2 −1)𝑠
𝑠 𝑝=
√ 1
𝑛1 +𝑛2 −2
2
= √(40−1)¿¿¿
Example 10-7: Solution
Step 5:
The value of the test statistic t = 5.048.
It falls in the rejection region.
𝑑𝑓 =
( +
𝑛1 𝑛2 )
2 2 2 2
𝑠 𝑠
( ) ( )
1
𝑛1
+
𝑛2
2
𝑛1 − 1 𝑛2 −1
( ¯𝑥 1 − 𝑥¯2)−(𝜇 1 − 𝜇 2)
𝑡=
𝑠¯𝑥 − ¯𝑥
1 2
2 2
𝑠 𝑠
√
𝑠 ¯𝑥 − ¯𝑥 = +
1 2
1
𝑛1 𝑛 2
2
Example 10-9
A sample of 14 cans of Brand I diet soda gave the
mean number of calories per can of 23 with a standard
deviation of 3 calories. Another sample of 16 cans of
Brand II diet soda gave the mean number of calories
as 25 per can with a standard deviation of 4 calories.
Step 1:
H0: μ1 – μ2 = 0
(The mean numbers of calories are not different)
H1: μ1 – μ2 ≠ 0
(The mean numbers of calories are different)
Example 10-9: Solution
Step 1:
H0: μ1 – μ2 = 0
(The mean numbers of calories are not different)
H1: μ1 – μ2 ≠ 0
(The mean numbers of calories are different)
Step 2:
The two samples are independent.
Standard deviations of the two populations are unknown
and unequal.
Both populations are normally distributed.
We use the t distribution to make the test.
Example 10-9: Solution
Step 3:
The ≠ in the alternative hypothesis indicates that the test is
two-tailed.
α = .01
Area in each tail = α / 2 = .01 / 2 =.005
2
𝑠1
2
𝑠2
2
𝑑𝑓 =
( 𝑛1
+
𝑛2 ) =¿ ¿ ¿
2 2 2 2
𝑠 𝑠
( )
𝑛1
1
+
( )
𝑛2
2
𝑛1 − 1 𝑛2 − 1
The critical values of t are -2.771 and 2.771
Figure 10.5
Example 10-9: Solution
Step 4:
2 2
𝑠 𝑠
Step 5:
2
√ 1
𝑠 ¯𝑥 − 𝑥¯ = + =√ ¿ ¿ ¿
1
𝑛1 𝑛2
The test statistic t = -1.560
It falls in the nonrejection region.
2