type ii error and the power of a test a type i error occurs when the null hypothesis is rejected...

23
TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the null hypothesis is not rejected when it is in fact false. 1 f(X ) m 0 –1.96s.d. m 0 –1.96s.d. 2.5% 2.5% X 0 0 rejection region rejection region acceptance region (5% test) m 0 m 1

Upload: leon-carroll

Post on 29-Jan-2016

228 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

TYPE II ERROR AND THE POWER OF A TEST

A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the null hypothesis is not rejected when it is in fact false.

1

f(X)

m0–1.96s.d. m0–1.96s.d.

2.5% 2.5%

X0

0

rejection region rejection regionacceptance region(5% test)

m0 m1

Page 2: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

We will see that, in general, there is a trade-off between the risk of making a Type I error and the risk of making a Type II error.

2

TYPE II ERROR AND THE POWER OF A TEST

f(X)

m0–1.96s.d. m0–1.96s.d.

2.5% 2.5%

X0

0

rejection region rejection regionacceptance region(5% test)

m0 m1

Page 3: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

We will consider the case where the null hypothesis, H0: m = m0 is false and the actual value of m is m1. This is shown in the figure.

3

TYPE II ERROR AND THE POWER OF A TEST

f(X)

m0–1.96s.d. m0–1.96s.d.

2.5% 2.5%

X0

0

rejection region rejection regionacceptance region(5% test)

m0 m1

Page 4: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

If the null hypothesis is tested, it will be rejected only if X lies in one of the rejection regions associated with it.

4

TYPE II ERROR AND THE POWER OF A TEST

f(X)

m0–1.96s.d. m0–1.96s.d.

2.5% 2.5%

X0

0

rejection region rejection regionacceptance region(5% test)

m0 m1

Page 5: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

To determine the rejection regions, we draw the distribution of X conditional on H0 being true. The distribution is marked with a dashed curve to emphasize that H0 is not actually true.

5

TYPE II ERROR AND THE POWER OF A TEST

f(X)

m0–1.96s.d. m0–1.96s.d.

2.5% 2.5%

X0

0

rejection region rejection regionacceptance region(5% test)

m0 m1

Page 6: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

The rejection regions for a (two-sided) 5 percent test, given this distribution, are marked on the diagram.

6

TYPE II ERROR AND THE POWER OF A TEST

f(X)

m0–1.96s.d. m0–1.96s.d.

2.5% 2.5%

X0

0

rejection region rejection regionacceptance region(5% test)

m0 m1

Page 7: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

If X lies in the acceptance region, H0 will not be rejected, and so a Type II error will occur. What is the probability of this happening? To determine this, we now turn to the actual distribution of X, given that m = m1. This is the solid curve on the right.

7

TYPE II ERROR AND THE POWER OF A TEST

f(X)

m0–1.96s.d. m0–1.96s.d.

2.5% 2.5%

X0

0

rejection region rejection regionacceptance region(5% test)

m0 m1

Page 8: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

The probability of X lying in the acceptance region for H0 is the area under this curve in the acceptance region. It is the blue area in the figure. In this particular case, the probability of X lying within the acceptance region for H0, thus causing a Type II error, is 0.15.

8

TYPE II ERROR AND THE POWER OF A TEST

f(X)

m0–1.96s.d. m0–1.96s.d. X

0.15

true distribution

false distribution

00

rejection region rejection regionacceptance region(5% test)

m0 m1

Page 9: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

The probability of rejecting the null hypothesis, when it is false, is known as the power of a test. By definition, it is equal to 1 minus the probability of making a Type II error. It is therefore 0.85 in this example.

9

TYPE II ERROR AND THE POWER OF A TEST

f(X)

m0–1.96s.d. m0–1.96s.d. X

0.15

true distribution

false distribution

0.850

0

rejection region rejection regionacceptance region(5% test)

m0 m1

Page 10: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

The power depends on the distance between the value of m under the false null hypothesis and its actual value. The closer that the actual value is to m0, the harder it is to demonstrate that H0: m = m0 is false.

10

TYPE II ERROR AND THE POWER OF A TEST

f(X)

m0–1.96s.d. m0–1.96s.d.m1 X

0.15

true distribution

false distribution

0.850

0

rejection region rejection regionacceptance region(5% test)

m0

Page 11: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

This is illustrated in the figure. m0 is the same as in the previous figure, and so the acceptance region and rejection regions for the test of H0: m = m0 are the same as in the previous figure.

11

TYPE II ERROR AND THE POWER OF A TEST

rejection region rejection regionacceptance region(5% test)

f(X)

Xm0–1.96s.d. m0–1.96s.d.m0 m2

false distribution

true distribution

00

Page 12: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

As in the previous figure, H0 is false, but now the true value is m2, and m2 is closer to m0. As a consequence, the probability of X lying in the acceptance region for H0 is much greater, 0.68 instead of 0.15, and so the power of the test, 0.32, is much lower.

12

TYPE II ERROR AND THE POWER OF A TEST

rejection region rejection regionacceptance region(5% test)

f(X)

Xm0–1.96s.d. m0–1.96s.d.m0 m2

false distribution

true distribution

00

0.320.68

Page 13: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

The figure plots the power of a 5 percent significance test as a function of the distance separating the actual value of m and m0, measured in terms of the standard deviation of the distribution of X.

13

TYPE II ERROR AND THE POWER OF A TEST

0.0

0.2

0.4

0.6

0.8

1.0

0 1 2 3 4 5

Pro

bab

ilit

y o

f re

ject

ing

H0

Distance between the actual value of m and m0 (standard deviations)

Page 14: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

As is intuitively obvious, the greater is the discrepancy, the greater is the probability of H0: m = m0 being rejected.

14

TYPE II ERROR AND THE POWER OF A TEST

0.0

0.2

0.4

0.6

0.8

1.0

0 1 2 3 4 5

Pro

bab

ilit

y o

f re

ject

ing

H0

Distance between the actual value of m and m0 (standard deviations)

Page 15: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

We now return to the original value of m1 and again consider the case where H0: m = m0 is false and H1: m = m1 is true. What difference does it make if we perform a 1 percent test, instead of a 5 percent test?

15

TYPE II ERROR AND THE POWER OF A TEST

f(X)

Xm0–2.58s.d. m0–2.58s.d.m0

false distribution

m1

true distribution

0.5% 0.5%

00

rejection region rejection regionacceptance region(1% test)

Page 16: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

The figure shows the acceptance region for the 1 percent test.

16

TYPE II ERROR AND THE POWER OF A TEST

f(X)

Xm0–2.58s.d. m0–2.58s.d.m0

false distribution

m1

true distribution

0.5% 0.5%

00

rejection region rejection regionacceptance region(1% test)

Page 17: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

The probability of X lying in this region, given that it is actually distributed with mean m1, is shown as the yellow shaded area. It is 0.34. The probability of making a Type II error is therefore 0.34.

17

TYPE II ERROR AND THE POWER OF A TEST

f(X)

Xm0–2.58s.d. m0–2.58s.d.m0

false distribution

m1

true distribution

0.5% 0.5%

00

0.34

rejection region rejection regionacceptance region(1% test)

Page 18: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

We have seen that the probability of making a Type II error with a 5 percent test, given by the blue shaded area, was 0.15. This illustrates the trade-off between the risks of Type I and Type II error.

18

TYPE II ERROR AND THE POWER OF A TEST

f(X)

Xm0–2.58s.d. m0–2.58s.d.m0

false distribution

m1

true distribution

0.5% 0.5%

00

0.15

rejection region rejection regionacceptance region(1% test)

Page 19: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

If we perform a 1 percent test instead of a 5 percent test, and H0 is true, the risk of mistakenly rejecting it (and therefore committing a Type I error) is only 1 percent instead of 5 percent.

19

TYPE II ERROR AND THE POWER OF A TEST

f(X)

Xm0–2.58s.d. m0–2.58s.d.m0

false distribution

m1

true distribution

0.5% 0.5%

00

0.15

rejection region rejection regionacceptance region(1% test)

Page 20: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

However, if H0 happens to be false, the probability of not rejecting it (and therefore committing a Type II error) is larger.

20

TYPE II ERROR AND THE POWER OF A TEST

f(X)

Xm0–2.58s.d. m0–2.58s.d.m0

false distribution

m1

true distribution

0.5% 0.5%

00

0.15

rejection region rejection regionacceptance region(1% test)

Page 21: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

How much larger? This is not fixed. It depends on the distance between m0 and m1, measured in terms of standard deviations. In this particular case, it has increased from 0.15 to 0.34, so it has about doubled.

21

TYPE II ERROR AND THE POWER OF A TEST

f(X)

Xm0–2.58s.d. m0–2.58s.d.m0

false distribution

m1

true distribution

0.5% 0.5%

00

0.15

rejection region rejection regionacceptance region(1% test)

Page 22: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

To generalize, we plot the power functions for the 5 percent and 1 percent tests.

22

TYPE II ERROR AND THE POWER OF A TEST

0.0

0.2

0.4

0.6

0.8

1.0

0 1 2 3 4 5

Pro

bab

ilit

y o

f re

ject

ing

H0

5% test 1% test

Distance between the actual value of m and m0 (standard deviations)

Page 23: TYPE II ERROR AND THE POWER OF A TEST A Type I error occurs when the null hypothesis is rejected when it is in fact true. A Type II error occurs when the

Copyright Christopher Dougherty 2012.

These slideshows may be downloaded by anyone, anywhere for personal use.

Subject to respect for copyright and, where appropriate, attribution, they may be

used as a resource for teaching an econometrics course. There is no need to

refer to the author.

The content of this slideshow comes from Section R.10 of C. Dougherty,

Introduction to Econometrics, fourth edition 2011, Oxford University Press.

Additional (free) resources for both students and instructors may be

downloaded from the OUP Online Resource Centre

http://www.oup.com/uk/orc/bin/9780199567089/.

Individuals studying econometrics on their own who feel that they might benefit

from participation in a formal course should consider the London School of

Economics summer school course

EC212 Introduction to Econometrics

http://www2.lse.ac.uk/study/summerSchools/summerSchool/Home.aspx

or the University of London International Programmes distance learning course

EC2020 Elements of Econometrics

www.londoninternational.ac.uk/lse.

2012.11.02