1 Required Sample Size, Type II Error Probabilities Chapter 23 Inference for Means: Part 2.

Slides:



Advertisements
Similar presentations
5.6 Determining Sample Size to Estimate  Required Sample Size To Estimate a Population Mean  If you desire a C% confidence interval for a population.
Advertisements

t distributions t confidence intervals for a population mean  Sample size required to estimate  hypothesis tests for 
Chapter 9 Hypothesis Testing Understandable Statistics Ninth Edition
10- 1 Chapter Ten McGraw-Hill/Irwin © 2005 The McGraw-Hill Companies, Inc., All Rights Reserved.
Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved.
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.
Chapter 10 Section 2 Hypothesis Tests for a Population Mean
Hypothesis Testing Using a Single Sample
Two Sample Hypothesis Testing for Proportions
Lecture 3 Miscellaneous details about hypothesis testing Type II error
Introduction to Hypothesis Testing
Chapter 9 Chapter 10 Chapter 11 Chapter 12
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)
Introduction to Hypothesis Testing
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 11 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.
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.
Ch 11 實習 (2).
Chapter 9 Hypothesis Testing.
BCOR 1020 Business Statistics Lecture 20 – April 3, 2008.
Chapter 8 Introduction to Hypothesis Testing
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
Chapter 4 Simple Random Sampling n Definition of Simple Random Sample (SRS) and how to select a SRS n Estimation of population mean and total; sample.
Type II Error, Power and Sample Size Calculations
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 11 Introduction to Hypothesis Testing.
Chapter 23 Confidence Intervals and Hypothesis Tests for a Population Mean  ; t distributions  t distributions  Confidence intervals for a population.
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
Confidence Intervals and Hypothesis Testing - II
Introduction to Hypothesis Testing
CHAPTER 2 Statistical Inference 2.1 Estimation  Confidence Interval Estimation for Mean and Proportion  Determining Sample Size 2.2 Hypothesis Testing:
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 9 Introduction to Hypothesis Testing.
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.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on the Least-Squares Regression Model and Multiple Regression 14.
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:
Section 9.2 Testing the Mean  9.2 / 1. Testing the Mean  When  is Known Let x be the appropriate random variable. Obtain a simple random sample (of.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
Copyright © Cengage Learning. All rights reserved. 10 Inferences Involving Two Populations.
Copyright © 2009 Cengage Learning Chapter 11 Introduction to Hypothesis Testing.
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 
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.
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
Ch 11 實習 (2).
© Copyright McGraw-Hill 2004
Understanding Basic Statistics Fourth Edition By Brase and Brase Prepared by: Lynn Smith Gloucester County College Chapter Nine Hypothesis Testing.
Inference for a Population Mean  Estimation Hypothesis Testing.
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.
DSCI 346 Yamasaki Lecture 1 Hypothesis Tests for Single Population DSCI 346 Lecture 1 (22 pages)1.
4-1 Statistical Inference Statistical inference is to make decisions or draw conclusions about a population using the information contained in a sample.
Chapter 5 Section 5.3 Confidence Intervals for a Population Mean  ; t distributions; sample size  t distributions  Confidence intervals for a population.
Type II Error, Power and Sample Size Calculations
Chapter 4 Simple Random Sampling
LESSON 20: HYPOTHESIS TESTING
Ch 11 實習 (2).
Chapter 9 Hypothesis Testing: Single Population
Presentation transcript:

1 Required Sample Size, Type II Error Probabilities Chapter 23 Inference for Means: Part 2

Required Sample Size To Estimate a Population Mean  If you desire a C% confidence interval for a population mean  with an accuracy specified by you, how large does the sample size need to be? We will denote the accuracy by ME, which stands for M argin of E rror.

Example: Sample Size to Estimate a Population Mean  Suppose we want to estimate the unknown mean height  of male students at NC State with a confidence interval. We want to be 95% confident that our estimate is within.5 inch of  How large does our sample size need to be?

Confidence Interval for 

Good news: we have an equation Bad news: 1.Need to know s 2.We don’t know n so we don’t know the degrees of freedom to find t * n-1

A Way Around this Problem: Approximate by Using the Standard Normal

.95 Confidence level Sampling distribution of x

Estimating s Previously collected data or prior knowledge of the population If the population is normal or near-normal, then s can be conservatively estimated by s  range % of obs. within 3  of the mean

Example: sample size to estimate mean height µ of NCSU undergrad. male students We want to be 95% confident that we are within.5 inch of  so  ME =.5; z*=1.96 Suppose previous data indicates that s is about 2 inches. n= [(1.96)(2)/(.5)] 2 = We should sample 62 male students

Example: Sample Size to Estimate a Population Mean  -Textbooks Suppose the financial aid office wants to estimate the mean NCSU semester textbook cost  within ME=$25 with 98% confidence. How many students should be sampled? Previous data shows  is about $85.

Example: Sample Size to Estimate a Population Mean  -NFL footballs The manufacturer of NFL footballs uses a machine to inflate new footballs The mean inflation pressure is 13.5 psi, but uncontrollable factors cause the pressures of individual footballs to vary from 13.3 psi to 13.7 psi After throwing 6 interceptions in a recent game, Peyton Manning complains that the balls are not properly inflated. The manufacturer wishes to estimate the mean inflation pressure to within.025 psi with a 99% confidence interval. How many footballs should be sampled?

Example: Sample Size to Estimate a Population Mean  The manufacturer wishes to estimate the mean inflation pressure to within.025 pound with a 99% confidence interval. How may footballs should be sampled? 99% confidence  z* = 2.576; ME =.025  = ? Inflation pressures range from 13.3 to 13.7 psi So range =13.7 – 13.3 =.4;   range/6 =.4/6 =

Significance Levels and Rejections Regions Hypothesis Tests for  13

14 aLevels and Rejection Regions, Right-Tail; n=26 (df=25) If H A :  >  0 and  =.10 then RR={t: t > 1.316} If H A :  >  0 and  =.05 then RR={t: t > 1.708} If H A :  >  0 and  =.01 then RR={t: t > 2.485}  Rej Region.10t > t > t > 2.485

15 Hypothesis Testing for , Type II Error Probabilities (Right-tail example) 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 401 accounts has a mean of $174 and s = $65. –Can we conclude that the new system will be cost effective?

16 Hypotheses –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. H A :  > 170 –Where  is the mean account value for all customers –We will choose significance level  =.05 Right-tail example: hypotheses, significance level H 0 :  = 170

17 The rejection region: reject H 0 if the test statistic t satisfies t > t.05,n-1 = t.05,400 = We will reject H 0 if the value of the test statistic t is greater than Results from the n = 401 randomly selected customers: A Right - Tail Test: Rejection Region

18 –Hypotheses: H 0 :  = 170 H A :  > 170 Right-tail example: test statistic and conclusion Recall that the rejection region is Since the test statistic t = 1.23, and 1.23 < 1.649, We do not reject the null hypothesis H 0 :  = 170.

19 P-value: The probability of observing a value of the test statistic as extreme or more extreme then t = 1.23, given that  = 170 is… Right-tail example: P-value and conclusion t 400 Since the P-value >.05, we conclude that there is not sufficient evidence to reject H 0 :  =170. Type II error is possible

20 Calculating , the Probability of a Type II Error Calculating  for the t test is not at all straightforward and is beyond the level of this course –The distribution of the test statistic t is quite complicated when H 0 is false and H A is true – However, we can obtain very good approximate values for  using z (the standard normal) in place of t.

21 Calculating , the Probability of a Type II Error (cont.) We need to 1.specify an appropriate significance level  ; 2.Determine the rejection region in terms of z 3.Then calculate the probability of not being in the rejection when  =  1, where  1 is a value of  that makes H A true.

22 –Test statistic: H 0 :  = 170 H A :  > 170 Choose  =.05 Rejection region in terms of z: z > z.05 = Example (cont.) calculating   = 0.05

23 Express the rejection region directly, not in standardized terms  =.05  = 170 Example (cont.) calculating  –The rejection region with  =.05. Do not reject H 0  180 H A :  = 180 H 0 :  = 170 Specify the alternative value under H A. –Let the alternative value be  = 180 (rather than just  >170)

24  =.05  = 170 Example (cont.) calculating   180 H 1 :  = 180 H 0 :  = 170 –A Type II error occurs when a false H 0 is not rejected. Suppose  =180, that is H 0 is false. A false H 0 … …is not rejected

25  = 170 Example (cont.) calculating   180 H 1 :  = 180 H 0 :  = 170 Power when  =180 = 1-  (180)=.9236

26 Increasing the significance level  decreases the value of  and vice versa  Effects on  of changing   = 170  180    2 >  2 <

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

28 Increasing the sample size reduces  Judging the Test By increasing the sample size the standard deviation of the sampling distribution of the mean decreases. Thus, the cutoff value of for the rejection region decreases.

29  180  = 170 Judging the Test Note what happens when n increases:  does not change, but  becomes smaller Increasing the sample size reduces 

30 Increasing the sample size reduces  In the example, suppose n increases from 400 to Judging the Test  remains 5%, but the probability of a Type II drops dramatically.

31 A Left - Tail Test Self-Addressed Stamped Envelopes. –The chief financial officer in FedEx believes that including a stamped self-addressed (SSA) envelop in the monthly invoice sent to customers will decrease the amount of time it take for customers to pay their monthly bills. –Currently, customers return their payments in 24 days on the average, with a standard deviation of 6 days. –Stamped self-addressed envelopes are included with the bills for 76 randomly selected customers. The number of days until they return their payment is recorded.

32 The parameter tested is the population mean payment period (  ) for customers who receive self-addressed stamped envelopes with their bill  The hypotheses are: H 0 :  = 24 H 1 :  < 24 Use  =.05; n = 76. A Left - Tail Test: Hypotheses

33 The rejection region: reject H 0 if the test statistic t satisfies t <  t.05,75 =  We will reject H 0 if the value of the test statistic t is less than  Results from the 76 randomly selected customers: A Left - Tail Test: Rejection Region

34 The value of the test statistic t is: A Left -Tail Test: Test Statistic Since the test statistic t =  1.52, and  1.52 >  1.665, We do not reject the null hypothesis. Note that the P-value = P( t Since our decision is to not reject the null hypothesis, A Type II error is possible. Since the rejection region is

35 The CFO thinks that a decrease of one day in the average payment return time will cover the costs of the envelopes since customer checks can be deposited earlier. What is  (23), the probability of a Type II error when the true mean payment return time  is 23 days? Left-Tail Test: Calculating , the Probability of a Type II Error

36 –Test statistic: H 0 :  = 24 H A :  < 24 Choose  =.05 Rejection region in terms of z: z < -z.05 = Left-tail test: calculating  (cont.)  = 0.05

37 Express the rejection region directly, not in standardized terms  =.05  = 23 Left-tail test: calculating  (cont.) –The rejection region with  =.05. Do not reject H 0  24 H A :  = 23 H 0 :  = 24 Specify the alternative value under H A. –Let the alternative value be  = 23 (rather than just  < 24)

38  = 23 Left-tail test: calculating  (cont.)  24 H 1 :  = 23 H 0 :  = 24 Power when  =23 = 1-  (23)=.282  =.05

39 A Two - Tail Test for  The Federal Communications Commission (FCC) wants competition between phone companies. The FCC wants to investigate if AT&T rates differ from their competitor’s rates. According to data from the (FCC) the mean monthly long-distance bills for all AT&T residential customers is $17.09.

40 A Two - Tail Test (cont.) A random sample of 100 AT&T customers is selected and their bills are recalculated using a leading competitor’s rates. The mean and standard deviation of the bills using the competitor’s rates are Can we infer that there is a difference between AT&T’s bills and the competitor’s bills (on the average)?

41 Is the mean different from 17.09? n = 100; use  =.05 H 0 :  = A Two - Tail Test (cont.)

42 0  2  t   = t   = Rejection region A Two – Tail Test (cont.) t 99

43  2  t   = t   = There is insufficient evidence to conclude that there is a difference between the bills of AT&T and the competitor Also, by the P-value approach: The P-value = P(t 1.19) = 2(.1184) =.2368 > A Two – Tail Test: Conclusion A Type II error is possible

44 The FCC would like to detect a decrease of $1.50 in the average competitor’s bill. ( =15.59) What is  (15.59), the probability of a Type II error when the true mean competitor’s bill  is $15.59? Two-Tail Test: Calculating , the Probability of a Type II Error

45  2   2  Rejection region Two – Tail Test: Calculating  (cont.) Do not reject H0 Reject H0

46  = Two – Tail Test: Calculating  (cont.)  H A :  = H 0 :  = Power when  =15.59 = 1-  (15.59)=.972  =.05

General formula: Type II Error Probability  (  A ) for a Level  Test 47

Sample Size n for which a level  test also has  (  A ) =  48