1 1 Slide 統計學 Spring 2004 授課教師:統計系余清祥 日期: 2004 年 2 月 17 日 第一週:假設檢定.

Slides:



Advertisements
Similar presentations
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Advertisements

1 Chapter 9 Hypothesis Testing Developing Null and Alternative Hypotheses Type I and Type II Errors One-Tailed Tests About a Population Mean: Large-Sample.
1 1 Slide Chapter 9 Hypothesis Tests Developing Null and Alternative Hypotheses Developing Null and Alternative Hypotheses Type I and Type II Errors Type.
1 1 Slide © 2009 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
1 1 Slide © 2003 South-Western/Thomson Learning™ Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Hypothesis Testing Developing Null and Alternative Hypotheses Developing Null and Alternative Hypotheses Type I and Type II Errors Type I and Type II Errors.
1 1 Slide STATISTICS FOR BUSINESS AND ECONOMICS Seventh Edition AndersonSweeneyWilliams Slides Prepared by John Loucks © 1999 ITP/South-Western College.
Chapter 9 Hypothesis Testing
1 1 Slide MA4704Gerry Golding Developing Null and Alternative Hypotheses Hypothesis testing can be used to determine whether Hypothesis testing can be.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 9 Hypothesis Testing Developing Null and Alternative Hypotheses Developing Null and.
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
1 1 Slide Hypothesis Testing Chapter 9 BA Slide Hypothesis Testing The null hypothesis, denoted by H 0, is a tentative assumption about a population.
Statistics Hypothesis Tests.
1 1 Slide ©2009. Econ-2030-Applied Statistics (Dr. Tadesse) Chapter 9 Learning Objectives Population Mean:  Unknown Population Mean:  Unknown Population.
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Chapter 9b One-Tailed Test about a Population Mean: Small-Sample Case (n < 30)One-Tailed Test about a Population Mean: Small-Sample Case (n < 30) Tests.
Fundamentals of Hypothesis Testing. Identify the Population Assume the population mean TV sets is 3. (Null Hypothesis) REJECT Compute the Sample Mean.
Pengujian Hipotesis Nilai Tengah Pertemuan 19 Matakuliah: I0134/Metode Statistika Tahun: 2007.
1 Pertemuan 09 Pengujian Hipotesis Proporsi dan Data Katagorik Matakuliah: A0392 – Statistik Ekonomi Tahun: 2006.
Pengujian Hipotesis Proporsi dan Beda Proporsi Pertemuan 21 Matakuliah: I0134/Metode Statistika Tahun: 2007.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Basic Business Statistics.
1 1 Slide © 2006 Thomson/South-Western Chapter 9 Hypothesis Testing Developing Null and Alternative Hypotheses Developing Null and Alternative Hypotheses.
1 Pertemuan 08 Pengujian Hipotesis 1 Matakuliah: I0272 – Statistik Probabilitas Tahun: 2005 Versi: Revisi.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 8-1 Chapter 8 Fundamentals of Hypothesis Testing: One-Sample Tests Statistics.
© 1999 Prentice-Hall, Inc. Chap Chapter Topics Hypothesis Testing Methodology Z Test for the Mean (  Known) p-Value Approach to Hypothesis Testing.
Statistics for Managers Using Microsoft® Excel 5th Edition
1 1 Slide © 2014 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
1 1 Slide © 2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
Confidence Intervals and Hypothesis Testing - II
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,
1 1 Slide © 2005 Thomson/South-Western Chapter 9, Part A Hypothesis Tests Developing Null and Alternative Hypotheses Developing Null and Alternative Hypotheses.
© 2002 Prentice-Hall, Inc.Chap 7-1 Statistics for Managers using Excel 3 rd Edition Chapter 7 Fundamentals of Hypothesis Testing: One-Sample Tests.
© 2003 Prentice-Hall, Inc.Chap 9-1 Fundamentals of Hypothesis Testing: One-Sample Tests IE 340/440 PROCESS IMPROVEMENT THROUGH PLANNED EXPERIMENTATION.
Fundamentals of Hypothesis Testing: One-Sample Tests
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
1 1 Slide © 2012 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
1 1 Slide © 2005 Thomson/South-Western Chapter 9, Part B Hypothesis Tests Population Proportion Population Proportion Hypothesis Testing and Decision Making.
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.
1 1 Slide © 2004 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS St. Edward’s University Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
© 2003 Prentice-Hall, Inc.Chap 7-1 Business Statistics: A First Course (3 rd Edition) Chapter 7 Fundamentals of Hypothesis Testing: One-Sample Tests.
1 Hypothesis testing can be used to determine whether Hypothesis testing can be used to determine whether a statement about the value of a population parameter.
Introduction to Hypothesis Testing: One Population Value Chapter 8 Handout.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
1 1 Slide © 2007 Thomson South-Western. All Rights Reserved OPIM 303-Lecture #7 Jose M. Cruz Assistant Professor.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
1 1 Slide © 2007 Thomson South-Western. All Rights Reserved Chapter 9 Hypothesis Testing Developing Null and Alternative Hypotheses Developing Null and.
1 1 Slide © 2003 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
Testing of Hypothesis Fundamentals of Hypothesis.
1 1 Slide © 2005 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS St. Edward’s University Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 Chapter 9 Hypothesis Testing. 2 Chapter Outline  Developing Null and Alternative Hypothesis  Type I and Type II Errors  Population Mean: Known 
Lecture 9 Chap 9-1 Chapter 2b Fundamentals of Hypothesis Testing: One-Sample Tests.
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
© 2004 Prentice-Hall, Inc.Chap 9-1 Basic Business Statistics (9 th Edition) Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests.
© Copyright McGraw-Hill 2004
Week 5 Dr. Jenne Meyer.  Article review 5-Step Hypothesis Testing Procedure Step 1: Set up the null and alternative hypotheses. Step 2: Pick the level.
1 Lecture 5: Section B Class Web page URL: Data used in some examples can be found in:
Hypothesis Testing Chapter Hypothesis Testing  Developing Null and Alternative Hypotheses  Type I and Type II Errors  One-Tailed Tests About.
PENGUJIAN HIPOTESIS 1 Pertemuan 9
Chapter 9 -Hypothesis Testing
Slides by JOHN LOUCKS St. Edward’s University.
Statistics Hypothesis Tests.
Pertemuan 17 Pengujian Hipotesis
Chapter 5 STATISTICS (PART 3).
Statistics for Business and Economics (13e)
St. Edward’s University
Slides by JOHN LOUCKS St. Edward’s University.
Presentation transcript:

1 1 Slide 統計學 Spring 2004 授課教師:統計系余清祥 日期: 2004 年 2 月 17 日 第一週:假設檢定

2 2 Slide

3 3 Chapter 9 Hypothesis Testing n Developing Null and Alternative Hypotheses n Type I and Type II Errors n One-Tailed Tests About a Population Mean: Large-Sample Case Large-Sample Case n Two-Tailed Tests About a Population Mean: Large-Sample Case Large-Sample Case n Tests About a Population Mean: Small-Sample Case Small-Sample Casecontinued

4 4 Slide Chapter 9 Hypothesis Testing n Tests About a Population Proportion n Hypothesis Testing and Decision Making n Calculating the Probability of Type II Errors n Determining the Sample Size for a Hypothesis Test about a Population Mean about a Population Mean

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

6 6 Slide Population Assume the population mean age is 50. (Null Hypothesis) REJECT The Sample Mean Is 20 Sample Null Hypothesis Hypothesis Testing Process No, not likely!

7 7 Slide Definitions-I n Null Hypothesis (H 0 ): The hypothesis that depicts the traditional belief or the conventional wisdom and is maintained unless there is sufficient evidence to prove otherwise. n Alternative Hypothesis (H 1 ): The hypothesis which serves as a plausible alternative to replace the null hypothesis given there is sufficient evidence against the null hypothesis.

8 8 Slide Definitions-II n Type I Error: The error which occurs when you reject H 0 given that it is indeed true. n Type II Error: The error which occurs when you do not reject H 0 given that it is indeed false. Level of Significance (  ) : The maximum probability of committing a Type I Error. Sometimes (1-  is called confidence coefficient. Level of Significance (  ) : The maximum probability of committing a Type I Error. Sometimes (1-  is called confidence coefficient. Power (1-  ) : The probability of correctly rejecting the null hypothesis when it is really false. Power (1-  ) : The probability of correctly rejecting the null hypothesis when it is really false.

9 9 Slide Decision Making and Consequences H 0 True H 0 False Do Not Reject H 0 Correct Confidence=1-  Type II Error P( Type II)=  Reject H 0 Type I Error P(Type I)=  Correct Power=1-  STATES OF NATURE ACTIONSACTIONS

10 Slide   Reduce probability of one error and the other one goes up.  &  Have an Inverse Relationship

11 Slide To buy a mp3 player Napster around Napster dead Buy mp3 player Confidence level of the test =1-  P( Type II error)=  Don’t buy mp3 player P(Type I error)=  Power of the test =1- 0.1=0.9 STATES OF NATURE ACTIONSACTIONS

12 Slide n Testing Research Hypotheses The research hypothesis should be expressed as the alternative hypothesis. The research hypothesis should be expressed as the alternative hypothesis. The conclusion that the research hypothesis is true comes from sample data that contradict the null hypothesis. The conclusion that the research hypothesis is true comes from sample data that contradict the null hypothesis. Developing Null and Alternative Hypotheses

13 Slide Developing Null and Alternative Hypotheses n Testing the Validity of a Claim Manufacturers’ claims are usually given the benefit of the doubt and stated as the null hypothesis. Manufacturers’ claims are usually given the benefit of the doubt and stated as the null hypothesis. The conclusion that the claim is false comes from sample data that contradict the null hypothesis. The conclusion that the claim is false comes from sample data that contradict the null hypothesis.

14 Slide n Testing in Decision-Making Situations A decision maker might have to choose between two courses of action, one associated with the null hypothesis and another associated with the alternative hypothesis. A decision maker might have to choose between two courses of action, one associated with the null hypothesis and another associated with the alternative hypothesis. Example: Accepting a shipment of goods from a supplier or returning the shipment of goods to the supplier. Example: Accepting a shipment of goods from a supplier or returning the shipment of goods to the supplier. Developing Null and Alternative Hypotheses

15 Slide A Summary of Forms for Null and Alternative Hypotheses about a Population Mean n 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). 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). H 0 :  >  0 H 0 :   0 H 0 :  <  0 H 0 :  =  0 H a :   0 H a :   0 H a :   0 H a :   0

16 Slide Example: Metro EMS n Null and Alternative Hypotheses A major west coast city provides one of the most comprehensive emergency medical services in the world. Operating in a multiple hospital system with approximately 20 mobile medical units, the service goal is to respond to medical emergencies with a mean time of 12 minutes or less. The director of medical services wants to formulate a hypothesis test that could use a sample of emergency response times to determine whether or not the service goal of 12 minutes or less is being achieved.

17 Slide Example: Metro EMS n Null and Alternative Hypotheses Hypotheses Conclusion and Action H 0 :  The emergency service is meeting the response goal; no follow-up the response goal; no follow-up action is necessary. action is necessary. H a :  The emergency service is not H a :  The emergency service is not meeting the response goal; meeting the response goal; appropriate follow-up action is appropriate follow-up action is necessary. necessary. Where:  = mean response time for the population of medical emergency requests. of medical emergency requests.

18 Slide Type I and Type II Errors n Since hypothesis tests are based on sample data, we must allow for the possibility of errors. n A Type I error is rejecting H 0 when it is true. n A Type II error is accepting H 0 when it is false. n 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 . Generally, we cannot control for the probability of making a Type II error, denoted by . n Statistician avoids the risk of making a Type II error by using “do not reject H 0 ” and not “accept H 0 ”.

19 Slide n Type I and Type II Errors Population Condition Population Condition H 0 True H a True H 0 True H a True Conclusion (  ) (  ) Accept H 0 Correct Type II Accept H 0 Correct Type II (Conclude  Conclusion Error (Conclude  Conclusion Error Reject H 0 Type I Correct Reject H 0 Type I Correct (Conclude  rror Conclusion (Conclude  rror Conclusion Example: Metro EMS

20 Slide The Use of p -Values n The p -value is the probability of obtaining a sample result that is at least as unlikely as what is observed. n The p -value can be used to make the decision in a hypothesis test by noting that: if the p -value is less than the level of significance , the value of the test statistic is in the rejection region. if the p -value is less than the level of significance , the value of the test statistic is in the rejection region. if the p -value is greater than or equal to , the value of the test statistic is not in the rejection region. if the p -value is greater than or equal to , the value of the test statistic is not in the rejection region. Reject H 0 if the p -value < . Reject H 0 if the p -value < .

21 Slide The Steps of Hypothesis Testing n Determine the appropriate hypotheses. n Select the test statistic for deciding whether or not to reject the null hypothesis. Specify the level of significance  for the test. Specify the level of significance  for the test. Use  to develop the rule for rejecting H 0. Use  to develop the rule for rejecting H 0. n Collect the sample data and compute the value of the test statistic. n a) Compare the test statistic to the critical value(s) in the rejection rule, or b) Compute the p -value based on the test statistic and compare it to  to determine whether or not to reject H 0.

22 Slide n Hypotheses H 0 :   or H 0 :   H a :   H a :   n Test Statistic  Known  Unknown  Known  Unknown n Rejection Rule Reject H 0 if z > z  Reject H 0 if z z  Reject H 0 if z < - z  One-Tailed Tests about a Population Mean: Large-Sample Case ( n > 30)

23 Slide Example: Metro EMS n One-Tailed Test about a Population Mean: Large n Let  = P (Type I Error) =.05 Sampling distribution of (assuming H 0 is true and  = 12) Sampling distribution of (assuming H 0 is true and  = 12)  12 c c Reject H 0 Do Not Reject H  (Critical value)

24 Slide Example: Metro EMS n One-Tailed Test about a Population Mean: Large n Let n = 40, = minutes, s = 3.2 minutes Let n = 40, = minutes, s = 3.2 minutes (The sample standard deviation s can be used to (The sample standard deviation s can be used to estimate the population standard deviation .) estimate the population standard deviation .) Since 2.47 > 1.645, we reject H 0. Since 2.47 > 1.645, we reject H 0. Conclusion : We are 95% confident that Metro EMS Conclusion : We are 95% confident that Metro EMS is not meeting the response goal of 12 minutes; is not meeting the response goal of 12 minutes; appropriate action should be taken to improve appropriate action should be taken to improve service. service.

25 Slide Example: Metro EMS n Using the p -value to Test the Hypothesis Recall that z = 2.47 for = Then p -value = Since p -value < , that is.0068 <.05, we reject H 0. n Using the p -value to Test the Hypothesis Recall that z = 2.47 for = Then p -value = Since p -value < , that is.0068 <.05, we reject H 0. p -value  Do Not Reject H 0 Reject H 0 z z 2.47

26 Slide n Hypotheses H 0 :   H a :   Test Statistic  Known  Unknown Test Statistic  Known  Unknown n Rejection Rule Reject H 0 if | z | > z  Two-Tailed Tests about a Population Mean: Large-Sample Case ( n > 30)

27 Slide Example: Glow Toothpaste n Two-Tailed Tests about a Population Mean: Large n The production line for Glow toothpaste is designed to fill tubes of toothpaste with a mean weight of 6 ounces. Periodically, a sample of 30 tubes will be selected in order to check the filling process. Quality assurance procedures call for the continuation of the filling process if the sample results are consistent with the assumption that the mean filling weight for the population of toothpaste tubes is 6 ounces; otherwise the filling process will be stopped and adjusted.

28 Slide Example: Glow Toothpaste n Two-Tailed Tests about a Population Mean: Large n A hypothesis test about the population mean can be used to help determine when the filling process should continue operating and when it should be stopped and corrected. Hypotheses Hypotheses H 0 :   H 0 :    H a :  Rejection Rule Rejection Rule  ssuming a.05 level of significance, Reject H 0 if z 1.96 Reject H 0 if z 1.96

29 Slide Example: Glow Toothpaste n Two-Tailed Test about a Population Mean: Large n  Sampling distribution of (assuming H 0 is true and  = 6) Sampling distribution of (assuming H 0 is true and  = 6) Reject H 0 Do Not Reject H 0 z z Reject H 

30 Slide Example: Glow Toothpaste n Two-Tailed Test about a Population Mean: Large n Assume that a sample of 30 toothpaste tubes provides a sample mean of 6.1 ounces and standard deviation of 0.2 ounces. Let n = 30, = 6.1 ounces, s =.2 ounces Since 2.74 > 1.96, we reject H 0. Since 2.74 > 1.96, we reject H 0. Conclusion : We are 95% confident that the mean filling weight of the toothpaste tubes is not 6 ounces. The filling process should be stopped and the filling mechanism adjusted. n Two-Tailed Test about a Population Mean: Large n Assume that a sample of 30 toothpaste tubes provides a sample mean of 6.1 ounces and standard deviation of 0.2 ounces. Let n = 30, = 6.1 ounces, s =.2 ounces Since 2.74 > 1.96, we reject H 0. Since 2.74 > 1.96, we reject H 0. Conclusion : We are 95% confident that the mean filling weight of the toothpaste tubes is not 6 ounces. The filling process should be stopped and the filling mechanism adjusted.

31 Slide Example: Glow Toothpaste n Using the p -Value for a Two-Tailed Hypothesis Test Suppose we define the p -value for a two-tailed test as double the area found in the tail of the distribution. With z = 2.74, the standard normal probability table shows there is a =.0031 probability of a difference larger than.1 in the upper tail of the distribution. Considering the same probability of a larger difference in the lower tail of the distribution, we have p -value = 2(.0031) =.0062 p -value = 2(.0031) =.0062 The p -value.0062 is less than  =.05, so H 0 is rejected.

32 Slide Confidence Interval Approach to a Two-Tailed Test about a Population Mean Select a simple random sample from the population and use the value of the sample mean to develop the confidence interval for the population mean . Select a simple random sample from the population and use the value of the sample mean to develop the confidence interval for the population mean . If the confidence interval contains the hypothesized value  0, do not reject H 0. Otherwise, reject H 0. If the confidence interval contains the hypothesized value  0, do not reject H 0. Otherwise, reject H 0.

33 Slide Example: Glow Toothpaste n Confidence Interval Approach to a Two-Tailed Hypothesis Test The 95% confidence interval for  is The 95% confidence interval for  is or to or to Since the hypothesized value for the population mean,  0 = 6, is not in this interval, the hypothesis- testing conclusion is that the null hypothesis, H 0 :  = 6, can be rejected.

34 Slide Test Statistic  Known  Unknown Test Statistic  Known  Unknown This test statistic has a t distribution with n - 1 degrees of freedom. n Rejection Rule One-Tailed Two-Tailed One-Tailed Two-Tailed H 0 :   Reject H 0 if t > t  H 0 :   Reject H 0 if t > t  H 0 :   Reject H 0 if t < - t  H 0 :   Reject H 0 if t < - t  H 0 :   Reject H 0 if | t | > t  H 0 :   Reject H 0 if | t | > t  Tests about a Population Mean: Small-Sample Case ( n < 30)

35 Slide p -Values and the t Distribution n The format of the t distribution table provided in most statistics textbooks does not have sufficient detail to determine the exact p -value for a hypothesis test. n However, we can still use the t distribution table to identify a range for the p -value. n An advantage of computer software packages is that the computer output will provide the p -value for the t distribution.

36 Slide Example: Highway Patrol n One-Tailed Test about a Population Mean: Small n A State Highway Patrol periodically samples vehicle speeds at various locations on a particular roadway. The sample of vehicle speeds is used to test the hypothesis H 0 :  < 65. H 0 :  < 65. The locations where H 0 is rejected are deemed the best locations for radar traps. At Location F, a sample of 16 vehicles shows a mean speed of 68.2 mph with a standard deviation of 3.8 mph. Use an  =.05 to test the hypothesis.

37 Slide Example: Highway Patrol n One-Tailed Test about a Population Mean: Small n Let n = 16, = 68.2 mph, s = 3.8 mph Let n = 16, = 68.2 mph, s = 3.8 mph  =.05, d.f. = 16-1 = 15, t  =  =.05, d.f. = 16-1 = 15, t  = Since 3.37 > 1.753, we reject H 0. Since 3.37 > 1.753, we reject H 0. Conclusion : We are 95% confident that the mean speed of vehicles at Location F is greater than 65 mph. Location F is a good candidate for a radar trap.

38 Slide Summary of Test Statistics to be Used in a Hypothesis Test about a Population Mean n > 30 ?  known ? Popul. approx.normal ?  known ? Use s to estimate  Use s to estimate  Increase n to > 30 Yes Yes Yes Yes No No No No

39 Slide Z 0  Reject H 0 Z 0 0  H 0 :  H 1 :  < 0 H 0 :  0 H 1 :  > 0 Must Be Significantly Below  = 0 Small values don’t contradict H 0 Don’t Reject H 0 ! Rejection Region

40 Slide Does an average box of cereal contain more than 368 grams of cereal? A random sample of 25 boxes showed X = The company has specified  to be 15 grams. Test at the  0.05 level. 368 gm. Example: One Tail Test H 0 :  368 H 1 :  > 368 _

41 Slide  = n = 25 Critical Value: Test Statistic: Decision: Conclusion: Do Not Reject at  =.05 No Evidence True Mean Is More than 368 Z Reject Example Solution: One Tail H 0 :  368 H 1 :  > 368

42 Slide Z p Value Z Value of Sample Statistic From Z Table: Lookup Use the alternative hypothesis to find the direction of the test p Value is P(Z  1.50) = p Value Solution

43 Slide A Summary of Forms for Null and Alternative Hypotheses about a Population Proportion n The equality part of the hypotheses always appears in the null hypothesis. n In general, a hypothesis test about the value of a population proportion p must take one of the following three forms (where p 0 is the hypothesized value of the population proportion). H 0 : p > p 0 H 0 : p p 0 H 0 : p < p 0 H 0 : p = p 0 H a : p p 0 H a : p p 0 H a : p p 0 H a : p p 0

44 Slide Tests about a Population Proportion: Large-Sample Case ( np > 5 and n (1 - p ) > 5) n Test Statistic where: n Rejection Rule One-Tailed Two-Tailed One-Tailed Two-Tailed H 0 : p  p  Reject H 0 if z > z  H 0 : p  p  Reject H 0 if z > z  H 0 : p  p  Reject H 0 if z < -z  H 0 : p  p  Reject H 0 if z < -z  H 0 : p  p  Reject H 0 if |z| > z  H 0 : p  p  Reject H 0 if |z| > z 

45 Slide Example: NSC n Two-Tailed Test about a Population Proportion: Large n For a Christmas and New Year’s week, the National Safety Council estimated that 500 people would be killed and 25,000 injured on the nation’s roads. The NSC claimed that 50% of the accidents would be caused by drunk driving. A sample of 120 accidents showed that 67 were caused by drunk driving. Use these data to test the NSC’s claim with  = 0.05.

46 Slide Example: NSC n Two-Tailed Test about a Population Proportion: Large n Hypothesis Hypothesis H 0 : p =.5 H 0 : p =.5 H a : p.5 H a : p.5 Test Statistic Test Statistic

47 Slide Example: NSC n Two-Tailed Test about a Population Proportion: Large n Rejection Rule Rejection Rule Reject H 0 if z 1.96 Conclusion Conclusion Do not reject H 0. For z = 1.278, the p -value is.201. If we reject H 0, we exceed the maximum allowed risk of committing a Type I error ( p -value >.050).

48 Slide Hypothesis Testing and Decision Making n In many decision-making situations the decision maker may want, and in some cases may be forced, to take action with both the conclusion do not reject H 0 and the conclusion reject H 0. n In such situations, it is recommended that the hypothesis-testing procedure be extended to include consideration of making a Type II error.

49 Slide Calculating the Probability of a Type II Error in Hypothesis Tests about a Population Mean 1. Formulate the null and alternative hypotheses. 2. Use the level of significance  to establish a rejection rule based on the test statistic. 3. Using the rejection rule, solve for the value of the sample mean that identifies the rejection region. 4. Use the results from step 3 to state the values of the sample mean that lead to the acceptance of H 0 ; this defines the acceptance region. 5. Using the sampling distribution of for any value of  from the alternative hypothesis, and the acceptance region from step 4, compute the probability that the sample mean will be in the acceptance region.

50 Slide Example: Metro EMS (revisited) n Calculating the Probability of a Type II Error 1. Hypotheses are: H 0 :  and H a :  2. Rejection rule is: Reject H 0 if z > Value of the sample mean that identifies the rejection region: 4. We will accept H 0 when x <

51 Slide Example: Metro EMS (revisited) n Calculating the Probability of a Type II Error 5. Probabilities that the sample mean will be in the acceptance region: Values of   1-  Values of   1- 

52 Slide Example: Metro EMS (revisited) n Calculating the Probability of a Type II Error Observations about the preceding table: When the true population mean  is close to the null hypothesis value of 12, there is a high probability that we will make a Type II error. When the true population mean  is close to the null hypothesis value of 12, there is a high probability that we will make a Type II error. When the true population mean  is far above the null hypothesis value of 12, there is a low probability that we will make a Type II error. When the true population mean  is far above the null hypothesis value of 12, there is a low probability that we will make a Type II error.

53 Slide Power of the Test n The probability of correctly rejecting H 0 when it is false is called the power of the test. For any particular value of , the power is 1 – . For any particular value of , the power is 1 – . We can show graphically the power associated with each value of  ; such a graph is called a power curve. We can show graphically the power associated with each value of  ; such a graph is called a power curve.

54 Slide Determining the Sample Size for a Hypothesis Test About a Population Mean where z  = z value providing an area of  in the tail z  = z value providing an area of  in the tail  = population standard deviation  0 = value of the population mean in H 0  a = value of the population mean used for the Type II error Note: In a two-tailed hypothesis test, use z  /2 not z 

55 Slide Relationship among , , and n n Once two of the three values are known, the other can be computed. For a given level of significance , increasing the sample size n will reduce . For a given level of significance , increasing the sample size n will reduce . For a given sample size n, decreasing  will increase , whereas increasing  will decrease b. For a given sample size n, decreasing  will increase , whereas increasing  will decrease b.

56 Slide End of Chapter 9