+ All Categories
Home > Education > Ch 9 Hypothesis Testing with One Sample - Part I

Ch 9 Hypothesis Testing with One Sample - Part I

Date post: 11-Apr-2017
Category:
Upload: jason-edington
View: 26 times
Download: 3 times
Share this document with a friend
19
HYPOTHESIS TESTING WITH ONE SAMPLE Chapter 9 – Part I
Transcript
Page 1: Ch 9 Hypothesis Testing with One Sample - Part I

HYPOTHESIS TESTING WITH ONE SAMPLEChapter 9 – Part I

Page 2: Ch 9 Hypothesis Testing with One Sample - Part I

OBJECTIVESBy the end of this chapter, you should be able to:

1. Differentiate between Type I and Type II Errors

2. Describe hypothesis testing in general and in practice

3. Conduct and interpret hypothesis testing for a mean

4. Conduct and interpret hypothesis testing for a proportion

Null and Alternative Hypothesis Type I and Type II Errors Hypothesis Testing

Page 3: Ch 9 Hypothesis Testing with One Sample - Part I

INFERENTIAL STATISTICS Inferential Statistics: Using sample data to make generalizations about an

unknown population Confidence Intervals were one way to do statistical inference Another way to do statistical inference is to make a decision about the value of a

parameter Example: A car dealer claims that its new small truck gets 35 miles per gallon on

average Example: A company says that women managers in their company ern an average of

$60,000 per year Example: A tutoring service claims that its methods help 90% of its students to at least

a B How do we test the ‘claims’ in these example? Hypothesis Testing!

Null and Alternative Hypothesis Type I and Type II Errors Hypothesis Testing

Page 4: Ch 9 Hypothesis Testing with One Sample - Part I

WHAT IS A HYPOTHESIS? Hypothesis: A statement about the value of a population parameter

developed for the purpose of testing.

Example: The mean monthly income for computer programmers is $9,000

Example: At least 20% of all juvenile offenders are caught and sentenced to prison

Example: The standard deviation for an investment portfolio is no more than 10% a month

So hypothesis testing is going to be a way to prove (or disprove) whether or not a hypothesis is true or false

Null and Alternative Hypothesis Type I and Type II Errors Hypothesis Testing

Page 5: Ch 9 Hypothesis Testing with One Sample - Part I

HYPOTHESIS TESTING Hypothesis Testing: A procedure, based on sample evidence and

probability theory, used to determine whether the hypothesis is a reasonable statement and should not be rejected, or is unreasonable and should be rejected

Steps to perform a hypothesis test:1. Plan the test and formulate the hypothesis2. Gather data3. Analyze data4. Decide whether you reject or fail to reject your hypothesis based on analyzing

the data5. Interpret the decision in the context of the problem

The above steps are the general framework we are going to learn about Let’s discuss step 1 first

Null and Alternative Hypothesis Type I and Type II Errors Hypothesis Testing

Page 6: Ch 9 Hypothesis Testing with One Sample - Part I

NULL AND ALTERNATIVE HYPOTHESIS The actual test begins by considering two hypothesis:

The null hypothesis The alternative hypothesis

The null and alternative hypothesis contain opposing viewpoints Null Hypothesis: A statement about the value of a population parameter

that is assumed to be true for the purpose of testing The null hypothesis always included the equal sign

Alternative Hypothesis: A statement about the value of a population parameter that is assumed to be true if the Null Hypothesis is rejected during testing The alternative hypothesis is always the OPPOSITE of the null hypothesis

Notation: H0: The null hypothesis Ha: The alternative hypothesis

Null and Alternative Hypothesis Type I and Type II Errors Hypothesis Testing

Page 7: Ch 9 Hypothesis Testing with One Sample - Part I

NULL AND ALTERNATIVE HYPOTHESIS Example: We want to test if college students take less than five years to

graduate from college on average

Example: We want to test whether the mean GPA of students is different from 2.0

After you have determined which hypothesis the sample supports, you make a decision

There are two options for a decision1. Reject H0 if the sample data evidence favors the alternative hypothesis2. Fail to reject H0 if the sample data evidence is insufficient to reject the null hypothesis

Null and Alternative Hypothesis Type I and Type II Errors Hypothesis Testing

Page 8: Ch 9 Hypothesis Testing with One Sample - Part I

RULES FOR SETTING UP THE HYPOTHESIS The null hypothesis H0 must contain equality of some type The alternative hypothesis Ha will be the opposite of the null hypothesis

Let’s consider some examples

Ho HaEqual(=) Not Equal (≠)Greater than or equal to (≥) Less than (<)Less than or equal to (≤) Greater than (>)

Null and Alternative Hypothesis Type I and Type II Errors Hypothesis Testing

Page 9: Ch 9 Hypothesis Testing with One Sample - Part I

LET’S TRY TO STATE THE NULL AND ALTERNATIVE HYPOTHESES IN THESE SCENARIOS To be considered ‘fat-free’, regulations require that a serving of salad

dressing must contain less than 0.5 grams of fat. A salad dressing manufacturer must be able to show that its salad dressing satisfies these guidelines in order to put the words ‘fat-free’ on its label.

What is H0 and Ha?

H0:Ã ù 0.5

Ha:Ã < 0.5

Null and Alternative Hypothesis Type I and Type II Errors Hypothesis Testing

Page 10: Ch 9 Hypothesis Testing with One Sample - Part I

LET’S TRY TO STATE THE NULL AND ALTERNATIVE HYPOTHESES IN THESE SCENARIOS

Engineering students at a college want to determine how the price of their calculus book at their bookstore compares to the price at other college bookstores. The calculus book costs $250 at their bookstore. They will collect data about the price of this calculus book from 30 other bookstores nationwide and will use the sample data to decide whether the average price of this book at all other colleges in the nation is different from the price of $250 at their bookstore.

What is H0 and Ha?

H0:Ã = 250

Ha:Ã ≠250

Null and Alternative Hypothesis Type I and Type II Errors Hypothesis Testing

Page 11: Ch 9 Hypothesis Testing with One Sample - Part I

LET’S TRY TO STATE THE NULL AND ALTERNATIVE HYPOTHESES IN THESE SCENARIOS

It has been estimated that nationally, 16% of US residents lack health insurance coverage. Suppose that a city wanted to determine whether the percent of city residents without health insurance is different from the national percent.

What is H0 and Ha?

H0: p = 250

Ha: p≠250

Null and Alternative Hypothesis Type I and Type II Errors Hypothesis Testing

Page 12: Ch 9 Hypothesis Testing with One Sample - Part I

YOU TRY THESE ON YOUR OWN For each of the following examples, find H0 and

Ha; check with a neighbor, then check with another group. The center for Disease Control reports that only

14% of California adults smoke. A study is conducted to determine if the percent of community college students who smoke is higher than that.

A soda bottler wants to determine whether the 12 ounce soda cans filled at their plant are underfilled, containing less than 12 ounces, on average.

The average amount of time that students do statistics homework each night is 2 hours

At most half of all customers at Ace Auto Repair drive foreign cars

H0: p ≤ 0.14 Ha: p > 0.14

H0: Ha:

H0: Ha:

H0: p ≤ 0.5Ha: p > 0.5

Null and Alternative Hypothesis Type I and Type II Errors Hypothesis Testing

Page 13: Ch 9 Hypothesis Testing with One Sample - Part I

TYPE I AND TYPE II ERRORS When you perform a test, there are four possible outcomes depending on

the truth of H0 and whether you decide to reject or not

A Type I Error occurs when you reject the null hypothesis when it is in fact true

A Type II Error occurs when you fail to reject the null hypothesis when it is in fact false

Each error has its own probability of occurring

Fail to Reject H0 Reject H0

H0 is True Correct Decision Type I ErrorH0 is False Type II Error Correct Decision

Null and Alternative Hypothesis Type I and Type II Errors Hypothesis Testing

Page 14: Ch 9 Hypothesis Testing with One Sample - Part I

TYPE I ERRORS Type I Errors occur when you reject the null hypothesis when it is true The probability that you make a Type I Error is equal to is a number between 0 and 1 is called the significance level of the hypothesis test is pre-determined before the hypothesis test The significance level should be small

You want a low risk of incorrectly rejecting the null hypothesis if it is really true

Null and Alternative Hypothesis Type I and Type II Errors Hypothesis Testing

Page 15: Ch 9 Hypothesis Testing with One Sample - Part I

TYPE II ERRORS Type II errors occur when you fail to reject the null hypothesis when it is

false The probability that you make a type II error is equal to is a number between 0 and 1 1- is called the power of the hypothesis test (Power of the Test) The power of a hypothesis test should be large (close to 1); you want large

probability of correctly rejecting a false null hypothesis One way of increasing the power of the test is to increase the sample size

Null and Alternative Hypothesis Type I and Type II Errors Hypothesis Testing

Page 16: Ch 9 Hypothesis Testing with One Sample - Part I

TYPE I AND TYPE II ERRORS You want and to be as small as possible because they are probability of

making errors Which error is worst to make? Type I Error or Type II Error?

Example: Suppose the null hypothesis, H0 is: the Victim of an automobile accident is alive when he arrives at the emergency room of a hospital. Type I Error: The emergency crew thinks that the victim is dead, when in fact they are

alive Type II Error: The emergency crew does not know if the victim is alive, when in fact, the

victim is dead. Which error is worse in this example?

Null and Alternative Hypothesis Type I and Type II Errors Hypothesis Testing

Page 17: Ch 9 Hypothesis Testing with One Sample - Part I

TYPE I AND TYPE II ERRORS Example: A Court Trial is a real-life example of a hypothesis test

Null Hypothesis: Not Guilty – A person is assumed to be innocent Alternate Hypothesis: Guilty – A person must be proven guilty beyond a

reasonable doubt

Which error is worse? Type I or Type II?

Fail to Reject H0Jury Decides Not

Guilty

Reject H0Jury Decides

GuiltyH0 is True

Person Not Guilty

Correct Decision Type I Error

H0 is FalsePerson is Guilty Type II Error Correct Decision

Null and Alternative Hypothesis Type I and Type II Errors Hypothesis Testing

Page 18: Ch 9 Hypothesis Testing with One Sample - Part I

TYPE I AND TYPE II ERRORS Example: A certain experimental drug claims to cure prostate cancer The null hypothesis, H0 is: The drug cures prostate cancer The alternative hypothesis, Ha is: The drug does not cure prostate cancer

Type I Error: A doctor decides an experimental drug doesn’t cure cancer when it actually does

Type II Error: A doctor decides an experimental drug cures cancer when it actually does not

Which error is worse in this example? Type I or Type II?

Null and Alternative Hypothesis Type I and Type II Errors Hypothesis Testing

Page 19: Ch 9 Hypothesis Testing with One Sample - Part I

TYPE I AND TYPE II ERRORS So the Type I and Type II Errors are controlled by and You get to specify the level

This should always be done before doing any testing or sampling You can try to minimize the value of by collecting a large sample size So, how do we perform a hypothesis test?

1. Plan the test and formulate the hypothesis2. Gather data3. Analyze the data4. Decide whether you reject or fail to reject your hypothesis based on analyzing

the data5. Interpret the decision in context of the problem

Null and Alternative Hypothesis Type I and Type II Errors Hypothesis Testing


Recommended