Hypothesis Testing.

Slides:



Advertisements
Similar presentations
“Students” t-test.
Advertisements

Hypothesis Testing. To define a statistical Test we 1.Choose a statistic (called the test statistic) 2.Divide the range of possible values for the test.
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 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.
Fundamentals of Hypothesis Testing. Identify the Population Assume the population mean TV sets is 3. (Null Hypothesis) REJECT Compute the Sample Mean.
Hypothesis Testing After 2 hours of frustration trying to fill out an IRS form, you are skeptical about the IRS claim that the form takes 15 minutes on.
1/55 EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008 Chapter 10 Hypothesis Testing.
Pengujian Hipotesis Nilai Tengah Pertemuan 19 Matakuliah: I0134/Metode Statistika Tahun: 2007.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 8-1 Business Statistics: A Decision-Making Approach 6 th Edition Chapter.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Basic Business Statistics.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 9 Hypothesis Testing: Single.
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 8 Introduction to Hypothesis Testing
BCOR 1020 Business Statistics
Chapter 10 Hypothesis Testing
Confidence Intervals and Hypothesis Testing - II
1 © Lecture note 3 Hypothesis Testing MAKE HYPOTHESIS ©
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.
Fundamentals of Hypothesis Testing: One-Sample Tests
Week 8 Fundamentals of Hypothesis Testing: One-Sample Tests
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:
Introduction to Hypothesis Testing: One Population Value Chapter 8 Handout.
One-Sample Tests of Hypothesis
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.
One-Sample Tests of Hypothesis. Hypothesis and Hypothesis Testing HYPOTHESIS A statement about the value of a population parameter developed for the purpose.
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.
Economics 173 Business Statistics Lecture 4 Fall, 2001 Professor J. Petry
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
Statistical Inference Making decisions regarding the population base on a sample.
Introduction Suppose that a pharmaceutical company is concerned that the mean potency  of an antibiotic meet the minimum government potency standards.
Statistical Inference Making decisions regarding the population base on a sample.
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 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.
Hypothesis Testing. A statistical Test is defined by 1.Choosing a statistic (called the test statistic) 2.Dividing the range of possible values for the.
Statistical Inference Making decisions regarding the population base on a sample.
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 Nine Hypothesis Testing.
Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests
Module 10 Hypothesis Tests for One Population Mean
Statistics for Managers Using Microsoft® Excel 5th Edition
One-Sample Tests of Hypothesis
Pertemuan 17 Pengujian Hipotesis
FINAL EXAMINATION STUDY MATERIAL III
Hypothesis Tests Regarding a Parameter
Statistics for Managers using Excel 3rd Edition
Example: Propellant Burn Rate
Hypothesis Testing: Hypotheses
One-Sample Tests of Hypothesis
CONCEPTS OF HYPOTHESIS TESTING
Introduction to Inference
Introduction to Inference
Chapter Nine Part 1 (Sections 9.1 & 9.2) Hypothesis Testing
Hypothesis Tests for Proportions
Hypothesis Testing.
Hypothesis Testing A hypothesis is a claim or statement about the value of either a single population parameter or about the values of several population.
Statistical Inference
One-Sample Tests of Hypothesis
Confidence Intervals.
Statistical Hypotheses Testing
Chapter 9 Hypothesis Testing: Single Population
The z-test for the Mean of a Normal Population
STA 291 Spring 2008 Lecture 17 Dustin Lueker.
Presentation transcript:

Hypothesis Testing

A statistical Test is defined by Choosing a statistic (called the test statistic) Dividing the range of possible values for the test statistic into two parts The Acceptance Region The Critical Region

To perform a statistical Test we Collect the data. Compute the value of the test statistic. Make the Decision: If the value of the test statistic is in the Acceptance Region we decide to accept H0 . If the value of the test statistic is in the Critical Region we decide to reject H0 .

You can compare a statistical test to a meter Value of test statistic Acceptance Region Critical Region Critical Region Critical Region is the red zone of the meter

Accept H0 Value of test statistic Acceptance Region Critical Critical

Reject H0 Acceptance Region Value of test statistic Critical Critical

Acceptance Region Critical Region Sometimes the critical region is located on one side. These tests are called one tailed tests.

Once the test statistic is determined, to set up the critical region we have to find the sampling distribution of the test statistic when H0 is true This describes the behaviour of the test statistic when H0 is true

We then locate the critical region in the tails of the sampling distribution of the test statistic when H0 is true a /2 a /2 The size of the critical region is chosen so that the area over the critical region is a.

This ensures that the P[type I error] = P[rejecting H0 when true] = a The size of the critical region is chosen so that the area over the critical region is a.

To find P[type II error] = P[ accepting H0 when false] = b, we need to find the sampling distribution of the test statistic when H0 is false sampling distribution of the test statistic when H0 is false sampling distribution of the test statistic when H0 is true b a /2 a /2

The z-test for Proportions Testing the probability of success in a binomial experiment

Situation A success-failure experiment has been repeated n times The probability of success p is unknown. We want to test H0: p = p0 (some specified value of p) Against HA:

The Data The success-failure experiment has been repeated n times The number of successes x is observed. Obviously if this proportion is close to p0 the Null Hypothesis should be accepted otherwise the null Hypothesis should be rejected.

The Test Statistic To decide to accept or reject the Null Hypothesis (H0) we will use the test statistic If H0 is true we should expect the test statistic z to be close to zero. If H0 is true we should expect the test statistic z to have a standard normal distribution. If HA is true we should expect the test statistic z to be different from zero.

The Standard Normal distribution The sampling distribution of z when H0 is true: The Standard Normal distribution Reject H0 Accept H0

The Acceptance region: Reject H0 Accept H0

Acceptance Region Critical Region With this Choice Accept H0 if: Reject H0 if: With this Choice

Summary To Test for a binomial probability p H0: p = p0 (some specified value of p) Against HA: we Decide on a = P[Type I Error] = the significance level of the test (usual choices 0.05 or 0.01)

Collect the data Compute the test statistic Make the Decision Accept H0 if: Reject H0 if:

Example In the last election the proportion of the voters who voted for the Liberal party was 0.08 (8 %) The party is interested in determining if that percentage has changed A sample of n = 800 voters are surveyed

We want to test H0: p = 0.08 (8%) Against HA:

Summary Decide on a = P[Type I Error] = the significance level of the test Choose (a = 0.05) Collect the data The number in the sample that support the liberal party is x = 92

Compute the test statistic Make the Decision Accept H0 if: Reject H0 if:

Since the test statistic is in the Critical region we decide to Reject H0 Conclude that H0: p = 0.08 (8%) is false There is a significant difference (a = 5%) in the proportion of the voters supporting the liberal party in this election than in the last election

The one tailed z-test A success-failure experiment has been repeated n times The probability of success p is unknown. We want to test H0: (some specified value of p) Against HA: The alternative hypothesis is in this case called a one-sided alternative

The Test Statistic To decide to accept or reject the Null Hypothesis (H0) we will use the test statistic If H0 is true we should expect the test statistic z to be close to zero or negative If p = p0 we should expect the test statistic z to have a standard normal distribution. If HA is true we should expect the test statistic z to be a positive number.

The Standard Normal distribution The sampling distribution of z when p = p0 : The Standard Normal distribution Reject H0 Accept H0

The Acceptance and Critical region: Reject H0 Accept H0

Acceptance Region Critical Region Using the meter analogy a one tailed test is similar to a meter which has the red zone located entirely on one side

The Critical Region is called one-tailed With this Choice Acceptance Region Accept H0 if: Critical Region Reject H0 if: The Critical Region is called one-tailed With this Choice

Example A new surgical procedure is developed for correcting heart defects infants before the age of one month. Previously the procedure was used on infants that were older than one month and the success rate was 91% A study is conducted to determine if the success rate of the new procedure is greater than 91% (n = 200)

We want to test H0: Against HA:

Summary Decide on a = P[Type I Error] = the significance level of the test Choose (a = 0.05) Collect the data The number of successful operations in the sample of 200 cases is x = 187

Compute the test statistic Make the Decision Accept H0 if: Reject H0 if:

Since the test statistic is in the Acceptance region we decide to Accept H0 Conclude that H0: is true There is a no significant (a = 5%) increase in the success rate of the new procedure over the older procedure

Comments When the decision is made to accept H0 is made it should not be conclude that we have proven H0. This is because when setting up the test we have not controlled b = P[type II error] = P[accepting H0 when H0 is FALSE] Whenever H0 is accepted there is a possibility that a type II error has been made.

In the last example The conclusion that there is a no significant (a = 5%) increase in the success rate of the new procedure over the older procedure should be interpreted: We have been unable to proof that the new procedure is better than the old procedure

An analogy – a jury trial The two possible decisions are Declare the accused innocent. Declare the accused guilty.

The null hypothesis (H0) – the accused is innocent The alternative hypothesis (HA) – the accused is guilty

The two possible errors that can be made: Declaring an innocent person guilty. (type I error) Declaring a guilty person innocent. (type II error) Note: in this case one type of error may be considered more serious

Requiring all 12 jurors to support a guilty verdict : Ensures that the probability of a type I error (Declaring an innocent person guilty) is small. However the probability of a type II error (Declaring an guilty person innocent) could be large.

Hence: When decision of innocence is made: It is not concluded that innocence has been proven but that we have been unable to disprove innocence

Value of test statistic Acceptance Region Critical Region In the meter analogy, if the needle is in the acceptance region but close to the critical region then this does not prove that nothing is abnormal

The z-test for the Mean of a Normal Population We want to test, m, denote the mean of a normal population

The situation Data will be coming from a normal population with mean m and standard deviation s. we want to test if the mean, m, is equal to some given value m0.

The Data Let x1, x2, x3 , … , xn denote a sample from a normal population with mean m and standard deviation s. Let we want to test if the mean, m, is equal to some given value m0. Obviously if the sample mean is close to m0 the Null Hypothesis should be accepted otherwise the null Hypothesis should be rejected.

The Test Statistic To decide to accept or reject the Null Hypothesis (H0) we will use the test statistic If H0 is true we should expect the test statistic z to be close to zero. If H0 is true we should expect the test statistic z to have a standard normal distribution. If HA is true we should expect the test statistic z to be different from zero.

The Standard Normal distribution The sampling distribution of z when H0 is true: The Standard Normal distribution Reject H0 Accept H0

The Acceptance region: Reject H0 Accept H0

Acceptance Region Critical Region With this Choice Accept H0 if: Reject H0 if: With this Choice

Summary To Test the mean m of a Normal population H0: m = m0 (some specified value of m) Against HA: Decide on a = P[Type I Error] = the significance level of the test (usual choices 0.05 or 0.01)

Collect the data Compute the test statistic Make the Decision Accept H0 if: Reject H0 if:

Example A manufacturer Glucosamine capsules claims that each capsule contains on the average: 500 mg of glucosamine To test this claim n = 40 capsules were selected and amount of glucosamine (X) measured in each capsule. Summary statistics:

We want to test: Manufacturers claim is correct against Manufacturers claim is not correct

The Test Statistic

The Critical Region and Acceptance Region Using a = 0.05 za/2 = z0.025 = 1.960 We accept H0 if -1.960 ≤ z ≤ 1.960 reject H0 if z < -1.960 or z > 1.960

The Decision Since z= -2.75 < -1.960 We reject H0 Conclude: the manufacturers’s claim is incorrect:

The one tailed z-test for the Mean of a Normal Population This test is used when the Alternative Hypothesis is one sided

The situation We want to test The alternative hypothesis is sometimes called the research Hypothesis It coincides with the hypothesis what the researcher is trying to prove

The Test Statistic To decide to accept or reject the Null Hypothesis (H0) we will use the test statistic

The critical region If we are testing The alternative hypothesis is sometimes called the research Hypothesis It coincides with the hypothesis what the researcher is trying to prove

The critical region If we are testing Reject H0 if z > za a za

If we are testing Reject H0 if z < -za a -za