Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 10: Comparing Two Populations or Groups

Similar presentations


Presentation on theme: "Chapter 10: Comparing Two Populations or Groups"— Presentation transcript:

1 Chapter 10: Comparing Two Populations or Groups
Section 10.1 Comparing Two Proportions

2 Suppose we want to compare the proportions of individuals with a certain characteristic in Population 1 and Population 2. Let’s call these parameters of interest p1 and p2. The ideal strategy is to take a separate random sample from each population and to compare the sample proportions with that characteristic. What if we want to compare the effectiveness of Treatment 1 and Treatment 2 in a completely randomized experiment? This time, the parameters p1 and p2 that we want to compare are the true proportions of successful outcomes for each treatment. We use the proportions of successes in the two treatment groups to make the comparison. Here’s a table that summarizes these two situations.

3 The Sampling Distribution of a Difference Between Two Proportions
In Chapter 7, we saw that the sampling distribution of a sample proportion has the following properties: Shape: Approximately Normal if np ≥ 10 and n(1 – p) ≥ 10

4 To explore the sampling distribution of the difference between two proportions, let’s start with two populations having a known proportion of successes. At School 1, 70% of students did their homework last night. At School 2, 50% of students did their homework last night. Suppose the counselor at School 1 takes an SRS of 100 students and records the sample proportion that did their homework. School 2’s counselor takes an SRS of 200 students and records the sample proportion that did their homework.

5 The Sampling Distribution of a Difference Between Two Proportions
Using Fathom software, we generated an SRS of 100 students from School 1 and a separate SRS of 200 students from School 2. The difference in sample proportions was then calculated and plotted. We repeated this process 1000 times. The results are below:

6

7 The Sampling Distribution of the Difference Between Sample Proportions
Choose an SRS of size n1 from Population 1 with proportion of successes p1 and an independent SRS of size n2 from Population 2 with proportion of successes p2. The Sampling Distribution of the Difference Between Sample Proportions

8 Example 1: Your teacher brings two bags of colored goldfish crackers to class. Bag 1 has 25% red crackers and Bag 2 has 35% red crackers. Each bag contains more than 1000 crackers. Using a paper cup, your teacher takes an SRS of 50 crackers from Bag 1 and a separate SRS of 40 crackers from Bag 2.  Let be the difference in the sample proportions of red crackers. a) What is the shape of the sampling distribution of Why? Because n1p1 = 50(0.25) = 12.5, n1 (1 − p1) = 50(0.75) = 37.5, n2p2 = 40(0.35) = 14, and n2(1 − p2) = 40(0.65) = 26 are all at least 10, the sampling distribution of is approximately Normal.

9 b) Find the mean of the sampling distribution. Show your work.
The mean is  = p1 − p2 = 0.25 − 0.35 = –0.10.  c) Find the standard deviation of the sampling distribution. Show your work. Because there are at least 10(50) = 500 crackers in Bag 1 and 10(40) = 400 crackers in Bag 2, the standard deviation is

10 Confidence Intervals for p1 – p2
If the Normal condition is met, we find the critical value z* for the given confidence level from the standard Normal curve. Our confidence interval for p1 – p2 is:

11 Conditions For Constructing A Confidence Interval About A Difference In Proportions
Random: The data come from two independent random samples or from two groups in a randomized experiment. 10%: When sampling without replacement, check that n1 ≤ (1/10)N1 and n2 ≤ (1/10)N2. Large Counts:

12 Because we don’t know the values of the parameters p1 and p2, we replace them in the standard deviation formula with the sample proportions. The result is the standard error (also called the estimated standard deviation) of the statistic If the Normal condition is met, we find the critical value z* for the given confidence level from the standard Normal curve. Our confidence interval for p1 − p2 is: statistic ± (critical value) · (standard deviation of statistic) This is often called a two-sample z interval for a difference between two proportions.

13 Two-Sample z Interval for a Difference Between Two Proportions
When the Random, Normal, and Independent conditions are met, an approximate level C confidence interval for is where z* is the critical value for the standard Normal curve with C% of its area between −z* and z*.

14 Example 2: As part of the Pew Internet and American Life Project, researchers conducted two surveys in 2012. The first survey asked a random sample of 799 U.S. teens about their use of social media and the Internet. A second survey posed similar questions to a random sample of 2253 U.S. adults. In these two studies, 80% of teens and 69% of adults used social-networking sites. a) Calculate the standard error of the sampling distribution of the difference in the sample proportions (teens − adults). What information does this value provide? The sample proportions of teens and adults who use social-networking sites are   = 0.80 and   = 0.69, respectively. The standard error of the sampling distribution of      is

15 If we were to take many random samples of 799 teens and 2253 adults, the difference in the sample proportions of teens and adults who use social-networking sites will typically be from the true difference in proportions of all teens and adults who use social-networking sites.

16 b) Construct and interpret a 95% confidence interval for the difference between the proportion of all U.S. teens and adults who use social-networking sites. State: Our parameters of interest are p1 = the proportion of all U.S. teens who use social networking sites and p2 = the proportion of all U.S. adults who use social-networking sites. We want to estimate the difference p1 – p2 at a 95% confidence level. Plan: We should use a two-sample z interval for p1 – p2 if the conditions are met. Random The data come from independent random samples of 799 U.S. teens and 2253 U.S. adults. 10%: The researchers are sampling without replacement, so we must check the 10% condition: there are at least 10(799) = 7990 U.S. teens and at least 10(2253) = 22,530 U.S. adults.

17 Large Counts: We check the counts of “successes” and “failures”:
Note that the observed counts have to be whole numbers! Because all four values are at least 10, this condition is met. Do: We know that n1 = 799,   = 0.80,  n2 = 2253, and   = 0.69.  For a 95% confidence level, the critical value is z* = 1.96. So our 95% confidence interval for p1 − p2 is

18 CONCLUDE: We are 95% confident that the interval from 0. 07588 to 0
CONCLUDE: We are 95% confident that the interval from to captures the true difference in the proportion of all U.S. teens and adults who use social-networking sites. AP EXAM TIP The formula for the two-sample z interval for p1 − p2 often leads to calculation errors by students. As a result, we recommend using the calculator’s 2-PropZIntfeature to compute the confidence interval on the AP® exam. Be sure to name the procedure (two-proportion z interval) and to give the interval (0.076, 0.143) as part of the “Do” step.

19 Significance Tests for p1 − p2
An observed difference between two sample proportions can reflect an actual difference in the parameters, or it may just be due to chance variation in random sampling or random assignment. Significance tests help us decide which explanation makes more sense. The null hypothesis has the general form H0: p1 − p2 = hypothesized value We’ll restrict ourselves to situations in which the hypothesized difference is 0. Then the null hypothesis says that there is no difference between the two parameters: H0: p1 − p2 = 0 or, alternatively, H0: p1 = p2 The alternative hypothesis says what kind of difference we expect. Ha: p1 – p2 > 0, Ha: p1 – p2 < 0, or Ha: p1 – p2 ≠ 0

20 Example 3: Researchers designed a survey to compare the proportions of children who come to school without eating breakfast in two low-income elementary schools. An SRS of 80 students from School 1 found that 19 had not eaten breakfast. At School 2, an SRS of 150 students included 26 who had not had breakfast. More than 1500 students attend each school. Do these data give convincing evidence of a difference in the population proportions? State appropriate hypotheses for a significance test to answer this question. Define any parameters you use. Our hypotheses are H0: p1 – p2 = 0 OR H0: p1 = p2 Ha: p1 – p2 ≠ Ha: p1 ≠ p2 where p1 = the true proportion of students at School 1 who did not eat breakfast, and p2 = the true proportion of students at School 2 who did not eat breakfast.

21 The conditions for performing a significance test about p1 − p2 are the same as for constructing a confidence interval. Note: It would also be correct to check the Normal condition using the pooled (combined) sample proportion Just confirm that are all at least 10. If the conditions are met, we can proceed with calculations.  To do a test, standardize to get a z statistic:

22 If H0: p1 = p2 is true, the two parameters are the same
If H0: p1 = p2 is true, the two parameters are the same. We call their common value p. But now we need a way to estimate p, so it makes sense to combine the data from the two samples. This pooled (or combined) sample proportion is

23 Two-Sample z Test for the Difference Between Proportions
Suppose the conditions are met. To test the hypothesis H0: p1 − p2 = 0, first find the pooled proportion of successes in both samples combined. Then compute the z statistic: Find the P-value by calculating the probability of getting a z statistic this large or larger in the direction specified by the alternative hypothesis Ha:

24 Example 4: Researchers designed a survey to compare the proportions of children who come to school without eating breakfast in two low-income elementary schools. An SRS of 80 students from School 1 found that 19 had not eaten breakfast. At School 2, an SRS of 150 students included 26 who had not had breakfast. More than 1500 students attend each school. Do these data give convincing evidence at the α = 0.05 level of a difference in the population proportions? State: Our hypotheses are H0: p1 – p2 = 0 OR H0: p1 = p2 Ha: p1 – p2 ≠ 0 Ha: p1 ≠ p2 where p1 = the true proportion of students at School 1 who did not eat breakfast and p2= the true proportion of students at School 2 who did not eat breakfast.

25 Plan: If conditions are met, we should perform a two-sample z test for p1 − p2.
Random: The data were produced using two independent random samples—80 students from School 1 and 150 students from School 2. 10%: The researchers are sampling without replacement, so we check the 10% condition: there are at least 10(80) = 800 students at School 1 and at least 10(150) = 1500 students at School 2. Large Counts: We check the counts of “successes” and “failures”: All four values are at least 10, so this condition is met.

26 Do: We know that n1 = 80,  ,  n2 = 150, and 
Our point estimate for the difference in population proportions is p1 − p2 = − =  The pooled proportion of students who didn’t eat breakfast in the two samples is

27 P-value The figure below displays the P-value as an area under the standard Normal curve for this two-tailed test. Using Table A, the desired P-value is 2P(Z ≥ 1.17) = 2(1 − ) = Using Technology: 2P(Z ≥ 1.17) = 2normalcdf(lower: 1.17, upper: 99999, μ: 0, σ: 1) = Conclude: We fail to reject H0. Since our P-value, , is greater than α = There is not enough evidence to suggest that the proportions of students at the two schools who didn’t eat breakfast are different.

28 AP EXAM TIP: The formula for the two-sample z statistic for a test about p1 − p2 often leads to calculation errors by students. As a result, we recommend using the calculator’s 2-PropZTest feature to perform calculations on the AP® exam. Be sure to name the procedure (two-proportion z test) and to report the test statistic(z = 1.17) and P-value (0.2427) as part of the “Do” step.

29 Example 5: High levels of cholesterol in the blood are associated with higher risk of heart attacks. Will using a drug to lower blood cholesterol reduce heart attacks? The Helsinki Heart Study recruited middle-aged men with high cholesterol but no history of other serious medical problems to investigate this question. The volunteer subjects were assigned at random to one of two treatments: 2051 men took the drug gemfibrozil to reduce their cholesterol levels, and a control group of 2030 men took a placebo. During the next five years, 56 men in the gemfibrozil group and 84 men in the placebo group had heart attacks. Is this difference statistically significant at the α = 0.01 level? State: We hope to show that gemfibrozil reduces heart attacks, so we have a one-sided alternative: H0: p1 – p2 = 0 OR H0: p1 = p2 Ha: p1 – p2 < 0 Ha: p1 < p2 where p1 is the actual heart attack rate for middle-aged men like the ones in this study who take gemfibrozil, and p2 is the actual heart attack rate for middle-aged men like the ones in this study who take only a placebo. We’ll use  α = 0.01.

30 Plan: If conditions are met, we will do a two-sample z test for p1 − p2.
Random: The data come from two groups in a randomized experiment. 10%: Don’t need to check because there was no sampling. Large Counts: The number of successes (heart attacks!) and failures in the two groups are 56, 1995, 84, and 1946. These are all at least 10, so this condition is met. Do: Since the conditions are satisfied, we can perform a two-sample z test for the difference p1 – p2.

31 P-value P(z < –2. 47) = normalcdf(lower: –9999, upper –2
Conclude: Reject H0. Since the P-value, , is less than α = There is enough evidence to suggest that there is a lower heart attack rate for middle-aged men like these who take gemfibrozil than for those who take only a placebo.


Download ppt "Chapter 10: Comparing Two Populations or Groups"

Similar presentations


Ads by Google