Stationary and nonstationary variables

Similar documents
Autoregressive models with distributed lags (ADL)

Testing methodology. It often the case that we try to determine the form of the model on the basis of data

10) Time series econometrics

9) Time series econometrics

7 Introduction to Time Series Time Series vs. Cross-Sectional Data Detrending Time Series... 15

7 Introduction to Time Series

Trending Models in the Data

Testing for Unit Roots with Cointegrated Data

Chapter 2: Unit Roots

CHAPTER 21: TIME SERIES ECONOMETRICS: SOME BASIC CONCEPTS

G. S. Maddala Kajal Lahiri. WILEY A John Wiley and Sons, Ltd., Publication

DEPARTMENT OF ECONOMICS AND FINANCE COLLEGE OF BUSINESS AND ECONOMICS UNIVERSITY OF CANTERBURY CHRISTCHURCH, NEW ZEALAND

Introductory Workshop on Time Series Analysis. Sara McLaughlin Mitchell Department of Political Science University of Iowa

Lecture 5: Unit Roots, Cointegration and Error Correction Models The Spurious Regression Problem

Econometrics Lecture 9 Time Series Methods

Moreover, the second term is derived from: 1 T ) 2 1

E 4160 Autumn term Lecture 9: Deterministic trends vs integrated series; Spurious regression; Dickey-Fuller distribution and test

Multivariate Time Series

Cointegration, Stationarity and Error Correction Models.

E 4101/5101 Lecture 9: Non-stationarity

Questions and Answers on Unit Roots, Cointegration, VARs and VECMs

Econometrics of Panel Data

Prof. Dr. Roland Füss Lecture Series in Applied Econometrics Summer Term Introduction to Time Series Analysis

Topic 4 Unit Roots. Gerald P. Dwyer. February Clemson University

It is easily seen that in general a linear combination of y t and x t is I(1). However, in particular cases, it can be I(0), i.e. stationary.

Empirical Market Microstructure Analysis (EMMA)

Econometrics I. Professor William Greene Stern School of Business Department of Economics 25-1/25. Part 25: Time Series

Economtrics of money and finance Lecture six: spurious regression and cointegration

Introduction to Eco n o m et rics

Unit Root and Cointegration

11/18/2008. So run regression in first differences to examine association. 18 November November November 2008

MA Advanced Econometrics: Applying Least Squares to Time Series

ECON2228 Notes 10. Christopher F Baum. Boston College Economics. cfb (BC Econ) ECON2228 Notes / 48

Answers: Problem Set 9. Dynamic Models

Unit roots in vector time series. Scalar autoregression True model: y t 1 y t1 2 y t2 p y tp t Estimated model: y t c y t1 1 y t1 2 y t2

7. Integrated Processes

MA Advanced Econometrics: Spurious Regressions and Cointegration

ECON2228 Notes 10. Christopher F Baum. Boston College Economics. cfb (BC Econ) ECON2228 Notes / 54

1 Quantitative Techniques in Practice

LECTURE 10: MORE ON RANDOM PROCESSES

Christopher Dougherty London School of Economics and Political Science

7. Integrated Processes

Time Series Analysis. James D. Hamilton PRINCETON UNIVERSITY PRESS PRINCETON, NEW JERSEY

Econometrics. Week 11. Fall Institute of Economic Studies Faculty of Social Sciences Charles University in Prague

Empirical Macroeconomics

Nonstationary Time Series:

Time series: Cointegration

Economics 308: Econometrics Professor Moody

Nonstationary Panels

Økonomisk Kandidateksamen 2004 (II) Econometrics 2 June 14, 2004

Lecture 8a: Spurious Regression

Lecture 19. Common problem in cross section estimation heteroskedasticity

BCT Lecture 3. Lukas Vacha.

Autocorrelation. Think of autocorrelation as signifying a systematic relationship between the residuals measured at different points in time

F9 F10: Autocorrelation

Econ 423 Lecture Notes: Additional Topics in Time Series 1

Romanian Economic and Business Review Vol. 3, No. 3 THE EVOLUTION OF SNP PETROM STOCK LIST - STUDY THROUGH AUTOREGRESSIVE MODELS

Time Series Analysis. James D. Hamilton PRINCETON UNIVERSITY PRESS PRINCETON, NEW JERSEY

Lecture 8a: Spurious Regression

ARDL Cointegration Tests for Beginner

Lab 07 Introduction to Econometrics

13. Time Series Analysis: Asymptotics Weakly Dependent and Random Walk Process. Strict Exogeneity

Auto correlation 2. Note: In general we can have AR(p) errors which implies p lagged terms in the error structure, i.e.,

Contents. Part I Statistical Background and Basic Data Handling 5. List of Figures List of Tables xix

Econ 423 Lecture Notes

Lecture 19 - Decomposing a Time Series into its Trend and Cyclical Components

This chapter reviews properties of regression estimators and test statistics based on

Cointegration and Error-Correction

Univariate linear models

Testing for non-stationarity

Non-Stationary Time Series and Unit Root Testing

Oil price and macroeconomy in Russia. Abstract

Econometrics I KS. Module 2: Multivariate Linear Regression. Alexander Ahammer. This version: April 16, 2018

EC408 Topics in Applied Econometrics. B Fingleton, Dept of Economics, Strathclyde University

EC821: Time Series Econometrics, Spring 2003 Notes Section 9 Panel Unit Root Tests Avariety of procedures for the analysis of unit roots in a panel

Economics 536 Lecture 7. Introduction to Specification Testing in Dynamic Econometric Models

Multiple Regression Analysis

This is a repository copy of Estimating Quarterly GDP for the Interwar UK Economy: An Application to the Employment Function.

Empirical Macroeconomics

Problem Set #5-Key Sonoma State University Dr. Cuellar Economics 317- Introduction to Econometrics

Econometrics. 9) Heteroscedasticity and autocorrelation

Eksamen på Økonomistudiet 2006-II Econometrics 2 June 9, 2006

Please discuss each of the 3 problems on a separate sheet of paper, not just on a separate page!

Time Series Econometrics 4 Vijayamohanan Pillai N

Stationarity and cointegration tests: Comparison of Engle - Granger and Johansen methodologies

Introduction to Modern Time Series Analysis

Non-Stationary Time Series and Unit Root Testing

EC408 Topics in Applied Econometrics. B Fingleton, Dept of Economics, Strathclyde University

An empirical analysis of the Phillips Curve : a time series exploration of Hong Kong

Lecture 7: Dynamic panel models 2

Empirical Macroeconomics

Nonstationary time series models

Applied Econometrics. Applied Econometrics. Applied Econometrics. Applied Econometrics. What is Autocorrelation. Applied Econometrics

UNIVERSITY OF WARWICK. Summer Examinations 2015/16. Econometrics 1

Stationarity and Cointegration analysis. Tinashe Bvirindi

LECTURE 11. Introduction to Econometrics. Autocorrelation

Exercise Sheet 6: Solutions

TESTING FOR CO-INTEGRATION

Lecture#17. Time series III

Outline. Nature of the Problem. Nature of the Problem. Basic Econometrics in Transportation. Autocorrelation

Transcription:

Stationary and nonstationary variables Stationary variable: 1. Finite and constant in time expected value: E (y t ) = µ < 2. Finite and constant in time variance: Var (y t ) = σ 2 < 3. Covariance dependent only on h - distance in time Cov (y t, y t+h ) = γ h Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 1

for all t. Covariances depend only on h distance in time between y t and y t+h We call y t trend stationary if y t E (y t ) is stationary Classical example of the stationary process is white noise: 1. y t distribution is constant in time with expected value 0 and finite variance σ 2 2. y t and y s are independent Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 2

3 y(t)=e(t) e(t)=n(0,1) 2 1 0-1 -2 0 5 10 15 20 25 30 35 40 45 50 white noise (variable I (0)) Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 3

Integrated variables Special case of stationary variables are integrated variables of order 0 x t I (0). I (0) variable is defined as stationary variable, which can be expressed as x t = i=0 c iε t i, where ε i and ε j are not correlated. Variable integrated of order d denoted as x t I (d), is a variable, that after applying d order differences differences becomes integrated of order 0: d x t I (0). It can be shown that A (L) 1 ε t is stationary if all roots of A (L) lie outside unit circle. If x t can be expressed as A (L) x t = µ + ε t Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 4

and A (L) has all the root outside unit circle than x t is I (0) as: x t = µ + A (L) 1 ε t where µ = A (L) 1 µ = A (1) 1 µ = µ 1 α 1... α p If x t is I (1) then or x t = µ + A (L) 1 ε t (1 L) A (L) x t = µ + ε t A (L) x t = µ + ε t and A (L) has one unit root and all other roots outside unit circle Conclusion: I (1) variables has one unit root in their polynomial of lag operator. Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 5

Example 1. Random walk (nonstationy variable) y t = y t 1 + ε t ε t IID ( 0, σ 2) This model can be written as (1 L) y t = ε t Obviously polynomial of lag operator has one unit root. A (L) is not invertible. Substitute y t 1 = y t 2 + ε t 1, y t = y t 2 + ε t 1 + ε t Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 6

Repeating this substitution recursively we will obtain: y t = y 0 + t s=1 ε s Assume that y 0 = 0, and so E (y t ) = 0 t Var (y t ) = Var (ε s ) = tσ 2 Cov (y t, y t h ) = s=1 t h s=1 Var (ε s ) = (t h) σ 2 Variances and covariances of the random walk depend on time! Variable y t is nonstationary. Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 7

Substracting y t 1 from both sides we obtain: y t y t 1 = y t = ε t So that after taking first differences of random walk we obtain white noise - I (0) variable. Conclusion: random walk is I (1) variable. Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 8

0-2.5 y(t)=y(t-1)+e(t) e(t)~n(0,1) -5-7.5-10 -12.5-15 0 5 10 15 20 25 30 35 40 45 50 random walk (I (1) variable) Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 9

In econometric analysis only I (1) and I (2) are of importance A number of macroeconomic time series look like I (1) variables In well known article Nelson and Plosser (1982) show, that significant part of macroeconomic time series for US look like I (1) variables It is possible to test for order of integration As the order of integration is equal to number of unit roots this tests are called unit root tests Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 10

Dickey-Fuller Test (DF ) We test the null hypothesis that the variable has one unit root (is I (1)) The simplest case y t = βy t 1 + ε t H 0 : β = 1, than y t has one unit root (is a random walk - I (1) variable) H 1 : β < 1, then y t is stationary as the only root lies outside the unit circle Substracting y t 1 from both sides we obtain: y t = (β 1) y t 1 + ε t = ρy t 1 + ε t Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 11

H 0 : ρ = 0, then y t is nonstationary H 0 : ρ ( 2, 0), then y t is stationary Hypothesis than ρ = 0 can not be tested with standard t-student tables - the special test tables for DF test should be used The test procedure: 1. Regress y t on y t 1 2. Compare the t statistic calculated for y t 1 with critical values of DF test. If calculated statistic is smaller than critical value we reject the H 0. Remark 2. follows: In Dickey Fuller the null and alternative hypotheses are as H 0 variables has unit root (is nonstationary) Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 12

H 1 variable has root outside unit circle (is stationary) Remark 3. In same tables of DF critical values minus sign is omitted. Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 13

Augmented Dickey-Fuller test (ADF ) Often in the regression y t = ρy t 1 + ε t there is autocorrelation Autocorrelation should be eliminated from dynamic model - otherwise we have simultaneity In this case we use DF with augmentation (ADF - Augmented Dickey Fuller) k y t = ρy t 1 + γ i y t i + ε t k is chosen so that autocorrelation is eliminated from residuals i=1 Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 14

The constant and trend can also be included in the regression: 1. y t = ρy t 1 + k i=1 γ i y t i + ε t 2. y t = a + ρy t 1 + k i=1 γ i y t i + ε t 3. y t = a + bt + ρy t 1 + k i=1 γ i y t i + ε t Remark 4. For each trend model (no constant, constant, linear trend) we should use separate DF table Example 5. Real GDP growth for Poland in years 1996.1-2004.3, quarterly index (Q/Q) - real growth quarter to the some quarter previous year (no seasonality) Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 15

PKB 0 2 4 6 8 1995q1 1997q3 2000q1 2002q3 2005q1 data Growth of P KB quarterly index (Q/Q) Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 16

------------------------------------------------------------------------------ D.pkb Coef. Std. Err. t P> t [95% Conf. Interval] -------------+---------------------------------------------------------------- pkb L1 -.2760446.1350873-2.04 0.056 -.5598524.0077633 LD.5846543.2200515 2.66 0.016.1223433 1.046965 L2D -.0616403.2488176-0.25 0.807 -.5843866.461106 L3D.3055767.2634729 1.16 0.261 -.2479593.8591128 L4D -.3489368.2367631-1.47 0.158 -.8463575.148484 L5D.2966282.2515727 1.18 0.254 -.2319064.8251628 L6D -.0437733.271078-0.16 0.874 -.6132871.5257405 L7D.1129747.2414823 0.47 0.646 -.3943609.6203102 _cons.9466827.54444 1.74 0.099 -.1971433 2.090509 ------------------------------------------------------------------------------ Breusch-Godfrey LM test for autocorrelation --------------------------------------------------------------------------- lags(p) chi2 df Prob > chi2 -------------+------------------------------------------------------------- 1 0.568 1 0.4511 --------------------------------------------------------------------------- H0: no serial correlation Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 17

Augmented Dickey-Fuller test for unit root Number of obs = 27 ---------- Interpolated Dickey-Fuller --------- Test 1% Critical 5% Critical 10% Critical Statistic Value Value Value ------------------------------------------------------------------------------ Z(t) -2.043-3.736-2.994-2.628 ------------------------------------------------------------------------------ * MacKinnon approximate p-value for Z(t) = 0.2679 Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 18

Cointegrated variables Variables x 1t I (1) and x 2t I (1) are cointegrated if there is such β, that x 1t + βx 2t is I (0). In case of vector x t, if each element of this vector is I (1), then x t is cointegrated if there exists such vector β, that β x t jest I (0) Cointegration between I (1) variables exists if there is such linear combination of this variables which is I (0) Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 19

y=2+x*1.1+0.3*e(t) e(t)~n(0,0.09) x~i(1) 6 5 4 3 2 1 0 0 5 10 15 20 25 30 35 40 45 50 cointegrated variables Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 20

Spurious regression Spurious regression can happen if some of the variables (explanatory or dependent) in the model are not I (0) In such a regression we can obtain significant t statistics in OLS regression even for variables which are totally unrelated Regress y t on x t, where y t and x t are independent I (1) variables (random walks). y t = β 0 + β 1 x t + e t p values taken from t-student distribution and simulated p-values for the Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 21

test for H 0 : β 1 = 0. probability, that t > t α obs. number t α t-student simulation 10 2.31 0.05 0.28 100 1.98 0.05 0.76 1000 1.96 0.05 0.93 For large number of observation it is virtually sure that t > t α and we reject true null hypothesis. Using standard regression procedures for models with nostationary variables we can easily end up with a model with irrelevant variables (so the term spurious regression) Remark 6. Although the t statistic has nonstandard distribution in this case, the OLS estimators are still consistent Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 22

Simple solution of the spurious regression problem for the regression with I (1) variables: take the first differences of both sides (make the regression on first differences) Problem: regression on first deferences can not be used for estimating the long run equilibrium: y t = x t β + ε t E (y t y t 1 ) = E (x t x t 1 ) β and assuming that y = E (y t ) = E (y t 1 ) =... and x = E (x t ) = E (x t 1 ) =... we obtain equation 0 = 0β which can not be used to find the long run solution (long rung solution for levels cannot be calculated from model on first differences). Macroeconometrics, WNE UW, Copyright c 2017 by Jerzy Mycielski 23