June 26, 2008Stat 111 - Lecture 151 Two-Sample Inference for Proportions Statistics 111 - Lecture 15.

Slides:



Advertisements
Similar presentations
Objectives 10.1 Simple linear regression
Advertisements

Ch. 21 Practice.
Section 9.3 Inferences About Two Means (Independent)
July 1, 2008Lecture 17 - Regression Testing1 Testing Relationships between Variables Statistics Lecture 17.
Confidence Interval and Hypothesis Testing for:
Independent Samples: Comparing Proportions Lecture 35 Section 11.5 Mon, Nov 20, 2006.
Two Sample Hypothesis Testing for Proportions
Probability & Statistical Inference Lecture 7 MSc in Computing (Data Analytics)
Section 7.1 Hypothesis Testing: Hypothesis: Null Hypothesis (H 0 ): Alternative Hypothesis (H 1 ): a statistical analysis used to decide which of two competing.
10-1 Introduction 10-2 Inference for a Difference in Means of Two Normal Distributions, Variances Known Figure 10-1 Two independent populations.
Stat 301 – Day 28 Review. Last Time - Handout (a) Make sure you discuss shape, center, and spread, and cite graphical and numerical evidence, in context.
Stat 301 – Day 15 Comparing Groups. Statistical Inference Making statements about the “world” based on observing a sample of data, with an indication.
Stat 217 – Day 21 Cautions/Limitations with Inference Procedures.
Stat 512 – Lecture 12 Two sample comparisons (Ch. 7) Experiments revisited.
Copyright (c) Bani K. Mallick1 STAT 651 Lecture #16.
Today’s Agenda Review of ANOVA Module 9 Review for Exam 2 Please log in with your UMID and your participation will be graded by the number of questions.
4-1 Statistical Inference The field of statistical inference consists of those methods used to make decisions or draw conclusions about a population.
5-3 Inference on the Means of Two Populations, Variances Unknown
June 23, 2008Stat Lecture 13 - One Mean1 Inference for a Population Mean Confidence Intervals and Tests with unknown variance and Two- sample Tests.
One Sample  M ean μ, Variance σ 2, Proportion π Two Samples  M eans, Variances, Proportions μ1 vs. μ2 σ12 vs. σ22 π1 vs. π Multiple.
June 2, 2008Stat Lecture 18 - Review1 Final review Statistics Lecture 18.
Warm-up Day of 8.1 and 8.2 Quiz and Types of Errors Notes.
June 19, 2008Stat Lecture 12 - Testing 21 Introduction to Inference More on Hypothesis Tests Statistics Lecture 12.
Claims about a Population Mean when σ is Known Objective: test a claim.
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.
More About Significance Tests
June 18, 2008Stat Lecture 11 - Confidence Intervals 1 Introduction to Inference Sampling Distributions, Confidence Intervals and Hypothesis Testing.
Comparing Two Proportions
Chapter 10 Comparing Two Means Target Goal: I can use two-sample t procedures to compare two means. 10.2a h.w: pg. 626: 29 – 32, pg. 652: 35, 37, 57.
6.1 - One Sample One Sample  Mean μ, Variance σ 2, Proportion π Two Samples Two Samples  Means, Variances, Proportions μ 1 vs. μ 2.
STA291 Statistical Methods Lecture 24. Comparing Two Proportions Sample of 25, year-olds: Men: 84.9% diploma rate Women: 88.1% diploma rate Are.
LECTURE 19 THURSDAY, 14 April STA 291 Spring
Section Inference for Experiments Objectives: 1.To understand how randomization differs in surveys and experiments when comparing two populations.
June 25, 2008Stat Lecture 14 - Two Means1 Comparing Means from Two Samples Statistics 111 – Lecture 14 One-Sample Inference for Proportions and.
STA Lecture 291 STA 291 Lecture 29 Review. STA Lecture 292 Final Exam, Thursday, May 6 When: 6:00pm-8:00pm Where: CB 106 Make-up exam: Friday.
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
10.1: Confidence Intervals Falls under the topic of “Inference.” Inference means we are attempting to answer the question, “How good is our answer?” Mathematically:
Two-sample Proportions Section Starter One-sample procedures for proportions can also be used in matched pairs experiments. Here is an.
Copyright © 2010 Pearson Education, Inc. Chapter 22 Comparing Two Proportions.
Warm-up 8.3 and 8.4 C.I.and Inference Test of two Ind. Proportions
Inference for 2 Proportions Mean and Standard Deviation.
Section A Confidence Interval for the Difference of Two Proportions Objectives: 1.To find the mean and standard error of the sampling distribution.
Stats 4-17  Previous data indicate that 17% of trolls are bifungal (two mushroom hands). Wilfrax Margarn wants to create 95% a confidence interval for.
Hypothesis Testing Errors. Hypothesis Testing Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean.
June 30, 2008Stat Lecture 16 - Regression1 Inference for relationships between variables Statistics Lecture 16.
Inference with Proportions Review Mr. Hardin AP STATS 2015.
Chapter 10 Statistical Inference for Two Samples More than one but less than three! Chapter 10B < X
AP Statistics Chapter 11 Notes. Significance Test & Hypothesis Significance test: a formal procedure for comparing observed data with a hypothesis whose.
1 Math 4030 – 10b Inferences Concerning Proportions.
Tests of Significance: The Basics ESS chapter 15 © 2013 W.H. Freeman and Company.
Chapter 22 Comparing Two Proportions.  Comparisons between two percentages are much more common than questions about isolated percentages.  We often.
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.
Testing a Single Mean Module 16. Tests of Significance Confidence intervals are used to estimate a population parameter. Tests of Significance or Hypothesis.
Week 111 Review - Sum of Normal Random Variables The weighted sum of two independent normally distributed random variables has a normal distribution. Example.
Hypothesis Testing. Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean μ = 120 and variance σ.
The Idea of the Statistical Test. A statistical test evaluates the "fit" of a hypothesis to a sample.
Chapter 12 Inference for Proportions AP Statistics 12.2 – Comparing Two Population Proportions.
Chapter 20 Testing Hypotheses about Proportions. Hypothesis Testing: used to assess the evidence provided by data in favor of some claim about the population.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 10 Comparing Two Groups Section 10.3 Other Ways of Comparing Means and Comparing Proportions.
Inference about proportions Example: One Proportion Population of students Sample of 175 students CI: What proportion (percentage) of students abstain.
1 Section 8.4 Testing a claim about a mean (σ known) Objective For a population with mean µ (with σ known), use a sample (with a sample mean) to test a.
AP Statistics Friday, 01 April 2016 OBJECTIVE TSW review for the test covering two- sample inference. TEST: Two-Sample Inference is on Monday, 04 April.
Comparing Means from Two Samples
Lecture 6 Comparing Proportions (II)
Statistical Inference for the Mean Confidence Interval
Lecture 10/24/ Tests of Significance
CHAPTER 12 Inference for Proportions
CHAPTER 12 Inference for Proportions
Chapter 12 Inference for Proportions
Presentation transcript:

June 26, 2008Stat Lecture 151 Two-Sample Inference for Proportions Statistics Lecture 15

June 26, 2008Stat Lecture 152 Administrative Notes HW 5 due on July 1 (next Wednesday) Exam is from 10:40-12:10 on July 2 (next Thursday) Will focus on material covered after midterm You should expect a question or two on topics covered before the midterm

June 26, 2008Stat Lecture 153 Count Data and Proportions Last class, we re-introduced count data: X i = 1 with probability p and 0 with probability (1-p) Example: Pennsylvania Primary X i = 1 if you favor Obama, X i = 0 if not What is the proportion p of Obama supporters at Penn? We derived confidence intervals and hypothesis tests for a single population proportion p

June 26, 2008Stat Lecture 154 Two-Sample Inference for Proportions Today, we will look at comparing the proportions between two samples from distinct populations Two tools for inference: Hypothesis test for significant difference between p 1 and p 2 Confidence interval for difference p 1 - p 2 Population 1:p 1 Sample 1: Population 2:p 2 Sample 2:

June 26, 2008Stat Lecture 155 Example: Vitamin C study Study done by Linus Pauling in 1971 Does vitamin C reduce incidence of common cold? 279 people randomly given vitamin C or placebo Is there a significant difference in the proportion of colds between the vitamin C and placebo groups? GroupColdsTotal Vitamin C17139 Placebo31140

June 26, 2008Stat Lecture 156 Hypothesis Test for Two Proportions For two different samples, we want to test whether or not the two proportions are different: H 0 : p 1 = p 2 versus H a : p 1  p 2 The test statistic for testing the difference between two proportions is: is called the pooled standard error and has the following formula: is called the pooled sample proportion

June 26, 2008Stat Lecture 157 Example: Vitamin C study We need the following three sample proportions: = 17/139 =.12 = 31/140 =.22 = 48/279 =.17 Next, we calculate the pooled standard error: = – = = √(.17*.83*(1/ /140)) =.045 Finally, we calculate our test statistic: z = ( )/.045 = Vitamin C groupY 1 = 17n 1 = 139 Placebo groupY 2 = 31n 2 = 140

June 26, 2008Stat Lecture 158 Hypothesis Test for Two Proportions We use the standard normal distribution to calculate a p-value for our test statistic Since we used a two-sided alternative, our p-value is 2 x P(Z < -2.22) = 2 x = At a  = 0.05 level, we reject the null hypothesis Conclusion: the proportion of colds is significantly different between the Vitamin C and placebo groups Z = prob =

June 26, 2008Stat Lecture 159 Confidence Interval for Difference We use the two sample proportions to construct a confidence interval for the difference in population proportions p 1 - p 2 between two groups: Interval is centered at the difference of the two sample proportions As usual, the multiple Z * you use depends on the confidence level that is needed eg. for a 95% confidence interval, Z * = 1.96

June 26, 2008Stat Lecture 1510 Example: Vitamin C study Want a C.I. for difference in proportion of colds p 1 - p 2 between Vitamin C and placebo Need sample proportions from before: = 17/139 =.12 = 31/140 =.22 Now, we construct a 95% confidence interval: ( ) +/- √(.12*.88/ *.78/140) =(-.19,-.01) Vitamin C causes decrease in cold proportions between 1% and 19%

June 26, 2008Stat Lecture 1511 Another Example Has Shaq gotten worse at free throws over his career? Free throws are uncontested shots given to a player when they are fouled…Shaquille O’Neal is notoriously bad at them Two Samples: the first three years of Shaq’s career vs. a later three years of his career Group Free Throws Made Free Throws Attempted Early Years Y 1 = 1353n 1 = 2425 Later Years Y 2 = 1121n 2 = 2132

June 26, 2008Stat Lecture 1512 Another Example: Shaq’s Free Throws We calculate the sample and pooled proportions = 1353/2425=.558 =1121/2132=.526 =2474/4557=.543 Next, we calculate the pooled standard error: = √(.543*.467(1/2425+1/2132))=.015 Finally, we calculate our test statistic: Z = ( )/.015 = 2.13

June 26, 2008Stat Lecture 1513 Another Example: Shaq’s Free Throws We use the standard normal distribution to calculate a p-value for our test statistic Since we used a two-sided alternative, our p-value is 2 x P(Z > 2.13) = At  = 0.05 level, we reject null hypothesis Conclusion: Shaq’s free throw success is significantly different now than early in his career Z = 2.13 prob =

June 26, 2008Stat Lecture 1514 Confidence Interval: Shaq’s FT We want a confidence interval for the difference in Shaq’s free throw proportion: = 1353/2425=.558 =1121/2132=.526 Now, we construct a 95% confidence interval: ( ) +/ *√(.558*.442/ *.474/2132) (.003,.061) Shaq’s free throw percentage has decreased from anywhere between 0.3% to 6.1%

June 26, 2008Stat Lecture 1515 Is Shaq still bad at Free Throws?