You are on page 1of 20

ENIE 232 ENGINEERING

STATISTIC II

Lecture 12
Two Sample Hypothesis Testing
Large Sample Mean Comparisons
January 8th,
Assoc. Prof. Dr. Fahrettin Eldemir
2023
TWO-SAMPLE TEST FOR THE DIFFERENCE
BETWEEN MEANS

• Large Samples
• Standard Deviations are Known
Hypothesis for Two Sample Means
TWO-SAMPLE z-TEST FOR THE DIFFERENCE BETWEEN
MEANS

 Three conditions are necessary to perform such a test.


 1. The samples must be randomly selected.

 2. The samples must be independent.

 3. Each sample size must be at least 30

or, if not, each population must have a normal distribution with a


known standard deviation.
If these requirements are met, then the sampling distribution for
,
the difference of the sample means, is a normal distribution with
mean and standard error as follows.
TWO-SAMPLE z-TEST FOR THE DIFFERENCE BETWEEN
MEANS
Example
 A credit card watchdog group claims that there is a difference
in the mean credit card debts of households in New York and
Texas. The results of a random survey of 250 households from
each state are shown. The two samples are independent. Do
the results support the group’s claim? Use a=0.05.
Solution
• Because the test is a two-tailed test and the level of
significance is a=0.05, the critical values are -196 and 1.96.

• Because both samples are large, S1 and S2 can be used in


place of s1 and s2 and to calculate the standard error.

Interpretation There is not enough evidence at the 5% level of significance to support the claim
that there is a difference in the mean credit card debts of households in New York and Texas.
Inference for a Difference in Means
of Two Normal Distributions, Variances Known

Example
Inference for a Difference in Means
of Two Normal Distributions, Variances Known

Example
Inference for a Difference in Means
of Two Normal Distributions, Variances Known

Example
TWO-SAMPLE z-TEST FOR THE
DIFFERENCE BETWEEN PROPORTIONS

 You will learn how to use a z-test to test the difference


between two population proportions p1 and p2 using a sample
proportion from each population. \If a claim is about two
population parameters p1 and p2 then some possible pairs of
null and alternative hypotheses are

 Regardless of which hypotheses you use, you always assume


there is no difference between the population proportions, or
p1 = p2
TWO-SAMPLE z-TEST FOR THE
DIFFERENCE BETWEEN PROPORTIONS

 Assumptions:
 The samples must be randomly selected.
 The samples must be independent.

 The samples must be large enough to use a normal


sampling distribution
TWO-SAMPLE z-TEST FOR THE
DIFFERENCE BETWEEN PROPORTIONS
TWO-SAMPLE z-TEST FOR THE
DIFFERENCE BETWEEN PROPORTIONS
TWO-SAMPLE z-TEST FOR THE
DIFFERENCE BETWEEN PROPORTIONS

 Example
Solution
Example
Solution

You might also like