35
Hypothesis testing is used to make decisions concerning the value of a parameter.

Hypothesis testing is used to make decisions concerning the value of a parameter

Embed Size (px)

Citation preview

Page 1: Hypothesis testing is used to make decisions concerning the value of a parameter

Hypothesis testing is used to make decisions concerning the value of a parameter.

Page 2: Hypothesis testing is used to make decisions concerning the value of a parameter

Null Hypothesis: H0

a working hypothesis about the population parameter in

question

Page 3: Hypothesis testing is used to make decisions concerning the value of a parameter

The value specified in the null hypothesis is often:

• a historical value

• a claim

• a production specification

Page 4: Hypothesis testing is used to make decisions concerning the value of a parameter

Alternate Hypothesis: H1

any hypothesis that differs from the null hypothesis

Page 5: Hypothesis testing is used to make decisions concerning the value of a parameter

An alternate hypothesis is constructed in such a way that

it is the one to be accepted when the null hypothesis must

be rejected.

Page 6: Hypothesis testing is used to make decisions concerning the value of a parameter

A manufacturer claims that their light bulbs burn for an average of 1000 hours. We have reason to believe that

the bulbs do not last that long.

Determine the null and alternate hypotheses.

Page 7: Hypothesis testing is used to make decisions concerning the value of a parameter

A manufacturer claims that their light bulbs burn for an average of 1000 hours. ...

The null hypothesis (the claim) is that the true average life is 1000

hours.

H0: = 1000

Page 8: Hypothesis testing is used to make decisions concerning the value of a parameter

… A manufacturer claims that their light bulbs burn for an average of 1000 hours. We

have reason to believe that the bulbs do not last that long. ...If we reject the manufacturer’s claim,

we must accept the alternate hypothesis that the light bulbs do not

last as long as 1000 hours.

H1: < 1000

Page 9: Hypothesis testing is used to make decisions concerning the value of a parameter

Type I Error

rejecting a null hypothesis which is, in fact, true

Page 10: Hypothesis testing is used to make decisions concerning the value of a parameter

Type II Error

not rejecting a null hypothesis which is, in fact, false

Page 11: Hypothesis testing is used to make decisions concerning the value of a parameter

Options in Hypothesis Testing

Do Not Reject Reject

True

False

H0 is

Our Choices:

Page 12: Hypothesis testing is used to make decisions concerning the value of a parameter

Errors in Hypothesis TestingErrors in Hypothesis Testing

Do Not Reject Reject

True

False

H0 is

Our Choices:

Type I error

Page 13: Hypothesis testing is used to make decisions concerning the value of a parameter

Errors in Hypothesis TestingErrors in Hypothesis Testing

Do Not Reject Reject

True

False

H0 is

Our Choices:

Type I error

Type II error

Page 14: Hypothesis testing is used to make decisions concerning the value of a parameter

Errors in Hypothesis TestingErrors in Hypothesis Testing

Do Not Reject Reject

True

False

H0 is

Our Choices:

Correct decision

Type I error

Type II error

Correct decision

Page 15: Hypothesis testing is used to make decisions concerning the value of a parameter

Level of Significance, Alpha ()

the probability with which we are willing to risk a type I error

Page 16: Hypothesis testing is used to make decisions concerning the value of a parameter

Type II Error = beta =probability of a type II error (failing to reject a false hypothesis)

small is normally is associated with a (relatively) large , and vice-versa.

Choices should be made according to which error is more serious.

Page 17: Hypothesis testing is used to make decisions concerning the value of a parameter

Power of the Test = 1 – Beta

• The probability of rejecting H0 when it is in fact false = 1 – .

• The power of the test increases as the level of significance () increases.

• Using a larger value of alpha increases the power of the test but also increases the probability of rejecting a true hypothesis.

Page 18: Hypothesis testing is used to make decisions concerning the value of a parameter

Probabilities Associated with a Hypothesis Test

Our Decision

Do not reject H0 Reject H0

H0 is true

H0 is false

Page 19: Hypothesis testing is used to make decisions concerning the value of a parameter

Probabilities Associated with a Hypothesis Test

Our Decision

Do not reject H0 Reject H0

H0 is true Correct decisionwith probability

1 - H0 is false

Page 20: Hypothesis testing is used to make decisions concerning the value of a parameter

Probabilities Associated with a Hypothesis Test

Our Decision

Do not reject H0 Reject H0

H0 is true Correct decisionwith probability

1 -

Type I errorwith probability

H0 is false

Page 21: Hypothesis testing is used to make decisions concerning the value of a parameter

Probabilities Associated with a Hypothesis Test

Our Decision

Do not reject H0 Reject H0

H0 is true Correct decisionwith probability

1 -

Type I errorwith probability

H0 is false Type II error

with probability

Page 22: Hypothesis testing is used to make decisions concerning the value of a parameter

Probabilities Associated with a Hypothesis Test

Our Decision

Do not reject H0 Reject H0

H0 is true Correct decisionwith probability

1 -

Type I errorwith probability

H0 is false Type II error

with probability

Correct decisionwith probability

1 -

Page 23: Hypothesis testing is used to make decisions concerning the value of a parameter

Reject or ...

• When the sample evidence is not strong enough to justify rejection of the null hypothesis, we fail to reject the null hypothesis.

• Use of the term “accept the null hypothesis” should be avoided.

• When the null hypothesis cannot be rejected, a confidence interval is frequently used to give a range of possible values for the parameter.

Page 24: Hypothesis testing is used to make decisions concerning the value of a parameter

Fail to Reject H0

There is not enough evidence to reject H0. The null hypothesis is

retained but has not been proven.

Page 25: Hypothesis testing is used to make decisions concerning the value of a parameter

Reject H0

There is enough evidence to reject H0. Choose the alternate

hypothesis with the understanding that it has not been proven.

Page 26: Hypothesis testing is used to make decisions concerning the value of a parameter

A fast food restaurant indicated that the average age of its job applicants is fifteen years. We suspect that the true age is lower than 15.

We wish to test the claim with a level of significance of =

0.01,

Page 27: Hypothesis testing is used to make decisions concerning the value of a parameter

… average age of its job applicants is fifteen years. We

suspect that the true age is lower than 15.

H0: = 15

H1: < 15

Describe Type I and Type II errors.

Page 28: Hypothesis testing is used to make decisions concerning the value of a parameter

H0: = 15 H1: < 15 = 0.01

A type I error would occur if we rejected the claim that the mean age was 15, when in fact the mean age was 15 (or higher). The probability of committing such an error is as much as 1%.

Page 29: Hypothesis testing is used to make decisions concerning the value of a parameter

H0: = 15 H1: < 15

= 0.01A type II error would occur if we failed to

reject the claim that the mean age was 15, when in fact the mean age was lower than 15. The probability of committing such an error is called beta.

Page 30: Hypothesis testing is used to make decisions concerning the value of a parameter

Types of Tests

• When the alternate hypothesis contains the “not equal to” symbol ( ), perform a two-tailed test..

• When the alternate hypothesis contains the “greater than” symbol ( > ), perform a right-tailed test.

• When the alternate hypothesis contains the “less than” symbol ( < ), perform a left-tailed test.

Page 31: Hypothesis testing is used to make decisions concerning the value of a parameter

Two-Tailed Test

H0: = k

H1: k

Page 32: Hypothesis testing is used to make decisions concerning the value of a parameter

Two-Tailed Test

– z 0 z

If test statistic is at or near the

claimed mean, we

do not reject the Null

Hypothesis

If test statistic is in either taileither tail - the critical region -

of the distribution, we reject the Null Hypothesis.

H0: = k

H1: k

Page 33: Hypothesis testing is used to make decisions concerning the value of a parameter

Right-Tailed TestRight-Tailed Test

H0: = k

H1: > k

Page 34: Hypothesis testing is used to make decisions concerning the value of a parameter

Right-Tailed TestRight-Tailed Test

0 z

If test statistic is at, near, or below the

claimed mean, we do not reject the Null

Hypothesis

If test statistic is in the right tailthe right tail - the critical region - of

the distribution, we reject the Null Hypothesis.

H0: = k

H1: > k

Page 35: Hypothesis testing is used to make decisions concerning the value of a parameter

Left-Tailed TestLeft-Tailed Test

z 0

If test statistic is at, near, or above the

claimed mean, we do not reject the Null

Hypothesis

If test statistic is in the left tailthe left tail - the critical region - of the

distribution, we reject the Null Hypothesis.

H0: = k

H1: < k