• Nem Talált Eredményt

Week 12.

N/A
N/A
Protected

Academic year: 2022

Ossza meg "Week 12. "

Copied!
22
0
0

Teljes szövegt

(1)

ECONOMETRICS

(2)

ECONOMETRICS

Sponsored by a Grant TÁMOP-4.1.2-08/2/A/KMR-2009-0041 Course Material Developed by Department of Economics,

Faculty of Social Sciences, Eötvös Loránd University Budapest (ELTE) Department of Economics, Eötvös Loránd University Budapest

Institute of Economics, Hungarian Academy of Sciences Balassi Kiadó, Budapest

(3)
(4)

ECONOMETRICS

Authors: Péter Elek, Anikó Bíró Supervised by: Péter Elek

June 2010

ELTE Faculty of Social Sciences, Department of Economics

(5)

ECONOMETRICS

Week 12.

Time series regressions I

Péter Elek, Anikó Bíró

(6)

Plan

Regression on stationary time series

Consequences of autocorrelated error terms Testing autocorrelation

Handling autocorrelation Textbook: M 6.1–6.5., 6.8.

(7)

Reminder: cross sectional regression with stochastic regressors

Fixed regressors are less sensible in case of time series

Model with stochastic variables: yi = β0 + β1xi1 + β2xi2 +… βkxik + ui Conditions for unbiasedness of OLS

(yi,xi1,xi2,…,xik) (i = 1,..,n) random sample of the model E(u|x1,x2,…,xk) = 0

No perfect collinearity

If homoscedasticity is also assumed, the following statements are true

The usual formula of variance is valid, the OLS estimator is asymptotically normal

OLS is BLUE.

If normality of error term is also assumed then small sample tests t-test, F-test) are also valid.

(8)

Regression with stationary variables

yt = β0 + β1xt1 + β2xt2 +… βkxtk+ ut

If xti (i = 1,…,k) and yt are stationary then sufficient conditions for consistency of OLS:

E(ut|xt1,xt2,…,xtk) = 0 and No perfect collinearity

Further assumptions are needed for asymptotic validity of the usual tests (validity of formulas of variance etc.):

Homoscedasticity and

No autocorrelation in the error terms:

E(utus|xt1,…,xtk,xs1,…,xsk) = 0 (t  s)

(9)

Regression with stationary variables (cont.)

The same is true in case of trend stationarity, but trend has to be included as regressor

Some xti might be lagged yt (but the exogeneity condition has to hold!)

E.g. stationary AR(1) model: k = 1, xt1 = yt–1

OLS estimation of the coefficient is consistent, asymptotically normal (but not unbiased!)

(10)

Autocorrelation of the error terms in the stationary regression

If the error terms are autocorrelated in a stationary regression then

OLS is still consistent, But not BLUE,

And the common formula of variance and the usual tests are not valid!

Size of bias in variance:

M page 285–286.

(11)

Testing autocorrelation of error terms

Durbin–Watson-test Breusch–Godfrey-test

white noise error term autocorrelated error term

-4 -2 0 2 4

10 20 30 40 50 60 70 80 90 00 -4

-2 0 2 4

10 20 30 40 50 60 70 80 90 00

(12)

Durbin–Watson-test

Analyzes the residuals of OLS regression:

12 2 1 1 1

2 2 2 2 2

2 2 2

1 1 1

ˆ ˆ ˆ 2 ˆ ˆ ˆ ˆ ˆ

2 2

ˆ ˆ ˆ

n n n n n

t t t t t t t t

t t t t t

n n n

t t t

t t t

u u u u u u u u

u u u

d

 

Estimator of first order autocorrelation: 2 1

2 1

ˆ ˆ ˆ

ˆ

n

t t t

n t t

u u u

2 1 ˆ d

0  d  4 ( –1    1)

d = 2   = 0 (white noise)

0 < d < 2   > 0 (positive autocorrelation) 2 < d < 4   < 0 (negative autocorrelation)

(13)

DW-test, cont.

H0:  = 0, H1:  > 0 (one sided test!)

The test has two critical values because the distribution of the test statistic depends on the regressors: dL (lower value), dU (upper value)

Decision rule:

Accept H0 if d > dU Reject H0 if d < dL

Cannot decide if dL < d < dU (neutral, grey zone)

Testing negative autocorrelation:

Use 4 – d instead of d, otherwise everything is the same Accept H0 if 4 – d > dU

Reject H0 if 4 – d < dL

Cannot decide if dL < 4 – d < dU (neutral, grey zone)

(14)

Limitations of DW-test

Can be used only for AR(1) residuals In some cases (dL<d<dU) the test is not

conclusive

Cannot be used for distributed lag models (in some cases, see later)

(15)

Breusch–Godfrey-test

AR(p) model of error terms:

ut = 1ut-1+ 2ut-2 +…+ qut-p+ et

H0: 1 = 2 =…= p= 0

Regress the estimated error term on the

explanatory variables and p lags of the error term

Under H0, asymptotically nR2 ~ p2

(16)

Handling autocorrelation

Adjusting the standard error of OLS estimation: Newey-West

Just as the White-procedure adjusts the standard error of OLS in case of

heteroscedasticity

Generalized Least Squares (GLS) types of estimations, e.g. Cochrane-Orcutt procedure

(17)

Cochrane–Orcutt-procedure

Model

yt = β0 + β1x1t + β1x2t + β1xkt + ut ut = ut–1+ et , et ~ IN

Quasi differencing

(yt – yt–1) = (1 – )β0 + β1(x1t – x1,t–1) +…+ βk(xkt – xk,t–1) + et Regress yt – yt–1 on xit – xi,t–1 variables

Procedure

OLS estimation, then estimation of  based on the residuals OLS of the quasi-differenced time series

Iteration can also be used (does not improve asymptotically the efficiency)

Since  is estimated, if  is close to 0 then not necessarily better than OLS

(18)

Example: estimation of static Phillips-curve (USA) with OLS

Considerable autocorrelation

(19)

Example, cont.: correcting autocorrelation

Strong autocorrelation, the regression is basically on the differences! These estimates are more reliable.

(20)

Distributed lag models

Model: yt = α + β0xt + β1xt–1+ … + βkxt–k + ut

β0: immediate effect of a unit shock in x on y β0, β1, β2,…: lag distribution

β0 + β1 +…+ β k: effect of a permanent unit shock in x on y (long run multiplier)

There are models with infinite lags, e.g. geometric lags (geometrically declining β-s)

(21)

Seminar

Time series regressions I

(22)

AR(2)-process:

Stationarity, necessary conditions of stationarity Solution of Yule–Walker equation

Autocorrelations of ARMA(1,1) process

Simulation of ARMA and ARIMA processes

Comparison and simulation difference and trend stationary processes

Box–Jenkins modelling, forecasting from ARIMA model

Example: modelling time series of (seasonally adjusted) industrial production

Hivatkozások

KAPCSOLÓDÓ DOKUMENTUMOK

Faculty of Social Sciences, Eötvös Loránd University Budapest (ELTE) Department of Economics, Eötvös Loránd University Budapest?. Institute of Economics, Hungarian Academy of Sciences

Faculty of Social Sciences, Eötvös Loránd University Budapest (ELTE) Department of Economics, Eötvös Loránd University Budapest.. Institute of Economics, Hungarian Academy of Sciences

Faculty of Social Sciences, Eötvös Loránd University Budapest (ELTE) Department of Economics, Eötvös Loránd University Budapest.. Institute of Economics, Hungarian Academy of Sciences

Faculty of Social Sciences, Eötvös Loránd University Budapest (ELTE) Department of Economics, Eötvös Loránd University Budapest?. Institute of Economics, Hungarian Academy of Sciences

Faculty of Social Sciences, Eötvös Loránd University Budapest (ELTE) Department of Economics, Eötvös Loránd University Budapest?. Institute of Economics, Hungarian Academy of Sciences

Faculty of Social Sciences, Eötvös Loránd University Budapest (ELTE) Department of Economics, Eötvös Loránd University Budapest.. Institute of Economics, Hungarian Academy of

Faculty of Social Sciences, Eötvös Loránd University Budapest (ELTE) Department of Economics, Eötvös Loránd University Budapest.. Institute of Economics, Hungarian Academy of

Faculty of Social Sciences, Eötvös Loránd University Budapest (ELTE) Department of Economics, Eötvös Loránd University Budapest.. Institute of Economics, Hungarian Academy of