section 8.1 basic principles of hypothesis testing copyright ©2014 the mcgraw-hill companies, inc....

19
SECTION 8.1 BASIC PRINCIPLES OF HYPOTHESIS TESTING Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Upload: scarlett-ross

Post on 17-Dec-2015

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: SECTION 8.1 BASIC PRINCIPLES OF HYPOTHESIS TESTING Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display

Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

SECTION 8.1BASIC PRINCIPLES OF HYPOTHESIS TESTINGCopyright ©2014 The McGraw-Hill Companies, Inc.  Permission required for

reproduction or display.

Page 2: SECTION 8.1 BASIC PRINCIPLES OF HYPOTHESIS TESTING Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display

Objectives

1. Define the null and alternate hypotheses

2. State conclusions to hypothesis tests

3. Distinguish between Type I and Type II errors

Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 3: SECTION 8.1 BASIC PRINCIPLES OF HYPOTHESIS TESTING Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display

Define the null and alternate hypotheses

Objective 1

Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 4: SECTION 8.1 BASIC PRINCIPLES OF HYPOTHESIS TESTING Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display

Null and alternate Hypotheses

A study published in the Journal of the Air and Waste Management Association reported that the mean amount of particulate matter (PM) produced by cars and light trucks in an urban setting is 35 milligrams of PM per mile of travel. Suppose that a new engine design is proposed that is intended to reduce the amount of PM in the air. There are two possible outcomes that could happen with the new engine design: either the new design will reduce the level of PM, or it will not.

These possibilities are called hypotheses. One of the hypotheses is called the null hypothesis and the other is called the alternate hypothesis.

Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 5: SECTION 8.1 BASIC PRINCIPLES OF HYPOTHESIS TESTING Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display

Definition and Notation

The null hypothesis about a parameter states that the parameter is equal to a specific value, . The null hypothesis is denoted .

The alternate hypothesis about a parameter states that the parameter differs from the value specified by the null hypothesis, . The alternate hypothesis is denoted . There are three possible alternate hypotheses:

1. Left-tailed: States that the parameter is less than the value specified by the null hypothesis, for example,

2. Right-tailed: States that the parameter is greater than value specified by the null hypothesis, for example,

3. Two-tailed: States that the parameter is not equal to the value specified by the null hypothesis, for example,

Left-tailed and right-tailed hypotheses are called one-tailed hypotheses.

Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 6: SECTION 8.1 BASIC PRINCIPLES OF HYPOTHESIS TESTING Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display

Example

Boxes of a certain kind of cereal are labeled as containing 20 ounces. An inspector thinks that the mean weight may be less than this. State the appropriate null and alternate hypotheses.

Solution:

The null hypothesis says that there is no difference, so . The inspector thinks that the mean weight may be less than 20, so .

This would be an example of a left-tailed test, because .

Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 7: SECTION 8.1 BASIC PRINCIPLES OF HYPOTHESIS TESTING Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display

Example

Last year, the mean monthly rent for an apartment in a certain city was $800. A real estate agent believes that the mean rent is higher this year. State the appropriate null and alternate hypotheses.

Solution

The null hypothesis says that there is no change, so the null hypothesis is . The real estate agent wants to know whether the mean is higher, so the alternate hypothesis is .

Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 8: SECTION 8.1 BASIC PRINCIPLES OF HYPOTHESIS TESTING Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display

Example

Scores on a standardized test have a mean of 70. Some modifications are made to the test, and an educator believes that the mean may have changed. State the appropriate null and alternate hypotheses.

Solution

The null hypothesis says that there is no change, so the null hypothesis is . The educator wants to know whether the mean has changed, without specifying whether it has increased or decreased. Therefore, the alternate hypothesis is .

Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 9: SECTION 8.1 BASIC PRINCIPLES OF HYPOTHESIS TESTING Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display

A Hypothesis Test is Like a Trial

The purpose of a hypothesis test is to determine how likely it is that the null hypothesis is true.The idea behind a hypothesis test is similar to a criminal trial. At the beginning of a trial, the defendant is assumed to be innocent. Then the evidence is presented. If the evidence strongly indicates that the defendant is guilty, we abandon the assumption of innocence and conclude the defendant is guilty. In a hypothesis test, the null hypothesis is like the defendant in a criminal trial.

At the start of a hypothesis test, we assume that the null hypothesis is true.

Then we look at the evidence, which comes from data that have been collected.

If the data strongly indicate that the null hypothesis is false, we abandon our assumption that it is true and believe the alternate hypothesis instead. This is referred to as rejecting the null hypothesis.

Assume the Null

Hypothesis is True

Look at Evidence

Decide Whether to Reject the

Null Hypothesis

Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 10: SECTION 8.1 BASIC PRINCIPLES OF HYPOTHESIS TESTING Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display

State conclusions to hypothesis tests

Objective 2

Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 11: SECTION 8.1 BASIC PRINCIPLES OF HYPOTHESIS TESTING Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display

Stating Conclusions

We may either reject the null hypothesis or fail to reject the null hypothesis.

If the null hypothesis is rejected, the conclusion is straightforward: We conclude that the alternate hypothesis, , is true.

If the null hypothesis is not rejected, we are saying that there is not enough evidence to conclude that the alternate hypothesis, , is true. We are not saying the null hypothesis is true. What we are saying is that the null hypothesis might be true.

H0: Null HypothesisH1: Alternate Hypothesis

Null Hypothesis “might” be true

Fail to Reject H0

Accept the Alternate

Hypothesis

Reject H0

Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 12: SECTION 8.1 BASIC PRINCIPLES OF HYPOTHESIS TESTING Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display

Example

Boxes of a certain kind of cereal are labeled as containing 20 ounces. An inspector thinks that the mean weight may be less than this, so he performs a test of versus . He rejects the null hypothesis. State an appropriate conclusion.

Solution:

Because the null hypothesis is rejected, we conclude that the alternate hypothesis is true. We conclude that the mean weight of cereal is less than 20 ounces.

Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 13: SECTION 8.1 BASIC PRINCIPLES OF HYPOTHESIS TESTING Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display

Example

Boxes of a certain kind of cereal are labeled as containing 20 ounces. An inspector thinks that the mean weight may be less than this, so he performs a test of versus . He does not reject the null hypothesis. State an appropriate conclusion.

Solution:

Because the null hypothesis is not rejected, we do not have sufficient evidence to conclude that the alternate hypothesis is true. In words, we state: “There is not enough evidence to conclude that the mean weight of cereal boxes is less than 20 ounces.”

Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 14: SECTION 8.1 BASIC PRINCIPLES OF HYPOTHESIS TESTING Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display

Distinguish between Type I and Type II errors

Objective 3

Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 15: SECTION 8.1 BASIC PRINCIPLES OF HYPOTHESIS TESTING Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display

Type I and Type II Errors

When a hypothesis test is conducted and a decision is made there is a possibility that it is the wrong decision.

There are two ways in which a wrong decision may occur with hypothesis testing.

1. If is true, we might mistakenly reject it. A type I error occurs when we reject when it is actually true.

2. If is false, we might mistakenly decide not to reject it. A type II error occurs when we do not reject when it is actaully false.

Decision H0 is True H0 is False

Reject H0 Type I Error Correct Decision

Fail to Reject H0

Correct Decision

Type II Error

Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 16: SECTION 8.1 BASIC PRINCIPLES OF HYPOTHESIS TESTING Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display

Example

The dean of a business school wants to determine whether the mean starting salary of graduates of her school is greater than $50,000. She will perform a hypothesis test with the following null and alternate hypotheses:

Suppose that the true mean is , and the dean rejects . Is this a Type I error, Type II error, or a correct decision?

Solution:

The true mean is = $50, 000, so is true. Because the dean rejects , this is a Type I error.

Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 17: SECTION 8.1 BASIC PRINCIPLES OF HYPOTHESIS TESTING Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display

Example

The dean of a business school wants to determine whether the mean starting salary of graduates of her school is greater than $50,000. She will perform a hypothesis test with the following null and alternate hypotheses:

Suppose that the true mean is , and the dean rejects . Is this a Type I error, Type II error, or a correct decision?

Solution:

The true mean is = $55, 000, so is false. Because the dean rejects , this is a correct decision.

Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 18: SECTION 8.1 BASIC PRINCIPLES OF HYPOTHESIS TESTING Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display

Example

The dean of a business school wants to determine whether the mean starting salary of graduates of her school is greater than $50,000. She will perform a hypothesis test with the following null and alternate hypotheses:

Suppose that the true mean is , and the dean does not reject . Is this a Type I error, Type II error, or a correct decision?

Solution:

The true mean is = $55, 000, so is false. Because the dean does not reject , this is a Type II error.

Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 19: SECTION 8.1 BASIC PRINCIPLES OF HYPOTHESIS TESTING Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display

Do You Know…

• How to write the null and alternate hypotheses?

• How to determine whether a hypothesis test is left-tailed, right-tailed, or two-tailed?

• How to state the conclusion to a hypothesis test?

• How to distinguish between Type I and Type II errors and correct decisions?

Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.