33
1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1. For a single coefficient 2. For multiple coefficients 3. Other types of hypotheses involving multiple coefficients 4. Model specification how to decide what variables to include in a regression model

1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

Embed Size (px)

Citation preview

Page 1: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

1

Hypothesis Tests & Confidence Intervals (SW Ch. 7)

1. For a single coefficient2. For multiple coefficients3. Other types of hypotheses involving multiple coefficients4. Model specification

• how to decide what variables to include in a regression model

Page 2: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

2

Hypothesis Tests and Confidence Intervals for a Single Coefficient

Page 3: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

3

Standard errors in multiple regression in STATA

Page 4: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

4

Tests of Joint Hypotheses• A joint hypothesis specifies a value for 2 or more coefficients,

also called “imposing restrictions” on q coefficients• Consider the population regression model:

• Expn = expenditures per pupil

• Test the null hypothesis that “school resources don’t matter” vs. the alternative that they do …

Page 5: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

5

Why can’t we just test the coefficients “one at a time”?

• The “one at time” test is: Reject H0: 1 = 2 = 0 if |t1| > 1.96 and/or |t2| > 1.96

• What is the probability that this “one at a time” test rejects H0, when H0 is actually true? (It should be 5%.)

Page 6: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

6

Size of a Test

Page 7: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

7

The F-statistic testing 1 and 2

Page 8: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

8

Large-sample distribution of the F-statistic

Page 9: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

9

Page 10: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

10

p-value for the F-statistic

. display Ftail(2, 416, 5.43) = .00469934 . display 1 – chi2(2, 2*5.43) = .0043831

. display invchi2(2, .95) / 2 = 2.9957

Page 11: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

11

Recall the “subset” F-statistic from Stats class

Page 12: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

12

The “restricted” and “unrestricted” regressions

Page 13: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

13

Example

Page 14: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

14

The homoskedasticity & normality-only F-statistic – Summary

Page 15: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

15

The Fq,n–k–1 distribution

Page 16: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

16

A history of statistics lesson …

Page 17: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

17

Testing Single Restrictions on Multiple Coefficients

Page 18: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

18

Testing Single Restrictions on Multiple Coefficients

Page 19: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

19

Method 1: Rearrange (“transform”) the regression

Page 20: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

20

Method 2: Perform the test directly

Page 21: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

21

Confidence Sets for Multiple Coefficients

Page 22: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

22

Page 23: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

23

Confidence set based on inverting the F-statistic

Page 24: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

24

Model Specification

Page 25: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

25

Model Specification

Page 26: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

26

California Test Score Application

Page 27: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

27

More California data…

Page 28: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

28

Page 29: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

29

Page 30: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

30

Page 31: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

31

Page 32: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

32

Page 33: 1 Hypothesis Tests & Confidence Intervals (SW Ch. 7) 1.For a single coefficient 2.For multiple coefficients 3.Other types of hypotheses involving multiple

33