BCOR 1020 Business Statistics Lecture 21 – April 8, 2008.

Slides:



Advertisements
Similar presentations
Tests of Hypotheses Based on a Single Sample
Advertisements

Hypothesis testing Another judgment method of sampling data.
Chapter 9 Hypothesis Testing Understandable Statistics Ninth Edition
10- 1 Chapter Ten McGraw-Hill/Irwin © 2005 The McGraw-Hill Companies, Inc., All Rights Reserved.
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.
Introduction to Hypothesis Testing
Fundamentals of Hypothesis Testing. Identify the Population Assume the population mean TV sets is 3. (Null Hypothesis) REJECT Compute the Sample Mean.
BCOR 1020 Business Statistics Lecture 22 – April 10, 2008.
1/55 EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008 Chapter 10 Hypothesis Testing.
Lecture 2: Thu, Jan 16 Hypothesis Testing – Introduction (Ch 11)
BCOR 1020 Business Statistics
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 8-1 Business Statistics: A Decision-Making Approach 6 th Edition Chapter.
Fall 2006 – Fundamentals of Business Statistics 1 Chapter 8 Introduction to Hypothesis Testing.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 9 Hypothesis Testing: Single.
Inferences About Process Quality
BCOR 1020 Business Statistics Lecture 18 – March 20, 2008.
Chapter 9 Hypothesis Testing.
BCOR 1020 Business Statistics Lecture 20 – April 3, 2008.
Chapter 8 Introduction to Hypothesis Testing
BCOR 1020 Business Statistics
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 8-1 TUTORIAL 6 Chapter 10 Hypothesis Testing.
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.
AM Recitation 2/10/11.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 9 Hypothesis Testing.
Chapter 10 Hypothesis Testing
Overview Definition Hypothesis
Confidence Intervals and Hypothesis Testing - II
Fundamentals of Hypothesis Testing: One-Sample Tests
1/2555 สมศักดิ์ ศิวดำรงพงศ์
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap th Lesson Introduction to Hypothesis Testing.
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.
Chapter 10 Hypothesis Testing
1 Introduction to Hypothesis Testing. 2 What is a Hypothesis? A hypothesis is a claim A hypothesis is a claim (assumption) about a population parameter:
Lecture 7 Introduction to Hypothesis Testing. Lecture Goals After completing this lecture, you should be able to: Formulate null and alternative hypotheses.
LECTURE 19 THURSDAY, 14 April STA 291 Spring
STEP BY STEP Critical Value Approach to Hypothesis Testing 1- State H o and H 1 2- Choose level of significance, α Choose the sample size, n 3- Determine.
Chapter 9 Tests of Hypothesis Single Sample Tests The Beginnings – concepts and techniques Chapter 9A.
Statistical Hypotheses & Hypothesis Testing. Statistical Hypotheses There are two types of statistical hypotheses. Null Hypothesis The null hypothesis,
EMIS 7300 SYSTEMS ANALYSIS METHODS FALL 2005 Dr. John Lipp Copyright © Dr. John Lipp.
Introduction to Inferece BPS chapter 14 © 2010 W.H. Freeman and Company.
1 Chapter 9 Hypothesis Testing. 2 Chapter Outline  Developing Null and Alternative Hypothesis  Type I and Type II Errors  Population Mean: Known 
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 8 Hypothesis Testing.
Chap 8-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition Chapter 8 Introduction to Hypothesis.
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
1 9 Tests of Hypotheses for a Single Sample. © John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger. 9-1.
Statistical Inference for the Mean Objectives: (Chapter 9, DeCoursey) -To understand the terms: Null Hypothesis, Rejection Region, and Type I and II errors.
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
Chapter 9: Testing Hypotheses Overview Research and null hypotheses One and two-tailed tests Type I and II Errors Testing the difference between two means.
Business Statistics for Managerial Decision Farideh Dehkordi-Vakil.
STEP BY STEP Critical Value Approach to Hypothesis Testing 1- State H o and H 1 2- Choose level of significance, α Choose the sample size, n 3- Determine.
© Copyright McGraw-Hill 2004
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
MATB344 Applied Statistics I. Experimental Designs for Small Samples II. Statistical Tests of Significance III. Small Sample Test Statistics Chapter 10.
Chapter 10 Section 5 Chi-squared Test for a Variance or Standard Deviation.
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.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 8 th Edition Chapter 9 Hypothesis Testing: Single.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 7 Inferences Concerning Means.
Chapter 9 Hypothesis Testing Understanding Basic Statistics Fifth Edition By Brase and Brase Prepared by Jon Booze.
4-1 Statistical Inference Statistical inference is to make decisions or draw conclusions about a population using the information contained in a sample.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 9 Hypothesis Testing: Single.
Chapter 9 Hypothesis Testing.
Chapter 8 Hypothesis Testing with Two Samples.
Hypothesis Testing: Hypotheses
Introduction to Inference
Chapter 9 Hypothesis Testing.
Introduction to Inference
Presentation transcript:

BCOR 1020 Business Statistics Lecture 21 – April 8, 2008

Overview Chapter 9 – Hypothesis Testing –Testing a Mean (  ): Population Variance (  ) Unknown –Type I and Type II Errors – Power

Chapter 9 – Testing a Mean (  unknown) Hypothesis Tests on  (  unknown): If we wish to test a hypothesis about the mean of a population when  is not assumed to be known, we will follow the same logic as with our previous Z tests… –Specify the level of significance,  (given in problem or assume 5%). –State the null and alternative hypotheses, H 0 and H 1 (based on the problem statement). –Compute the test statistic and determine its distribution under H 0. –State the decision criteria (based on the hypotheses and distribution of the test statistic under H 0 ). –State your decision.

Chapter 9 – Testing a Mean (  unknown) Selection of H 0 and H 1 : Remember, the conclusion we wish to test should be stated in the alternative hypothesis. Based on the problem statement, we choose from… (i)H 0 :  >  0 H 1 :  <  0 (ii) H 0 :  <  0 H 1 :  >  0 (iii) H 0 :  =  0 H 1 :   0 where  0 is the null hypothesized value of  (based on the problem statement).

Chapter 9 – Testing a Mean (  unknown) Test Statistic: Start with the point estimate of , Recall that for a sample from a normal population with an unknown standard deviation, we can estimate  with the sample standard deviation If H 0 is true and the population from which we are sampling is normal, then the test statistic has the student’s t distribution with = (n – 1) degrees of freedom.

Chapter 9 – Testing a Mean (  unknown) Decision Criteria: Just as with previously discussed hypothesis tests, our decision criteria will consist of comparing our test statistic to an appropriate critical point in the student’s t distribution with n – 1 d.f. (the distribution of T* under H 0 ). (i)For the hypothesis test H 0 :  >  0 vs. H 1 :  <  0, we will reject H 0 in favor of H 1 if T* < – t  n . (ii) For the hypothesis test H 0 :   0, we will reject H 0 in favor of H 1 if T* > t  n . (iii) For the hypothesis test H 0 :  =  0 vs. H 1 :   0, we will reject H 0 in favor of H 1 if |T*| > t  /2,n–1.

Chapter 9 – Testing a Mean (  unknown) Example: An internet business would like to determine the average income of its customers. In a random sample of 10 customers, the following incomes are reported (in thousands of dollars): 50, 65, 32, 48, 60, 52, 85, 90, 105, 68 Test the appropriate hypothesis to determine whether the mean income of this companies customers exceeds $50,000 at the 10% level of significance.

Chapter 9 – Testing a Mean (  unknown) Example (continued): We are hoping to determine whether  > $50,000. We know: The appropriate null and alternative hypotheses are (ii) H 0 :  . We calculate our test statistic (T* since  is unknown and we are using its estimate, S). T* has the student’s t distribution with = (n – 1) = 9 degrees of freedom.

t.10,9 = Chapter 9 – Testing a Mean (  unknown) Example (continued): Our decision criteria is: (ii) For the hypothesis test H 0 :   0, we will reject H 0 in favor of H 1 if T* > t ,n-1. Since T* = > t ,n-1 = 1.383, we reject H 0 in favor of H 1 :  > $50,000. Based on the observed data, there is statistically significant evidence that the mean customer income exceeds $50,000.

T* = Chapter 9 – Testing a Mean (  unknown) Example (continued): Using Megastat, we can calculate an exact p-value for this test based on the data: p-value = P(t ,9 > 2.194) = Interpretation: If we were to reject H 0 based on the observed data, there is less than a 3% chance we would be making a type I error. Since this is smaller than  = 10%, we will reject H 0.

Problem: Testing A Hypothesis on a Mean (  Unknown) In an effort to get a loan, a clothing retailer has made the claim that the average daily sales at her store exceeds $7500. Suppose we have no information about the true value of the standard deviation, . In a randomly selected sample of 24 days sales data, the average daily sales were found to be = $7900 with a standard deviation of S = $1500. At the 10% level of significance, conduct the appropriate hypothesis test to determine whether the data supports the retailer’s claim. Include the following: –State the level of significance, . –State the null and alternative hypotheses, H 0 and H 1. –Compute the test statistic –State the decision criteria –State your decision (Overhead)

Problem: Testing A Hypothesis on a Mean (  Unknown) Work:  = H 0 : H 1 : Test Statistic (and Distribution under H 0 )… Decision Criteria… Decision…

Clickers What are the appropriate null and alternative hypotheses? (C) H 0 :  >  H 1 :  <  (B) H 0 :  <  H 1 :  >  (A) H 0 :  =  H 1 :  

Clickers What is the calculated value of your test statistic? (A) T* = (B) T* = (C) T* = (D) T* = 1.963

Clickers What is your decision criteria? (A) Reject H 0 if T* > (B) Reject H 0 if T* > (C) Reject H 0 if T* > (D) Reject H 0 if T* > 1.960

Clickers What is your decision? (A) Reject H 0 in favor of H 1 (B) Fail to reject (Accept) H 0 in favor of H 1 (C) There is not enough information

Problem: Testing A Hypothesis on a Mean (  Unknown) Conclusion: Since our test statistic T* = is not greater than t  = 1.319, we will fail to reject H 0 in favor of H 1 :  > $7500. Based on the data in this sample, there is not statistically significant evidence that the average daily sales at her store exceeds $7500. What is the p-value in a T Test? –We can bound it using the t-table (n – 1 d.f. row). –For this problem t.15,23 = < T* < t.10,23 = –So, 0.10 < p-value < –If we reject H 0 based on this sample, the probability of a type I error is between 10% and 15%.

Chapter 9 – Type I & Type II Errors Type II Error: , the probability of a type II error, is the probability that the test statistic falls in the acceptance region even though H 0 is false.  = P(fail to reject H 0 | H 0 is false)  cannot be chosen in advance because it depends on  and the sample size. A small  is desirable, other things being equal.

Chapter 9 – Type I & Type II Errors Power of a Test: The power of a test is the probability that a false hypothesis will be rejected. Power = 1 –  A low  risk means high power. Larger samples lead to increased power. Power = P(reject H 0 | H 0 is false) = 1 – 

Chapter 9 – Type I & Type II Errors Relationship Between  and  : Both a small  and a small  are desirable. For a given type of test and fixed sample size, there is a trade-off between  and . The larger critical value needed to reduce  risk makes it harder to reject H 0, thereby increasing  risk. Both  and  can be reduced simultaneously only by increasing the sample size.

Chapter 9 – Type I & Type II Errors Power depends on how far the true value of the parameter is from the null hypothesis value. The further away the true population value is from the assumed value, the easier it is for your hypothesis test to detect and the more power it has. Remember that Power Curves for a Mean:  = P(fail to reject H 0 | H 0 is false) Power = P(reject H 0 | H 0 is false) = 1 – 

Chapter 9 – Type I & Type II Errors We want power to be as close to 1 as possible. The values of  and power will vary, depending on - the difference between the true mean  and the hypothesized mean  0, - the standard deviation, - the sample size n and - the level of significance  Power = f (  –  0, , n,  ) Power Curves for a Mean:

Chapter 9 – Type I & Type II Errors We can get more power by increasing , but we would then increase the probability of a type I error. A better way to increase power is to increase the sample size n. Power Curves for a Mean:

Chapter 9 – Type I & Type II Errors Calculating Power: We will start by calculating the Type II error of our hypothesis test. In order to do this, we need to know (or assume) the true value of the parameter if, in fact, the Alternative hypothesis is true. Consider the test where H 1 :  >  0 … H 0 :  <  0 H 1 :  >  0 ; specifically,  =  a =  0 +   is the difference between the null hypothesized value and the true value of the mean.

Chapter 9 – Type I & Type II Errors Calculating Power: Details of the calculation by hand…

Chapter 9 – Type I & Type II Errors Calculating Power: For the “>” alternative hypothesis… We can follow a similar process to find formulas for Type II error for the other two alternatives as well.

Chapter 9 – Type I & Type II Errors Calculating Power: For either the “ ” alternative hypotheses… For the “ ” alternative hypothesis… Where  = |  0 –  a | is the magnitude of the difference between the null hypothesized value and the true value. Power = 1 - 

Chapter 9 – Type I & Type II Errors We can use these equations to determine sample size requirements for specified values of  and . For either the “ ” alternative hypotheses… For the “ ” alternative hypothesis… Always round up.

Chapter 9 – Type I & Type II Errors Example… In an effort to get a loan, a clothing retailer has made the claim that the average daily sales at her store exceeds $7500. Historical data suggests that the purchase amount is normally distributed with a standard deviation of  = $1500. In a randomly selected sample of 24 days sales data, the average daily sales were found to be $7900. A hypothesis test is conducted to determine whether the data supports the retailer’s claim at the 10% level. Find the power of this test if the true average daily sales are $8000.

Chapter 9 – Type I & Type II Errors Example (continued)…  = 0.10; Z  = Z.10 =  = |  0 –  a | = |$ $8000| = $500  = $1500 n = 24 Power = 1 –  = There is an approximately 64% chance that this test will correctly identify that the mean exceeds $7500 by $500.

Chapter 9 – Type I & Type II Errors Example (continued)… If we would like to increase the power to 75%, how large should our sample be (all other things being equal)?  = 0.10; Z  = Z.10 =  = 0.25; Z  = Z.25 =  = |  0 –  a | = |$ $8000| = $500  = $1500

Clickers Suppose you are testing the hypothesis H 0 :  > 80 vs. H 1 :  < 80. Which of the following probability statements correspond to the Power of the test? Reject H 0 when H 0 False – Correct Decision! POWER Reject H 0 when H 0 True – Type I Error! Fail to reject H 0 when H 0 False – Type II Error! Fail to reject H 0 when H 0 True – Correct Decision! 90 seconds…