AP STATISTICS COMPARING TWO PROPORTIONS Chapter 22.

Slides:



Advertisements
Similar presentations
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 22 Comparing Two Proportions.
Advertisements

Objective: To test claims about inferences for two proportions, under specific conditions Chapter 22.
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 21, Slide 1 Chapter 21 Comparing Two Proportions.
Comparing Two Proportions
Two Sample Hypothesis Testing for Proportions
EPIDEMIOLOGY AND BIOSTATISTICS DEPT Esimating Population Value with Hypothesis Testing.
Copyright © 2010 Pearson Education, Inc. Chapter 24 Comparing Means.
AP Statistics Section 13.1 A. Which of two popular drugs, Lipitor or Pravachol, helps lower bad cholesterol more? 4000 people with heart disease were.
Chapter 20: Testing Hypotheses about Proportions
Fundamentals of Hypothesis Testing: One-Sample Tests
Inference for proportions - Comparing 2 proportions IPS chapter 8.2 © 2006 W.H. Freeman and Company.
+ Unit 6 - Comparing Two Populations or Groups Comparing Two Proportions 11.2Comparing Two Means.
Comparing Two Population Parameters Comparing two- population proportions.
Ch 10 Comparing Two Proportions Target Goal: I can determine the significance of a two sample proportion. 10.1b h.w: pg 623: 15, 17, 21, 23.
Chapter 12: Inference for Proportions
Copyright © 2010 Pearson Education, Inc. Chapter 22 Comparing Two Proportions.
Lesson Carrying Out Significance Tests. Vocabulary Hypothesis – a statement or claim regarding a characteristic of one or more populations Hypothesis.
+ Section 10.1 Comparing Two Proportions After this section, you should be able to… DETERMINE whether the conditions for performing inference are met.
Comparing Two Proportions
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 24 Comparing Means.
Chapter 22: Comparing Two Proportions
Chapter 10: Comparing Two Populations or Groups
Chapter 20 Testing hypotheses about proportions
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
AP Statistics Section 13.1 A. Which of two popular drugs, Lipitor or Pravachol, helps lower bad cholesterol more? 4000 people with heart disease were.
Chapter 22: Comparing Two Proportions. Yet Another Standard Deviation (YASD) Standard deviation of the sampling distribution The variance of the sum or.
Copyright © 2010 Pearson Education, Inc. Slide Beware: Lots of hidden slides!
Copyright © 2010 Pearson Education, Inc. Chapter 22 Comparing Two Proportions.
Economics 173 Business Statistics Lecture 4 Fall, 2001 Professor J. Petry
Chapter 20 Testing Hypothesis about proportions
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 22 Comparing Two Proportions.
Chapter 10: Comparing Two Populations or Groups
AP Statistics Chapter 24 Comparing Means.
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
Hypothesis Testing Errors. Hypothesis Testing Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean.
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 10: Comparing Two Populations or Groups Section 10.1 Comparing Two Proportions.
+ Section 10.1 Comparing Two Proportions After this section, you should be able to… DETERMINE whether the conditions for performing inference are met.
Comparing Means Chapter 24. Plot the Data The natural display for comparing two groups is boxplots of the data for the two groups, placed side-by-side.
Chapter 22 Comparing Two Proportions.  Comparisons between two percentages are much more common than questions about isolated percentages.  We often.
Chapter 22 Comparing Two Proportions. Comparing 2 Proportions How do the two groups differ? Did a treatment work better than the placebo control? Are.
Name Mean of Sampling Distribution Standard Deviation/Error of Sampling Distribution 1 sample z-Interval for Proportions 1 sample z-interval for Means.
Copyright © 2009 Pearson Education, Inc. Chapter 22 Comparing Two Proportions.
Statistics 22 Comparing Two Proportions. Comparisons between two percentages are much more common than questions about isolated percentages. And they.
© 2010 Pearson Prentice Hall. All rights reserved Chapter Hypothesis Tests Regarding a Parameter 10.
Comparing Two Proportions Chapter 21. In a two-sample problem, we want to compare two populations or the responses to two treatments based on two independent.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Comparing Two Proportions
Chapter 10: Comparing Two Populations or Groups
AP Statistics Comparing Two Proportions
Comparing Two Proportions
AP Stats Check In Where we’ve been…
Chapter 10: Comparing Two Populations or Groups
Comparing Two Proportions
Unit 6 - Comparing Two Populations or Groups
Hypothesis Testing Two Proportions
Comparing Two Proportions
Chapter 10: Comparing Two Populations or Groups
Chapter 10: Comparing Two Populations or Groups
Chapter 10: Comparing Two Populations or Groups
Chapter 10: Comparing Two Populations or Groups
Chapter 10: Comparing Two Populations or Groups
Chapter 10: Comparing Two Populations or Groups
Chapter 10: Comparing Two Populations or Groups
Chapter 10: Comparing Two Populations or Groups
Chapter 10: Comparing Two Populations or Groups
Chapter 10: Comparing Two Populations or Groups
Chapter 10: Comparing Two Populations or Groups
Chapter 10: Comparing Two Populations or Groups
Chapter 10: Comparing Two Populations or Groups
Presentation transcript:

AP STATISTICS COMPARING TWO PROPORTIONS Chapter 22

Objectives Sampling distribution of the difference between two proportions 2-proportion z-interval Pooling 2-proportion z-test

Comparing Two Proportions Comparisons between two percentages are much more common than questions about isolated percentages. And they are more interesting. We often want to know how two groups differ, whether a treatment is better than a placebo control, or whether this year’s results are better than last year’s.

Another Ruler In order to examine the difference between two proportions, we need another ruler—the standard deviation of the sampling distribution model for the difference between two proportions. Recall that standard deviations don’t add, but variances do. In fact, the variance of the sum or difference of two independent random quantities is the sum of their individual variances.

Proportions observed in independent random samples are independent. Thus, we can add their variances. So… The standard deviation of the difference between two sample proportions is Thus, the standard error is The Standard Deviation of the Difference Between Two Proportions

Assumptions and Conditions Independence Assumptions: Randomization Condition: The data in each group should be drawn independently and at random from a homogeneous population or generated by a randomized comparative experiment. The 10% Condition: If the data are sampled without replacement, the sample should not exceed 10% of the population. Independent Groups Assumption: The two groups we’re comparing must be independent of each other.

Assumptions and Conditions Sample Size Assumption: Each of the groups must be big enough… Success/Failure Condition: Both groups are big enough that at least 10 successes and at least 10 failures have been observed in each.

The Sampling Distribution We already know that for large enough samples, each of our proportions has an approximately Normal sampling distribution. The same is true of their difference.

Provided that the sampled values are independent, the samples are independent, and the samples sizes are large enough, the sampling distribution of is modeled by a Normal model with Mean: Standard deviation: The Sampling Distribution

The approximately normal sampling distribution for ( 1 – 2 ):

When the conditions are met, we are ready to find the confidence interval for the difference of two proportions: The confidence interval is where The critical value z* depends on the particular confidence level, C, that you specify. Two-Proportion z-Interval

Procedure: 2-Proportion z-Interval P A N I C Parameters Assumptions Name Interval Conclusion in context

Example: 2-Proportion z-Interval A recent study of 1000 randomly chosen residents in each of two randomly selected states indicated that the percent of people living in those states who were born in foreign countries was 6.5% for State A and 1.7% for State B. Find a 99% confidence interval for the difference between the proportions of foreign- born residents for these two states.

Solution – P A N I C Parameter p 1 – p 2 : the difference between the foreign born people in state A and state B. Assumptions Independence Group Condition: Groups from different randomly selected states should be independent. Randomization Condition: Each sample was drawn randomly from its respective state. 10% Condition: Reasonable that the population of both states is greater than 10,000. Success/Failure Condition:

Solution Name Two proportion z-interval Interval

Solution Conclusion in context I am 99% confident that the percent difference of foreign-born residents for states A and B is between 2.5% and 7.1%.

Your Turn Suppose the AGA would like to compare the proportion of homes heated by gas in the South with the corresponding proportion in the North. AGA selected a random sample of 60 homes located in the South and found that 34 of the homes use gas for heating fuel. AGA also randomly sampled 80 homes in the North and found 42 used gas for heating. Construct a 90% confidence interval for the difference between the proportions of Southern homes and Northern homes which are heated by gas.

TI-84: 2-Proportion z-Interval Press STAT key, choose TESTS, and then choose B: 2-PropZInterval… Adjust the settings; x1: the number selected sample 1 n1: sample 1 sample size x2: the number selected sample 2 n2: sample 2 sample size C-level: confidence level Select “Calculate”

Example – Using the TI-84 How much does the cholesterol-lowering drug Gemfibrozil help reduce the risk of heart attack? We compare the incidence of heart attack over a 5-year period for two random samples of middle-aged men taking either a placebo or the drug. Find a 90% Confidence Interval for the decrease in the percentage of middle-aged men having heart attacks on the cholesterol-lowering drug. H. attackn Drug % Placebo %

Solution 90% Confidence Interval (.0047,.02345) Conclusion We are 90% confident that the percent difference of middle-aged men who suffer a heart attack is 0.47% to 2.3% lower when taking the cholesterol- lowering drug.

TWO PROPORTION Z-TEST

Everyone into the Pool The typical hypothesis test for the difference in two proportions is the one of no difference. In symbols, H 0 : p 1 – p 2 = 0. Since we are hypothesizing that there is no difference between the two proportions, that means that the standard deviations for each proportion are the same. Since this is the case, we combine (pool) the counts to get one overall proportion.

The pooled proportion is where and If the numbers of successes are not whole numbers, round them first. (This is the only time you should round values in the middle of a calculation.) Everyone into the Pool

We then put this pooled value into the Standard Error formula, substituting it for both sample proportions in the formula: Everyone into the Pool

Compared to What? We’ll reject our null hypothesis if we see a large enough difference in the two proportions. How can we decide whether the difference we see is large? Just compare it with its standard deviation. Unlike previous hypothesis testing situations, the null hypothesis doesn’t provide a standard deviation, so we’ll use a standard error (here, pooled).

The conditions for the two-proportion z-test are the same as for the two-proportion z-interval. We are testing the hypothesis H 0 : p 1 – p 2 = 0, or, equivalently, H 0 : p 1 = p 2. The alternative hypothesis is either; H a : p 1 ≠p 2, H a : p 1 p 2. Because we hypothesize that the proportions are equal, we pool them to find Two-Proportion z-Test

We use the pooled value to estimate the standard error: Now we find the test statistic: When the conditions are met and the null hypothesis is true, this statistic follows the standard Normal model, so we can use that model to obtain a P-value. Two-Proportion z-Test

Procedure: 2-Proportion z-Test P H A N T O M S Parameter (p 1 – p 2 ) Hypothesis Assumptions Name the test Test statistic Obtain p-value Make decision State conclusion in context

Example: 2-Proportion z-Test A researcher wants to know whether there is a difference in AP-Statistics exam failure rates between rural and suburban students. She randomly selects 107 rural students and 143 suburban students who took the exam. Thirty rural students failed to pass their exam, while 45 suburban students failed the exam. Is there a significant difference in failure rates for these groups?

Solution – P H A N T O M S Parameter p r – p s : the difference in the proportion of rural and suburban students who fail the AP Statistics exam. Hypothesis Null hypothesis – H 0 : p r =p S (There is no difference in failure rates.) Alternative hypothesis – H a : p r ≠p S (There is a difference in failure rates.)

Solution Assumptions Independent Groups Condition: Rural and Suburban student groups are independent. Randomization Condition: Samples were randomly drawn. 10% Condition: It is reasonable to believe that the population of rural exam takers is greater than 1070 and the population of suburban exam takers is greater than Success/Failures Condition:success 1 =30>10, success 2 =45>10, failure 1 =( )=77>10, failure 2 =(143-45)=98>10

Solution Name the test Two proportion z-test Test Statistic

Solution Obtain p-value z = -.59 and a two-tailed test P-value = 2P(z >.59) = 2(.2776) P-value =.5552 Make decision p-value >.05, therefore fail to reject the null hypothesis. Conclusion The p-value.5552 is too high, thus we fail to reject the null hypothesis. There is insufficient evidence to show a difference between the failure rates of rural and suburban students on the AP Statistics exam.

Your Turn: 2-Proportion z-Test In recent years there has been a trend toward both parents working outside the home. Do working mothers experience the same burdens and family pressures as their spouses? A popular belief is that the proportion of working mothers who feel they have enough spare time for themselves is significantly less than the corresponding proportion of working fathers. In order to test this claim, independent random samples of 100 working mothers and 100 working fathers were selected and their views on spare time for themselves were recorded. A summary of the data is given in the table below. Is the belief that the proportion of working mothers who feel they have enough spare time for themselves less than the corresponding proportion of working fathers supported at significance level α =.01 by the sample information? Working MothersWorking Fathers Number sampled 100 Number who feel they have enough spare time 3756

TI-84: 2-Proportion z-Test Press STAT key, choose TESTS, and then choose 6: 2-PropZTest… Adjust the settings; x1: the number selected sample 1 n1: sample 1 sample size x2: the number selected sample 2 n2: sample 2 sample size p1: select type of test (≠p2, p2) Select “Calculate”

Example Using TI-84 To market a new white wine, a winemaker decides to use two different advertising agencies, one operating in the east, one in the west. After the white wine has been on the market for 8 months, independent random samples of wine drinkers are taken from each of the two regions and questioned concerning their white wine preference. The numbers favoring the new brand are shown in the table. Is there evidence that the proportion of wine drinkers in the west who prefer the new wine is greater than the corresponding proportion of wine drinkers in the east. Test at the.02 significance level. EastWest Number sampled Number who prefer the new white wine 1823

Solution H 0 :p W =p E H a :p W >p E 2-PropZTest x1: 23 n1: 438 x2: 18 n2: 516 p1: >p2 z = and P-value =.0905 Conclusion The P-value.0905 is greater than α =.02, thus we fail to reject the null hypothesis. There is insufficient evidence at the.02 significance level to conclude that the proportion of wine drinkers in the west who prefer the new white wine is greater than the corresponding proportion of wine drinkers in the east.