Inference (CI / Tests) for Comparing 2 Proportions.

Slides:



Advertisements
Similar presentations
Comparing Two Proportions (p1 vs. p2)
Advertisements

Hypothesis Testing making decisions using sample data.
Inference Sampling distributions Hypothesis testing.
Chapter 10 Section 2 Hypothesis Tests for a Population Mean
Comparing Two Population Means The Two-Sample T-Test and T-Interval.
1 A heart fills with loving kindness is a likeable person indeed.
Stat 512 – Lecture 13 Chi-Square Analysis (Ch. 8).
Review for Exam 2 Some important themes from Chapters 6-9 Chap. 6. Significance Tests Chap. 7: Comparing Two Groups Chap. 8: Contingency Tables (Categorical.
1. Statistics: Learning from Samples about Populations Inference 1: Confidence Intervals What does the 95% CI really mean? Inference 2: Hypothesis Tests.
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.
Confidence Intervals and Hypothesis Testing - II
Fundamentals of Hypothesis Testing: One-Sample Tests
Lesson Comparing Two Means.
Inference for a Single Population Proportion (p).
Comparing Two Population Means
Comparing Two Proportions
6.1 - One Sample One Sample  Mean μ, Variance σ 2, Proportion π Two Samples Two Samples  Means, Variances, Proportions μ 1 vs. μ 2.
Inference for Proportions
Maximum Likelihood Estimator of Proportion Let {s 1,s 2,…,s n } be a set of independent outcomes from a Bernoulli experiment with unknown probability.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved Section 8-3 Testing a Claim About a Proportion.
Inference We want to know how often students in a medium-size college go to the mall in a given year. We interview an SRS of n = 10. If we interviewed.
STT 315 Ashwini Maurya Acknowledgement: Author is indebted to Dr. Ashok Sinha, Dr. Jennifer Kaplan and Dr. Parthanil Roy for allowing him to use/edit many.
CHAPTER 9 Testing a Claim
Large sample CI for μ Small sample CI for μ Large sample CI for p
1 Chapter 8 Hypothesis Testing 8.2 Basics of Hypothesis Testing 8.3 Testing about a Proportion p 8.4 Testing about a Mean µ (σ known) 8.5 Testing about.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 8-1 Chapter 8 Fundamentals of Hypothesis Testing: One-Sample Tests Statistics.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 8 Hypothesis Testing.
Lecture 9 Chap 9-1 Chapter 2b Fundamentals of Hypothesis Testing: One-Sample Tests.
CHAPTER 20: Inference About a Population Proportion ESSENTIAL STATISTICS Second Edition David S. Moore, William I. Notz, and Michael A. Fligner Lecture.
Statistical Significance for a two-way table Inference for a two-way table We often gather data and arrange them in a two-way table to see if two categorical.
How confident are we in the estimation of mean/proportion we have calculated?
Section 10.1 Estimating with Confidence AP Statistics February 11 th, 2011.
Introduction to Inference: Confidence Intervals and Hypothesis Testing Presentation 8 First Part.
Introduction to Inference: Confidence Intervals and Hypothesis Testing Presentation 4 First Part.
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
Copyright © 2011 Pearson Education, Inc. Putting Statistics to Work.
Fall 2002Biostat Statistical Inference - Proportions One sample Confidence intervals Hypothesis tests Two Sample Confidence intervals Hypothesis.
Business Statistics for Managerial Decision Farideh Dehkordi-Vakil.
AP Statistics Unit 5 Addie Lunn, Taylor Lyon, Caroline Resetar.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 10 Comparing Two Groups Section 10.1 Categorical Response: Comparing Two Proportions.
1 Definitions In statistics, a hypothesis is a claim or statement about a property of a population. A hypothesis test is a standard procedure for testing.
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 9 Testing a Claim 9.2 Tests About a Population.
Chapter 22 Comparing Two Proportions. Comparing 2 Proportions How do the two groups differ? Did a treatment work better than the placebo control? Are.
Hypothesis Testing. Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean μ = 120 and variance σ.
Topic 21—Comparison of Proportions Example. Test of Significance A test of significance for the difference of two proportions Requirements: – Indep. SRS.
Inference about proportions Example: One Proportion Population of students Sample of 175 students CI: What proportion (percentage) of students abstain.
AP STATISTICS COMPARING TWO PROPORTIONS Chapter 22.
Hypothesis Tests for 1-Proportion Presentation 9.
Statistics 22 Comparing Two Proportions. Comparisons between two percentages are much more common than questions about isolated percentages. And they.
Essential Statistics Chapter 191 Comparing Two Proportions.
DSCI 346 Yamasaki Lecture 1 Hypothesis Tests for Single Population DSCI 346 Lecture 1 (22 pages)1.
Class Six Turn In: Chapter 15: 30, 32, 38, 44, 48, 50 Chapter 17: 28, 38, 44 For Class Seven: Chapter 18: 32, 34, 36 Chapter 19: 26, 34, 44 Quiz 3 Read.
More on Inference.
CHAPTER 9 Testing a Claim
Unit 5: Hypothesis Testing
AP Statistics Comparing Two Proportions
Chapter 8: Inference for Proportions
Inferences About Means from Two Groups
Comparing Two Proportions
More on Inference.
Day 21 – 1 and 2 sample proportions
Statistical inference
Comparing Two Proportions
Statistical Inference
An overview to this point
CHAPTER 9 Testing a Claim
CHAPTER 9 Testing a Claim
Statistical inference
Presentation transcript:

Inference (CI / Tests) for Comparing 2 Proportions

To compare proportions from distinct populations p 1 vs.p 2 Conditions 1. Appropriate randomization. Without this, there’s rarely any way to proceed making sensible conclusions; and when there are ways, they are very complex (and often still produced results for which in general conclusions may be easily disputed)

To compare proportions from distinct populations p 1 vs.p 2 Conditions 2. For the particular method we will use Large populations (20 x larger than sample size). Large enough samples so that all cells of a data summary table are at least 5 (ie, 5 units). Without either of these, there are methods that still give conclusions similar in scope to our method.

To compare proportions from distinct populations p 1 vs.p 2 There are numerous ways to compare two quantities. Here are two (in red – what we will do): Assess the difference What is the value of p 1 – p 2 ? (CI) Is p 1 – p 2 = 0 or not? (Test) Assess the ratio: What is the value of p 1 / p 2 ? (CI) Is p 1 / p 2 = 1 or not? (Test)

Sample proportions (possibly error margins) Confidence interval for the value of p 1 – p 2 Point estimate of difference: Error margin: If you know the error margin for each, use the Pythagorean Theorem.

Sample proportions (possibly error margins) Confidence interval for the value of p 1 – p 2 Point estimate of difference: Error margin: If you don’t know the error margin for each

Hypothesis test about the difference p 1 – p 2 H 0 : p 1 = p 2 (equivalent to) H 0 : p 1 – p 2 = 0 Test statistic: is the “pooled proportion” (H 0 true)

The P-value depends on the direction(s) specified in the alternative hypothesis. H A : p 1 > p 2 (equivalent to) H 0 : p 1 – p 2 > 0 P-value = probability right of Z H A : p 1 < p 2 (equivalent to) H 0 : p 1 – p 2 < 0 P-value= probability left of Z H A : p 1  p 2 (equivalent to) H 0 : p 1 – p 2  0 P-value = probability outside of ±Z = twice probability outside of Z

Pregnant women with AIDS were involved in a study. Each woman was randomly allocated to either treatment with AZT or a Placebo. Researchers want to know if there is any difference in the proportions of babies born HIV+ for (all) women who might be treated with AZT and (all) women if not treated with AZT. p AZT = proportion of all babies born to mothers with AIDS using AZT that are HIV+. p PBO = proportion of all babies born to mothers with AIDS using a placebo that are HIV+. H 0 : p AZT = p PBO H 1 : p AZT  p PBO

Of 164 babies of women getting AZT, 13 were HIV+. Of 160 babies of women getting the Placebo, 40 were HIV+. Treatment AZTPlaceboTotal Outcome HIV+ HIV- Total

Of 164 babies of women getting AZT, 13 were HIV+. Of 160 babies of women getting the Placebo, 40 were HIV+. Treatment AZTPlaceboTotal Outcome HIV+ HIV- Total164

Of 164 babies of women getting AZT, 13 were HIV+. Of 160 babies of women getting the Placebo, 40 were HIV+. Treatment AZTPlaceboTotal Outcome HIV+13 HIV- Total164

Of 164 babies of women getting AZT, 13 were HIV+. Of 160 babies of women getting the Placebo, 40 were HIV+. Treatment AZTPlaceboTotal Outcome HIV+1340 HIV- Total164160

Of 164 babies of women getting AZT, 13 were HIV+. Of 160 babies of women getting the Placebo, 40 were HIV+. Treatment AZTPlaceboTotal Outcome HIV HIV- Total

Of 164 babies of women getting AZT, 13 were HIV+. Of 160 babies of women getting the Placebo, 40 were HIV+. Treatment AZTPlaceboTotal Outcome HIV HIV Total

Condition Check: Appropriate randomization Large populations All cells at least 5 Treatment AZTPlaceboTotal Outcome HIV HIV Total

Of 164 babies of women getting AZT, 13 were HIV+. Of 160 babies of women getting the Placebo, 40 were HIV+. Treatment AZTPlaceboTotal Outcome HIV HIV Total

Pooled over both conditions: Of 324 babies, 53 were HIV+. Treatment AZTPlaceboTotal Outcome HIV HIV Total

Result of hypothesis test: Z = P-value =  1 / Reject H 0. The (population) proportions differ. And in fact the mothers treated with AZT had babies with better outcomes. There is sufficient evidence in the sample data to conclude that the proportion of HIV+ babies born to mothers treated with AZT is less than that for mothers treated with a Placebo.

Result of hypothesis test: Z = P-value =  1 / Suppose AZT and Placebo had the same efficacy (effectiveness): In only 1 in studies would the difference in HIV rates between the groups be as large as observed here. In only 1 in randomizations would the difference in HIV rates between the groups be as large as observed here.

Result of hypothesis test: Z = P-value =  1 / % CI for the difference in proportions Point Estimate: – = – Error Margin: Bounds: – ± – < p AZT – p PBO < – OR (better?) < p PBO – p AZT <

95% CI for the difference in proportions – < p AZT – p PBO < – add p PBO to all “3” sides p PBO – < p AZT < p PBO – We are 95% confident that the proportion of babies born HIV+ is between and lower for mothers treated with AZT.

Result of hypothesis test: Z = P-value =  1 / % CI for the difference in proportions Point Estimate: Error Margin: < p PBO – p AZT < We are 95% confident that the percent of babies born HIV+ is between 9.12% and 25.02% lower for mothers treated with AZT.

We can be quite sure that it is the AZT that caused the observed reduction in HIV+ rates. The randomization alone is very unlikely to have been responsible for such a difference. (The P-value quantifies this likelihood.) The randomization also insures that whatever other variables might be important are similarly distributed among the women in the AZT and Placebo groups. This is the advantage of an experimental study over an observational one. It allows us to infer causation.

95% CI for the difference in proportions Point Estimate: Error Margin: < p PBO – p AZT < Number Needed to Treat Estimated NNT = = =

58582 pregnant women with AIDS If not treated with AZT:  = HIV+ babies If treated with AZT:  = 4657 HIV+ babies Treating women with AZT results in a reduction of10000 HIV+ babies Treating women results in 1 fewer HIV+ baby

NNT: The number of units that must be switched from one level of the explanatory variable (one “group” or “treatment”) to the other in order to result in a change of 1 unit from one level of the response variable to the other. How many units must be “treated” in order to produce 1 additional favorable outcome.

95% CI for the difference in proportions Point Estimate: Error Margin: < p PBO – p AZT < Number Needed to Treat Estimated NNT = We estimate that for every women treated with AZT (instead of nothing/placebo) there is one fewer HIV+ baby.

95% CI for the difference in proportions Point Estimate: Error Margin: < p PBO – p AZT < Number Needed to Treat Estimated NNT = A CI for NNT can be formed by taking reciprocals of the CI for the difference: 1/ = / = < NNT (population) < 11

Motorcycle Helmet Color Percent of accidents resulting in harm… …among those wearing dark helmets: 190/681 = % …among those wearing light helmets: 116/493 = % Point Estimate of Difference: 4.4% = (The P-value also happens to be 0.044!) Estimated NNT = 1/0.044 = 22.7