Chapter 9 Hypothesis Testing

Slides:



Advertisements
Similar presentations
© McGraw-Hill, Bluman, 5th ed., Chapter 8
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)
Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved.
1/55 EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008 Chapter 10 Hypothesis Testing.
HYPOTHESIS TESTS ABOUT THE MEAN AND PROPORTION
© McGraw-Hill, Bluman, 5th ed., Chapter 8
Chapter 9 Hypothesis Testing.
Hypothesis Testing with One Sample
An importer of Herbs and Spices claims that average weight of packets of Saffron is 20 grams. However packets are actually filled to an average weight,
Fundamentals of Hypothesis Testing: One-Sample Tests
1/2555 สมศักดิ์ ศิวดำรงพงศ์
Chapter 8 Hypothesis Testing. Section 8-1: Steps in Hypothesis Testing – Traditional Method Learning targets – IWBAT understand the definitions used in.
Chapter 8 Hypothesis Testing 1.
Hypothesis Testing Introduction
Chapter 10 Section 2 Z Test for Mean 1.
© McGraw-Hill, Bluman, 5th ed., Chapter 8
8.2 z Test for a Mean S.D known
7 Elementary Statistics Hypothesis Testing. Introduction to Hypothesis Testing Section 7.1.
Chapter 9 Large-Sample Tests of Hypotheses
Aim: How do we test hypothesis? HW#6: complete last slide.
Hypothesis Testing with One Sample Chapter 7. § 7.1 Introduction to Hypothesis Testing.
Unit 8 Section : z Test for a Mean  Many hypotheses are tested using the generalized statistical formula: Test value = (Observed Value)-(expected.
McGraw-Hill, Bluman, 7th ed., Chapter 8
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.
Hypothesis Tests for Population Means Section 10-4.
Unit 8 Section 8-1 & : Steps in Hypothesis Testing- Traditional Method  Hypothesis Testing – a decision making process for evaluating a claim.
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Overview.
Unit 8 Section 8-3 – Day : P-Value Method for Hypothesis Testing  Instead of giving an α value, some statistical situations might alternatively.
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.
Aim: How do we use a t-test?
© Copyright McGraw-Hill 2004
Exercise - 1 A package-filling process at a Cement company fills bags of cement to an average weight of µ but µ changes from time to time. The standard.
Sec 8.5 Test for a Variance or a Standard Deviation Bluman, Chapter 81.
Aim: What is the P-value method for hypothesis testing? Quiz Friday.
Understanding Basic Statistics Fourth Edition By Brase and Brase Prepared by: Lynn Smith Gloucester County College Chapter Nine Hypothesis Testing.
Chapter 8 Hypothesis Testing © McGraw-Hill, Bluman, 5th ed., Chapter 8 1.
Hypothesis Testing Chapter 8.
Chapter 10 Section 5 Chi-squared Test for a Variance or Standard Deviation.
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.
Hypothesis Testing. Terminology Hypothesis Testing: A decision making process for evaluating claims about a population. Every situation begins with a.
Chapter Nine Hypothesis Testing.
Hypothesis Testing: One-Sample Inference
Testing the Difference between Means, Variances, and Proportions
Chapter 9 -Hypothesis Testing
Chapter 10 Hypothesis Testing 1.
Statistical Inferences
9.3 Hypothesis Tests for Population Proportions
Hypothesis Tests Large Sample Mean
Confidence Intervals and Sample Size
Unit 8 Section 7.5.
Testing the Difference between Means and Variances
Properties of Normal Distributions
Chapter 9: Inferences Involving One Population
Dr.MUSTAQUE AHMED MBBS,MD(COMMUNITY MEDICINE), FELLOWSHIP IN HIV/AIDS
Chapter 9 Hypothesis Testing: Single Population
Chapters 20, 21 Hypothesis Testing-- Determining if a Result is Different from Expected.
Chapter 5 STATISTICS (PART 3).
Hypothesis Testing: Hypotheses
9 Tests of Hypotheses for a Single Sample CHAPTER OUTLINE
Chapter 9 Hypothesis Testing.
Hypothesis Testing C H A P T E R E I G H T
Chapter Nine Part 1 (Sections 9.1 & 9.2) Hypothesis Testing
HYPOTHESIS TESTS ABOUT THE MEAN AND PROPORTION
Copyright © Cengage Learning. All rights reserved.
Exercise - 1 A package-filling process at a Cement company fills bags of cement to an average weight of µ but µ changes from time to time. The standard.
Chapter 9 Hypothesis Testing: Single Population
Hypothesis Testing 1 Copyright by Winston S. Sirug, Ph.D.
Additional Topics Regarding Hypothesis Testing
Presentation transcript:

Chapter 9 Hypothesis Testing 9-1 Chapter 9 Hypothesis Testing 1 1

Outline 9-1 Introduction 9-2 Steps in Hypothesis Testing 9-3 Large Sample Mean Test 9-4 Small Sample Mean Test 9-5 Proportion Test 2 2 2

Outline 9-6 Variance or Standard Deviation Test 9-3 9-6 Variance or Standard Deviation Test 9-7 Confidence Intervals and Hypothesis Testing 2 3 3

Objectives Understand the definitions used in hypothesis testing. 9-4 Understand the definitions used in hypothesis testing. State the null and alternative hypotheses. Find critical values for the z test. 4 4

Objectives State the five steps used in hypothesis testing. 9-5 State the five steps used in hypothesis testing. Test means for large samples using the z test. Test means for small samples using the t test. 5 5

Objectives Test proportions using the z test. 9-6 Test proportions using the z test. Test variances or standard deviation using the chi-square test. Test hypotheses using confidence intervals. 5 5

9-2 Steps in Hypothesis Testing 9-7 A Statistical hypothesis is a conjecture about a population parameter. This conjecture may or may not be true. The null hypothesis, symbolized by H0, is a statistical hypothesis that states that there is no difference between a parameter and a specific value or that there is no difference between two parameters. 7 7

9-2 Steps in Hypothesis Testing 9-8 The alternative hypothesis, symbolized by H1, is a statistical hypothesis that states a specific difference between a parameter and a specific value or states that there is a difference between two parameters. 8 8

9-2 Steps in Hypothesis Testing - Example 9-9 A medical researcher is interested in finding out whether a new medication will have any undesirable side effects. The researcher is particularly concerned with the pulse rate of the patients who take the medication. 9 9

9-2 Steps in Hypothesis Testing - Example 9-10 What are the hypotheses to test whether the pulse rate will be different from the mean pulse rate of 82 beats per minute? H0: = 82 H1:  82 This is a two-tailed test. 10 10

9-2 Steps in Hypothesis Testing - Example 9-11 A chemist invents an additive to increase the life of an automobile battery. If the mean lifetime of the battery is 36 months, then his hypotheses are H0: 36 H1:  36 This is a right-tailed test. 11 11

9-2 Steps in Hypothesis Testing - Example 9-12 A contractor wishes to lower heating bills by using a special type of insulation in houses. If the average of the monthly heating bills is $78, her hypotheses about heating costs will be H0:  $78 H0:  $78 This is a left-tailed test. 12 12

9-2 Steps in Hypothesis Testing 9-13 A statistical test uses the data obtained from a sample to make a decision about whether or not the null hypothesis should be rejected. 13 13

9-2 Steps in Hypothesis Testing 9-14 The numerical value obtained from a statistical test is called the test value. In the hypothesis-testing situation, there are four possible outcomes. 14 14

9-2 Steps in Hypothesis Testing 9-15 In reality, the null hypothesis may or may not be true, and a decision is made to reject or not to reject it on the basis of the data obtained from a sample. 15 15

9-2 Steps in Hypothesis Testing 9-16 H0 True H0 False Reject H0 Do not reject H0 16 16

9-2 Steps in Hypothesis Testing 9-17 A type I error occurs if one rejects the null hypothesis when it is true. A type II error occurs if one does not reject the null hypothesis when it is false. 17 17

9-2 Steps in Hypothesis Testing 9-18 The level of significance is the maximum probability of committing a type I error. This probability is symbolized by  (Greek letter alpha). That is, P(type I error)=. P(type II error) =  (Greek letter beta). 18 18

9-2 Steps in Hypothesis Testing 9-19 Typical significance levels are: 0.10, 0.05, and 0.01. For example, when  = 0.10, there is a 10% chance of rejecting a true null hypothesis. 19 19

9-2 Steps in Hypothesis Testing 9-20 The critical value(s) separates the critical region from the noncritical region. The symbol for critical value is C.V. 20 20

9-2 Steps in Hypothesis Testing 9-21 The critical or rejection region is the range of values of the test value that indicates that there is a significant difference and that the null hypothesis should be rejected. 21 21

9-2 Steps in Hypothesis Testing 9-22 The noncritical or nonrejection region is the range of values of the test value that indicates that the difference was probably due to chance and that the null hypothesis should not be rejected. 22 22

9-2 Steps in Hypothesis Testing 9-23 A one-tailed test (right or left) indicates that the null hypothesis should be rejected when the test value is in the critical region on one side of the mean. 23 23

9-2 Finding the Critical Value for  = 0.01 (Right-Tailed Test) 9-24 Critical region 0.9900 Noncritical region  = 0.01 0.4900 z = 2.33 24 24

9-2 Finding the Critical Value for  = 0.01 (Left-Tailed Test) 9-25 For a left-tailed test when  = 0.01, the critical value will be –2.33 and the critical region will be to the left of –2.33. 25 25

9-2 Finding the Critical Value for  = 0.01 (Two-Tailed Test) 9-26 In a two-tailed test, the null hypothesis should be rejected when the test value is in either of the two critical regions. 26 26

9-2 Finding the Critical Value for  = 0.01 (Two-Tailed Test) 9-27   = 0.005 Critical region Critical region 0.9900 Noncritical region   = 0.005 z = –2.58 z = 2.58 27 27

9-3 Large Sample Mean Test 9-28 The z test is a statistical test for the mean of a population. It can be used when n  30, or when the population is normally distributed and  is known. The formula for the z test is given on the next slide. 28 28

9-3 Large Sample Mean Test 9-29 X   z   n where X  sample mean   hypothesiz ed population mean   population deviation n  sample size 29 29

9-3 Large Sample Mean Test - Example 9-30 A researcher reports that the average salary of assistant professors is more than $42,000. A sample of 30 assistant professors has a mean salary of $43,260. At  = 0.05, test the claim that assistant professors earn more than $42,000 a year. The standard deviation of the population is $5230. 30 30

9-3 Large Sample Mean Test - Example 9-31 Step 1: State the hypotheses and identify the claim. H0: $42,000 H1:  $42,000 (claim) Step 2: Find the critical value. Since  = 0.05 and the test is a right-tailed test, the critical value is z = +1.65. Step 3: Compute the test value. 31 31

9-3 Large Sample Mean Test - Example 9-32 Step 3: z = [43,260 – 42,000]/[5230/30] = 1.32. Step 4: Make the decision. Since the test value, +1.32, is less than the critical value, +1.65, and not in the critical region, the decision is “Do not reject the null hypothesis.” 32 32

9-3 Large Sample Mean Test - Example 9-33 Step 5: Summarize the results. There is not enough evidence to support the claim that assistant professors earn more on average than $42,000 a year. See the next slide for the figure. 33 33

9-3 Large Sample Mean Test - Example 9-34 1.65 Reject  = 0.05 1.32 34 34

9-3 Large Sample Mean Test - Example 9-35 A national magazine claims that the average college student watches less television than the general public. The national average is 29.4 hours per week, with a standard deviation of 2 hours. A sample of 30 college students has a mean of 27 hours. Is there enough evidence to support the claim at  = 0.01? 35 35

9-3 Large Sample Mean Test - Example 9-36 Step 1: State the hypotheses and identify the claim. H0: 29.4 H1:  29.4 (claim) Step 2: Find the critical value. Since  = 0.01 and the test is a left-tailed test, the critical value is z = –2.33. Step 3: Compute the test value. 36 36

9-3 Large Sample Mean Test - Example 9-37 Step 3: z = [27– 29.4]/[2/30] = – 6.57. Step 4: Make the decision. Since the test value, – 6.57, falls in the critical region, the decision is to reject the null hypothesis. 37 37

9-3 Large Sample Mean Test - Example 9-38 Step 5: Summarize the results. There is enough evidence to support the claim that college students watch less television than the general public. See the next slide for the figure. 38 38

9-3 Large Sample Mean Test - Example 9-39 -6.57 Reject -2.33 39 39

9-3 Large Sample Mean Test - Example 9-40 The Medical Rehabilitation Education Foundation reports that the average cost of rehabilitation for stroke victims is $24,672. To see if the average cost of rehabilitation is different at a large hospital, a researcher selected a random sample of 35 stroke victims and found that the average cost of their rehabilitation is $25,226. 40 40

9-3 Large Sample Mean Test - Example 9-41 The standard deviation of the population is $3,251. At  = 0.01, can it be concluded that the average cost at a large hospital is different from $24,672? Step 1: State the hypotheses and identify the claim. H0: $24,672 H1:  $24,672 (claim) 41 41

9-3 Large Sample Mean Test - Example 9-42 Step 2: Find the critical values. Since  = 0.01 and the test is a two-tailed test, the critical values are z = –2.58 and +2.58. Step 3: Compute the test value. Step 3: z = [25,226 – 24,672]/[3,251/35] = 1.01. 42 42

9-3 Large Sample Mean Test - Example 9-43 Step 4: Make the decision. Do not reject the null hypothesis, since the test value falls in the noncritical region. Step 5: Summarize the results. There is not enough evidence to support the claim that the average cost of rehabilitation at the large hospital is different from $24,672. 43 43

9-3 Large Sample Mean Test - Example 9-44  Reject Reject -2.58 2.58 44 44

9-3 P-Values 9-45 Besides listing an  value, many computer statistical packages give a P-value for hypothesis tests. The P-value is the actual probability of getting the sample mean value or a more extreme sample mean value in the direction of the alternative hypothesis (> or <) if the null hypothesis is true. 45 45

9-3 P-Values 9-46 The P-value is the actual area under the standard normal distribution curve (or other curve, depending on what statistical test is being used) representing the probability of a particular sample mean or a more extreme sample mean occurring if the null hypothesis is true. 46 46

9-3 P-Values - Example 9-47 A researcher wishes to test the claim that the average age of lifeguards in Ocean City is greater than 24 years. She selects a sample of 36 guards and finds the mean of the sample to be 24.7 years, with a standard deviation of 2 years. Is there evidence to support the claim at  = 0.05? Find the P-value. 47 47

9-3 P-Values - Example 9-48 Step 1: State the hypotheses and identify the claim. H0: 24 H1:  24 (claim) Step 2: Compute the test value. 48 48

9-3 P-Values - Example 9-49 Step 3: Using Table E in Appendix C, find the corresponding area under the normal distribution for z = 2.10. It is 0.4821 Step 4: Subtract this value for the area from 0.5000 to find the area in the right tail. 0.5000 – 0.4821 = 0.0179 Hence the P-value is 0.0179. 49 49

9-50 9-3 P-Values - Example Step 5: Make the decision. Since the P-value is less than 0.05, the decision is to reject the null hypothesis. Step 6: Summarize the results. There is enough evidence to support the claim that the average age of lifeguards in Ocean City is greater than 24 years. 50 50

9-3 P-Values - Example 9-51 A researcher claims that the average wind speed in a certain city is 8 miles per hour. A sample of 32 days has an average wind speed of 8.2 miles per hour. The standard deviation of the sample is 0.6 mile per hour. At  = 0.05, is there enough evidence to reject the claim? Use the P-value method. 51 51

9-52 9-3 P-Values - Example Step 1: State the hypotheses and identify the claim. H0: 8 (claim) H1:  8 Step 2: Compute the test value. 50 50

9-3 P-Values - Example 9-53 Step 3: Using table E, find the corresponding area for z = 1.89. It is 0.4706. Step 4: Subtract the value from 0.5000. 0.5000 – 0.4706 = 0.0294 53 53

9-3 P-Values - Example 9-54 Step 5: Make the decision: Since this test is two-tailed, the value 0.0294 must be doubled; 2(0.0294) = 0.0588. Hence, the decision is not to reject the null hypothesis, since the P-value is greater than 0.05. Step 6: Summarize the results. There is not enough evidence to reject the claim that the average wind speed is 8 miles per hour. 54 54

9-4 Small Sample Mean Test 9-55 When the population standard deviation is unknown and n < 30, the z test is inappropriate for testing hypotheses involving means. The t test is used in this case. Properties for the t distribution are given in Chapter 8. 51 51

9-4 Small Sample Mean Test - Formula for t test 9-56 52 52

9-4 Small Sample Mean Test - Example 9-57 A job placement director claims that the average starting salary for nurses is $24,000. A sample of 10 nurses has a mean of $23,450 and a standard deviation of $400. Is there enough evidence to reject the director’s claim at  = 0.05? 53 53

9-4 Small Sample Mean Test - Example 9-58 Step 1: State the hypotheses and identify the claim. H0: $24,000 (claim) H1:  $24,000 Step 2: Find the critical value. Since  = 0.05 and the test is a two-tailed test, the critical values are t = –2.262 and +2.262 with d.f. = 9. 54 54

9-4 Small Sample Mean Test - Example 9-59 Step 3: Compute the test value. t = [23,450 – 24,000]/[400/] = – 4.35. Step 4: Reject the null hypothesis, since – 4.35 < – 2.262. Step 5: There is enough evidence to reject the claim that the starting salary of nurses is $24,000. 55 55

9-3 Small Sample Mean Test - Example 9-60  –2.262 2.262 56 56

9-5 Proportion Test 9-61 Since the normal distribution can be used to approximate the binomial distribution when np 5 and nq 5, the standard normal distribution can be used to test hypotheses for proportions. The formula for the z test for proportions is given on the next slide. 57 57

9-5 Formula for the z Test for Proportions 9-62 58 58

9-5 Proportion Test - Example 9-63 An educator estimates that the dropout rate for seniors at high schools in Ohio is 15%. Last year, 38 seniors from a random sample of 200 Ohio seniors withdrew. At  = 0.05, is there enough evidence to reject the educator’s claim? 59 59

9-5 Proportion Test - Example 9-64 Step 1: State the hypotheses and identify the claim. H0: p0.15 (claim) H1: p 0.15 Step 2: Find the mean and standard deviation.  = np = (200)(0.15) = 30 and  =(200)(0.15)(0.85) = 5.05. Step 3: Find the critical values. Since  = 0.05 and the test is two-tailed the critical values are z = 1.96. 60 60

9-5 Proportion Test - Example 9-65 Step 4: Compute the test value. z = [38 – 30]/[5.05] = 1.58. Step 5: Do not reject the null hypothesis, since the test value falls outside the critical region. 61 61

9-5 Proportion Test - Example 9-66 Step 6: Summarize the results. There is not enough evidence to reject the claim that the dropout rate for seniors in high schools in Ohio is 15%. Note: For one-tailed test for proportions, follow procedures for the large sample mean test. 62 62

9-5 Proportion Test - Example 9-67 9-5 Proportion Test - Example  -1.96 1.96 63 63

9-6 Variance or Standard Deviation Test - Formula 9-68 ( n  1 ) s 2   2 with d . f . = n – 1  2 where n  sample size   2 population variance s 2 = sample variance 64 64

9-6 Assumptions for the Chi-Square Test for a Single Variance 9-69 The sample must be randomly selected from the population. The population must be normally distributed for the variable under study. The observations must be independent of each other. 65 65

9-6 Variance Test - Example 9-70 An instructor wishes to see whether the variation in scores of the 23 students in her class is less than the variance of the population. The variance of the class is 198. Is there enough evidence to support the claim that the variation of the students is less than the population variance (2 = 225) at  = 0.05? 66 66

9-6 Variance Test - Example 9-71 Step 1: State the hypotheses and identify the claim. H0: 225 H1:  225 (claim) Step 2: Find the critical value. Since this test is left-tailed and  = 0.05, use the value 1 – 0.05 = 0.95. The d.f. = 23 – 1 = 22. Hence, the critical value is 12.338. 67 67

9-6 Variance Test - Example 9-72 Step 3: Compute the test value.  = (23 – 1)(198)/225 = 19.36. Step 4: Make a decision. Do not reject the null hypothesis, since the test value falls outside the the critical region. 68 68

9-6 Variance Test - Example 9-73    69 69

9-6 Variance Test 9-74 Note: When the test is two-tailed, you will need to find 2(left) and 2(right) and check whether the test value is less than 2(left) or whether it is greater than 2(right) in order to reject the null hypothesis. 70 70

9-7 Confidence Intervals and Hypothesis Testing - Example 9-75 Sugar is packed in 5-pound bags. An inspector suspects the bags may not contain 5 pounds. A sample of 50 bags produces a mean of 4.6 pounds and a standard deviation of 0.7 pound. Is there enough evidence to conclude that the bags do not contain 5 pounds as stated, at  = 0.05? Also, find the 95% confidence interval of the true mean. 70 70

9-7 Confidence Intervals and Hypothesis Testing - Example 9-76 H0: 5 H1:  5 (claim) The critical values are +1.96 and – 1.96 The test value is Since – 4.04 < –1.96, the null hypothesis is rejected. There is enough evidence to support the claim that the bags do not weigh 5 pounds. 4 . 6 - 5.00 z = = - 4.04 . 7 50 70 70

9-7 Confidence Intervals and Hypothesis Testing - Example 9-77 The 95% confidence interval for the mean is given by Notice that the 95% confidence interval of  does not contain the hypothesized value  = 5. Hence, there is agreement between the hypothesis test and the confidence interval. 70 70