Presentation is loading. Please wait.

Presentation is loading. Please wait.

SECTION 13.2 Comparing Two Proportions. In this scenario, we desire to compare two populations or the responses to two treatments based on two independent.

Similar presentations


Presentation on theme: "SECTION 13.2 Comparing Two Proportions. In this scenario, we desire to compare two populations or the responses to two treatments based on two independent."— Presentation transcript:

1 SECTION 13.2 Comparing Two Proportions

2 In this scenario, we desire to compare two populations or the responses to two treatments based on two independent samples. In this scenario, we desire to compare two populations or the responses to two treatments based on two independent samples. We compare the populations by doing inference about the difference p 1 - p 2 We compare the populations by doing inference about the difference p 1 - p 2 The statistic that estimates this difference is the difference between the two sample proportions, The statistic that estimates this difference is the difference between the two sample proportions,

3 The sampling distribution of The variance of the difference is the sum of the variances of and, which is The variance of the difference is the sum of the variances of and, which is Note that the variances add. The standard deviations do not. When the samples are large, the distribution is approximately normal. When the samples are large, the distribution is approximately normal. The mean of this distribution is p 1 -p 2 The mean of this distribution is p 1 -p 2

4 Assumptions 1. Data are from two independent SRSs from the populations 2. The populations are at least ten times as large as the samples 3. A. For a significance test: Where is the combined sample proportion. B. For a confidence interval:

5 Confidence Intervals for p 1 - p 2 Draw an SRS of size n 1 from a population having proportion p 1 of successes and draw an independent SRS of size n 2 from another population having proportion p 2 of successes. When n 1 and n 2 are large, an approximate level C confidence interval for p 1 – p 2 is ( ) ± z*SE In this formula the standard error SE of is And z* is the upper (1 – C)/2 standard normal critical value. Follow the same assumptions as for single proportion confidence intervals. And z* is the upper (1 – C)/2 standard normal critical value. Follow the same assumptions as for single proportion confidence intervals.

6 Our z test statistic Significance Tests for p 1 – p 2 Where is the combined sample proportion.

7 1. State the hypothesis and name test H o : p 1 = p 2 H a : p 1,, or p 2 2. State and verify your assumptions 3. Calculate the P value and other important values - Done in calculator or… - Using the formulas and tables 4. State Conclusions (Both statistically and contextually) - The smaller the p-value, the greater the evidence is to reject H o The Steps for a Two Proportion z-test

8 CALCULATOR FUNCTIONS You may be able to find these on your own by now, but just in case, you will be looking for: You may be able to find these on your own by now, but just in case, you will be looking for: 6: 2-PropZTest 6: 2-PropZTest B: 2-PropZInt B: 2-PropZInt Note: x is your number of successes while n is your total trials

9 + 4 Confidence Interval for 2 Proportions Just like before, this helps us overcome the lack of Normality when the sample sizes are too small for the large-sample procedures. Just like before, this helps us overcome the lack of Normality when the sample sizes are too small for the large-sample procedures. These methods cannot save us from the fact that small samples produce wide confidence intervals. These methods cannot save us from the fact that small samples produce wide confidence intervals. The plus four interval may be conservative for very small samples and population ps close to 0 or 1. The plus four interval may be conservative for very small samples and population ps close to 0 or 1. It is generally much more accurate than the large-sample interval when the samples are small or the population p is close to 0 or 1. It is generally much more accurate than the large-sample interval when the samples are small or the population p is close to 0 or 1. Add 4 imaginary observations, one success and one failure in each of the two samples. Add 4 imaginary observations, one success and one failure in each of the two samples. Use the large-sample procedures with the new sample sizes and counts of successes. Use the large-sample procedures with the new sample sizes and counts of successes. Use this when the sample size is at least 5 in each group, with any counts of successes and failures. Use this when the sample size is at least 5 in each group, with any counts of successes and failures.

10 Example of Two-Proportion Confidence Interval A surprising number of young adults (ages ) still live at home with their parents. A random sample by the National Institutes of Health included 2253 men and 2629 women in this age group. The survey found that 986 of the men and 923 of the women lived at home. Is this good evidence that different proportions of young men and young women live at home? How large is the difference between the proportions of young men and young women who live at home?

11 Step 1Parameters Population 1young men Population 1young men Population 2young women Population 2young women p 1 = proportion of young men who live at home p 1 = proportion of young men who live at home p 2 = proportion of young women who live at home p 2 = proportion of young women who live at home We will construct a 95% confidence interval for the difference between men and women, p 1 - p 2 We will construct a 95% confidence interval for the difference between men and women, p 1 - p 2

12 Step 2Conditions SRSsThe data were obtained from a random sample, so we should be safe generalizing to the respective populations of interest. SRSsThe data were obtained from a random sample, so we should be safe generalizing to the respective populations of interest. NormalityTo check that the large-sample confidence interval is safe, look at counts of successes and failures (show calculations) for both samples. All of these are much larger than 5, so the large-sample method will be accurate. NormalityTo check that the large-sample confidence interval is safe, look at counts of successes and failures (show calculations) for both samples. All of these are much larger than 5, so the large-sample method will be accurate. IndependenceThe sample survey in this example selected a single random sample of young adults, not two separate random samples of men and women. We divide the one sample by gender. The two-sample z procedures for comparing proportions are valid in such situations. This is an important fact about these methods. IndependenceThe sample survey in this example selected a single random sample of young adults, not two separate random samples of men and women. We divide the one sample by gender. The two-sample z procedures for comparing proportions are valid in such situations. This is an important fact about these methods.

13 Step 3Calculations Here are the needed calculations: Here are the needed calculations: z*=1.96 z*=1.96 So, our interval is (0.059, 0.114) So, our interval is (0.059, 0.114) Calculator: ( , ) Calculator: ( , )

14 Step 4Interpretation We are 95% confident that the percent of young men living at home is between 5.9 and 11.4 percentage points higher than the percent of young women who live at home. This is definitely good evidence that a different proportion of young men and young women live at home. We are 95% confident that the percent of young men living at home is between 5.9 and 11.4 percentage points higher than the percent of young women who live at home. This is definitely good evidence that a different proportion of young men and young women live at home. We have this level of confidence, because if we repeated our procedures over and over with new samples, 95% of our intervals would capture the true difference. We have this level of confidence, because if we repeated our procedures over and over with new samples, 95% of our intervals would capture the true difference.

15 Testing a Claim Considering the previous example, someone makes the claim that young men are more likely to live at home. Does our data support this claim? Considering the previous example, someone makes the claim that young men are more likely to live at home. Does our data support this claim? H o : p 1 = p 2 H a : p 1 p 2 We need to check the Normal assumption again using the combined sample proportion. We need to check the Normal assumption again using the combined sample proportion.

16 Calculations P-value=

17 Interpretation Based on our extremely low P-value, we would reject the null hypothesis. Based on our extremely low P-value, we would reject the null hypothesis. Essentially, a difference in proportions this high would rarely every occur by chance if there is truly no difference between the proportion of young men and women that live at home. Essentially, a difference in proportions this high would rarely every occur by chance if there is truly no difference between the proportion of young men and women that live at home. We are comfortable agreeing with the claim that more young men live at home. We are comfortable agreeing with the claim that more young men live at home.


Download ppt "SECTION 13.2 Comparing Two Proportions. In this scenario, we desire to compare two populations or the responses to two treatments based on two independent."

Similar presentations


Ads by Google