STT 315 This lecture is based on Chapter 6. Acknowledgement: Author is thankful to Dr. Ashok Sinha, Dr. Jennifer Kaplan and Dr. Parthanil Roy for allowing.

Slides:



Advertisements
Similar presentations
Chapter 9 Hypothesis Testing Understandable Statistics Ninth Edition
Advertisements

Our goal is to assess the evidence provided by the data in favor of some claim about the population. Section 6.2Tests of Significance.
Testing Hypotheses About Proportions Chapter 20. Hypotheses Hypotheses are working models that we adopt temporarily. Our starting hypothesis is called.
1/55 EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008 Chapter 10 Hypothesis Testing.
Fall 2006 – Fundamentals of Business Statistics 1 Chapter 8 Introduction to Hypothesis Testing.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Basic Business Statistics.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 8-1 Chapter 8 Fundamentals of Hypothesis Testing: One-Sample Tests Statistics.
Chapter 9 Hypothesis Testing.
Ch. 9 Fundamental of Hypothesis Testing
BCOR 1020 Business Statistics
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.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 8 Tests of Hypotheses Based on a Single Sample.
Chapter 10 Hypothesis Testing
Overview Definition Hypothesis
Confidence Intervals and Hypothesis Testing - II
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 9 Introduction to Hypothesis Testing.
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Business Statistics,
Chapter 20: Testing Hypotheses about Proportions
Fundamentals of Hypothesis Testing: One-Sample Tests
Testing Hypotheses About Proportions
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 20 Testing Hypotheses About Proportions.
Testing Hypotheses Tuesday, October 28. Objectives: Understand the logic of hypothesis testing and following related concepts Sidedness of a test (left-,
Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
LECTURE 19 THURSDAY, 14 April STA 291 Spring
Chapter 21: More About Tests “The wise man proportions his belief to the evidence.” -David Hume 1748.
Confidence intervals are one of the two most common types of statistical inference. Use a confidence interval when your goal is to estimate a population.
Chapter 20 Testing hypotheses about proportions
Lecture 16 Dustin Lueker.  Charlie claims that the average commute of his coworkers is 15 miles. Stu believes it is greater than that so he decides to.
CHAPTER 17: Tests of Significance: The Basics
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 20 Testing Hypotheses About Proportions.
IE241: Introduction to Hypothesis Testing. We said before that estimation of parameters was one of the two major areas of statistics. Now let’s turn to.
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
Lecture 16 Section 8.1 Objectives: Testing Statistical Hypotheses − Stating hypotheses statements − Type I and II errors − Conducting a hypothesis test.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 8-1 Chapter 8 Fundamentals of Hypothesis Testing: One-Sample Tests Statistics.
Statistics 101 Chapter 10 Section 2. How to run a significance test Step 1: Identify the population of interest and the parameter you want to draw conclusions.
Lecture 9 Chap 9-1 Chapter 2b Fundamentals of Hypothesis Testing: One-Sample Tests.
Economics 173 Business Statistics Lecture 4 Fall, 2001 Professor J. Petry
Chapter 20 Testing Hypothesis about proportions
Lecture 18 Dustin Lueker.  A way of statistically testing a hypothesis by comparing the data to values predicted by the hypothesis ◦ Data that fall far.
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Overview.
Lecture 17 Dustin Lueker.  A way of statistically testing a hypothesis by comparing the data to values predicted by the hypothesis ◦ Data that fall far.
CHAPTER 9 Testing a Claim
Fall 2002Biostat Statistical Inference - Confidence Intervals General (1 -  ) Confidence Intervals: a random interval that will include a fixed.
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
STT 315 Ashwini maurya This lecture is based on Chapter 5.4 Acknowledgement: Author is thankful to Dr. Ashok Sinha, Dr. Jennifer Kaplan and Dr. Parthanil.
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Basic Business Statistics.
Business Statistics for Managerial Decision Farideh Dehkordi-Vakil.
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.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
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.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 9 Testing a Claim 9.1 Significance Tests:
CHAPTER 15: Tests of Significance The Basics ESSENTIAL STATISTICS Second Edition David S. Moore, William I. Notz, and Michael A. Fligner Lecture Presentation.
Slide 20-1 Copyright © 2004 Pearson Education, Inc.
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
A.P. STATISTICS EXAM REVIEW TOPIC #2 Tests of Significance and Confidence Intervals for Means and Proportions Chapters
Chapter 9 Hypothesis Testing Understanding Basic Statistics Fifth Edition By Brase and Brase Prepared by Jon Booze.
Statistics 20 Testing Hypothesis and Proportions.
Chapter 9 Testing A Claim 9.1 SIGNIFICANT TESTS: THE BASICS OUTCOME: I WILL STATE THE NULL AND ALTERNATIVE HYPOTHESES FOR A SIGNIFICANCE TEST ABOUT A POPULATION.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 9 Testing a Claim 9.1 Significance Tests:
Module 10 Hypothesis Tests for One Population Mean
Testing Hypotheses About Proportions
CHAPTER 9 Testing a Claim
CHAPTER 9 Testing a Claim
CHAPTER 9 Testing a Claim
CHAPTER 9 Testing a Claim
CHAPTER 9 Testing a Claim
CHAPTER 9 Testing a Claim
Presentation transcript:

STT 315 This lecture is based on Chapter 6. Acknowledgement: Author is thankful to Dr. Ashok Sinha, Dr. Jennifer Kaplan and Dr. Parthanil Roy for allowing him to use/edit some of their slides.

Within the context of the problem, students will be able to:  Perform a one-sample z-test for proportion.  Perform one-sample z-test and t-test for mean.  Verify the conditions for performing the tests.  Identify Type I and Type II errors.  Understand the concept of p-value.  Interpret the results of the test within the context of the problem. Hypothesis Tests: Goal 2

Example 1 A congressman claims that only 12% of drivers talk on their cell phone. Standing at a bus stop someone noticed 4 out of 10 drivers on a cell phone. Is this an evidence that the congressman is wrong? But before answering that question, we must reflect on “Is the sample size large enough to come to any conclusion about proportion?” No, because np = 1.2, and n(1-p) = 8.8, both of which are less than 9. So we must have a larger sample. 3

Example 1 What minimum sample size is required that meets the “large enough” condition? About 76, because it gives np = 9.12 expected successes and n(1-p) = expected failures, both larger than 9. Suppose 19 out of 100 drivers were found to be on cell phones. Is this an evidence that the congressman is wrong? Let us assume that the congressman’s assumption is correct, and find how likely it is to have 19% or more drivers to be on cell phone, when sample size is

Example 1 5

Few questions We are making our conclusion on the basis of a sample. Is there any possibility of making an error? How much reliable is our conclusion? In other words, what is the probability of making an error? We are saying that (1.6%) is not very likely. What value(s) should we consider as likely, and what as unlikely? 6

Some terminologies parameterA hypothesis is a claim/conjecture about some parameter of the population distribution. In the driving example, congressman’s claim that p = 0.12, is a hypothesis. We shall have two competing hypotheses:  H 0, the null hypothesis,  H a, the alternative hypothesis. In testing of hypotheses we try to retain the null hypothesis unless sample provides strong evidence against it, in which case we conclude in favor of alternative hypothesis. 7

In a hypothesis test we have two possible errors: We find evidence to reject the null hypothesis but it turns out that the null hypothesis is true: Type I error. We do not find evidence to reject the null hypothesis but the null hypothesis turns out to be false: Type II error. Errors in testing 8

A.A Type I error B.A Type II error In the cell phone drivers example, when we had 19 people in the sample who were talking on their cell phones, we found evidence to reject the null hypothesis. If the actual percent of drivers who talk on cell phones is 12%, we have made 9

A.A Type I error B.A Type II error In the cell phone drivers example, when we had 14 people in the sample who were talking on their cell phones, we did not find evidence to reject the null hypothesis. If the actual percent of drivers who talk on cell phones is not 12%, we have made 10

Few Remarks Errors of Type I and II are NOT mistakes. They happen due to sampling variability. It is the same reason that some confidence intervals do not contain the population value, because the conclusions we make based on hypothesis tests are probabilistic. Except in some special cases, we are bound to make both type of errors. Our attempt is to minimize the probability of making these errors. Unfortunately, often is the case that trying to reduce one error increases the chance of other error. 11

Which error is more crucial? This is not an easy question. In order to answer this question, let us think of a different problem. Suppose you are a jury member and you have to decide whether someone is guilty or not. Which error is more crucial? Type I error. The person is innocent The person is guilty Jury declares the person to be guilty Type I error Jury declares the person to be not guilty Type II error 12

Example A drug company tests the null hypothesis that a new drug does not work better than a placebo. What is a Type I error in this case? A.The tests show the new drug works better than the placebo, but it really does not. B.The tests show the new drug does not work better than the placebo, but it really does. 13

A drug company tests the null hypothesis that a new drug does not work better than a placebo. Which error would be worse to make? A.The tests show the new drug works better than the placebo, but it really does not. (Type I error) B.The tests show the new drug does not work better than the placebo, but it really does. (Type II error) Example 14

The Testing Procedure Since Type I error is more crucial, we always make sure that the probability of Type I error is not too high (say, under 5%) and then we try to minimize Type II error. Such a test is said to have a level of significance 5% and it is called a level-0.05 test. So level of significance (usually denoted by the Greek letter α) is the maximum permissible probability of Type I error. The popular choices of values of α are 1%, 5% and 10%. Given the sample we compute the probability of Type I error, which is also known as observed level of significance or p-value. If “p-value is less than level of significance”, we reject H 0.If “p-value is less than level of significance”, we reject H 0. AlternativelyAlternatively, we compute the rejection region corresponding to α, and find the value of the test-statistic from the sample. We reject H 0 if the value of test-statistic falls in the rejection region.We reject H 0 if the value of test-statistic falls in the rejection region. 15

The Testing Procedure Given a statistical problem we shall first decide what are the suitable null and alternative hypotheses. Mind that the hypotheses are decided before the data are collected; that means –the sampled data should not influence what the null and/or alternative hypotheses are. –but on the basis of sample we shall decide which of the hypotheses to be rejected. We decide about the level of significance (α). We compute the test-statistic and the rejection region and see if the test-statistic falls in the rejection region. Additionally, we compute p-value and if p-value < α, we reject H 0. 16

On the question of choosing an  level - rules of thumb for p-values Popular choices for  are 0.01, 0.05 and A p-value below 0.01 is very unusual and provides strong evidence to reject the null hypothesis. A p-value between 0.01 and 0.05 is pretty unusual and provides moderate evidence to reject the null hypothesis. A p-value between 0.05 and 0.10 is unusual and provides some evidence to reject the null hypothesis. In some social sciences, a p-value between 0.10 and 0.25 is considered unusual and evidence to reject the null hypothesis. 17

Test for population proportion 18

19 Alternative hypothesis Rejection region One-sided test (right) One-sided test (left) Two-sided test

Remark 20

Example 1 Let us test the problem of Example 1 (calling on cell-phone while driving) at 5% level of significance. Here we consider H 0 : p = 0.12, H a : p > In our sample 19 of 100 drivers were on cell-phone. We shall use TI 83/84 Plus to compute p-value. Press [STAT]. Select [TESTS]. Choose 5: 1-PropZTest…. Input the following: o p 0 : 0.12 o x: 19 o n: 100 o prop: > p 0 Choose Calculate and press [ENTER]. 21

Test of 1-proportion with TI 83/84 Plus Let us test the problem of Example 1 (calling on cell-phone while driving) at 5% level of significance. Here we consider H 0 : p = 0.12, H a : p > In our sample 19 of 100 drivers were on cell-phone. The TI 83/84 Plus output gives us: Alternative hypothesis (H a ) Value of test-statistic p-value Value of sample proportion Sample size Since p-value = and α = 0.05, we reject H 0 at 5% level of significance, because p-value < α. Note that we would not have rejected H 0 if α =

Test of 1-proportion with TI 83/84 Plus Let us test the problem of Example 1 (calling on cell-phone while driving) at 5% level of significance. Here we consider H 0 : p = 0.12, H a : p > In our sample 19 of 100 drivers were on cell-phone. The TI 83/84 Plus output gives us: Alternative hypothesis (H a ) Value of test-statistic p-value Value of sample proportion Sample size 23

Example 2 24

Example 3 25

Tests for population mean 26

27

28

29 Alternative hypothesis Rejection region One-sided test (right) One-sided test (left) Two-sided test

30 Facebook Example

31 Facebook Example In Facebook Example: H 0 : µ = 130, H a : µ ≠ 130. In our sample n = 82, mean = , std. dev. = Let us test at 5% level of significance (i.e. α = 0.05). The TI 83/84 Plus output gives us: Alternative hypothesis (H a ) Test statistic p-value Sample mean Sample size 31

32

33 Alternative hypothesis Rejection region One-sided test (right) One-sided test (left) Two-sided test

Example 4 34

35 Alternative hypothesis Rejection region One-sided test (right) One-sided test (left) Two-sided test

36 Example 5 Alternative hypothesis (H a ) Test statistic p-value Sample mean Sample standard deviation Sample size 36

Remark 37