16
Two-sample Proportions Section 12.2.1

Two-sample Proportions Section 12.2.1. Starter 12.2.1 One-sample procedures for proportions can also be used in matched pairs experiments. Here is an

Embed Size (px)

Citation preview

Page 1: Two-sample Proportions Section 12.2.1. Starter 12.2.1 One-sample procedures for proportions can also be used in matched pairs experiments. Here is an

Two-sample Proportions

Section 12.2.1

Page 2: Two-sample Proportions Section 12.2.1. Starter 12.2.1 One-sample procedures for proportions can also be used in matched pairs experiments. Here is an

Starter 12.2.1One-sample procedures for proportions can also be used in matched pairs experiments. Here is an example:

Each of 50 randomly selected subjects tastes two unmarked cups of coffee and says which he/she prefers. One cup in each pair contains instant coffee; the other is fresh-brewed. 31 of the subjects prefer fresh-brewed.

1. Test the claim that a majority of people prefer the taste of fresh-brewed coffee. State hypotheses, check assumptions, find the test statistic and p-value. Is your result significant at the 5% level?

2. Find a 90% confidence interval for the true proportion that prefer fresh-brewed.

3. When you do an experiment like this, in what order should you present the two cups of coffee to the subjects?

Page 3: Two-sample Proportions Section 12.2.1. Starter 12.2.1 One-sample procedures for proportions can also be used in matched pairs experiments. Here is an

Today’s Objectives

• The student will form confidence intervals and perform hypothesis tests on the difference of proportions from samples of two populations

California Standards• 17.0 Students determine confidence intervals for a

simple random sample from a normal distribution of data and determine the sample size required for a desired margin of error.

• 18.0 Students determine the P- value for a statistic for a simple random sample from a normal distribution.

Page 4: Two-sample Proportions Section 12.2.1. Starter 12.2.1 One-sample procedures for proportions can also be used in matched pairs experiments. Here is an

Two-sample Proportions

• To compare the proportions of two populations, we need to define notation

PopulationPopulation

Proportion

Number of

Successes

Sample

Size

Sample

Proportion

1 p1 x1 n1

2 p2 x2 n2 2p̂

1p̂

Page 5: Two-sample Proportions Section 12.2.1. Starter 12.2.1 One-sample procedures for proportions can also be used in matched pairs experiments. Here is an

• We are interested in the difference (p1-p2) between the two population proportions

• If the population proportions are the same, then p1 = p2 , so (p1-p2) = 0

• The C.I. estimates the difference (p1-p2)

• The hypothesis test looks at:Ho: p1 = p2

versus one of these alternatives:

Ha: p1 ≠ p2

Ha: p1 < p2

Ha: p1 > p2

Page 6: Two-sample Proportions Section 12.2.1. Starter 12.2.1 One-sample procedures for proportions can also be used in matched pairs experiments. Here is an

Assumptions for the:Two-Population Z procedure for

proportions

• In both samples, we have a valid SRS

• Population at least ten times sample size

• All counts of success and failure are at least 5– So including both populations there are still 10

Page 7: Two-sample Proportions Section 12.2.1. Starter 12.2.1 One-sample procedures for proportions can also be used in matched pairs experiments. Here is an

Assumptions So Far…

Procedure• One population t for means• Two population t for means• One population z for proportions• Two population z for proportions

Assumptions• SRS, Normal Dist• SRS, Normal, Independent• SRS, large pop, 10 succ/fail• SRS, large pop, 5 s/f each

Page 8: Two-sample Proportions Section 12.2.1. Starter 12.2.1 One-sample procedures for proportions can also be used in matched pairs experiments. Here is an

How do we estimate p1 – p2?• For large sample size (n>30), the variable (p1– p2)

is – normally distributed– with mean of 0– and standard deviation equal to Standard Error

• For confidence intervals, we use the usual approach– Estimate ± z*SE

• For hypothesis tests, we find the z statistic and its associated p-value

Page 9: Two-sample Proportions Section 12.2.1. Starter 12.2.1 One-sample procedures for proportions can also be used in matched pairs experiments. Here is an

Formulas for SE and z• Here is the formula for Standard Error:

• Here is the formula for the z statistic:

where p-hat is the “pooled” proportion found by dividing total successes by total sample size.

SEp q

n

p q

n

1 1

1

2 2

2

zp p

pqn n

1 2

1 2

1 1

Page 10: Two-sample Proportions Section 12.2.1. Starter 12.2.1 One-sample procedures for proportions can also be used in matched pairs experiments. Here is an

Do the actual calculations on TI

• For Hypothesis Tests– Stat : Tests : 2-PropZTest– Enter successes (x), sample size (n), Ha

– Calculate and write a conclusion

• For Confidence Intervals– Stat : Tests : 2-PropZInt– Enter successes (x), sample size (n), C-Level– Calculate and write a conclusion

Page 11: Two-sample Proportions Section 12.2.1. Starter 12.2.1 One-sample procedures for proportions can also be used in matched pairs experiments. Here is an

Example: Confidence IntervalA study asked whether poor children who attended pre-school required less social services as adolescents than those who had not attended pre-school.

The study found that 49 of 61 who had not attended pre-school later needed social services. Call them group 1. 38 of 62 who had attended pre-school needed social services. Call them group 2

Use the calculator to form a 95% confidence interval for the difference between the two population proportions. Write your conclusions in a sentence

Page 12: Two-sample Proportions Section 12.2.1. Starter 12.2.1 One-sample procedures for proportions can also be used in matched pairs experiments. Here is an

Example Solution

• Stat:Tests:2-PropZInt

• Enter x1 = 49, n1 = 61, x2 = 38, n2 = 62

• Choose C-Level = .95

• Calculate to find (.033, .347)

• Conclusion: We are 95% confident that the percent needing social services was between 3.3% and 34.7% lower among those who attended pre-school

Page 13: Two-sample Proportions Section 12.2.1. Starter 12.2.1 One-sample procedures for proportions can also be used in matched pairs experiments. Here is an

Example: Hypothesis TestHigh levels of cholesterol are associated with heart attacks. An experiment was conducted to see whether a new drug reduces cholesterol level and therefore heart attacks.

In the treatment group, 2051 men took the drug. 56 had heart attacks. Call them group 1. In the control group, 2030 men took a placebo. 84 of them had heart attacks. Call them group 2.

So about 4.1% of the men in the placebo group had heart attacks while only 2.7% in the treatment group had heart attacks. Is this apparent reduction statistically significant? Perform a test and write your answer.

Page 14: Two-sample Proportions Section 12.2.1. Starter 12.2.1 One-sample procedures for proportions can also be used in matched pairs experiments. Here is an

Example Solution• Ho: p1 = p2 Ha: p1 < p2

• Stat:Tests:2-PropZTest

• Enter x1 = 56, n1 = 2051, x2 = 84, n2 = 2030

• Choose p1 < p2

• Calculate to find z = -2.47 and p = .007

• Conclusion: There is strong evidence (p=.007) to support the claim that the drug reduces heart attacks.

Page 15: Two-sample Proportions Section 12.2.1. Starter 12.2.1 One-sample procedures for proportions can also be used in matched pairs experiments. Here is an

Today’s Objectives

• The student will form confidence intervals and perform hypothesis tests on the difference of proportions from samples of two populations

California Standards• 17.0 Students determine confidence intervals for a

simple random sample from a normal distribution of data and determine the sample size required for a desired margin of error.

• 18.0 Students determine the P- value for a statistic for a simple random sample from a normal distribution.

Page 16: Two-sample Proportions Section 12.2.1. Starter 12.2.1 One-sample procedures for proportions can also be used in matched pairs experiments. Here is an

Homework

• Read pages 678 – 689

• Do problems 21 - 24