© 1999 Prentice-Hall, Inc. Chap Chapter Topics Hypothesis Testing Methodology Z Test for the Mean ( Known) p-Value Approach to Hypothesis Testing Connection to Confidence Interval Estimation One Tail Test t Test of Hypothesis for the Mean Z Test of Hypothesis for the Proportion
© 1999 Prentice-Hall, Inc. Chap A hypothesis is an assumption about the population parameter. A parameter is a Population mean or proportion The parameter must be identified before analysis. I assume the mean GPA of this class is 3.5! © T/Maker Co. What is a Hypothesis?
© 1999 Prentice-Hall, Inc. Chap States the Assumption (numerical) to be tested e.g. The average # TV sets in US homes is at least 3 (H 0 : 3) Begin with the assumption that the null hypothesis is TRUE. (Similar to the notion of innocent until proven guilty) The Null Hypothesis, H 0 Refers to the Status Quo Always contains the ‘ = ‘ sign The Null Hypothesis may or may not be rejected.
© 1999 Prentice-Hall, Inc. Chap Is the opposite of the null hypothesis e.g. The average # TV sets in US homes is less than 3 (H 1 : < 3) Challenges the Status Quo Never contains the ‘=‘ sign The Alternative Hypothesis may or may not be accepted The Alternative Hypothesis, H 1
© 1999 Prentice-Hall, Inc. Chap Steps: State the Null Hypothesis (H 0 : 3) State its opposite, the Alternative Hypothesis (H 1 : < 3) Hypotheses are mutually exclusive & exhaustive Sometimes it is easier to form the alternative hypothesis first. Identify the Problem
© 1999 Prentice-Hall, Inc. Chap 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!
© 1999 Prentice-Hall, Inc. Chap Sample Mean = 50 Sampling Distribution It is unlikely that we would get a sample mean of this value if in fact this were the population mean.... Therefore, we reject the null hypothesis that = H0H0 Reason for Rejecting H 0
© 1999 Prentice-Hall, Inc. Chap Defines Unlikely Values of Sample Statistic if Null Hypothesis Is True Called Rejection Region of Sampling Distribution Designated (alpha) Typical values are 0.01, 0.05, 0.10 Selected by the Researcher at the Start Provides the Critical Value(s) of the Test Level of Significance,
© 1999 Prentice-Hall, Inc. Chap Level of Significance, and the Rejection Region H 0 : 3 H 1 : < H 0 : 3 H 1 : > 3 H 0 : 3 H 1 : 3 /2 Critical Value(s) Rejection Regions
© 1999 Prentice-Hall, Inc. Chap Type I Error Reject True Null Hypothesis Has Serious Consequences Probability of Type I Error Is Called Level of Significance Type II Error Do Not Reject False Null Hypothesis Probability of Type II Error Is (Beta) Errors in Making Decisions
© 1999 Prentice-Hall, Inc. Chap H 0 : Innocent Jury Trial Hypothesis Test Actual Situation Verdict InnocentGuilty Decision H 0 TrueH 0 False Innocent CorrectError Do Not Reject H Type II Error ( ) Guilty Error Correct Reject H 0 Type I Error ( ) Power (1 - ) Result Possibilities
© 1999 Prentice-Hall, Inc. Chap Reduce probability of one error and the other one goes up. & Have an Inverse Relationship
© 1999 Prentice-Hall, Inc. Chap Convert Sample Statistic (e.g., ) to Standardized Z Variable Compare to Critical Z Value(s) If Z test Statistic falls in Critical Region, Reject H 0 ; Otherwise Do Not Reject H 0 Z-Test Statistics ( Known) Test Statistic X
© 1999 Prentice-Hall, Inc. Chap Probability of Obtaining a Test Statistic More Extreme or ) than Actual Sample Value Given H 0 Is True Called Observed Level of Significance Smallest Value of a H 0 Can Be Rejected Used to Make Rejection Decision If p value Do Not Reject H 0 If p value < , Reject H 0 p Value Test
© 1999 Prentice-Hall, Inc. Chap State H 0 H 0 : 3 2.State H 1 H 1 : 3.Choose =.05 4.Choose n n = Choose Test: Z Test (or p Value) Hypothesis Testing: Steps Test the Assumption that the true mean # of TV sets in US homes is at least 3.
© 1999 Prentice-Hall, Inc. Chap Set Up Critical Value(s) Z = Collect Data 100 households surveyed 8. Compute Test Statistic Computed Test Stat.= Make Statistical Decision Reject Null Hypothesis 10. Express Decision The true mean # of TV set is less than 3 in the US households. Hypothesis Testing: Steps Test the Assumption that the average # of TV sets in US homes is at least 3. (continued)
© 1999 Prentice-Hall, Inc. Chap Assumptions Population Is Normally Distributed If Not Normal, use large samples Null Hypothesis Has or Sign Only Z Test Statistic: One-Tail Z Test for Mean ( Known)
© 1999 Prentice-Hall, Inc. Chap 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
© 1999 Prentice-Hall, Inc. Chap 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 _
© 1999 Prentice-Hall, Inc. Chap Z Z0 Z = Standardized Normal Probability Table (Portion) What Is Z Given = 0.05? =.05 Finding Critical Values: One Tail Critical Value = 1.645
© 1999 Prentice-Hall, Inc. Chap = 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
© 1999 Prentice-Hall, Inc. Chap 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
© 1999 Prentice-Hall, Inc. Chap Z Reject (p Value = ) ( = 0.05). Do Not Reject. p Value = = 0.05 Test Statistic Is In the Do Not Reject Region p Value Solution
© 1999 Prentice-Hall, Inc. Chap Does an average box of cereal contains 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: Two Tail Test H 0 : 368 H 1 : 368
© 1999 Prentice-Hall, Inc. Chap = 0.05 n = 25 Critical Value: ±1.96 Test Statistic: Decision: Conclusion: Do Not Reject at =.05 No Evidence that True Mean Is Not 368 Z Reject Example Solution: Two Tail H 0 : 386 H 1 : 386
© 1999 Prentice-Hall, Inc. Chap Connection to Confidence Intervals For X = 372.5oz, = 15 and n = 25, The 95% Confidence Interval is: (1.96) 15/ 25 to (1.96) 15/ 25 or If this interval contains the Hypothesized mean (368), we do not reject the null hypothesis. It does. Do not reject. _
© 1999 Prentice-Hall, Inc. Chap Assumptions Population is normally distributed If not normal, only slightly skewed & a large sample taken Parametric test procedure t test statistic t-Test: Unknown
© 1999 Prentice-Hall, Inc. Chap Example: One Tail t-Test Does an average box of cereal contain more than 368 grams of cereal? A random sample of 36 boxes showed X = 372.5, and 15. Test at the 0.01 level. 368 gm. H 0 : 368 H 1 : 368 is not given,
© 1999 Prentice-Hall, Inc. Chap Example:Z Test for Proportion Problem: A marketing company claims that it receives 4% responses from its Mailing. Approach: To test this claim, a random sample of 500 were surveyed with 25 responses. Solution: Test at the =.05 significance level.
© 1999 Prentice-Hall, Inc. Chap =.05 n = 500 Do not reject at Do not reject at =.05 Z Test for Proportion: Solution H 0 : p .04 H 1 : p .04 Critical Values: 1.96 Test Statistic: Decision: Conclusion: We do not have sufficient evidence to reject the company’s claim of 4% response rate. Z p - p p (1 - p) n s = (1 -.04) 500 = 1.14 Z0 Reject.025