multivariate time series - ucluctpsc0/teaching/gr03/ts2.pdf · multivariate time series fall 2008...

36
Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16

Upload: doannhu

Post on 15-Feb-2019

251 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Multivariate Time Series

Fall 2008

Environmental Econometrics (GR03) TSII Fall 2008 1 / 16

Page 2: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

More on AR(1)

In AR(1) model (Yt = µ+ ρYt�1 + ut ) with ρ = 1, the series is saidto have a unit root or a stochastic trend. Clearly, the series isnonstationary.

In order to make the time series stationary, one needs to take its �rstdi¤erence:

Yt = µ+ Yt�1 + ut ,

∆Yt = Yt � Yt�1 = µ+ ut .

Thus, a random walk (with or without drift) is said to be integratedof order one, or I (1).Suppose the �rst di¤erence of the time series follows a random walk:

∆Yt = µ0 + ∆Yt�1 + ut

Again, in order to make it stationary, we need to take the di¤ererenceof the �rst di¤erence, ∆Yt � ∆Yt�1, called the second di¤erence ofYt . This series is said to be integrated of order 2, or I(2).

Environmental Econometrics (GR03) TSII Fall 2008 2 / 16

Page 3: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

More on AR(1)

In AR(1) model (Yt = µ+ ρYt�1 + ut ) with ρ = 1, the series is saidto have a unit root or a stochastic trend. Clearly, the series isnonstationary.In order to make the time series stationary, one needs to take its �rstdi¤erence:

Yt = µ+ Yt�1 + ut ,

∆Yt = Yt � Yt�1 = µ+ ut .

Thus, a random walk (with or without drift) is said to be integratedof order one, or I (1).

Suppose the �rst di¤erence of the time series follows a random walk:

∆Yt = µ0 + ∆Yt�1 + ut

Again, in order to make it stationary, we need to take the di¤ererenceof the �rst di¤erence, ∆Yt � ∆Yt�1, called the second di¤erence ofYt . This series is said to be integrated of order 2, or I(2).

Environmental Econometrics (GR03) TSII Fall 2008 2 / 16

Page 4: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

More on AR(1)

In AR(1) model (Yt = µ+ ρYt�1 + ut ) with ρ = 1, the series is saidto have a unit root or a stochastic trend. Clearly, the series isnonstationary.In order to make the time series stationary, one needs to take its �rstdi¤erence:

Yt = µ+ Yt�1 + ut ,

∆Yt = Yt � Yt�1 = µ+ ut .

Thus, a random walk (with or without drift) is said to be integratedof order one, or I (1).Suppose the �rst di¤erence of the time series follows a random walk:

∆Yt = µ0 + ∆Yt�1 + ut

Again, in order to make it stationary, we need to take the di¤ererenceof the �rst di¤erence, ∆Yt � ∆Yt�1, called the second di¤erence ofYt . This series is said to be integrated of order 2, or I(2).

Environmental Econometrics (GR03) TSII Fall 2008 2 / 16

Page 5: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Example: In�ation Rates in USA (1948~2003)

05

1015

perc

enta

ge c

hang

e in

 CPI

1950 1960 1970 1980 1990 20001948 through 2003

Environmental Econometrics (GR03) TSII Fall 2008 3 / 16

Page 6: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Example: First Di¤erences of In�ation Rates

­10

­50

510

dinf

1950 1960 1970 1980 1990 20001948 through 2003

Environmental Econometrics (GR03) TSII Fall 2008 4 / 16

Page 7: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Testing for Unit Roots

We want to test whether AR (1) model has a unit root:

Yt = µ+ ρYt�1 + utH0 : ρ = 1, H1 : ρ < 1

Equivalently, we can formulate the test for unit root as follows:

∆Yt = µ+ θYt�1 + utH0 : θ = 0, H1 : θ < 0

(Dickey-Fuller (DF) Test) We use the t statistic. But, notice that,under the null, the t statistic does not follow the asymptotic standardnormal distribution.

Dickey and Fuller (1979) obtained the asymptotic distribution of the tstatistic under the null, called the Dickey-Fuller distribution.

Environmental Econometrics (GR03) TSII Fall 2008 5 / 16

Page 8: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Testing for Unit Roots

We want to test whether AR (1) model has a unit root:

Yt = µ+ ρYt�1 + utH0 : ρ = 1, H1 : ρ < 1

Equivalently, we can formulate the test for unit root as follows:

∆Yt = µ+ θYt�1 + utH0 : θ = 0, H1 : θ < 0

(Dickey-Fuller (DF) Test) We use the t statistic. But, notice that,under the null, the t statistic does not follow the asymptotic standardnormal distribution.

Dickey and Fuller (1979) obtained the asymptotic distribution of the tstatistic under the null, called the Dickey-Fuller distribution.

Environmental Econometrics (GR03) TSII Fall 2008 5 / 16

Page 9: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Testing for Unit Roots

We want to test whether AR (1) model has a unit root:

Yt = µ+ ρYt�1 + utH0 : ρ = 1, H1 : ρ < 1

Equivalently, we can formulate the test for unit root as follows:

∆Yt = µ+ θYt�1 + utH0 : θ = 0, H1 : θ < 0

(Dickey-Fuller (DF) Test) We use the t statistic. But, notice that,under the null, the t statistic does not follow the asymptotic standardnormal distribution.

Dickey and Fuller (1979) obtained the asymptotic distribution of the tstatistic under the null, called the Dickey-Fuller distribution.

Environmental Econometrics (GR03) TSII Fall 2008 5 / 16

Page 10: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Testing for Unit Roots

We want to test whether AR (1) model has a unit root:

Yt = µ+ ρYt�1 + utH0 : ρ = 1, H1 : ρ < 1

Equivalently, we can formulate the test for unit root as follows:

∆Yt = µ+ θYt�1 + utH0 : θ = 0, H1 : θ < 0

(Dickey-Fuller (DF) Test) We use the t statistic. But, notice that,under the null, the t statistic does not follow the asymptotic standardnormal distribution.

Dickey and Fuller (1979) obtained the asymptotic distribution of the tstatistic under the null, called the Dickey-Fuller distribution.

Environmental Econometrics (GR03) TSII Fall 2008 5 / 16

Page 11: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Example: Testing whether In�ation Rates are I(1)

Inft � Inft�1 = µ+ θInft�1 + ut

Coe¤. t-stat.

Inf_1 -0.33 -3.31Constant 1.17 2.40

The asymptotic critical values for unit root t test is given

Sig. Level 1% 5% 10%Critical Value -3.43 -2.86 -2.57

With 5% signi�cance level, we reject the null since the t statistic(�3.31) is smaller than the critical value (�2.86).

Environmental Econometrics (GR03) TSII Fall 2008 6 / 16

Page 12: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Vector Autoregressions

We want to forecast several economic variables at the same time in amutually consistent manner. This can be done using a vectorautoregression (VAR) model.

forecasting in�ation rate/GDP growth rate/interest rate.

A simple form is the vector autoregression model of two time serieswith order 1, called VAR (1):

Yt = µ10 + ρ11Yt�1 + ρ12Xt�1 + u1tXt = µ20 + ρ21Yt�1 + ρ22Xt�1 + u2t

Under the stationarity and ergodicity assumptions, we estimate thecoe¢ cients by using the OLS equation by equation.

Environmental Econometrics (GR03) TSII Fall 2008 7 / 16

Page 13: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Vector Autoregressions

We want to forecast several economic variables at the same time in amutually consistent manner. This can be done using a vectorautoregression (VAR) model.

forecasting in�ation rate/GDP growth rate/interest rate.

A simple form is the vector autoregression model of two time serieswith order 1, called VAR (1):

Yt = µ10 + ρ11Yt�1 + ρ12Xt�1 + u1tXt = µ20 + ρ21Yt�1 + ρ22Xt�1 + u2t

Under the stationarity and ergodicity assumptions, we estimate thecoe¢ cients by using the OLS equation by equation.

Environmental Econometrics (GR03) TSII Fall 2008 7 / 16

Page 14: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Vector Autoregressions

We want to forecast several economic variables at the same time in amutually consistent manner. This can be done using a vectorautoregression (VAR) model.

forecasting in�ation rate/GDP growth rate/interest rate.

A simple form is the vector autoregression model of two time serieswith order 1, called VAR (1):

Yt = µ10 + ρ11Yt�1 + ρ12Xt�1 + u1tXt = µ20 + ρ21Yt�1 + ρ22Xt�1 + u2t

Under the stationarity and ergodicity assumptions, we estimate thecoe¢ cients by using the OLS equation by equation.

Environmental Econometrics (GR03) TSII Fall 2008 7 / 16

Page 15: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Vector Autoregressions

We want to forecast several economic variables at the same time in amutually consistent manner. This can be done using a vectorautoregression (VAR) model.

forecasting in�ation rate/GDP growth rate/interest rate.

A simple form is the vector autoregression model of two time serieswith order 1, called VAR (1):

Yt = µ10 + ρ11Yt�1 + ρ12Xt�1 + u1tXt = µ20 + ρ21Yt�1 + ρ22Xt�1 + u2t

Under the stationarity and ergodicity assumptions, we estimate thecoe¢ cients by using the OLS equation by equation.

Environmental Econometrics (GR03) TSII Fall 2008 7 / 16

Page 16: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Impulse Response Function

It is often the case that VAR results can be di¢ cult to interpret.

What are the short-run/long-run e¤ects of variables?

What is the dynamics of Yt after a unit-shock in Xt at time period t?

A impluse response function measures this kind of dynamics: thepredicted response of one of the dependent variables to a shockthrough time.

Environmental Econometrics (GR03) TSII Fall 2008 8 / 16

Page 17: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Example: Growth rates of consumption and income in USA(1959 - 1995)

­.02

0.0

2.0

4.0

6lc

 ­ lc

[_n­

1]/ly

 ­ ly

[_n­

1]

1960 1970 1980 1990 20001959­1995

lc ­ lc[_n­1] ly ­ ly[_n­1]

Environmental Econometrics (GR03) TSII Fall 2008 9 / 16

Page 18: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Example: VAR(1)

gct = µ10 + ρ11gct�1 + ρ12gyt�1 + u1tgyt = µ20 + ρ21gct�1 + ρ22gyt�1 + u2t

Cons. growth (gc) Inc. growth (gy)Coe¤. Std. Err. Coe¤. Std. Err.

gc_1 0.61 0.27 1.23 0.37gy_1 -0.13 0.19 -0.49 0.26constant 0.01 0.00 0.01 0.01

Environmental Econometrics (GR03) TSII Fall 2008 10 / 16

Page 19: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Example: Impulse Response Function from VAR(1)

­1

0

1

2

­1

0

1

2

0 2 4 6 8 0 2 4 6 8

varbasic, gc, gc varbasic, gc, gy

varbasic, gy, gc varbasic, gy, gy

95% CI irf

step

Graphs by irfname, impulse variable, and response variable

Environmental Econometrics (GR03) TSII Fall 2008 11 / 16

Page 20: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Granger Causality

Q: Is a variable X useful to predict a variable Y ?

If so, it is said that the variable X Granger causes the variable Y .Note that Granger causality has little to do with causality in astandard sense.

In the VAR model (e.g., VAR(2))

Yt = µ10 + ρ11Yt�1 + ρ12Yt�2 + γ11Xt�1 + γ12Xt�2 + u1tXt = µ20 + ρ21Yt�1 + ρ22Yt�2 + γ21Xt�1 + γ22Xt�2 + u2t

If X Granger causes Y , it means that the following is not true:

γ11 = γ12 = 0

The Granger causality test is the F -statistic or the Chi-squarestatistic testing the null hypothesis that γ11 = γ12 = 0.

Environmental Econometrics (GR03) TSII Fall 2008 12 / 16

Page 21: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Granger Causality

Q: Is a variable X useful to predict a variable Y ?

If so, it is said that the variable X Granger causes the variable Y .Note that Granger causality has little to do with causality in astandard sense.

In the VAR model (e.g., VAR(2))

Yt = µ10 + ρ11Yt�1 + ρ12Yt�2 + γ11Xt�1 + γ12Xt�2 + u1tXt = µ20 + ρ21Yt�1 + ρ22Yt�2 + γ21Xt�1 + γ22Xt�2 + u2t

If X Granger causes Y , it means that the following is not true:

γ11 = γ12 = 0

The Granger causality test is the F -statistic or the Chi-squarestatistic testing the null hypothesis that γ11 = γ12 = 0.

Environmental Econometrics (GR03) TSII Fall 2008 12 / 16

Page 22: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Granger Causality

Q: Is a variable X useful to predict a variable Y ?

If so, it is said that the variable X Granger causes the variable Y .Note that Granger causality has little to do with causality in astandard sense.

In the VAR model (e.g., VAR(2))

Yt = µ10 + ρ11Yt�1 + ρ12Yt�2 + γ11Xt�1 + γ12Xt�2 + u1tXt = µ20 + ρ21Yt�1 + ρ22Yt�2 + γ21Xt�1 + γ22Xt�2 + u2t

If X Granger causes Y , it means that the following is not true:

γ11 = γ12 = 0

The Granger causality test is the F -statistic or the Chi-squarestatistic testing the null hypothesis that γ11 = γ12 = 0.

Environmental Econometrics (GR03) TSII Fall 2008 12 / 16

Page 23: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Granger Causality

Q: Is a variable X useful to predict a variable Y ?

If so, it is said that the variable X Granger causes the variable Y .Note that Granger causality has little to do with causality in astandard sense.

In the VAR model (e.g., VAR(2))

Yt = µ10 + ρ11Yt�1 + ρ12Yt�2 + γ11Xt�1 + γ12Xt�2 + u1tXt = µ20 + ρ21Yt�1 + ρ22Yt�2 + γ21Xt�1 + γ22Xt�2 + u2t

If X Granger causes Y , it means that the following is not true:

γ11 = γ12 = 0

The Granger causality test is the F -statistic or the Chi-squarestatistic testing the null hypothesis that γ11 = γ12 = 0.

Environmental Econometrics (GR03) TSII Fall 2008 12 / 16

Page 24: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Example: Consumption and income growth rates - VAR(1)

Granger causality Wald tests

Equation Excluded Chi2 (df) p-valuegc gy_1 0.517 (1) 0.47gy gc_1 10.73 (1) 0.00

Environmental Econometrics (GR03) TSII Fall 2008 13 / 16

Page 25: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Spurious Regression

In a cross-section environment, spurious correlation is used todescribe a situation where two variables (X and Y ) are correlatedthrough a third variable (Z ).

If we control for Z , then the partial e¤ect of X on Y becomes zero.This can also happen in time series but worse!

Suppose we have two completely unrelated series, Yt and Xt , with astochastic trend: �

Yt = Yt�1 + utXt = Xt�1 + ut

In principle, a regression of Yt on Xt should yield a zero coe¢ cient.However, that is often not the case.

(Spurious regression) Because the two series have a stochastic trend,OLS often picks up this apparent correlation.

Thus, it is risky to use OLS when the both series are nonstationary.

Environmental Econometrics (GR03) TSII Fall 2008 14 / 16

Page 26: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Spurious Regression

In a cross-section environment, spurious correlation is used todescribe a situation where two variables (X and Y ) are correlatedthrough a third variable (Z ).

If we control for Z , then the partial e¤ect of X on Y becomes zero.This can also happen in time series but worse!

Suppose we have two completely unrelated series, Yt and Xt , with astochastic trend: �

Yt = Yt�1 + utXt = Xt�1 + ut

In principle, a regression of Yt on Xt should yield a zero coe¢ cient.However, that is often not the case.

(Spurious regression) Because the two series have a stochastic trend,OLS often picks up this apparent correlation.

Thus, it is risky to use OLS when the both series are nonstationary.

Environmental Econometrics (GR03) TSII Fall 2008 14 / 16

Page 27: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Spurious Regression

In a cross-section environment, spurious correlation is used todescribe a situation where two variables (X and Y ) are correlatedthrough a third variable (Z ).

If we control for Z , then the partial e¤ect of X on Y becomes zero.This can also happen in time series but worse!

Suppose we have two completely unrelated series, Yt and Xt , with astochastic trend: �

Yt = Yt�1 + utXt = Xt�1 + ut

In principle, a regression of Yt on Xt should yield a zero coe¢ cient.However, that is often not the case.

(Spurious regression) Because the two series have a stochastic trend,OLS often picks up this apparent correlation.

Thus, it is risky to use OLS when the both series are nonstationary.

Environmental Econometrics (GR03) TSII Fall 2008 14 / 16

Page 28: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Spurious Regression

In a cross-section environment, spurious correlation is used todescribe a situation where two variables (X and Y ) are correlatedthrough a third variable (Z ).

If we control for Z , then the partial e¤ect of X on Y becomes zero.This can also happen in time series but worse!

Suppose we have two completely unrelated series, Yt and Xt , with astochastic trend: �

Yt = Yt�1 + utXt = Xt�1 + ut

In principle, a regression of Yt on Xt should yield a zero coe¢ cient.However, that is often not the case.

(Spurious regression) Because the two series have a stochastic trend,OLS often picks up this apparent correlation.

Thus, it is risky to use OLS when the both series are nonstationary.

Environmental Econometrics (GR03) TSII Fall 2008 14 / 16

Page 29: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Spurious Regression

In a cross-section environment, spurious correlation is used todescribe a situation where two variables (X and Y ) are correlatedthrough a third variable (Z ).

If we control for Z , then the partial e¤ect of X on Y becomes zero.This can also happen in time series but worse!

Suppose we have two completely unrelated series, Yt and Xt , with astochastic trend: �

Yt = Yt�1 + utXt = Xt�1 + ut

In principle, a regression of Yt on Xt should yield a zero coe¢ cient.However, that is often not the case.

(Spurious regression) Because the two series have a stochastic trend,OLS often picks up this apparent correlation.

Thus, it is risky to use OLS when the both series are nonstationary.

Environmental Econometrics (GR03) TSII Fall 2008 14 / 16

Page 30: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Spurious Regression

In a cross-section environment, spurious correlation is used todescribe a situation where two variables (X and Y ) are correlatedthrough a third variable (Z ).

If we control for Z , then the partial e¤ect of X on Y becomes zero.This can also happen in time series but worse!

Suppose we have two completely unrelated series, Yt and Xt , with astochastic trend: �

Yt = Yt�1 + utXt = Xt�1 + ut

In principle, a regression of Yt on Xt should yield a zero coe¢ cient.However, that is often not the case.

(Spurious regression) Because the two series have a stochastic trend,OLS often picks up this apparent correlation.

Thus, it is risky to use OLS when the both series are nonstationary.

Environmental Econometrics (GR03) TSII Fall 2008 14 / 16

Page 31: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Stationarizing Variables I

Suppose we still want to estimate the relationship between twovariables:

Yt = β0 + β1Xt + εt ,

where Yt and Xt are nonstationary.

To see whether these variables are correlated, we need to make themstationary before regressing two variables.

Examples:

deterministic trend

Yt = α10 + α11t + utXt = α20 + α21t + vt

stochastic trend

Yt = Yt�1 + utXt = Xt�1 + vt

Environmental Econometrics (GR03) TSII Fall 2008 15 / 16

Page 32: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Stationarizing variables II

(Detrending a deterministic trend)

regress each Xt and Yt on t and a constantget the residuals bvt and butregress but on bvt

(First-di¤erencing) Taking �rst di¤erences gives a stationary processon each side:

Yt � Yt�1 = β1 (Xt � Xt�1) + εt � εt�1.

Environmental Econometrics (GR03) TSII Fall 2008 16 / 16

Page 33: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Stationarizing variables II

(Detrending a deterministic trend)

regress each Xt and Yt on t and a constant

get the residuals bvt and butregress but on bvt

(First-di¤erencing) Taking �rst di¤erences gives a stationary processon each side:

Yt � Yt�1 = β1 (Xt � Xt�1) + εt � εt�1.

Environmental Econometrics (GR03) TSII Fall 2008 16 / 16

Page 34: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Stationarizing variables II

(Detrending a deterministic trend)

regress each Xt and Yt on t and a constantget the residuals bvt and but

regress but on bvt(First-di¤erencing) Taking �rst di¤erences gives a stationary processon each side:

Yt � Yt�1 = β1 (Xt � Xt�1) + εt � εt�1.

Environmental Econometrics (GR03) TSII Fall 2008 16 / 16

Page 35: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Stationarizing variables II

(Detrending a deterministic trend)

regress each Xt and Yt on t and a constantget the residuals bvt and butregress but on bvt

(First-di¤erencing) Taking �rst di¤erences gives a stationary processon each side:

Yt � Yt�1 = β1 (Xt � Xt�1) + εt � εt�1.

Environmental Econometrics (GR03) TSII Fall 2008 16 / 16

Page 36: Multivariate Time Series - UCLuctpsc0/Teaching/GR03/TS2.pdf · Multivariate Time Series Fall 2008 Environmental Econometrics (GR03) TSII Fall 2008 1 / 16 ... predicted response of

Stationarizing variables II

(Detrending a deterministic trend)

regress each Xt and Yt on t and a constantget the residuals bvt and butregress but on bvt

(First-di¤erencing) Taking �rst di¤erences gives a stationary processon each side:

Yt � Yt�1 = β1 (Xt � Xt�1) + εt � εt�1.

Environmental Econometrics (GR03) TSII Fall 2008 16 / 16