Section Testing a Proportion

Slides:



Advertisements
Similar presentations
Statistics Hypothesis Testing.
Advertisements

Introduction to Hypothesis Testing
Our goal is to assess the evidence provided by the data in favor of some claim about the population. Section 6.2Tests of Significance.
Anthony Greene1 Simple Hypothesis Testing Detecting Statistical Differences In The Simplest Case:  and  are both known I The Logic of Hypothesis Testing:
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)
Hypothesis Testing An introduction. Big picture Use a random sample to learn something about a larger population.
Inference Sampling distributions Hypothesis testing.
Chapter 10 Section 2 Hypothesis Tests for a Population Mean
Statistical Techniques I EXST7005 Lets go Power and Types of Errors.
Section 9.2: What is a Test of Significance?. Remember… H o is the Null Hypothesis ▫When you are using a mathematical statement, the null hypothesis uses.
Using Statistics in Research Psych 231: Research Methods in Psychology.
Fundamentals of Hypothesis Testing. Identify the Population Assume the population mean TV sets is 3. (Null Hypothesis) REJECT Compute the Sample Mean.
Hypothesis Testing Steps of a Statistical Significance Test. 1. Assumptions Type of data, form of population, method of sampling, sample size.
Evaluating Hypotheses Chapter 9. Descriptive vs. Inferential Statistics n Descriptive l quantitative descriptions of characteristics.
Evaluating Hypotheses Chapter 9 Homework: 1-9. Descriptive vs. Inferential Statistics n Descriptive l quantitative descriptions of characteristics ~
Introduction to Hypothesis Testing CJ 526 Statistical Analysis in Criminal Justice.
Understanding Statistics in Research
Using Statistics in Research Psych 231: Research Methods in Psychology.
Warm-up Day of 8.1 and 8.2 Quiz and Types of Errors Notes.
Overview Definition Hypothesis
Hypothesis Testing Section 8.2. Statistical hypothesis testing is a decision- making process for evaluating claims about a population. In hypothesis testing,
Chapter 8 Hypothesis testing 1. ▪Along with estimation, hypothesis testing is one of the major fields of statistical inference ▪In estimation, we: –don’t.
Sections 8-1 and 8-2 Review and Preview and Basics of Hypothesis Testing.
Sampling Distributions and Hypothesis Testing. 2 Major Points An example An example Sampling distribution Sampling distribution Hypothesis testing Hypothesis.
1 Chapter 10: Section 10.1: Vocabulary of Hypothesis Testing.
Week 8 Fundamentals of Hypothesis Testing: One-Sample Tests
More About Tests and Intervals Chapter 21. Zero In on the Null Null hypotheses have special requirements. To perform a hypothesis test, the null must.
Overview Basics of Hypothesis Testing
Hypothesis Testing: One Sample Cases. Outline: – The logic of hypothesis testing – The Five-Step Model – Hypothesis testing for single sample means (z.
Chapter 8 Introduction to Hypothesis Testing
Chapter 3 Investigating Independence Objectives Students will be able to: 1) Understand what it means for attempts to be independent 2) Determine when.
Chapter 21: More About Tests “The wise man proportions his belief to the evidence.” -David Hume 1748.
Chapter 11 Testing Hypotheses about Proportions © 2010 Pearson Education 1.
Warm-up Day of 8.1 and 8.2 Review. 8.2 P#20, 23 and 24 P#20 a. and b. c. Since the p-hat is along the line for reasonably likely events.
1 Lecture note 4 Hypothesis Testing Significant Difference ©
Topic 8 Hypothesis Testing Mathematics & Statistics Statistics.
Hypothesis Testing – A Primer. Null and Alternative Hypotheses in Inferential Statistics Null hypothesis: The default position that there is no relationship.
Chapter 20 Testing Hypothesis about proportions
Unit 8 Section 8-1 & : Steps in Hypothesis Testing- Traditional Method  Hypothesis Testing – a decision making process for evaluating a claim.
Chapter 21: More About Test & Intervals
Rejecting Chance – Testing Hypotheses in Research Thought Questions 1. Want to test a claim about the proportion of a population who have a certain trait.
Chapter 21: More About Tests
Statistical Techniques
Section 10.2: Tests of Significance Hypothesis Testing Null and Alternative Hypothesis P-value Statistically Significant.
Major Steps. 1.State the hypotheses.  Be sure to state both the null hypothesis and the alternative hypothesis, and identify which is the claim. H0H0.
One Sample Inf-1 In statistical testing, we use deductive reasoning to specify what should happen if the conjecture or null hypothesis is true. A study.
Hypothesis Testing Steps for the Rejection Region Method State H 1 and State H 0 State the Test Statistic and its sampling distribution (normal or t) Determine.
Chapter 9: Hypothesis Tests for One Population Mean 9.2 Terms, Errors, and Hypotheses.
Type I and II Errors Power.  Better Batteries a) What conclusion can you make for the significance level α = 0.05? b) What conclusion can you make for.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 21 More About Tests and Intervals.
Errors in Hypothesis Tests
Introduction to Inference
Unit 5: Hypothesis Testing
Review and Preview and Basics of Hypothesis Testing
Keller: Stats for Mgmt & Econ, 7th Ed Hypothesis Testing
Chapter 21 More About Tests.
Hypothesis Tests Regarding a Parameter
Chapter Review Problems
P-value Approach for Test Conclusion
AP Statistics: Chapter 21
Daniela Stan Raicu School of CTI, DePaul University
Significance Tests: The Basics
11E The Chi-Square Test of Independence
Sample Mean Compared to a Given Population Mean
Sample Mean Compared to a Given Population Mean
Psych 231: Research Methods in Psychology
Power and Error What is it?.
AP STATISTICS LESSON 10 – 4 (DAY 2)
Statistical Test A test of significance is a formal procedure for comparing observed data with a claim (also called a hypothesis) whose truth we want to.
STA 291 Spring 2008 Lecture 17 Dustin Lueker.
Presentation transcript:

Section 8.2 - Testing a Proportion Objectives: To understand the logic of a significance test for a proportion To know the meanings of Type I and Type II errors and how to reduce their probability To know the meaning of the power of a test and how to increase it.

Section 8.2 - Testing a Proportion Review: We want to make a decision based on data by comparing the results from a sample (a sample proportion) to some predetermined standard (an hypothesis about the population proportion) . These kinds of decisions are called tests of significance or hypothesis tests.

Section 8.2 - Testing a Proportion Types of Errors The goal of a test of significance is to evaluate a claim about a population proportion. Assume that the population proportion is equal to some standard (p = p0). This assumption is called the null hypothesis. Use sample data to compute a sample proportion. Compute a test statistic (convert the sample proportion to a z-score). Compute a P-value and compare it to the significance level , or compare the test statistic to the critical value (based on ). If P-value < , or if |z| > |z*|, reject the null hypothesis (H0: p = p0). If P-value > , or if |z| < |z*|, fail to reject the null hypothesis. Remember that a test of significance is based on data from a sample, and is therefore subject to sampling variability. There are two errors (incorrect decisions) that are possible. What are they?

Section 8.2 - Testing a Proportion Types of Errors If the null hypothesis (H0: p = p0) is true, and we make a mistake and reject it, we have made a Type I Error. If the null hypothesis (H0: p = p0) is false, and we make a mistake and fail to reject it, we have made a Type II Error. Clearly, we want to minimize both types of errors, if possible. Which error is more serious?

Section 8.2 - Testing a Proportion Types of Errors Jury Trial Defendant is Actually Innocent Guilty Jury’s Decision Not Guilty Correct Error Worse error

Section 8.2 - Testing a Proportion Types of Errors Jury Trial Defendant is Actually Innocent Guilty Jury’s Decision Not Guilty Correct Error Worse error Significance Testing Null Hypothesis is Actually True False Your Decision Don’t Reject H0 Correct Type II Error Reject H0 Type I Error

Section 8.2 - Testing a Proportion Example: Miguel & Kevin Miguel & Kevin’s test statistic was large in absolute value: z = -3.16. They concluded that spinning a penny was not fair. These are the possibilities: The null hypothesis is true and a rare event occurred. The null hypothesis is false, and that’s why their result was so far from p. The sampling process was biased, so their result is questionable. If we rule out the last possibility, since z = -3.16, the decision will be to reject the null hypothesis. However, we could be making a Type I error - rejecting H0 when in fact it is true. Note that making a Type I error does not mean that you did anything wrong - it’s just bad luck.

Section 8.2 - Testing a Proportion Example: Jenny & Maya Jenny & Maya’s test statistic was small in absolute value: z = -0.95. They concluded that their result was consistent with the idea that spinning a penny is fair. These are the possibilities: The null hypothesis is true; that’s why the test statistic was so small. The null hypothesis is false, and it was just by chance that their result was so close to p. The sampling process was biased, so their result is questionable. If we rule out the last possibility, since z = -0.95 the conclusion is that we cannot reject the null hypothesis. However, we could be making a Type II error - failing to reject H0 when it is false. Note that making a Type II error does not mean that you did anything wrong - it’s just bad luck.

Section 8.2 - Testing a Proportion Type I Error Suppose the null hypothesis is true. What is the chance of (incorrectly) rejecting H0 and making a Type I error?

Section 8.2 - Testing a Proportion Type I Error Suppose the null hypothesis is true. What is the chance of (incorrectly) rejecting H0 and making a Type I error? The only way to make a Type I error is to get a rare event from the sample. For example, if the significance level is 0.05 ( = 0.05), you would make a Type I error if z > 1.96 or z < -1.96. This happens 5% of the time. That is, P(z ≤ -1.96 or z ≥ 1.96) = 0.05. If the null hypothesis is true, the probability of a Type I error (the probability of a rare event) is equal to the significance level, , of the test. To lower the chance of a Type I error, you should use a lower level of significance, , with larger critical values, z*. A lower level of significance makes it harder to reject H0

Section 8.2 - Testing a Proportion Types of Errors You commit a Type I Error if you incorrectly reject the null hypothesis when it is true. You commit a Type II Error if you incorrectly fail to reject the null hypothesis when it is false.

Section 8.2 - Testing a Proportion Power of a Test The power of a test is the probability of rejecting the null hypothesis. When the null hypothesis is false When the null hypothesis is true, you can’t make a Type II error.

Section 8.2 - Testing a Proportion Power of a Test If Jenny & Maya had spun more pennies, they would have collected more evidence and gotten a different result. (Spinning pennies, as Miguel & Kevin determined, and as we saw in our class, is not fair.) Their sample size was too small (failure to reject H0 is the result of insufficient evidence). As a result, they made a Type II error (failure to reject H0 when it is false) Their test did not have enough power to be able to detect that p ≠ p0

Section 8.2 - Testing a Proportion Power of a Test If Jenny and Maya had spun more pennies, they would have collected more evidence and gotten a different result. (Spinning pennies, as we saw in our class, is not fair.) The power of a test is the probability of rejecting the null hypothesis.

Section 8.2 - Testing a Proportion Power of a Test The power of a test is the probability of rejecting the null hypothesis. If the null hypothesis is false, we want to reject it. If we fail to reject it, we make a Type II error. Power = 1 - probability of a Type II error If the probability of a Type II error is small, the power of the test is large.

Section 8.2 - Testing a Proportion Types of Error and Power Type I Error When the null hypothesis is true and you reject it, you have made a Type I error. Type II Error When the null hypothesis is false and you fail to reject it, you have made a Type II error. Power Power is the probability of rejecting the null hypothesis.

Section 8.2 - Testing a Proportion Type I Error When the null hypothesis is true and you reject it, you have made a Type I error. The probability of making a Type I error is equal to the significance level, , of the test. To decrease the probability of a Type I error, make  smaller. Changing the sample size n has no effect on the probability of a Type I error. Decreasing  makes it harder to reject H0 If the null hypothesis is false, you can’t make a Type I error.

Section 8.2 - Testing a Proportion Type II Error When the null hypothesis is false and you fail to reject it, you have made a Type II error. To decrease the probability of making a Type II error, take a larger sample (increase n), or increase the significance level . Increasing  makes it easier to reject H0 If the null hypothesis is true, you can’t make a Type II error.

Section 8.2 - Testing a Proportion Power Power is the probability of rejecting the null hypothesis. When the null hypothesis is false, you want to reject it and therefore you want the power to be large. To increase power, either increase the sample size n or increase the significance level . (Collect more data, or adjust  so that it is easier to reject H0)