Significance Test for the Difference of Two Proportions

Slides:



Advertisements
Similar presentations
Hypothesis Testing A hypothesis is a claim or statement about a property of a population (in our case, about the mean or a proportion of the population)
Advertisements

Chapter 10 Section 2 Hypothesis Tests for a Population Mean
Chapter 9 Hypothesis Testing.
Hypothesis Testing and T-Tests. Hypothesis Tests Related to Differences Copyright © 2009 Pearson Education, Inc. Chapter Tests of Differences One.
More About Significance Tests
Statistical Inference Decision Making (Hypothesis Testing) Decision Making (Hypothesis Testing) A formal method for decision making in the presence of.
Chapter 9 Hypothesis Testing II: two samples Test of significance for sample means (large samples) The difference between “statistical significance” and.
Hypothesis testing Chapter 9. Introduction to Statistical Tests.
Section Inference for Experiments Objectives: 1.To understand how randomization differs in surveys and experiments when comparing two populations.
Agresti/Franklin Statistics, 1 of 122 Chapter 8 Statistical inference: Significance Tests About Hypotheses Learn …. To use an inferential method called.
Large sample CI for μ Small sample CI for μ Large sample CI for p
1 When we free ourselves of desire, we will know serenity and freedom.
Section A Confidence Interval for the Difference of Two Proportions Objectives: 1.To find the mean and standard error of the sampling distribution.
Slide Slide 1 Section 8-4 Testing a Claim About a Mean:  Known.
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
Ex St 801 Statistical Methods Inference about a Single Population Mean.
Logic and Vocabulary of Hypothesis Tests Chapter 13.
Inen 460 Lecture 2. Estimation (ch. 6,7) and Hypothesis Testing (ch.8) Two Important Aspects of Statistical Inference Point Estimation – Estimate an unknown.
Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Fri, Nov 12, 2004.
Testing Hypotheses about a Population Proportion Lecture 31 Sections 9.1 – 9.3 Wed, Mar 22, 2006.
Chapter 9: Hypothesis Tests for One Population Mean 9.2 Terms, Errors, and Hypotheses.
C HAPTER 2  Hypothesis Testing -Test for one means - Test for two means -Test for one and two proportions.
STA 291 Spring 2010 Lecture 19 Dustin Lueker.
Section 8.2 Day 3.
9.3 Hypothesis Tests for Population Proportions
Chapter 9: Testing a Claim
Unit 4 – Inference from Data: Principles
More on Inference.
Unit 5 – Chapters 10 and 12 What happens if we don’t know the values of population parameters like and ? Can we estimate their values somehow?
Hypothesis Testing for Proportions
Testing Hypotheses about a Population Proportion
Chapter 9: Testing a Claim
Section 8.4 Day 2.
Chapter 9: Testing a Claim
Chapters 20, 21 Hypothesis Testing-- Determining if a Result is Different from Expected.
Section 8.2 Day 4.
Chapter 8 Hypothesis Testing with Two Samples.
Hypothesis Tests for 1-Sample Proportion
Significance Tests: A Four-Step Process
10.1: 2-Proportion Situations
Chapter 9 Testing A Claim
When we free ourselves of desire,
Section 11.2: Carrying Out Significance Tests
More on Inference.
Chapter Review Problems
Hypothesis Testing (Cont.)
Problems: Q&A chapter 6, problems Chapter 6:
Section 12.2: Tests about a Population Proportion
Section 9.5 Day 2.
Hypothesis tests for the difference between two proportions
Chapter 9: Testing a Claim
Testing Hypotheses about a Population Proportion
STA 291 Spring 2008 Lecture 18 Dustin Lueker.
More on Testing 500 randomly selected U.S. adults were asked the question: “Would you be willing to pay much higher taxes in order to protect the environment?”
Chapter 9: Testing a Claim
Chapter 9: Testing a Claim
Chapter 9: Testing a Claim
STA 291 Summer 2008 Lecture 18 Dustin Lueker.
Chapter 9: Testing a Claim
Chapter 9: Testing a Claim
Significance Tests: The Basics
Chapter 9: Testing a Claim
Comparing Two Proportions
Testing Hypotheses about a Population Proportion
Chapter 9: Testing a Claim
Unit 5: Hypothesis Testing
Section 8.2 Day 2.
Chapter 9: Testing a Claim
Significance Tests: The Basics
Testing Hypotheses about a Population Proportion
Presentation transcript:

Significance Test for the Difference of Two Proportions Section 8.4 Significance Test for the Difference of Two Proportions

Critical Values For a 2-sided test, what are the critical values for a significance level of α = 0.05?

Critical Values For a 2-sided test, what are the critical values for a significance level of α = 0.05?

Critical Values For a 2-sided test, what are the critical values for a significance level of α = 0.05?

Critical Values For a 2-sided test, what are the critical values for a significance level of α = 0.05? invNorm (.025) = -1.96 invNorm (.975) = 1.96 z* = ± 1.96

Critical Values For a one-sided test, what is the critical value for a significance level of α = 0.05?

Critical Values For a one-sided test, what is the critical value for a significance level of α = 0.05?

Critical Values For a one-sided test, what is the critical value for a significance level of α = 0.05? If Ha: p < po, invNorm (.05 ) = - 1.64

Critical Values For a one-sided test, what is the critical value for a significance level of α = 0.05?

Critical Values For a one-sided test, what is the critical value for a significance level of α = 0.05? If Ha: p > po, invNorm (.95 ) = 1.64

Components of a Significance Test for the Difference of Two Proportions for Surveys Four parts:

Components of a Significance Test for the Difference of Two Proportions for Surveys Four parts: 1. Name test and check conditions

Components of a Significance Test for the Difference of Two Proportions for Surveys Four parts: 1. Name test and check conditions 2. Write null and alternative hypotheses

Components of a Significance Test for the Difference of Two Proportions for Surveys Four parts: 1. Name test and check conditions 2. Write null and alternative hypotheses 3. Compute test statistic and P-value

Components of a Significance Test for the Difference of Two Proportions for Surveys Four parts: 1. Name test and check conditions 2. Write null and alternative hypotheses 3. Compute test statistic and P-value 4. Write a conclusion in context

Name Test & Check Conditions Name: Use the whole name! One-sided significance test for the difference of two proportions or Two-sided significance test for the difference of two proportions

Check Conditions First condition: Random samples selected independently from two different populations

Check Conditions Second condition: normal? All these quantities must be at least 5. Show all 4 calculations and state significance of results

Check Conditions Third condition: Each population is at least 10 times as large as its sample size. Remember to explain why this is reasonable.

Null Hypothesis Null hypothesis almost always one of “no difference” or “no effect”

Null Hypothesis Null hypothesis almost always one of “no difference” or “no effect” Several choices as long as define p1 and p2 Ho: The proportion of successes p1 in the first population is equal to the proportion of successes p2 in the second population. Write Ho in context of situation.

Null Hypothesis Null hypothesis almost always one of “no difference” or “no effect” Ho: p1 = p2, where p1 is the proportion of successes in the first population and p2 is the proportion of successes in the second population. Write Ho in context of situation.

Null Hypothesis Null hypothesis almost always one of “no difference” or “no effect” Ho: p1 - p2 = 0, where p1 is the proportion of successes in the first population and p2 is the proportion of successes in the second population. Write Ho in context of situation.

Alternative Hypothesis Form depends on whether you need a two-sided or one-sided test.

Alternative Hypothesis Two-sided test Ha: The proportion of successes p1 in the first population is not equal to the proportion of successes p2 in the second population. In symbols: Ha: p1 ≠ p2 or Ha: p1 – p2 ≠ 0

Alternative Hypothesis One-sided test Ha: The proportion of successes p1 in the first population is greater than the proportion of successes p2 in the second population. In symbols: Ha: p1 > p2 or Ha: p1 – p2 > 0

Alternative Hypothesis One-sided test Ha: The proportion of successes p1 in the first population is less than the proportion of successes p2 in the second population. In symbols: Ha: p1 < p2 or Ha: p1 – p2 < 0

Compute Test Statistic and P-value If we assume p1 = p2, then use

Compute Test Statistic and P-value If we assume p1 = p2, then use

Compute Test Statistic and P-value If we assume p1 = p2, then use

is called “pooled estimate” of the common proportion of successes

Compute Test Statistic and P-value or use 2-PropZTest Only valid if we assume p1 = p2

Compute Test Statistic and P-value If do not assume p1 = p2, then use:

Compute Test Statistic and P-value The P-value is the probability of getting a value of z as extreme or more extreme than that from your samples if Ho is true. Include a sketch.

Write a Conclusion in Context State whether you reject or do not reject the null hypothesis.

Write a Conclusion in Context State whether you reject or do not reject the null hypothesis. Link this conclusion to your computations by (1) comparing z to critical value z* reject null hypothesis if z is more extreme than z* or

Write a Conclusion in Context State whether you reject or do not reject the null hypothesis. Link this conclusion to your computations by (1) comparing z to critical value z* reject null hypothesis if z is more extreme than z* or (2) comparing P-value to level of significance α reject null hypothesis if P-value is smaller than α

Write a Conclusion in Context State whether you reject or do not reject the null hypothesis. Link this conclusion to your computations by (1) comparing z to critical value z*, reject null hypothesis if z is more extreme than z* or (2) comparing P-value to level of significance α, reject null hypothesis if P-value is smaller than α Write sentence giving conclusion in context related to alternative hypothesis.

Page 536, P50

Page 536, P50 Give appropriate statistical evidence to support your answer means complete all 4 steps for a significance test.

Page 536, P50 Name: one-sided significance test for the difference of two proportions because you are asked whether the data support the conclusion that there was a decrease in voter support for the candidate.

Page 536, P50 We are told that we have two random samples from a population of probable voters in some city. It’s reasonable to assume that the samples are independent because the random samples were taken about 2 weeks apart.

Page 536, P50 Let n1 be 1st sample and n2 the 2nd sample. Each of the following is at least 5:

Page 536, P50 The number of probable voters at both times should be larger than 10 times the sample size for both samples, and it is unknown whether this is the case.

Page 536, P50 Using symbols, what is the null hypothesis?

Page 536, P50 Ho: p1 = p2

Page 536, P50 Ho: p1 = p2, where p1 is the proportion of all probable voters who favored the candidate at the time of the first survey and p2 is the proportion of all probable voters who favored the candidate one week before the election.

Page 536, P50 Ha: p1 > p2 We want to see if there was a decrease in voter support from 1st survey to 2nd survey.

Test Statistic and P-value 2-PropZTest x1: 321 n1: 600 x2: 382 n2: 750 p1 > p2 Calculate Survey 3 weeks before start of campaign 2nd survey

Test Statistic and P-value 2-PropZTest x1: 321 n1: 600 x2: 382 n2: 750 p1 > p2 Calculate z = 0.938 and P-value = 0.1741 Survey 3 weeks before start of campaign 2nd survey

Page 536, P50

Write Conclusion in Context I do not reject the null hypothesis because the P-value of 0.1741 is greater than the significance level of α = 0.05.

Write Conclusion in Context I do not reject the null hypothesis because the P-value of 0.1741 is greater than the significance level of α = 0.05. There is not sufficient evidence to conclude that there was a decrease in voter support for the new candidate after the parking tickets were revealed.

For this one-sided test: What critical value(s) of z would you use to compare against the test statistic of z = 0.938 for a 95% confidence level?

Z* What critical value(s) of z would you use to compare against the test statistic of z = 0.938 for a 95% confidence level? One-sided test at 95% confidence level: z* = invNorm(0.95) = 1.64

Write Conclusion in Context I do not reject the null hypothesis because the test statistic of z = 0.938 is less extreme than the critical value of z* = 1.64. There is not sufficient evidence to conclude that there was a decrease in voter support for the new candidate after the parking tickets were revealed.

Problem # 1 If the P-value of a test is less than the level of significance, then which of these conclusions is correct?

C. The null hypothesis is true. If the P-value of a test is less than the level of significance, then which of these conclusions is correct? A. The value of the test statistic is in the rejection region for this test. B. The sample size should be increased to decrease the margin of error. C. The null hypothesis is true. D. The corresponding confidence interval will contain the hypothesized value of the parameter in the null hypothesis. E. None of these is a valid conclusion.

C. The null hypothesis is true. If the P-value of a test is less than the level of significance, then which of these conclusions is correct? A. The value of the test statistic is in the rejection region for this test. B. The sample size should be increased to decrease the margin of error. C. The null hypothesis is true. D. The corresponding confidence interval will contain the hypothesized value of the parameter in the null hypothesis. E. None of these is a valid conclusion.

Problem # 1 A. If the P-value is less than α, then the result is “statistically significant.” Reject H0. This corresponds to the test statistic falling in the rejection region.

If all else remains the same, which of these will make a confidence interval for the difference of two proportions wider? I. Increase the confidence level II. Increase the sample size III. Increase the margin of error IV. Increase the probability of a Type I error

If all else remains the same, which of these will make a confidence interval for the difference of two proportions wider? I. Increase the confidence level II. Increase the sample size III. Increase the margin of error IV. Increase the probability of a Type I error

One-sided or Two-sided? Page 537 E64 E66 E67 E68

One-sided or Two-sided? E64: Two-sided E66: E67: E68:

One-sided or Two-sided? E64: Two-sided E66: Two-sided E67: E68:

One-sided or Two-sided? E64: Two-sided E66: Two-sided E67: One-sided E68:

One-sided or Two-sided? E64: Two-sided E66: Two-sided E67: One-sided E68: One-sided

Questions?