Exercise: Building an Error Correction Model of Private Consumption. Part II Testing for Cointegration 1

Similar documents
Vectorautoregressive Model and Cointegration Analysis. Time Series Analysis Dr. Sevtap Kestel 1

Lecture 5. Time series: ECM. Bernardina Algieri Department Economics, Statistics and Finance

Ready for euro? Empirical study of the actual monetary policy independence in Poland VECM modelling

Unit Root Time Series. Univariate random walk

Cointegration and Implications for Forecasting

Introduction D P. r = constant discount rate, g = Gordon Model (1962): constant dividend growth rate.

Methodology. -ratios are biased and that the appropriate critical values have to be increased by an amount. that depends on the sample size.

R t. C t P t. + u t. C t = αp t + βr t + v t. + β + w t

A Specification Test for Linear Dynamic Stochastic General Equilibrium Models

Properties of Autocorrelated Processes Economics 30331

ACE 564 Spring Lecture 7. Extensions of The Multiple Regression Model: Dummy Independent Variables. by Professor Scott H.

Econ107 Applied Econometrics Topic 7: Multicollinearity (Studenmund, Chapter 8)

Licenciatura de ADE y Licenciatura conjunta Derecho y ADE. Hoja de ejercicios 2 PARTE A

Solutions to Odd Number Exercises in Chapter 6

GMM - Generalized Method of Moments

Diebold, Chapter 7. Francis X. Diebold, Elements of Forecasting, 4th Edition (Mason, Ohio: Cengage Learning, 2006). Chapter 7. Characterizing Cycles

DEPARTMENT OF STATISTICS

Comparing Means: t-tests for One Sample & Two Related Samples

Dynamic Econometric Models: Y t = + 0 X t + 1 X t X t k X t-k + e t. A. Autoregressive Model:

How to Deal with Structural Breaks in Practical Cointegration Analysis

Chickens vs. Eggs: Replicating Thurman and Fisher (1988) by Arianto A. Patunru Department of Economics, University of Indonesia 2004

Wednesday, November 7 Handout: Heteroskedasticity

Problem Set 5. Graduate Macro II, Spring 2017 The University of Notre Dame Professor Sims

Estimation Uncertainty

Two Coupled Oscillators / Normal Modes

Distribution of Least Squares

Lecture 3: Exponential Smoothing

Distribution of Estimates

13.3 Term structure models

UNIVERSITY OF OSLO DEPARTMENT OF ECONOMICS

Financial Econometrics Jeffrey R. Russell Midterm Winter 2009 SOLUTIONS

Time series Decomposition method

ACE 562 Fall Lecture 4: Simple Linear Regression Model: Specification and Estimation. by Professor Scott H. Irwin

Bias in Conditional and Unconditional Fixed Effects Logit Estimation: a Correction * Tom Coupé

Chapter 16. Regression with Time Series Data

International Parity Relations between Poland and Germany: A Cointegrated VAR Approach

23.2. Representing Periodic Functions by Fourier Series. Introduction. Prerequisites. Learning Outcomes

3.1.3 INTRODUCTION TO DYNAMIC OPTIMIZATION: DISCRETE TIME PROBLEMS. A. The Hamiltonian and First-Order Conditions in a Finite Time Horizon

Regression with Time Series Data

Advanced time-series analysis (University of Lund, Economic History Department)

Lecture 2-1 Kinematics in One Dimension Displacement, Velocity and Acceleration Everything in the world is moving. Nothing stays still.

Robust estimation based on the first- and third-moment restrictions of the power transformation model

Department of Economics East Carolina University Greenville, NC Phone: Fax:

(a) Set up the least squares estimation procedure for this problem, which will consist in minimizing the sum of squared residuals. 2 t.

3.1 More on model selection

Chapter 2. First Order Scalar Equations

Some Basic Information about M-S-D Systems

The Brock-Mirman Stochastic Growth Model

Forecasting optimally

Testing the Random Walk Model. i.i.d. ( ) r

Outline. lse-logo. Outline. Outline. 1 Wald Test. 2 The Likelihood Ratio Test. 3 Lagrange Multiplier Tests

Økonomisk Kandidateksamen 2005(II) Econometrics 2. Solution

OBJECTIVES OF TIME SERIES ANALYSIS

Stability. Coefficients may change over time. Evolution of the economy Policy changes

Modeling Economic Time Series with Stochastic Linear Difference Equations

A First Course on Kinetics and Reaction Engineering. Class 19 on Unit 18

( ) a system of differential equations with continuous parametrization ( T = R + These look like, respectively:

= ( ) ) or a system of differential equations with continuous parametrization (T = R

Generalized Least Squares

ESTIMATION OF DYNAMIC PANEL DATA MODELS WHEN REGRESSION COEFFICIENTS AND INDIVIDUAL EFFECTS ARE TIME-VARYING

Math 333 Problem Set #2 Solution 14 February 2003

Wisconsin Unemployment Rate Forecast Revisited

Kriging Models Predicting Atrazine Concentrations in Surface Water Draining Agricultural Watersheds

A Dynamic Model of Economic Fluctuations

5.2. The Natural Logarithm. Solution

ACE 562 Fall Lecture 5: The Simple Linear Regression Model: Sampling Properties of the Least Squares Estimators. by Professor Scott H.

Modeling and Forecasting Volatility Autoregressive Conditional Heteroskedasticity Models. Economic Forecasting Anthony Tay Slide 1

Hypothesis Testing in the Classical Normal Linear Regression Model. 1. Components of Hypothesis Tests

ECON 482 / WH Hong Time Series Data Analysis 1. The Nature of Time Series Data. Example of time series data (inflation and unemployment rates)

Biol. 356 Lab 8. Mortality, Recruitment, and Migration Rates

Simulation-Solving Dynamic Models ABE 5646 Week 2, Spring 2010

Matlab and Python programming: how to get started

1. Diagnostic (Misspeci cation) Tests: Testing the Assumptions

Y, where. 1 Estimate St.error

Chapter 5. Heterocedastic Models. Introduction to time series (2008) 1

GDP Advance Estimate, 2016Q4

Dynamic Models, Autocorrelation and Forecasting

Lecture 15. Dummy variables, continued

Derived Short-Run and Long-Run Softwood Lumber Demand and Supply

t is a basis for the solution space to this system, then the matrix having these solutions as columns, t x 1 t, x 2 t,... x n t x 2 t...

STATE-SPACE MODELLING. A mass balance across the tank gives:

Cooperative Ph.D. Program in School of Economic Sciences and Finance QUALIFYING EXAMINATION IN MACROECONOMICS. August 8, :45 a.m. to 1:00 p.m.

04. Kinetics of a second order reaction

Solutions Problem Set 3 Macro II (14.452)

The general Solow model

The Simple Linear Regression Model: Reporting the Results and Choosing the Functional Form

Math 10B: Mock Mid II. April 13, 2016

1. Consider a pure-exchange economy with stochastic endowments. The state of the economy

E β t log (C t ) + M t M t 1. = Y t + B t 1 P t. B t 0 (3) v t = P tc t M t Question 1. Find the FOC s for an optimum in the agent s problem.

Nonstationary Time Series Data and Cointegration

Has the Business Cycle Changed? Evidence and Explanations. Appendix

Affine term structure models

ACE 562 Fall Lecture 8: The Simple Linear Regression Model: R 2, Reporting the Results and Prediction. by Professor Scott H.

Final Exam. Tuesday, December hours

Let us start with a two dimensional case. We consider a vector ( x,

20. Applications of the Genetic-Drift Model

Mathcad Lecture #8 In-class Worksheet Curve Fitting and Interpolation

IMPLICIT AND INVERSE FUNCTION THEOREMS PAUL SCHRIMPF 1 OCTOBER 25, 2013

Stationary Time Series

Lecture 3: Solow Model II Handout

Transcription:

Bo Sjo 200--24 Exercise: Building an Error Correcion Model of Privae Consumpion. Par II Tesing for Coinegraion Learning objecives: This lab inroduces esing for he order of inegraion and coinegraion. The lab requires ha you are somewha familiar wih he ADF es, he 2-sep procedure and Johansen s VAR approach. I is an exercise for sudens who have elemenary heoreical knowledge in he spurious regression problem, inegraed variables and coinegraion. These insrucions will be improved in he fuure I hope. A he momen hey are being ransformed from PcGive o Eviews, which migh cause some problems.

. Error Correcion Models and he Long-run Seady Sae In he firs par of his lab we esimaed a ypical Keynesian aggregae consumpion of he ype found in basic macroeconomic exbooks. We had a basic relaion ha we waned o esimae and we looked for a good way of consrucing an economeric model. The basic equaion said ha privae aggregaed consumpion in real erms where a funcion of real aggregaed income in economy and he ineres rae, c = β 0 + βy + β 2i where c is he aggregaed privae consumpion, y aggregaed income, and i is he ineres rae. All variables are in naural logarihms, which makes he parameers elasicises ha are easier o undersand. The ineres rae should be ransformed as ln (+ r) where r is he rae of ineres expressed a he same basis as he period of measuring income and consumpion. 2 The problems in esimaing his equaion where basically wo () he variables are non-saionary which will ruin sandard inference. There is no saisical foundaion for esing significance. The esimaed relaion migh be oally spurious. (2) The equaion, from he exbook, describes a long-run relaion no necessary a relaion ha will hold in each individual period. So, we have o expec some dynamic adjusmen in he equaion. In he firs par of he lab we solved his in raher ad hoc way. We esimaed he saic relaion, we argued ha he residual from his model was saionary and represened an error correcion erm. We could hen move on o esimae an error correcion model. In his model we had boh longrun and shor run ogeher. We argued ha we could use his model o represen a number of phenomenons in real life. In his exercise, we focus on modelling he dynamic srucure a bi more closely, and es if he underlying assumpions of regression model are fulfilled. In paricular if he variables are rending in he same way and share a long-run seady sae. If he relaion saed above is o make any sense, deviaion from he equaion should be emporary and no permanen. Or, in oher words, he variables should coinegrae, he residual should be a saionary process. The equaion above can be argued o represen a long run seady sae, or economic equilibrium. To prove his i will be necessary o es for coinegraion (common rends) among he variables, since i is no possible o use ordinary significance ess. 2. The Daa The daa series in his lab are he same as for he firs par of he lab Variable Cons GDP R60c CPI Explanaion Privae consumpion nominal value Real Gross Domesic Produc, volume index variable, base year = 995 The hree monh reasury bill rae, per cen p.a. Consumer price price index 2 You should recall he basic inerpreaion of he parameers in a mulivariae linear regression model. 2

All daa are from Sweden, yearly daa 960-200, in he file ecmdaa.xls. You need o calculae he real consumpion, ake logs and firs differences as before. 3. How o Tes? 3. Tes for he order of inegraion. If you apply he ADF es wih and wihou he rend, he conclusions are (IMO) CPI ~ I(2) Inegraed of order wo GDP ~I() Inegraed of order one r ~ I(), and ln(+r) Inegraed of order one. The laer ransformaion creaes he coninuously compounded rae of ineres, and is he beer rae use in an economeric equaion. Compare wih graphs of levels and firs log differences. 3. Tes for coinegraion using Johansen s VAR Approach. A beer way o es for coinegraion, and invesigae VAR approach. c β 0 + βy + β 2i = is o use Johansen s ) For VAR he principle is ha for each variable in he model, se up an OLS equaion where he variable is explained as a funcion of lagged variables of all variables in he sysem. The number of lags should be he same across all equaions. Eviews has a special menu (look under quick) for seing up and esimaing VAR models. You can choose 2 lags for each variables. 2) Afer esimaing model, look a he residual ess. You need o have no auocorrelaion in he residuals, and preferable a normal disribuion in he residuals. The laer can ypically be achieved wih a careful selecion of dummies (hi a he bigges ouliers) 3) If he Tes summary looks ok, proceed o es for coinegraion. In Eviews, under VAR, indicae ECM, and chose he suggesed alernaive under he coinegraion menu. If you sared wih 3 lags and removed insignifican lags, your Coinegraing es will sar a 967 and you will ge he following resuls (oupu from PcGive), 3

I() coinegraion analysis, 967 o 999 eigenvalue loglik for rank 269.829 0 0.44920 279.6534 0.55 282.3642 2 0.00443 282.4375 3 H0:rank<= Trace es [Prob] 0 25.249 [0.57] 5.5683 [0.747] 2 0.4666 [0.702] This ells you ha here is no significan eigenvalues in he long-run marix, ad herefore no coinegraing vecor in he sysem. You rejec coinegraion and a long run seady sae relaion among your daa. The H 0 : r = 0, canno be rejeced. If you wan you can sop here. You rejec ha c = β 0 + βy + β 2i is a meaningful longrun relaionship. You can hen look for oher models or more variables o add o he equaion. Alernaively, you can analyse he residual erms for ouliers ha migh influence he esimaes in a bad way. If you look a he residual of he VAR, you see no dramaic ouliers according o he rule of humb ±3.5. There however, big ouliers in wo equaions a 977. Crae a dummy for 977 in he Calculaor. Add he dummy o he VAR model. Be careful. The program assumes by defaul ha you add anoher variable o be modelled in he sysem. You need o change he saus of he dummy variable from Y = Endogenous, o U = unresriced. Once ha is done, re-esimae he model as an unresriced sysem. Look a he es summary, check ha i is ok. Tes for coinegraion, and you ge somehing like I() coinegraion analysis, 967 o 999 eigenvalue loglik for rank 275.4470 0 0.447 285.0484 0.23922 289.5596 2 0.00482 289.6394 3 H0:rank<= Trace es [Prob] 0 28.385 [0.073] 9.820 [0.355] 2 0.5960 [0.690] 4

Afer adding a dummy for an exreme oulier in he daa, he resul changes. Now we have one significan vecor a 0%. We migh accep ha as significan. 3 Nex, re-esimae he sysem and impose resricions or specific parameers on he coinegraing vecor. Under Var specificaion, afer esimaing he VAR, and chosing Vecor Error Correcion selec VEC resricions. Resricions can now be imposed on he alpha and/or he bea coefficiens in he sysem. To impose he value of.0 on he GDP you need o use B(i,j), where i is he row in he Bea marix corresponding o he coinegraing vecor. In his case i=. j is he row in column (i). In his case here wo explanaory variables, and 2. resrining hem o be and -0.5 (as a supid example) means B(,) =.0, B(,2) = -0.5. When your resricion works you will se i in he oupu. You will also se a chi-square es wheher hese resricions are valid or no. Are he resricions in line wih he null of a saionary vecor? A rejecion means ha he resricions are no valid. The oupu gives you he esimaed vecor as Π x = αβ ' x in a VECM. The resuls should be esimaed alpha-vecor and he sandard errors of alpha, from PcGive bea Lrcons.0000 LGDPvol -.009 Lrb00 0.38458 alpha Lrcons -0.56700 LGDPvol 0.0226 Lrb00 0.3077 Sandard errors of alpha Lrcons 0.6452 LGDPvol 0.6428 Lrb00 0.956 The associaed -saisics for alpha is esimae/s.err. The esimaed long-run vecor reads [.0, -.009, 0.38458]. The program has auomaically by defaul normalized he esimaed vecor around he firs variable in he firs vecor. Thus, we see.0 as he firs parameer. If we wrie ou he equaion we have esimaed c =.0y 0. 38i. This equaion is our new error correcion erm. We can use his equaion in he Error correcion 3 Addiionally, you migh also add second impulse dummy for he second big error ha you idenify from he graphs of he esimaed residual from he VAR wih wo lags. The second bigges residual is for 97, confirm his in he graphs of he esimaed residual creae an impulse dummy for 97 and include i as an unresriced dummy in he model. Re-esimae and es for coinegraion. Wha is he oucome of he es? I is beer. 5

model in he firs par of his lab. Consruc he ECM variable as, ECM = c.0y + 0. 38i and he lag of his erm. I will represen a beer long-run seady sae. This esimaed long- run relaionship is no ha differen from he one we go esimaing he saic OLS. The difference is ha his mehod is a saisically beer mehod for esing for coinegraion. Noice he sign changes in he equaion. In marix form we have esimaed, ** 0.57 Lrcons αβ LGDPvol, ** 0.30 Lrb00 [ ' x ] = 0.0 [.0,.00, 0.38] where ** indicaes significance a he 5% level. Or in erms of he sysem, leaving he shor run dynamics ou, **' Lrcons 0.57 ε Lrcons LGDPvol = 2 ** 00 3 0.30 Lrb ε Lrb00 [ αβ ' x ] +... + ε = 0.0 [.0,.00, 0.38] LGDPvol... + We can see ha he coinegraing vecor predics changes in consumpion and changes in he real ineres rae. I does no predic changes in GDP, however. We know ha coinegraion will imply ha a leas one alpha coefficien mus be significan. The conclusion is ha we need o model a leas boh consumpion and he ineres rae o ge a correcly esimaed long-run vecor. The single equaion esimaion will be biased. The consumpion growh will adjus o follow he income in he long run. We can also see ha he ineres rae will change when we are ou of he seady sae. Of course, we expec he ineres rae o adjus during he business cycles. 3.3 How did I know he lag order of he VAR model? I didn know, I esimaed and esed for i. When esimaing VARs and esing for coinegraion he lag order will ofen be crucial for he resuls. Sar wih four lags on all variables. Tha gives you a huge number of parameers o esimae in he model and few degrees of freedom for he ess. Going beyond his migh be oo much given he lengh of he sample. If you sar wih 4 lags, and reduce lags sep by sep, and es for misspecificaion a he same ime you will be able o reduce he lag lengh in his model from 4 lags o 2 lags. In comparison wih he single model, he es resuls will now also conain so called vecor ess. The program pools he ess resuls of he individual equaion ogeher and ess if he vecor is significan or no. This make sense since we are esimaing a sysem, we wan he sysem o perform well. Hopefully, boh he individual equaion ess and he vecor ess will come ou insignifican. 6

Furhermore, in he Johansen s approach we will make use of he Full Informaion Maximum Likelihood procedure for geing he esimaes we need. This requires ha he residual process is normally disribued whie noise. We really need o es hese models more carefully han single equaion saionary ARMA models. The program will es for he significan of he parameers, and of he lags. You migh ask how his work? Is he spurious regression problem, presen? The answer is ha F-es of he variables, lags and heir parameers will work because he variables are inegraed of a mos order one I(), herefore when you condiion on he lag order in he model will he F-es be performed on saionary relaions. As a consequence of esing saionary relaions he F-es will work. The oucome of analysing he lag srucure in his model is a 2 lags will do. This is a rule of humb, 2 lags is ofen opimal. Bu someimes you need o impose a few impulse dummies o ge whie noise residuals. 4. The Dynamic Single Equaion All models are inerrelaed in various ways. The saic esimaion was no oo differen from he coinegraing VAR esimaion. Le us look a a dynamic OLS model. We know ha he parameers will be a bi biased from he VAR resuls. I migh be ineresing o compare an ADL model. Esimae a single dynamic equaion wih wo lags on each variable. Ask for Saic long run soluion and you will ge he following Solved saic long run equaion for Lrcons Coefficien Sd.Error -value -prob Consan -2.3948 0.33-2. 0.000 LGDPvol.0069 0.026 38.3 0.000 Lrb00-0.42293 0.943-2.8 0.037 Long-run sigma = 0.0233692 ECM = Lrcons + 2.3948 -.0069*LGDPvol + 0.422935*Lrb00; The saic long run is found be wriing ou he model using he lag operaor. Solve for y =... Nex se he lag operaor o uniy, L=, and calculae he resul. This is wha he program is doing. The resuls are similar o wha go before. There are some differences, especially for he ineres rae coefficien. Tha is an expeced bias. From he VAR we learned ha he ineres rae was imporan for he long-run. NEXT? Idenificaion and esing of he coinegraing vecor. The Johansen es only ells us ha here is saionary relaion among he variables, i does no ells us exacly wha i is, and wha he parameers are. We need o do impose some resricions and do some ess on he vecor o 7

idenify exacly wha we have found. For one significan vecor his is relaively easy. The normalizaion will jus idenify he vecor for us. We can hen es consrains on he oher parameers. If we have more han one vecor, hings ge a lile bi more complex. Finding r vecors imply r normalizaions and r(r-) resricions o achieve a leas exac idenificaion. Appendix Tesing for coinegraion using he Engle and Granger Two Sep Procedure. The Engle and Granger wo sep procedure was an early developed es for coinegraion. I is no longer used because i is no a good es, i is found no be consisen ec.. However, i has a nice inuiion o i, and we show i here as an addiional exercise. Sep one esimae he coinegraing regression y = β + β x +... + β xn + ε 0 N Save he esimaed residual, ( εˆ ) and es if he esimaed residual is saionary by running he following regression, ˆ ε = α + π k ˆ ε + γ i ˆ ε i + i= v In his equaion you perform a one-sided es if πˆ is less han zero. The choice of augmenaion, lag lengh of he lagged dependen variable is imporan. The criical values will depend on ) number of variables in he coinegraing regression and 2) number of variables on he sample. To some exen he number of lags in he augmenaion will also be imporan. Here: ) Esimae he saic model from above (no lags), and save he residual (under Tes, Sore..) 2) Run he second sep o es if he residual from he firs sep equaion is saionary. Use an ADF-ype of es bu remember ha he criical values are hose of an ADF es. You will find he correc criical values in Sjöö (2008), for N=3 (=hree variables in he model), 5% risk level, 00 obs, lag in he 2-sep equaion, he criical value is = 4.0. If you end up wih one lag you migh argue a he 0% level ha you rejec he null of no coinegraion (inegraed residual erm). If you accep coinegraion, you are allowed o check he esimaed parameers of he model. Do hey make sense? Remember ha hey can be a bi biased. You canno and should no look a he -values. They will ypically sill be biased. If you find argumens for coinegraion, you have found a seady sae long run equilibrium and argumens for why your ECM variable will work in he Error Correcion model from he firs par of he lab. One message here, going back o he firs lab is he following. If you have a heoreical relaion ha you believe in, he ECM model is a nice way o approach modelling regardless of esing for inegraion and coinegraion. The model will make some sense, and be oally spurious. A lile knowledge in esing for he order of inegraion (uni ro ess) will help you along he way. 8