MATH03_CO6.1.1 Hypothesis Testing (Two Samples)
MATH03_CO6.1.1 Hypothesis Testing (Two Samples)
1. Perform hypothesis testing for the difference between two population means with known
variances.
2. Conduct hypothesis testing for the difference between two population means with unknown but
equal variances.
Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Known
1. Assumptions for the Test to Determine the Difference Between Two Population Means:
a. The samples must be independent of each other; that is, there can be no relationship between
the subjects in each sample.
b. The standard deviations of both populations must be known.
c. Both samples are large (𝑛 ≥ 30). If the sample sizes are less than 30, the populations must be
normally or approximately normally distributed.
𝑥ҧ1 − 𝑥ҧ2 − 𝜇1 − 𝜇2
𝑧=
𝜎12 𝜎22
+
𝑛1 𝑛2
Critical values for 𝒛
Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Known
Examples:
1. A survey found that the average hotel room rate in New Orleans is $88.42, and the average room
rate in Phoenix is $80.61. Assume that the data were obtained from two samples of 50 each, and
that the standard deviations of the populations are $5.62 and $4.83, respectively. At 5% level of
significance, can it be concluded that there is a significant difference in the rates? Use the Critical-
Value Approach.
STEP 2: Find the critical value with the corresponding level of significance and type of test.
Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Known
Examples:
1. A survey found that the average hotel room rate in New Orleans is $88.42, and the average room
rate in Phoenix is $80.61. Assume that the data were obtained from two samples of 50 each, and
that the standard deviations of the populations are $5.62 and $4.83, respectively. At 5% level of
significance, can it be concluded that there is a significant difference in the rates? Use the Critical-
Value Approach.
STEP 2: Find the critical value with the corresponding level of significance and type of test.
𝛼 = 0.05, Two-Tailed Test
𝑧 = ±1.96 (Critical Values)
Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Known
STEP 3: Compute the test value.
a. What is the best point estimate for the difference between the two population means?
b. At 90% confidence, is there enough evidence to support the claim? Use the 𝑃-Value Method.
Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Known
2. In a study of women science majors, there is a claim that those who left their profession within a
few months after graduation (leavers) had a lower science grade point average than those who
stayed in their profession after graduation (stayers). A random sample of 103 leavers has been
chosen, who gave an average grade point in science of 3.37. On the other hand, 225 stayers have
been selected, who gave an average grade point in science of 3.28. Assume the population
standard deviations to be 0.52 and 0.46, respectively.
a. What is the best point estimate for the difference between the two population means?
𝑥ҧ1 − 𝑥ҧ2 = 3.37 − 3.28 = 0.09
b. At 90% confidence, is there enough evidence to support the claim? Use the 𝑃-Value Method.
𝑑𝑓 = 𝑛1 + 𝑛2 − 2
Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Unknown but Equal
𝑛1 − 1 𝑠12 + 𝑛2 − 1 𝑠22
𝑠𝑝 =
𝑛1 + 𝑛2 − 2
𝑥ҧ1 − 𝑥ҧ2 − 𝜇1 − 𝜇2
𝑡=
1 1
𝑠𝑝 𝑛 + 𝑛
1 2
Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Unknown but Equal
Example:
The standard recommendation for automobile oil changes is once every 3,000 miles.
A local mechanic is interested in determining if people who drive more expensive cars are significantly
different from those who drive compact lower-price cars in terms of oil changes.
Independent random samples of 38 customers who drive luxury cars and 15 customers who drive
compact lower-price cars were selected.
The average distance driven between oil changes was 3,214 miles for the luxury car owners and
3,187 miles for the compact lower-price cars. The sample standard deviations were 42.40 and
50.70 miles for the luxury and compact groups, respectively.
Assume that the population distributions of the distances between oil changes have the same
standard deviations for the two populations. At 20% level of significance, can you conclude that the
mean distance between oil changes is significantly different for all luxury cars and for all compact
lower-price cars by 45 miles? Use the Critical-Value Approach.
LUXURY COMPACT
𝑥ҧ1 = 3,214 𝑚𝑖𝑙𝑒𝑠 𝑥ҧ2 = 3,187 𝑚𝑖𝑙𝑒𝑠
𝑛1 = 38 𝑛2 = 15
𝑠1 = 42.40 𝑚𝑖𝑙𝑒𝑠 𝑠2 = 50.70 𝑚𝑖𝑙𝑒𝑠
Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Unknown but Equal
STEP 1: Formulate the hypotheses and identify the claim.
STEP 2: Find the critical value with the corresponding level of significance and type of test.
STEP 3: Calculate the test value. Solve for the pooled standard deviation.
Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Unknown but Equal
STEP 1: Formulate the hypotheses and identify the claim.
𝐻0 : 𝜇1 − 𝜇2 = 45 𝑚𝑖𝑙𝑒𝑠
𝐻1 : 𝜇1 − 𝜇2 ≠ 45 𝑚𝑖𝑙𝑒𝑠 (𝐶𝑙𝑎𝑖𝑚)
STEP 2: Find the critical value with the corresponding level of significance and type of test.
𝛼 = 0.20 with 𝑑𝑓 = 𝑛1 + 𝑛2 − 2 = 38 + 15 − 2 = 51, Two-Tailed Test
𝑡𝛼Τ2 = ±1.298 (Critical Values)
STEP 3: Calculate the test value. Solve for the pooled standard deviation.
Synchronous Asynchronous
𝑥1ҧ = 35.22 𝑥ҧ2 = 31.56
𝑛1 = 9 𝑛2 = 9
𝑠1 = 4.9441 𝑠2 = 4.4752
Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Unknown but Equal
STEP 1: Formulate the hypotheses and identify the claim.
STEP 2: Find the critical value with the corresponding level of significance and type of test.