Math 3680 Lecture #13 Hypothesis Testing: The z Test.

Slides:



Advertisements
Similar presentations
Chapter 7 Hypothesis Testing
Advertisements

Anthony Greene1 Simple Hypothesis Testing Detecting Statistical Differences In The Simplest Case:  and  are both known I The Logic of Hypothesis Testing:
Chapter 12 Tests of Hypotheses Means 12.1 Tests of Hypotheses 12.2 Significance of Tests 12.3 Tests concerning Means 12.4 Tests concerning Means(unknown.
1 1 Slide © 2003 South-Western/Thomson Learning™ Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 Slide STATISTICS FOR BUSINESS AND ECONOMICS Seventh Edition AndersonSweeneyWilliams Slides Prepared by John Loucks © 1999 ITP/South-Western College.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 9 Hypothesis Testing Developing Null and Alternative Hypotheses Developing Null and.
Chapter 10 Section 2 Hypothesis Tests for a Population Mean
Testing Hypotheses About Proportions Chapter 20. Hypotheses Hypotheses are working models that we adopt temporarily. Our starting hypothesis is called.
Class Handout #3 (Sections 1.8, 1.9)
Lecture 2: Thu, Jan 16 Hypothesis Testing – Introduction (Ch 11)
Chapter 8 Introduction to 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.
BCOR 1020 Business Statistics Lecture 21 – April 8, 2008.
8-2 Basics of Hypothesis Testing
8-3 Testing a Claim about a Proportion
Chapter 9 Hypothesis Testing.
BCOR 1020 Business Statistics
Statistics for Managers Using Microsoft® Excel 5th Edition
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.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 9 Hypothesis Testing.
Confidence Intervals and Hypothesis Testing - II
1 Dr. Jerrell T. Stracener EMIS 7370 STAT 5340 Probability and Statistics for Scientists and Engineers Department of Engineering Management, Information.
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Business Statistics,
Hypothesis Testing.
Statistical Techniques I
Fundamentals of Hypothesis Testing: One-Sample Tests
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 20 Testing Hypotheses About Proportions.
Section 9.1 Introduction to Statistical Tests 9.1 / 1 Hypothesis testing is used to make decisions concerning the value of a parameter.
Slide Copyright © 2008 Pearson Education, Inc. Chapter 9 Hypothesis Tests for One Population Mean.
Adapted by Peter Au, George Brown College McGraw-Hill Ryerson Copyright © 2011 McGraw-Hill Ryerson Limited.
1 Power and Sample Size in Testing One Mean. 2 Type I & Type II Error Type I Error: reject the null hypothesis when it is true. The probability of a Type.
Hypothesis Testing: One Sample Cases. Outline: – The logic of hypothesis testing – The Five-Step Model – Hypothesis testing for single sample means (z.
Section 9.2 Testing the Mean  9.2 / 1. Testing the Mean  When  is Known Let x be the appropriate random variable. Obtain a simple random sample (of.
Significance Tests: THE BASICS Could it happen by chance alone?
Statistical Methods 5.
Lesson Testing Claims about a Population Mean Assuming the Population Standard Deviation is Known.
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.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 20 Testing Hypotheses About Proportions.
1 ConceptsDescriptionHypothesis TheoryLawsModel organizesurprise validate formalize The Scientific Method.
Lecture 16 Section 8.1 Objectives: Testing Statistical Hypotheses − Stating hypotheses statements − Type I and II errors − Conducting a hypothesis test.
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.
The z test statistic & two-sided tests Section
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 8 Hypothesis Testing.
Introduction to the Practice of Statistics Fifth Edition Chapter 6: Introduction to Inference Copyright © 2005 by W. H. Freeman and Company David S. Moore.
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
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Overview.
Slide Slide 1 Section 8-4 Testing a Claim About a Mean:  Known.
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.
Fall 2002Biostat Statistical Inference - Proportions One sample Confidence intervals Hypothesis tests Two Sample Confidence intervals Hypothesis.
Hypothesis Testing Errors. Hypothesis Testing Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean.
Business Statistics for Managerial Decision Farideh Dehkordi-Vakil.
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
Understanding Basic Statistics Fourth Edition By Brase and Brase Prepared by: Lynn Smith Gloucester County College Chapter Nine Hypothesis Testing.
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© 1998, Triola, Elementary Statistics by Addison Wesley Longman 1 Testing a Claim about a Mean: Large Samples Section 7-3 M A R I O F. T R I O.
Chapter 12 Tests of Hypotheses Means 12.1 Tests of Hypotheses 12.2 Significance of Tests 12.3 Tests concerning Means 12.4 Tests concerning Means(unknown.
Uncertainty and confidence Although the sample mean,, is a unique number for any particular sample, if you pick a different sample you will probably get.
© 2010 Pearson Prentice Hall. All rights reserved Chapter Hypothesis Tests Regarding a Parameter 10.
Chapter 9 Hypothesis Testing Understanding Basic Statistics Fifth Edition By Brase and Brase Prepared by Jon Booze.
Chapter Nine Hypothesis Testing.
P-values.
Introduction to Hypothesis
Chapter 9 Hypothesis Testing.
Chapter Nine Part 1 (Sections 9.1 & 9.2) Hypothesis Testing
Presentation transcript:

Math 3680 Lecture #13 Hypothesis Testing: The z Test

The One-Sided z Test

Example: Before a design artist was hired to improve its entrance, an average of 3218 people entered a department store daily, with an SD of 287. Since the entrance was redesigned, a simple random sample of 42 days has been studied. The results are shown on the next slide.

Is this statistically significant for indicating that the average number of people entering the store daily has increased?

Note: Don’t compare the difference = 174 with the population standard deviation 287. The former applies to an average, while the latter is for individual days.

There are two possibilities: The average number of people entering has not changed. The observed sample average of 3,392 can be reasonably attributed to chance fluctuations. The difference between the observed average and the expected average is too large to be simply chance. The average number of people entering has increased with the improved entrance.

Definition: Null Hypothesis. The first hypothesis, which asserts simple chance fluctuations, is called the null hypothesis. Definition: Alternative Hypothesis. The second hypothesis, which asserts that the average has in fact increased, is called the alternative hypothesis.

The null hypothesis is the default assumption. This is the assumption to be disproved. For example, if the sample average were 3219 per day, that would hardly be convincing evidence. However, if the new sample average were 5000 per day, we can be confident of the lure of the new storefront – and rule out simple chance. So where is the “cut-off” value?

Solution. H 0 :  = 3218 (The average number of customers entering the store has not changed due to the improved storefront) H a :  > 3218 (The average number of customers entering the store has increased due to the improved storefront) We choose  = 0.05 Before continuing, why isn’t H a written as   3218?

Assuming H 0, we have a sample of 42 days which are being drawn from a box with  = 3218 and  = 287. The average has the following moments:

Test statistic: P-value. Assuming H 0, we must find the chance of obtaining a test statistic at least this extreme. For this problem, that means Conclusion: We reject the null hypothesis. There is good reason to believe that the average number of customers has increased after the redesign.

Excel: Use the command =ZTEST(A1:D11, 3218, 287)

Observations: 1. This test of significance is called the z-test, named after the test statistic. 2. The z-test is best used with large samples – so that the normal approximation may be safely made. 3. Notice we have not proven beyond a shadow of a doubt that the new storefront was effective in increasing the number of patrons.

4. The alternative hypothesis is that the daily average of patrons is greater than It is not that the new average is exactly equal to In other words, the alternative hypothesis was a compound hypothesis, not a simple hypothesis. 5. Small values of P are evidence against the null hypothesis; they indicate that something besides chance is at work. 6. We are NOT saying that there is 1 chance in 20,000 for the null hypothesis to be correct.

Another (equivalent) procedure for hypothesis testing: In the previous problem, if the test statistic was any number greater than 1.645, then we would have obtained a P-value less than 0.05, the specified . (Why?) We call z c = the critical value, and the interval (1.645,  ) is called the rejection region. Since z s lies in the rejection region, we choose to reject H 0. 5%

In terms of the customers, we have the critical value 5%

Another (equivalent) procedure for hypothesis testing: Hypothesis testing may be correctly conducted by using the P-value (the first method) or by using the critical value (as we just discussed). In scientific articles, both are usually reported, even though the two methods are logically equivalent. As we now discuss, the critical value also eases computation of the power of the test.

Example: In the previous example, suppose that the redesign increased the average number of patrons by 100, from 3218 to How likely is it that a sample of only 42 days will come to the correct conclusion (by rejecting the null hypothesis)? Note: Recall that this is called the power of the test.

Solution: recall the critical value: x c = P( Reject H 0 |  = 3318)

Null distribution Alternative distribution 5% 73.05%

Power of the test (1-β) as a function of the true average

Example: The average braking distance from 60 mph of a Mercury Sable is 159 feet, with an SD of 23.5 feet. Sables equipped with (hopefully) improved tires have just undergone early testing; the results of the first 45 tests are shown below. Does this indicate that the new tires have decreased the braking distance? Use  = 0.05.

Example: The Compute the probability  of committing a Type II error if the braking distance with the improved tires is now 155 feet.

Conceptual Questions: 1) We made a test of significance because (choose one) i) We knew what was in the box, but did not know how the sample would turn out; or ii) We knew how the sample turned out, but did not know what was in the box.

Conceptual Questions: 2) The null hypothesis says that the average of the (sample / box) is 159 feet.

Conceptual Questions: 3) True or False: a) The observed significance level of 8% depends on the data (i.e. sample) b) There are 92 chances out of 100 for the alternative hypothesis to be correct.

Conceptual Questions: 4) Suppose only 10 tests were performed instead of 45. Should we use the normal curve to compute P?

Conceptual Questions: 5) True or False: a) A “highly statistically significant” result cannot possibly be due to chance. b) If a sample difference is “highly statistically significant,” there is less than a 1% chance for the null hypothesis to be correct.

Conceptual Questions: 6) True or False: a) If, then the null hypothesis looks plausible. b) If, then the null hypothesis looks implausible. % 43  P %. 0  P

The Two-Sided z Test

Example: A company claims to have designed a new fishing line that has a mean breaking strength of 8 kg with an SD of 0.5 kg. Consumer Reports tests a random sample of 45 lines; the results are shown below. Test the validity of the company’s claim.

Notes: To avoid data snooping, we must use a two-tailed test. Before the tests were actually performed, we had no a priori reason to think that the sample average would return either too high or too low. For a two-sided alternative hypothesis, the P-value is twice as large as for a one-sided alternative.

Example. Let’s take a look at the results of the Salk vaccine trial, which we first saw back in Lecture #2: Does it appear that the vaccine was effective? Note: If the vaccine was ineffective, then we would expect the 199 polio cases to be distributed with  = / = , and the 57 polio cases among the treated was just due to a run of luck.