Sunteți pe pagina 1din 11

Two Sample z-Test for

two independent
proportions.
BY: KARANVEER SINGH (300138860)
SUBMITTED TO: PROF. SONIA GUPTA
Two Sample z-Test for Proportions

A z-test is used to test the difference between two population


proportions, p1 and p2.
Three conditions are required to conduct the test.
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 Proportions
Two Sample z-Test for Proportions

A two sample z-test is used to test the difference between two population proportions
p1 and p2 when a sample is randomly selected from each population.

1
The test statistic isp p1

(p1 p2) (p1 p2)


z
and the standardized test statistic is
pq
1 1

1 n2
n
x1 x2
p and q 1 p.
where n1 n2
Two Sample z-Test for Proportions

Using a Two-Sample z-Test for the Difference Between Proportions

1. State the claim. Identify the null and alternative hypotheses.

2. Specify the level of significance.

3. Determine the critical value(s).

4. Determine the rejection region(s).

5. Find the weighted estimate of p1 and p2.


Two Sample z-Test for Proportions

6. Find the standardized test statistic.

(p1 p2) (p1 p2)


z
pq
1 1

1 n2
n
7. Make a decision to reject or fail to reject the null hypothesis.
8. Interpret the decision in the context of the original claim.
Example:

A recent survey stated that male college students smoke less than female college
students. In a survey of 1245 male students, 361 said they smoke at least one pack of
cigarettes a day. In a survey of 1065 female students, 341 said they smoke at least
one pack a day. At = 0.01, can you support the claim that the proportion of male
college students who smoke at least one pack of cigarettes a day is lower then the
proportion of female college students who smoke at least one pack a day?
H 0 : p1 p2
Ha: p1 < p2 (Claim)

=
0.01

z
-3 -2 -1 0 1 2 3

z0 = 2.33
Example continued:

H 0: p1 p 2

Ha: p1 < p2 (Claim) z


-3 -2 -1 0 1 2 3
z0 = 2.33
x1 x2 n1p1 n2p2 361 341 702
p
n1 n2 n1 n2 1245 1065 2310 0.304
q 1 p 1 0.304 0.696
Because 1245(0.304), 1245(0.696), 1065(0.304), and 1065(0.696) are
all at least 5, we can use a two-sample z-test.
Example continued:

H0: p1 p2 z
-3 -2 -1 0 1 2 3
Ha: p1 < p2 (Claim) z0 =
2.33

(p1 p2) (p1 p2) (0.29 0.32) 0


z 1.56
pq
1 1

1 n2
n
(0.304)(0.696)
1

1
1245 1065

H0 is accepted.
There is not enough evidence at the 1% level to support the claim that the
proportion of male college students who smoke is lower then the proportion of
female college students who smoke.

S-ar putea să vă placă și