16
Economics 310 Lecture 11 Dummy variables and Varying Parameters models

Economics 310

Embed Size (px)

DESCRIPTION

Economics 310. Lecture 11 Dummy variables and Varying Parameters models. Multiple dummy variables. Y. X. More than one Qualitative Variable. Varying Parameter Model. Y. X. First Model. Second Model. Y. X. Testing for Structural Stability Chow-Test. - PowerPoint PPT Presentation

Citation preview

Page 1: Economics 310

Economics 310

Lecture 11Dummy variables and Varying

Parameters models

Page 2: Economics 310

Multiple dummy variables

ttttt

ttttt

ttttt

ttttt

tt

ttttt

XXDDyE

XXDDyE

XXDDyE

XXDDyE

occurseventwhen

DandoccurseventwhenDWhere

XDDyModel

432121

43121

42121

4121

21

423121

)(),1,1|(

)(),1,0|(

)(),0,1|(

),0,0|(

.2

111

:

Page 3: Economics 310

More than one Qualitative Variable

Y

X

tX41

tX421 )(

tX431 )(

tX4321 )(

Page 4: Economics 310

Varying Parameter Model

ttttt

tttt

tttttttt

t

tiKii

ttt

eXDXD

eXDD

eractionanhaveWe

eXDXeXDy

DWhere

DLet

eXyModel

4231

4231t

421421

t

21

)()(y

is modelour then 1,2,i if

.int

)(

is modelour then 2,i If

occur.not doesevent if

0D and occursevent if 1

:

Page 5: Economics 310

First Model

X

Y

tX21

tX)( 421

Page 6: Economics 310

Second Model

X

YtX21

tX)()( 4231

Page 7: Economics 310

Testing for Structural StabilityChow-Test

KnnRSSRSS

K

RSSRSSRSS

F

H

H

XyModel

XyModel

Pooled

C

ttt

ttt

2

)(

)(:

)(:

:2

:1

21

21

21

22

110

22

110

21

21

Page 8: Economics 310

Testing for Structural StabilityDummy Variable-Test

on.contributi marginalfor test -F simple a is This

).0( that hypothesis

null by testing sregression twoofequality Test the

)()()(

1

)(

0

:

42

4321

31

4321

tt

t

tt

t

tttttt

XyE

DWhen

XyE

DWhen

XDXDyModel

Page 9: Economics 310

Dummy variables and heteroscedasticity To do the Chow test, we must assume

that the variance of the disturbance in each regression is same.

This holds for dummy variable test for structural change. We can’t have heteroscedasticity.

Can test this assumption with F-test.

2

21

2

2

1

ˆ

ˆ

e

eknknF

Page 10: Economics 310

Piecewise Linear Regression

Y

X

X*

Page 11: Economics 310

Piecewise Linear Regression

tt

tt

t

tttttt

t

XXyE

andXWhen

XyE

DandXWhen

DXXXy

XXD

)(*)()(

1D*X

)(

0*X

*)(

*X if 1D and *X if 0

3231

tt

21

t

321

ttt

Page 12: Economics 310

Sample data for Piecewise regression

D D*(Output-50) Output Cost0 0 11.90594 24.264041 6.431719981 56.43172 127.47890 0 37.05464 80.300880 0 34.72284 70.062820 0 34.10817 74.702631 47.47867085 97.47867 269.35941 9.159162062 59.15916 133.80120 0 23.26331 52.236751 40.11877492 90.11877 243.41511 27.62116352 77.62116 202.21690 0 38.57961 80.12890 0 11.50201 28.551891 32.33868592 82.33869 219.37531 19.36715023 69.36715 171.53351 25.9150599 75.91506 198.81251 32.93600216 82.936 217.55930 0 35.60991 75.342690 0 46.10208 100.09411 39.64945331 89.64945 241.9891 18.41368224 68.41368 170.4956

Page 13: Economics 310

Results of Piecewise Regression

SUMMARY OUTPUT

Regression StatisticsMultiple R 0.998R Square 0.996Adjusted R Square 0.996Standard Error 6.179Observations 20

ANOVAdf SS MS F Significance F

Regression 2 170903.2 85451.6 2238.0 0.0Residual 17 649.1 38.2Total 19 171552.3

Coefficients Standard Error t Stat P-value Lower 95% Upper 95%Intercept 3.409 3.164 1.077 0.296 -3.266 10.084D*(Output-50) 1.873 0.192 9.754 0.000 1.468 2.278Output 2.016 0.101 19.914 0.000 1.802 2.230

Page 14: Economics 310

Interpretation of dummy variable in semi-log regression

1

1 to0 from goingdummy With the

1

)ln(

22

31

31231

31

321321

0

00*1*

33

321

eee

e

eeee

e

ee

y

y

y

yorX

yy

XFor

XDy

t

tt

t

tt

X

XX

X

XX

tt

t

tttt

Page 15: Economics 310

Semi-log ExampleSUMMARY OUTPUT

Regression StatisticsMultiple R 0.824525R Square 0.6798415Adjusted R Square 0.6594059Standard Error 0.0926684Observations 51

ANOVAdf SS MS F Significance F

Regression 3 0.857045296 0.285682 33.26743 1.09956E-11Residual 47 0.40360922 0.008587Total 50 1.260654516

Coefficients Standard Error t Stat P-value Lower 95% Upper 95%Intercept 9.6243101 0.054469323 176.6923 5.29E-68 9.514732087 9.733888south 0.0118063 0.031304883 0.377139 0.707768 -0.05117096 0.074784west 0.063115 0.032704045 1.929885 0.059669 -0.00267696 0.128907spend 0.0001199 1.29663E-05 9.248157 3.75E-12 9.38294E-05 0.000146

Page 16: Economics 310

Interpretation of Coefficients

norththethangreater%5.6or

0.0651-1.06511

West

norththethangreater1.19%or

0.01191-1.011911

0.063115ˆ

0.0118063ˆ

3

2

ee

ee

South