power of a hypothesis test. h 0 true h 0 false reject fail to reject type i correct type ii power ...

12
Power of a Power of a Hypothesis test Hypothesis test

Upload: pauline-wade

Post on 17-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Power of a Hypothesis test. H 0 True H 0 False Reject Fail to reject Type I Correct Type II Power   Suppose H 0 is true – what if we decide to fail

Power of a Power of a Hypothesis testHypothesis test

Page 2: Power of a Hypothesis test. H 0 True H 0 False Reject Fail to reject Type I Correct Type II Power   Suppose H 0 is true – what if we decide to fail

H0 True

H0

FalseReject

Fail to reject

Type I Correct

Correct

Type II

Power

Suppose H0 is true – what if we decide to

fail to reject it?

Suppose H0 is false – what if we

decide to reject it?

Suppose H0 is true – what if we

decide to reject it?

Suppose H0 is false – what if

we decide to fail to reject it?

We correctly We correctly reject a false Hreject a false H00!!

Page 3: Power of a Hypothesis test. H 0 True H 0 False Reject Fail to reject Type I Correct Type II Power   Suppose H 0 is true – what if we decide to fail

The powerpower of a test (against a specific alternative value)• Is the probability that the test

will reject the null hypothesis when the alternative is true

• In practice, we carry out the test in hope of showing that the null hypothesis is false, so high power is important.

Page 4: Power of a Hypothesis test. H 0 True H 0 False Reject Fail to reject Type I Correct Type II Power   Suppose H 0 is true – what if we decide to fail

A researcher selects a random sample of size 49 from a population with standard deviation = 35 in order to test at the 1% significance level the hypothesis:

H0: = 680

Ha: > 680

What is the probability of committing a Type I error? = .01

Page 5: Power of a Hypothesis test. H 0 True H 0 False Reject Fail to reject Type I Correct Type II Power   Suppose H 0 is true – what if we decide to fail

H0: = 680

Ha: > 680

For what values of the sample mean would you reject the null hypothesis?

Invnorm(.99,680,5) =691.63

Page 6: Power of a Hypothesis test. H 0 True H 0 False Reject Fail to reject Type I Correct Type II Power   Suppose H 0 is true – what if we decide to fail

Normalcdf(-10^99,691.63,700,5) =.0471

Power = 1 - .0471 = .9529

Go to 2nd VARS, enter normalcdfLower: -100,000Upper: 691.63Mean: 700Standard deviation: 5

Page 7: Power of a Hypothesis test. H 0 True H 0 False Reject Fail to reject Type I Correct Type II Power   Suppose H 0 is true – what if we decide to fail

H0: = 680

Ha: > 680

If H0 is rejected, suppose that a is 695. What is the probability of committing a Type II error?

What is the power of the test?

Normalcdf(-10^99,691.63,695,5) =.2502Power = 1 - .2502 = .7498

Page 8: Power of a Hypothesis test. H 0 True H 0 False Reject Fail to reject Type I Correct Type II Power   Suppose H 0 is true – what if we decide to fail

Reject H0Fail to Reject H0

Power = 1 -

0

a

Page 9: Power of a Hypothesis test. H 0 True H 0 False Reject Fail to reject Type I Correct Type II Power   Suppose H 0 is true – what if we decide to fail

What happens to What happens to , , , & , & power when the sample size power when the sample size

is increased?is increased?Reject H0Fail to Reject H0

0

a

Page 10: Power of a Hypothesis test. H 0 True H 0 False Reject Fail to reject Type I Correct Type II Power   Suppose H 0 is true – what if we decide to fail

Facts:Facts:• The researcher is free to determine the

value of .• The experimenter cannot control , since it

is dependent on the alternate value.• The ideal situation is to have as small as

possible and power close to 1. (Power > .8)• As increases, powerpower increases. (But also

the chance of a type I error has increased!)• Best way to increase power, without

increasing , is to increase the sample sizesample size

Page 11: Power of a Hypothesis test. H 0 True H 0 False Reject Fail to reject Type I Correct Type II Power   Suppose H 0 is true – what if we decide to fail

A water quality control board reports that water is unsafe for drinking if the mean nitrate concentration exceeds 30 ppm. Water specimens are taken from a well.

Identify the decision:

a) You decide that the water is not safe to drink when in fact it is safe.

Type I Error

Page 12: Power of a Hypothesis test. H 0 True H 0 False Reject Fail to reject Type I Correct Type II Power   Suppose H 0 is true – what if we decide to fail

A water quality control board reports that water is unsafe for drinking if the mean nitrate concentration exceeds 30 ppm. Water specimens are taken from a well.

Identify the decision:

b) You decide that the water is not safe to drink when in fact it is not safe.

Correct – Power!!