Introduction to Hypothesis Testing

Slides:



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

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)
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.
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 11 Introduction to Hypothesis Testing.
Hypothesis Testing: One Sample Mean or Proportion
Introduction to Hypothesis Testing
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)
Pengujian Hipotesis Nilai Tengah Pertemuan 19 Matakuliah: I0134/Metode Statistika Tahun: 2007.
Introduction to Hypothesis Testing
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 9-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 11 Introduction to Hypothesis Testing.
Chapter 8 Introduction to Hypothesis Testing
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.
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.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 9 Hypothesis Testing: Single.
8-2 Basics of Hypothesis Testing
Ch 11 實習 (2).
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 8-1 Chapter 8 Fundamentals of Hypothesis Testing: One-Sample Tests Statistics.
BCOR 1020 Business Statistics Lecture 20 – April 3, 2008.
Ch. 9 Fundamental of Hypothesis Testing
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.
Statistics for Managers Using Microsoft® Excel 5th Edition
Type II Error, Power and Sample Size Calculations
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 11 Introduction to Hypothesis Testing.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 9 Hypothesis Testing.
1 Economics 173 Business Statistics Lectures 3 & 4 Summer, 2001 Professor J. Petry.
Chapter 10 Hypothesis Testing
Overview Definition Hypothesis
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.
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,
Fundamentals of Hypothesis Testing: One-Sample Tests
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap th Lesson Introduction to Hypothesis Testing.
Section 10.1 ~ t Distribution for Inferences about a Mean Introduction to Probability and Statistics Ms. Young.
Week 8 Fundamentals of Hypothesis Testing: One-Sample Tests
1 1 Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University © 2002 South-Western/Thomson Learning.
Chapter 10 Hypothesis Testing
Chapter 4 Introduction to Hypothesis Testing Introduction to 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
Copyright © 2009 Cengage Learning Chapter 11 Introduction to Hypothesis Testing.
Statistical Hypotheses & Hypothesis Testing. Statistical Hypotheses There are two types of statistical hypotheses. Null Hypothesis The null hypothesis,
1 Required Sample Size, Type II Error Probabilities Chapter 23 Inference for Means: Part 2.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 8-1 Chapter 8 Fundamentals of Hypothesis Testing: One-Sample Tests Statistics.
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
Chapter 11 Introduction to Hypothesis Testing Sir Naseer Shahzada.
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.
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.
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Basic Business Statistics.
Ch 11 實習 (2).
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.
Chapter 9 Hypothesis Testing Understanding Basic Statistics Fifth Edition By Brase and Brase Prepared by Jon Booze.
Hypothesis Testing Chapter Hypothesis Testing  Developing Null and Alternative Hypotheses  Type I and Type II Errors  One-Tailed Tests About.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 9 Hypothesis Testing: Single.
Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests
Pertemuan 17 Pengujian Hipotesis
Keller: Stats for Mgmt & Econ, 7th Ed Hypothesis Testing
Ch 11 實習 (2).
Presentation transcript:

Introduction to Hypothesis Testing Chapter 11 Introduction to Hypothesis Testing

Developing Null and Alternative Hypotheses Hypothesis testing can be used to determine whether a statement about the value of a population parameter should or should not be rejected. The null hypothesis, denoted by H0 , is a tentative assumption about a population parameter. The alternative hypothesis, denoted by H1, is the opposite of what is stated in the null hypothesis. Hypothesis testing is similar to a criminal trial. The hypotheses are: H0: The defendant is innocent H1: The defendant is guilty

A Summary of Forms for Null and Alternative Hypotheses about a Population Mean The equality part of the hypotheses always appears in the null hypothesis. In general, a hypothesis test about the value of a population mean  must take one of the following three forms (where 0 is the hypothesized value of the population mean). H0:  > 0 H0:  < 0 H0:  = 0 H1:  < 0 H1:  > 0 H1:  0

Concepts of Hypothesis Testing The critical concepts of hypothesis testing. Example: An operation manager needs to determine if the mean demand during lead time is greater than 350. If so, changes in the ordering policy are needed. There are two hypotheses about a population mean: H0: The null hypothesis m = 350 H1: The alternative hypothesis m > 350 This is what you want to prove

Concepts of Hypothesis Testing Assume the null hypothesis is true (m= 350). m = 350 Sample from the demand population, and build a statistic related to the parameter hypothesized (the sample mean). Pose the question: How probable is it to obtain a sample mean at least as extreme as the one observed from the sample, if H0 is correct?

Concepts of Hypothesis Testing Assume the null hypothesis is true (m= 350). m = 350 Since the is much larger than 350, the mean m is likely to be greater than 350. Reject the null hypothesis. In this case the mean m is not likely to be greater than 350. Do not reject the null hypothesis.

Types of Errors Two types of errors may occur when deciding whether to reject H0 based on the statistic value. Type I error: Reject H0 when it is true. Type II error: Do not reject H0 when it is false. Example continued Type I error: Reject H0 (m = 350) in favor of H1 (m > 350) when the real value of m is 350. Type II error: Believe that H0 is correct (m = 350) when the real value of m is greater than 350.

Type I and Type II Errors Since hypothesis tests are based on sample data, we must allow for the possibility of errors. The person conducting the hypothesis test specifies the maximum allowable probability of making a Type I error, denoted by  and called the level of significance. Generally, we cannot control for the probability of making a Type II error, denoted by . Statistician avoids the risk of making a Type II error by using “do not reject H0” and not “accept H0”.

Decision Table for Hypothesis Testing ( ) Null True Null False Fail to reject null Correct Decision Type II error  Reject null Type I error  Correct Decision (Power) 9

Controlling the probability of conducting a type I error Recall: H0: m = 350 and H1: m > 350. H0 is rejected if is sufficiently large Thus, a type I error is made if when m = 350. By properly selecting the critical value we can limit the probability of conducting a type I error to an acceptable level. Critical value m = 350

Steps in Hypothesis Testing 1. Establish hypotheses: state the null and alternative hypotheses. 2. Determine the appropriate statistical test and sampling distribution. 3. Specify the Type I error rate ( 4. State the decision rule. 5. Gather sample data. 6. Calculate the value of the test statistic. 7. State the statistical conclusion. 8. Make a managerial decision. 4

Testing the Population Mean When the Population Standard Deviation is Known Example A new billing system for a department store will be cost- effective only if the mean monthly account is more than $170. A sample of 400 accounts has a mean of $178. If accounts are approximately normally distributed with s = $65, can we conclude that the new system will be cost effective?

Testing the Population Mean (s is Known) Example 11.1 – Solution The population of interest is the credit accounts at the store. We want to know whether the mean account for all customers is greater than $170. H1 : m > 170 The null hypothesis must specify a single value of the parameter m, H0 : m = 170

Approaches to Testing There are two approaches to test whether the sample mean supports the alternative hypothesis (H1) The rejection region method is mandatory for manual testing (but can be used when testing is supported by a statistical software) The p-value method which is mostly used when a statistical software is available.

The Rejection Region Method The rejection region is a range of values such that if the test statistic falls into that range, the null hypothesis is rejected in favor of the alternative hypothesis.

The Rejection Region Method for a Right - Tail Test Example 11.1 – solution continued Define a critical value for that is just large enough to reject the null hypothesis. Reject the null hypothesis if

Determining the Critical Value for the Rejection Region Allow the probability of committing a Type I error be a (also called the significance level). Find the value of the sample mean that is just large enough so that the actual probability of committing a Type I error does not exceed a. Watch…

Determining the Critical Value – for a Right – Tail Test Example – solution continued a P(commit a Type I error) = P(reject H0 given that H0 is true) = P( given that H0 is true) … is allowed to be a. we have:

Determining the Critical Value – for a Right – Tail Test Example – solution continued a = 0.05

Determining the Critical value for a Right - Tail Test Conclusion Since the sample mean (178) is greater than the critical value of 175.34, there is sufficient evidence to infer that the mean monthly balance is greater than $170 at the 5% significance level.

The standardized test statistic Instead of using the statistic , we can use the standardized value z. Then, the rejection region becomes One tail test

The standardized test statistic Example - continued We redo this example using the standardized test statistic. Recall: H0: m = 170 H1: m > 170 Test statistic: Rejection region: z > z.05 = 1.645.

The standardized test statistic Example - continued Conclusion Since Z = 2.46 > 1.645, reject the null hypothesis in favor of the alternative hypothesis.

P-value Method The p-value provides information about the amount of statistical evidence that supports the alternative hypothesis. The p-value of a test is the probability of observing a test statistic at least as extreme as the one computed, given that the null hypothesis is true. Let us demonstrate the concept on Example

P-value Method The probability of observing a test statistic at least as extreme as 178, given that m = 170 is… The p-value

Example 1 Calculate the value of the test statistic, set up the rejection region, determine the p-value, interpret the result, and draw the sampling distribution.

Solution

如何利用Excel查出標準常態分配機率值 標準常態分配(Normal distribution) -> Using插入>fx函數>選取類別(統計)>NORMSDIST 為標準常態分配累積機率值 ->Using插入>fx函數>選取類別(統計)>NORMSINV 求標準常態分配下,給定累積機率反求Z値

Example 2 A random sample of 18 young adult men (20-30 years old) was sampled. Each person was asked how many minutes of sports they watched on television daily. The responses are listed here. It is known that =12. Test to determine at the 5% significance level whether there is enough statistical evidence to infer that the mean amount of television watched daily by all young adult men is greater than 50 minutes 55 60 65 74 66 37 45 68 64 65 58 55 52 63 59 57 74 65

Solution 3.57

A Two - Tail Test Example 11.2 AT&T has been challenged by competitors who argued that their rates resulted in lower bills. A statistics practitioner determines that the mean and standard deviation of monthly long-distance bills for all AT&T residential customers are $17.09 and $3.87 respectively.

A Two - Tail Test Example 11.2 - continued A random sample of 100 customers is selected and customers’ bills recalculated using a leading competitor’s rates (see Xm11-02). Assuming the standard deviation is the same (3.87), can we infer that there is a difference between AT&T’s bills and the competitor’s bills (on the average)?

A Two - Tail Test Solution Is the mean different from 17.09? H0: m = 17.09 Define the rejection region

A Two – Tail Test Solution - continued a/2 = 0.025 a/2 = 0.025 17.09 We want this erroneous rejection of H0 to be a rare event, say 5% chance. If H0 is true (m =17.09), can still fall far above or far below 17.09, in which case we erroneously reject H0 in favor of H1

A Two – Tail Test Solution - continued From the sample we have: 17.55 a/2 = 0.025 17.09 a/2 = 0.025 -za/2 = -1.96 za/2 = 1.96 Rejection region

A Two – Tail Test There is insufficient evidence to infer that there is a difference between the bills of AT&T and the competitor. Also, by the p value approach: The p-value = P(Z< -1.19)+P(Z >1.19) = 2(.1173) = .2346 > .05 a/2 = 0.025 a/2 = 0.025 -1.19 1.19 -za/2 = -1.96 za/2 = 1.96

Example 3

Solution

Calculation of the Probability of a Type II Error To calculate Type II error we need to… express the rejection region directly, in terms of the parameter hypothesized (not standardized). specify the alternative value under H1. Let us revisit Example 11.1

Calculation of the Probability of a Type II Error Express the rejection region directly, not in standardized terms Let us revisit Example 11.1 The rejection region was with a = .05. Let the alternative value be m = 180 (rather than just m>170) H0: m = 170 H1: m = 180 a=.05 m= 170 m=180 Specify the alternative value under H1. Do not reject H0

Calculation of the Probability of a Type II Error A Type II error occurs when a false H0 is not rejected. A false H0… H0: m = 170 …is not rejected H1: m = 180 a=.05 m= 170 m=180

Calculation of the Probability of a Type II Error H0: m = 170 H1: m = 180 m=180 m= 170

Example 4

Solution

Example 5

Solution

Effects on b of changing a Decreasing the significance level a, increases the value of b, and vice versa. a2 > b2 < a1 b1 m= 170 m=180

Judging the Test A hypothesis test is effectively defined by the significance level a and by the sample size n. If the probability of a Type II error b is judged to be too large, we can reduce it by increasing a, and/or increasing the sample size.

Judging the Test Increasing the sample size reduces b By increasing the sample size the standard deviation of the sampling distribution of the mean decreases. Thus, decreases.

Judging the Test Increasing the sample size reduces b Note what happens when n increases: a does not change, but b becomes smaller m=180 m= 170

Judging the Test Power of a test The power of a test is defined as 1 - b. It represents the probability of rejecting the null hypothesis when it is false.

Example 6

Solution