0% found this document useful (0 votes)
22 views33 pages

MATH03_CO6.1.1 Hypothesis Testing (Two Samples)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views33 pages

MATH03_CO6.1.1 Hypothesis Testing (Two Samples)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 33

MATH03

Statistics and Probability


COURSE OUTCOME 5
Lesson 1 Hypothesis Testing
(Two Samples)
Objectives
At the end of the lesson, the students should be able to:

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.

2. Test Statistic for 𝜇1 − 𝜇2 (𝜎1 and 𝜎2 Known)

𝑥ҧ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 1: Formulate the hypotheses and identify the claim.

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 1: Formulate the hypotheses and identify the claim.


𝐻0 : 𝜇1 − 𝜇2 = 0
𝐻1 : 𝜇1 − 𝜇2 ≠ 0 (𝐶𝑙𝑎𝑖𝑚)

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.

STEP 4: Make a decision.

STEP 5: Interpret the result.


Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Known
STEP 3: Compute the test value.

𝑥ҧ1 − 𝑥ҧ2 − 𝜇1 − 𝜇2 88.42 − 80.61 − 0


𝑧= =
5.62 2 4.83 2
𝜎12 𝜎22 +
50 50
𝑛1 + 𝑛2

𝑧 = 7.45 (Test Value)

STEP 4: Make a decision.


Since 𝑇𝑒𝑠𝑡 𝑉𝑎𝑙𝑢𝑒 ≥ 𝐶𝑟𝑖𝑡𝑖𝑐𝑎𝑙 𝑉𝑎𝑙𝑢𝑒 , reject 𝐻0 .

STEP 5: Interpret the result.


Since we reject 𝐻0 AND the claim is 𝐻1 , there is sufficient evidence to support the claim that
the two average hotel room rates are significantly different.
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?

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.

STEP 1: Formulate the hypotheses and identify the claim.


𝐻0 : 𝜇1 − 𝜇2 ≥ 0
𝐻1 : 𝜇1 − 𝜇2 < 0 (𝐶𝑙𝑎𝑖𝑚) Left-tailed test
Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Known
STEP 2: Calculate the test value.

STEP 3: Find the 𝑝-value.


Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Known
STEP 2: Calculate the test value.

𝑥ҧ1 − 𝑥ҧ2 − 𝜇1 − 𝜇2 3.37 − 3.28 − 0


𝑧= =
𝜎12 𝜎22 0.52 2 0.46 2
103 + 225
𝑛1 + 𝑛2

𝑧 = 1.51 (Test Value)

STEP 3: Find the 𝑝-value.


The area to the left of test value z = 1.51 is 0.9345.
Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Known
STEP 4: Make a decision.

STEP 5: Interpret the result.


Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Known
STEP 4: Make a decision.
Since 𝑝 − 𝑣𝑎𝑙𝑢𝑒 = 0.9345 > 𝛼 = 0.10, fail to reject 𝐻0 .

STEP 5: Interpret the result.


Since we fail to reject 𝐻0 AND the claim is 𝐻1 , there is no sufficient evidence to support the
claim that the science grade point average of leavers is lower than the science grade point
average of stayers.
Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Known
3. To determine whether car ownership affects student’s academic achievement, two random sample
of 100 male students were each drawn from the student body. The grade point average for 100
non-owners of cars is 83.6 while the grade point average for 100 car owners is 85.8. The variance
of all non-owners of cars is 60 while the variance of all car owners is 65. Do the data present
sufficient evidence to indicate a difference in the mean achievements between car owners and
nonowners of cars? Test using 𝛼 = 0.05. Use p-value method.

STEP 1: Formulate the hypotheses and identify the claim.


Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Known
3. To determine whether car ownership affects student’s academic achievement, two random sample
of 100 male students were each drawn from the student body. The grade point average for 100
non-owners of cars is 83.6 while the grade point average for 100 car owners is 85.8. The variance
of all non-owners of cars is 60 while the variance of all car owners is 65. Do the data present
sufficient evidence to indicate a difference in the mean achievements between car owners and
nonowners of cars? Test using 𝛼 = 0.05. Use p-value method.

STEP 1: Formulate the hypotheses and identify the claim.


𝐻0 : 𝜇1 − 𝜇2 = 0
𝐻1 : 𝜇1 − 𝜇2 ≠ 0 (𝐶𝑙𝑎𝑖𝑚) Two-tailed Test
Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Known
STEP 2: Calculate the test value.

STEP 3: Find the 𝑝-value.


Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Known
STEP 2: Calculate the test value.

𝑥ҧ1 − 𝑥ҧ2 − 𝜇1 − 𝜇2 (85.8 − 83.6) − 0


𝑧= =
𝜎12 𝜎22 65 60
+
100 100
𝑛1 + 𝑛2

𝑧 = 1.97 (Test Value)

STEP 3: Find the 𝑝-value.


The area to the right of test value z = 1.97 is 0.0244.
Since the test is two-tailed, 𝑝 − 𝑣𝑎𝑙𝑢𝑒 = 2 0.0244 = 0.0488
Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Known
STEP 4: Make a decision.

STEP 5: Interpret the result.


Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Known
STEP 4: Make a decision.
Since 𝑝 − 𝑣𝑎𝑙𝑢𝑒 = 0.0488 < 𝛼 = 0.05, reject 𝐻0 .

STEP 5: Interpret the result.


Since we reject 𝐻0 AND the claim is 𝐻1 , there is sufficient evidence to support the claim that
car ownership affects student’s academic achievement.
Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Unknown but Equal
1. Assumptions for the Test to Determine the Difference Between Two Population Means:
a. The two samples are independent.
b. The standard deviations for both populations are unknown, but they can assumed to be equal.
c. Both samples are large (𝑛 ≥ 30). If the sample sizes are less than 30, the populations must be
normally or approximately normally distributed.

2. Degrees of Freedom for the Test

𝑑𝑓 = 𝑛1 + 𝑛2 − 2
Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Unknown but Equal

3. Pooled Standard Deviation

𝑛1 − 1 𝑠12 + 𝑛2 − 1 𝑠22
𝑠𝑝 =
𝑛1 + 𝑛2 − 2

4. Test Statistic for 𝜇1 − 𝜇2 (𝜎1 and 𝜎2 Unknown but Equal)

𝑥ҧ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.

𝑛1 − 1 𝑠12 + 𝑛2 − 1 𝑠22 38 − 1 42.40 2 + 15 − 1 50.70 2


𝑠𝑝 = =
𝑛1 + 𝑛2 − 2 38 + 15 − 2
𝑠𝑝 = 44.83170709
Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Unknown but Equal
Solve for the test value.

STEP 4: Make a decision.

STEP 5: Interpret the result.


Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Unknown but Equal
Solve for the test value.

𝑥ҧ 1 −𝑥ҧ 2 − 𝜇1 −𝜇2 3214−3187 −45


𝑡= 1 1
= 1 1
𝑠𝑝 + 44.83170709 +
𝑛1 𝑛2 38 15

𝑡 = −1.317 (Test Value)

STEP 4: Make a decision.


Since 𝑇𝑒𝑠𝑡 𝑉𝑎𝑙𝑢𝑒 > 𝐶𝑟𝑖𝑡𝑖𝑐𝑎𝑙 𝑉𝑎𝑙𝑢𝑒 , reject 𝐻0 .

STEP 5: Interpret the result.


Since we reject 𝐻0 AND the claim is 𝐻1 , it can be concluded that the mean distance between
oil changes is significantly different for all luxury cars and for all compact lower-price cars by
45 miles.
Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Unknown but Equal
Example:
A course can be taken for credit either by attending synchronous online classes at fixed times and
days, or by watching video lectures (asynchronous) that can be done at the student’s own pace and at
those times the student chooses.
The course coordinator wants to determine if these two ways of taking the course resulted in
significant difference in achievement as measured by the final exam for the course.
The data below gives the mean scores in final exam of two groups together with the standard
deviations. Is there enough evidence to conclude that the grades of those who took synchronous
classes significantly higher than those who took the asynchronous class? Use 𝜶 = 𝟎. 𝟎𝟓.

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.

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 ≤ 0
𝐻1 : 𝜇1 − 𝜇2 > 0 (Claim)
STEP 2: Find the critical value with the corresponding level of significance and type of test.
𝛼 = 0.05 with 𝑑𝑓 = 𝑛1 + 𝑛2 − 2 = 9 + 9 − 2 = 16, Right-tailed Test
𝑡𝛼 = 1.746 (Critical Value)

STEP 3: Calculate the test value.


Solve for the pooled standard deviation.
𝑛1 − 1 𝑠12 + 𝑛2 − 1 𝑠22
𝑠𝑝 =
𝑛1 + 𝑛2 − 2
9 − 1 4.9441 2 + 9 − 1 4.4752 2
=
9+9−2
𝑠𝑝 = 4.71548194
Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Unknown but Equal
Solve for the test value.

STEP 4: Make a decision.

STEP 5: Interpret the result.


Hypothesis Testing for the Difference Between Two Population
Means: 𝝈𝟏 and 𝝈𝟐 Unknown but Equal
Solve for the test value.

𝑥ҧ1 − 𝑥ҧ2 − 𝜇1 − 𝜇2 35.22 − 31.56 − 0


𝑡= =
1 1 1 1
𝑠𝑝 𝑛 + 𝑛 4.71548194 9 + 9
1 2
𝑡 = 1.646 (Test Value)

STEP 4: Make a decision.


Since 𝑇𝑒𝑠𝑡 𝑉𝑎𝑙𝑢𝑒 < 𝐶𝑟𝑖𝑡𝑖𝑐𝑎𝑙 𝑉𝑎𝑙𝑢𝑒, fail to reject 𝐻0 .

STEP 5: Interpret the result.


Since we fail to reject 𝐻0 AND the claim is 𝐻1 , it cannot be concluded that the grades of
those who took synchronous classes significantly higher than those who took the
asynchronous class
End of Presentation

You might also like