Ch 10 Fundamentals of Hypothesis Testing OneSample Tests

  • Slides: 18
Download presentation
Ch 10 Fundamentals of Hypothesis Testing: One-Sample Tests

Ch 10 Fundamentals of Hypothesis Testing: One-Sample Tests

What is a Hypothesis? • A hypothesis is a claim (assumption) about the population

What is a Hypothesis? • A hypothesis is a claim (assumption) about the population parameter I claim the mean GPA of this class is 3. 5! – Examples of parameters are population mean or proportion – The parameter must be identified before analysis © 1984 -1994 T/Maker Co.

The Null Hypothesis, H 0 • States the assumption (numerical) to be tested –

The Null Hypothesis, H 0 • States the assumption (numerical) to be tested – e. g. : The average number of TV sets in U. S. Homes is at least three ( ) • Is always about a population parameter ( ), not about a sample statistic ( )

The Null Hypothesis, H 0 (continued) • Begins with the assumption that the null

The Null Hypothesis, H 0 (continued) • Begins with the assumption that the null hypothesis is true – Similar to the notion of innocent until proven guilty • Refers to the status quo • Always contains the “=” sign • May or may not be rejected

The Alternative Hypothesis, HA • Is the opposite of the null hypothesis – e.

The Alternative Hypothesis, HA • Is the opposite of the null hypothesis – e. g. : The average number of TV sets in U. S. homes is less than 3 ( ) • • Challenges the status quo Never contains the “=” sign May or may not be Rejected Is generally the hypothesis that is believed (or needed to be proven) to be true by the researcher What we want to prove

Hypothesis Testing Process Assume the population mean age is 50. ( ) No, not

Hypothesis Testing Process Assume the population mean age is 50. ( ) No, not likely! REJECT Null Hypothesis Identify the Population Take a Sample

Reason for Rejecting H 0 Sampling Distribution of. . . Therefore, we reject the

Reason for Rejecting H 0 Sampling Distribution of. . . Therefore, we reject the null hypothesis that m = 50. It is unlikely that we would get a sample mean of this value. . . if in fact this were the population mean. 20 m = 50 If H 0 is true

Level of Significance, • Defines unlikely values of sample statistic if null hypothesis is

Level of Significance, • Defines unlikely values of sample statistic if null hypothesis is true – Called rejection region of the sampling distribution • Is designated by , (level of significance) – Typical values are. 01, . 05, . 10 use 0. 05 if not given in the problem • Is selected by the researcher at the beginning • Provides the critical value(s) of the test

Level of Significance and the Rejection Region a H 0: m =3 H A:

Level of Significance and the Rejection Region a H 0: m =3 H A: m < 3 H 0: m = 3 H A: m > 3 H 0: m = 3 H A: m ¹ 3 Rejection Regions 0 0 0 Critical Value(s) a a/2

Errors in Making Decisions • Type I Error – Rejects a true null hypothesis

Errors in Making Decisions • Type I Error – Rejects a true null hypothesis – Has serious consequences The probability of Type I Error is • Called level of significance • Set by researcher • Type II Error – Fails to reject a false null hypothesis – The probability of Type II Error is – The power of the test is

Result Probabilities H 0: Innocent Jury Trial Hypothesis Test The Truth Verdict Innocent Guilty

Result Probabilities H 0: Innocent Jury Trial Hypothesis Test The Truth Verdict Innocent Guilty Correct Error The Truth Decision H 0 True H 0 False Do Not Reject H 0 Correct Reject H 0 1 -a Type II Error ( b ) Type I Error (a ) Power (1 - b )

Type I & II Errors Have an Inverse Relationship b a If you reduce

Type I & II Errors Have an Inverse Relationship b a If you reduce the probability of one error, the other one increases so that everything else is unchanged.

Factors Affecting Type II Error • True value of population parameter – Increases when

Factors Affecting Type II Error • True value of population parameter – Increases when the difference between hypothesized parameter and its true value decrease • Significance level – Increases when decreases • Population standard deviation – Increases when increases • Sample size – Increases when n decreases n

How to Choose between Type I and Type II Errors • Choice depends on

How to Choose between Type I and Type II Errors • Choice depends on the cost of the errors • Choose smaller Type I Error when the cost of rejecting the maintained hypothesis is high – A criminal trial: convicting an innocent person – The Exxon Valdez: causing an oil tanker to sink • Choose larger Type I Error when you have an interest in changing the status quo – A decision in a startup company about a new piece of software – A decision about unequal pay for a covered group

Critical Values Approach to Testing • Convert sample statistic (e. g. : ) to

Critical Values Approach to Testing • Convert sample statistic (e. g. : ) to test statistic (e. g. : Z, t statistic) • Obtain critical value(s) for a specified from a table or computer – If the test statistic falls in the critical region, reject H 0 – Otherwise Fail to reject H 0

p-Value Approach to Testing • Convert Sample Statistic (e. g. ) to Test Statistic

p-Value Approach to Testing • Convert Sample Statistic (e. g. ) to Test Statistic (e. g. Z, t ) • Obtain the p-value from a table or computer – p-value: Probability of obtaining a test statistic more extreme ( or ) than the observed sample value given H 0 is true – Called observed level of significance – Smallest value of that an H 0 can be rejected • Compare the p-value with – If p-value , Fail to reject H 0 , reject H 0 P-Value (or probability value) the probability of getting a value of the sample test statistic that is at least as extreme as the one found from the sample data.

General Steps in Hypothesis Testing P Parameter H Hypothesis A Assumptions (SRS, Normaility etc.

General Steps in Hypothesis Testing P Parameter H Hypothesis A Assumptions (SRS, Normaility etc. ) N Name the test (one sample z test for means) T Test (do it) O Observed P-Value M Make a decision and draw a diagram with a shaded region and critical values S Make a complete sentence about what you found in context of the problem situation

One-tail Z Test for Mean ( Known) • Assumptions – Population is normally distributed

One-tail Z Test for Mean ( Known) • Assumptions – Population is normally distributed – If not normal, requires large samples – Null hypothesis has equality sign only • Z test statistic –