Urgent Econometrics test

profilewc15920665166
RegressionwithTimeSeriesData.pptx

Regression with Time Series Data: Stationary Variables

When modeling relationships between variables, the nature of the data that have been collected has an important bearing on the appropriate choice of an econometric model

- Two features of time-series data to consider:

- Time-series observations on a given economic unit, observed over a number of time periods, are likely to be correlated

- Time-series data have a natural ordering according to time

There is also the possible existence of dynamic relationships between variables

- A dynamic relationship is one in which the change in a variable now has an impact on that same variable, or other variables, in one or more future time periods

- These effects do not occur instantaneously but are spread, or distributed, over future time periods

FIGURE 9.1 The distributed lag effect

Ways to model the dynamic relationship:

- Specify that a dependent variable y is a function of current and past values of an explanatory variable x

(9.1)

- Because of the existence of these lagged effects, Eq. 9.1 is called a distributed lag model

- Capturing the dynamic characteristics of time-series by specifying a model with a lagged dependent variable as one of the explanatory variables

(9.2)

Or have:

(9.3)

- Such models are called autoregressive distributed lag (ARDL) models, with ‘‘autoregressive’’ meaning a regression of yt on its own lag or lags

Ways to model the dynamic relationship (Continued):

- Model the continuing impact of change over several periods via the error term

(9.4)

- In this case et is correlated with et - 1

- We say the errors are serially correlated or autocorrelated

The primary assumption is Assumption MR4:

- For time series, this is written as:

- The dynamic models in Eqs. 9.2, 9.3 and 9.4 imply correlation between yt and yt - 1 or et and et - 1 or both, so they clearly violate assumption MR4

- A stationary variable is one that is not explosive, nor trending, and nor wandering aimlessly without returning to its mean

FIGURE 9.2 (a) Time series of a stationary variable

FIGURE 9.2 (b) time series of a nonstationary variable that is ‘‘slow-turning’’ or ‘‘wandering’’

FIGURE 9.2 (c) time series of a nonstationary variable that ‘‘trends”

Consider a linear model in which, after q time periods, changes in x no longer have an impact on y

(9.5)

-Note the notation change: βs is used to denote the coefficient of xt-s and α is introduced to denote the intercept

Model 9.5 has two uses:

Forecasting

- Policy analysis

- What is the effect of a change in x on y?

Finite Distributed Lags

Assume xt is increased by one unit and then maintained at its new level in subsequent periods

- The immediate impact will be β0

the total effect in period t + 1 will be β0 + β1, in period t + 2 it will be β0 + β1 + β2, and so on

- These quantities are called interim multipliers

- The total multiplier is the final effect on y of the sustained increase after q or more periods have elapsed

The effect of a one-unit change in xt is distributed over the current and next q periods, from which we get the term ‘‘distributed lag model’’

- It is called a finite distributed lag model of order q

- It is assumed that after a finite number of periods q, changes in x no longer have an impact on y

- The coefficient βs is called a distributed-lag weight or an s-period delay multiplier

- The coefficient β0 (s = 0) is called the impact multiplier

ASSUMPTIONS OF THE DISTRIBUTED LAG MODEL

TSMR1.

TSMR2. y and x are stationary random variables, and et is independent of

current, past and future values of x.

TSMR3. E(et) = 0

TSMR4. var(et) = σ2

TSMR5. cov(et, es) = 0 t ≠ s

TSMR6. et ~ N(0, σ2)

Consider Okun’s Law

- In this model the change in the unemployment rate from one period to the next depends on the rate of growth of output in the economy:

- We can rewrite this as:

where DU = ΔU = Ut - Ut-1, β0 = -γ, and α = γGN

- We can expand this to include lags:

- We can calculate the growth in output, G, as:

FIGURE 9.4 (a) Time series for the change in the U.S. unemployment rate: 1985Q3 to 2009Q3

FIGURE 9.4 (b) Time series for U.S. GDP growth: 1985Q2 to 2009Q3

Table 9.1 Spreadsheet of Observations for Distributed Lag Model

Table 9.2 Estimates for Okun’s Law Finite Distributed Lag Model

When is assumption TSMR5, cov(et, es) = 0 for t ≠ s likely to be violated, and how do we assess its validity?

- When a variable exhibits correlation over time, we say it is autocorrelated or serially correlated

- These terms are used interchangeably

Serial Correlation

FIGURE 9.5 Scatter diagram for Gt and Gt-1

Recall that the population correlation between two variables x and y is given by:

For the Okun’s Law problem, we have:

(9.12)

The notation ρ1 is used to denote the population correlation between observations that are one period apart in time

- This is known also as the population autocorrelation of order one.

- The second equality in Eq. 9.12 holds because var(Gt) = var(Gt-1) , a property of time series that are stationary

The first-order sample autocorrelation for G is obtained from Eq. 9.12 using the estimates:

Making the substitutions, we get:

More generally, the k-th order sample autocorrelation for a series y that gives the correlation between observations that are k periods apart is:

Because (T - k) observations are used to compute the numerator and T observations are used to compute the denominator, an alternative that leads to larger estimates in finite samples is:

Applying this to our problem, we get for the first four autocorrelations:

How do we test whether an autocorrelation is significantly different from zero?

- The null hypothesis is H0: ρk = 0

- A suitable test statistic is:

For our problem, we have:

- We reject the hypotheses H0: ρ1 = 0 and H0: ρ2 = 0

- We have insufficient evidence to reject H0: ρ3 = 0

- ρ4 is on the borderline of being significant.

- We conclude that G, the quarterly growth rate in U.S. GDP, exhibits significant serial correlation at lags one and two

The correlogram, also called the sample autocorrelation function, is the sequence of autocorrelations r1, r2, r3, …

- It shows the correlation between observations that are one period apart, two periods apart, three periods apart, and so on

FIGURE 9.6 Correlogram for G

The correlogram can also be used to check whether the multiple regression assumption cov(et, es) = 0 for t ≠ s is violated

Consider a model for a Phillips Curve:

- If we initially assume that inflationary expectations are constant over time (β1 = INFEt) set β2= -γ, and add an error term:

To determine if the errors are serially correlated, we compute the least squares residuals:

FIGURE 9.7 (a) Time series for Australian price inflation curve

FIGURE 9.7 (b) Time series for the quarterly change in the Australian unemployment rate

The k-th order autocorrelation for the residuals can be written as:

- The least squares equation is:

- The values at the first five lags are:

An advantage of this test is that it readily generalizes to a joint test of correlations at more than one lag

If et and et-1 are correlated, then one way to model the relationship between them is to write:

- We can substitute this into a simple regression equation:

We have one complication: is unknown

- Two ways to handle this are:

- Delete the first observation and use a total of T-1 observations

- Set and use all T observations

Other Tests for Serially Correlated Errors

For the Phillips Curve:

- The results are almost identical

- The null hypothesis H0: ρ = 0 is rejected at all conventional significance levels

- We conclude that the errors are serially correlated

To derive the relevant auxiliary regression for the autocorrelation LM test, we write the test equation as:

But since we know that , we get:

Rearranging, we get:

(9.26)

- If H0: ρ = 0 is true, then LM = T x R2 has an approximate χ2(1) distribution

- T and R2 are the sample size and goodness-of-fit statistic, respectively, from least squares estimation of Eq. 9.26

Considering the two alternative ways to handle :

- These values are much larger than 3.84, which is the 5% critical value from a χ2(1)-distribution

- We reject the null hypothesis of no autocorrelation

- Alternatively, we can reject H0 by examining the p-value for LM = 27.61, which is 0.000

For a four-period lag, we obtain:

- Because the 5% critical value from a χ2(4)-distribution is 9.49, these LM values lead us to conclude that the errors are serially correlated

Durbin-Watson Test: This is used less frequently today because its critical values are not available in all software packages, and one has to examine upper and lower critical bounds instead

- Also, unlike the LM and correlogram tests, its distribution no longer holds when the equation contains a lagged dependent variable

Three estimation procedures are considered:

Least squares estimation

An estimation procedure that is relevant when the errors are assumed to follow what is known as a first-order autoregressive model

A general estimation strategy for estimating models with serially correlated errors

We will encounter models with a lagged dependent variable, such as:

Estimation with Serially Correlated Errors

ASSUMPTION FOR MODELS WITH A LAGGED DEPENDENT VARIABLE

TSMR2A In the multiple regression model

Where some of the xtk may be lagged values of y, vt is uncorrelated with all xtk and their past values.

Suppose we proceed with least squares estimation without recognizing the existence of serially correlated errors. What are the consequences?

- The least squares estimator is still a linear unbiased estimator, but it is no longer best

- The formulas for the standard errors usually computed for the least squares estimator are no longer correct

- Confidence intervals and hypothesis tests that use these standard errors may be misleading

It is possible to compute correct standard errors for the least squares estimator:

- HAC (heteroskedasticity and autocorrelation consistent) standard errors, or Newey-West standard errors

- These are analogous to the heteroskedasticity consistent standard errors

Consider the model yt = β1 + β2xt + et

- The variance of b2 is:

where

When the errors are not correlated, cov(et, es) = 0, and the term in square brackets is equal to one.

- The resulting expression

is the one used to find heteroskedasticity-consistent (HC) standard errors

- When the errors are correlated, the term in square brackets is estimated to obtain HAC standard errors

If we call the quantity in square brackets g and its estimate , then the relationship between the two estimated variances is:

Let’s reconsider the Phillips Curve model:

The t and p-values for testing H0: β2 = 0 are:

Return to the Lagrange multiplier test for serially correlated errors where we used the equation:

(9.30)

- Assume the vt are uncorrelated random errors with zero mean and constant variances:

Eq. 9.30 describes a first-order autoregressive model or a first-order autoregressive process for et

- The term AR(1) model is used as an abbreviation for first-order autoregressive model

- It is called an autoregressive model because it can be viewed as a regression model

- It is called first-order because the right-hand-side variable is et lagged one period

We assume that:

The mean and variance of et are:

The covariance term is:

The correlation implied by the covariance is:

Setting k = 1:

ρ represents the correlation between two errors that are one period apart

- It is the first-order autocorrelation for e, sometimes simply called the autocorrelation coefficient

- It is the population autocorrelation at lag one for a time series that can be described by an AR(1) model

- r1 is an estimate for ρ when we assume a series is AR(1)

Each et depends on all past values of the errors vt:

For the Phillips Curve, we find for the first five lags:

For an AR(1) model, we have:

For longer lags, we have:

Our model with an AR(1) error is:

with -1 < ρ < 1

- For the vt, we have:

With the appropriate substitutions, we get:

- For the previous period, the error is:

- Multiplying by ρ:

- Substituting, we get:

(9.43)

The coefficient of xt-1 equals -ρβ2

- Although Eq. 9.43 is a linear function of the variables xt , yt-1 and xt-1, it is not a linear function of the parameters (β1, β2, ρ)

- The usual linear least squares formulas cannot be obtained by using calculus to find the values of (β1, β2, ρ) that minimize Sv

- These are nonlinear least squares estimates

Our Phillips Curve model assuming AR(1) errors is:

- Applying nonlinear least squares and presenting the estimates in terms of the original untransformed model, we have:

Nonlinear least squares estimation of Eq. 9.43 is equivalent to using an iterative generalized least squares estimator called the Cochrane-Orcutt procedure

We have the model:

(9.46)

- Suppose now that we consider the model:

(9.47)

- This new notation will be convenient when we discuss a general class of autoregressive distributed lag (ARDL) models

- Eq. 9.47 is a member of this class

Note that Eq. 9.46 is the same as Eq. 9.47 since:

- Eq. 9.46 is a restricted version of Eq. 9.47 with the restriction δ1 = -θ1δ0 imposed

Applying the least squares estimator to Eq. 9.47 using the data for the Phillips curve example yields:

The equivalent AR(1) estimates are:

- These are similar to our other estimates

The original economic model for the Phillips Curve was:

Re-estimation of the model after omitting DUt-1 yields:

In this model inflationary expectations are given by:

- A 1% rise in the unemployment rate leads to an approximate 0.5% fall in the inflation rate

We have described three ways of overcoming the effect of serially correlated errors:

- Estimate the model using least squares with HAC standard errors

- Use nonlinear least squares to estimate the model with a lagged x, a lagged y, and the restriction implied by an AR(1) error specification

- Use least squares to estimate the model with a lagged x and a lagged y, but without the restriction implied by an AR(1) error specification

An autoregressive distributed lag (ARDL) model is one that contains both lagged xt’s and lagged yt’s

Two examples:

Autoregressive Distributed Lag Models

An ARDL model can be transformed into one with only lagged x’s which go back into the infinite past:

- This model is called an infinite distributed lag model

Four possible criteria for choosing p and q:

Has serial correlation in the errors been eliminated?

Are the signs and magnitudes of the estimates consistent with our expectations from economic theory?

Are the estimates significantly different from zero, particularly those at the longest lags?

What values for p and q minimize information criteria such as the AIC and SC?

The Akaike information criterion (AIC) is:

where K = p + q + 2

The Schwarz criterion (SC), also known as the Bayes information criterion (BIC), is:

- Because Kln(T)/T > 2K/T for T ≥ 8, the SC penalizes additional lags more heavily than does the AIC

Consider the previously estimated ARDL(1,0) model:

FIGURE 9.9 Correlogram for residuals from Phillips curve ARDL(1,0) model

Table 9.3 p-values for LM Test for Autocorrelation

For an ARDL(4,0) version of the model:

Inflationary expectations are given by:

Table 9.4 AIC and SC Values for Phillips Curve ARDL Models

Recall the model for Okun’s Law:

FIGURE 9.10 Correlogram for residuals from Okun’s law ARDL(0,2) model

Table 9.5 AIC and SC Values for Okun’s Law ARDL Models

Now consider this version:

An autoregressive model of order p, denoted AR(p), is given by:

Consider a model for growth in real GDP:

FIGURE 9.11 Correlogram for residuals from AR(2) model for GDP growth

Table 9.6 AIC and SC Values for AR Model of Growth in U.S. GDP

12

(,,,...)

tttt

yfxxx

--

=

1

(,)

ttt

yfyx

-

=

112

(,,,)

ttttt

yfyxxx

---

=

1

()()

ttttt

yfxeefe

-

=+=

(

)

(

)

cov,cov,0 for

ijij

yyeeij

==¹

(

)

(

)

cov,cov,0 for

tsts

yyeets

==¹

01122

ttttqtqt

yxxxxe

---

=a+b+b+b++b+

L

10112111

TTTTqTqT

yxxxxe

++--++

=a+b+b+b++b+

L

()()

tts

s

tst

EyEy

xx

+

-

¶¶

==b

¶¶

0

β

q

s

s

=

å

01122

ββββ, 1,,

ttttqtqt

yxxxxetqT

a

---

=++++++=+

LK

(

)

1

tttN

UUGG

g

-

-=--

0

β

ttt

DUGe

a

=++

01122

ββββ

ttttqtqt

DUGGGGe

a

---

=++++++

L

1

1

100

tt

t

t

GDPGDP

G

GDP

-

-

-

(

)

(

)

(

)

cov,

ρ

varvar

xy

xy

xy

=

(

)

(

)

(

)

(

)

(

)

11

1

1

cov,cov,

ρ

var

varvar

tttt

t

tt

GGGG

G

GG

--

-

==

(

)

·

(

)

(

)

(

)

·

(

)

11

2

2

1

1

cov,

1

1

var

1

T

tttt

t

T

tt

t

GGGGGG

T

GGG

T

--

=

=

=--

-

=-

-

å

å

(

)

(

)

(

)

1

2

1

2

1

T

tt

t

T

t

t

GGGG

r

GG

-

=

=

--

=

-

å

å

(

)

(

)

(

)

1

2

1

T

ttk

tk

k

T

t

t

yyyy

r

yy

-

=+

=

--

=

-

å

å

(

)

(

)

(

)

1

2

1

1

1

T

ttk

tk

k

T

t

t

yyyy

Tk

r

yy

T

-

=+

=

--

-

¢

=

-

å

å

1234

0.494 0.411 0.154 0.200

rrrr

====

(

)

0

0,1

1

k

k

r

ZTrN

T

-

==

:

12

34

980.4944.89, 980.4144.10

980.1541.52, 980.2001.98

ZZ

ZZ

=´==´=

=´==´=

(

)

1

γ

E

tttt

INFINFUU

-

=--

12

ββ

ttt

INFDUe

=++

12

ˆ

ttt

eINFbbDU

=--+

1

2

1

ˆˆ

ˆ

T

ttk

tk

k

T

t

t

ee

r

e

-

=+

=

=

å

å

·

(

)

(

)

(

)

0.77760.5279

0.0658 0.2294

INFDU

se

=-

12345

0.549 0.456 0.433 0.420 0.339

rrrrr

=====

1

ρ

ttt

eev

-

=+

121

ββρ

tttt

yxev

-

=+++

0

ˆ

0

e

=

0

ˆ

e

(

)

(

)

i 6.219 38.67 -value0.000

ii 6.202 38.47 -value0.000

tFp

tFp

===

===

121

ˆ

ββρ

tttt

yxev

-

=+++

12

ˆ

ttt

ybbxe

=++

12121

ˆˆ

ββρ

ttttt

bbxexev

-

++=+++

(

)

(

)

11221

121

ˆˆ

ββρ

ˆ

γγρ

tttt

tt

ebbxev

xev

-

-

=-+-++

=+++

(

)

(

)

(

)

2

2

iii 1890.310227.61

iv 900.306627.59

LMTR

LMTR

=-´=´=

=´=´=

(

)

(

)

(

)

2

2

iii 4860.388233.4

iv 900.407536.7

LMTR

LMTR

=-´=´=

=´=´=

11011

δθδδ

ttttt

yyxxv

--

=++++

122

βββ

ttKKt

yxxv

=++++

L

(

)

(

)

(

)

(

)

(

)

(

)

2

2

2

2

varvarcov,

cov,

var1

var

tttsts

tts

tsts

ts

tt

t

tt

t

bwewwee

wwee

we

we

¹

¹

=+

éù

êú

=+

êú

êú

ëû

ååå

åå

å

å

(

)

(

)

2

ttt

t

wxxxx

=--

å

(

)

(

)

2

2

varvar

tt

t

bwe

=

å

(

)

·

(

)

·

22

ˆ

varvar

HACHC

bbg

·

(

)

(

)

(

)

(

)

(

)

(

)

0.77760.5279

0.0658 0.2294 incorrect

se

0.1030 0.3127 HAC se

INFDU

=-

(

)

(

)

0.52790.22942.301 0.0238 from L

S standard errors

0.52790.31271.688 0.0950 from H

AC standard errors

tp

tp

=-=-=

=-=-=

1

ρ

ttt

eev

-

=+

(

)

(

)

(

)

2

0 var cov,0 for

ttvts

Evvvvts

s

===¹

1

ρ1

-<<

(

)

(

)

2

2

2

0 var

1

ρ

v

tte

Eee

s

s

===

-

(

)

2

2

ρ

cov,, 0

1

ρ

k

v

ttk

eek

s

-

=>

-

(

)

(

)

(

)

(

)

(

)

(

)

(

)

(

)

22

22

ρcorr,

cov,

varvar

cov,

var

ρ1ρ

1

ρ

ρ

kttk

ttk

ttk

ttk

t

k

v

v

k

ee

ee

ee

ee

e

s

s

-

-

-

-

=

=

=

-

=

-

=

(

)

11

ρcorr,ρ

tt

ee

-

==

23

123

ρρρ

ttttt

evvvv

---

=++++

L

12345

0.549 0.456 0.433 0.420 0.339

rrrrr

=====

11

ˆˆ

ρρ0.549

r

===

(

)

(

)

(

)

(

)

2

2

2

3

3

3

4

4

4

5

5

5

ˆˆ

ρρ0.5490.301

ˆˆ

ρρ0.5490.165

ˆˆ

ρρ0.5490.091

ˆˆ

ρρ0.5490.050

===

===

===

===

121

ββ with ρ

tttttt

yxeeev

-

=++=+

(

)

(

)

(

)

2

1

0 var cov,0 for

ttvtt

Evvvvts

s

-

===¹

121

ββρ

tttt

yxev

-

=+++

11121

ββ

ttt

eyx

---

=--

11121

ρρρβρβ

ttt

eyx

---

=--

(

)

12121

β1ρβρρβ

ttttt

yxyxv

--

=-++-+

(

)

12121

β1ρβρρβ

ttttt

INFDUINFDUv

--

=-++-+

·

(

)

(

)

(

)

(

)

1

0.76090.6944 0.557

0.1245 0.2479 0.090

ttt

INFDUeev

se

-

=-=+

11011

δθδδ

ttttt

yyxxv

--

=++++

(

)

102121

δβ1ρ δβ δρβ θρ

=-==-=

·

(

)

(

)

(

)

(

)

(

)

11

0.33360.55930.68820.3200

0.0899 0.0908 0.2575 0.2

499

t

ttt

INFINFDUDU

se

--

=+-+

(

)

(

)

(

)

1

1

02

12

ˆˆ

ˆ

δβ1ρ0.760910.55740.3368

ˆ

ˆ

θρ0.5574

ˆˆ

δβ0.6944

ˆˆ

ˆ

δρβ0.55740.69440.3871

=-=´-=

==

==-

=-=-´-=

(

)

1

γ

E

tttt

INFINFUU

-

=--

·

(

)

(

)

(

)

(

)

1

0.35480.52820.4909

0.0876 0.0851 0.1921

t

tt

INFINFDU

se

-

=+-

1

0.35480.5282

E

tt

INFINF

-

=+

01111

tttqtqtptpt

yxxxyyv

----

=d+d+d++d+q++q+

LL

(

)

·

(

)

·

11

1

ADRL1,1: 0.33360.55930.68820.3200

ADRL1,0: 0.35480.52820.4909

tttt

ttt

INFINFDUDU

INFINFDU

--

-

=+-+

=+-

0112233

0

βββ

β

tttttt

stst

s

yxxxxe

xe

---

¥

-

=

=a+b+++++

=a++

å

L

2

AICln

SSEK

TT

æö

=+

ç÷

èø

(

)

ln

SCln

KT

SSE

TT

æö

=+

ç÷

èø

·

(

)

(

)

(

)

(

)

1

0.35480.52820.4909, obs90

0.0876 0.0851 0.1921

t

tt

INFINFDU

se

-

=+-=

·

(

)

(

)

(

)

(

)

(

)

(

)

(

)

123

-4

0.10010.23540.12130.1677

0.0983 0.1016 0.1038

0.1050

0.28190.7902

0.1014

0.1885

t

ttt

tt

INFINFINFINF

se

INFDU

---

=+++

+-

obs87

=

123-4

0.10010.23540.12130.16770.2819

E

ttttt

INFINFINFINFINF

---

=++++

·

(

)

(

)

(

)

(

)

(

)

12

0.58360.20200.16530.0700G, obs96

0.0472 0.0324 0.0335 0.0331

t

ttt

DUGG

se

--

=---=

·

(

)

(

)

(

)

(

)

(

)

11

0.37800.35010.18410.0992G, obs96

0.05780.0846 0.0307 0.0368

t

ttt

DUDUG

se

--

=+--=

1122

δθθθ

tttptpt

yyyyv

---

=+++++

L

µ

(

)

(

)

(

)

(

)

12

0.46570.37700.2462

0.1433 0.1000 0.1029 obs = 96

t

tt

GGG

se

--

=++