TESTING FOR NONSTATIONARITY 1 This sequence will describe two methods for detecting nonstationarity, a graphical method involving correlograms and a more.

Slides:



Advertisements
Similar presentations
Cointegration and Error Correction Models
Advertisements

Autocorrelation Functions and ARIMA Modelling
Introduction Describe what panel data is and the reasons for using it in this format Assess the importance of fixed and random effects Examine the Hausman.
EC220 - Introduction to econometrics (chapter 13)
Christopher Dougherty EC220 - Introduction to econometrics (chapter 11) Slideshow: static models and models with lags Original citation: Dougherty, C.
Using SAS for Time Series Data
Part II – TIME SERIES ANALYSIS C5 ARIMA (Box-Jenkins) Models
STATIONARY AND NONSTATIONARY TIME SERIES
Nonstationary Time Series Data and Cointegration Prepared by Vera Tabakova, East Carolina University.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 13) Slideshow: cointegration Original citation: Dougherty, C. (2012) EC220 - Introduction.
1 The graphical approach appears to have served the time series analysts satisfactorily, but on the whole econometricians prefer more formal methods and.
Non-stationary data series
COINTEGRATION 1 The next topic is cointegration. Suppose that you have two nonstationary series X and Y and you hypothesize that Y is a linear function.
Economics 20 - Prof. Anderson1 Testing for Unit Roots Consider an AR(1): y t =  +  y t-1 + e t Let H 0 :  = 1, (assume there is a unit root) Define.
1 MF-852 Financial Econometrics Lecture 11 Distributed Lags and Unit Roots Roy J. Epstein Fall 2003.
Unit Roots & Forecasting
Augmented Dickey-Fuller Test Equation Dependent Variable: D(LGDPI) Method: Least Squares Sample (adjusted): Included observations: 44 after adjustments.
Regression with Time-Series Data: Nonstationary Variables
Christopher Dougherty EC220 - Introduction to econometrics (chapter 13) Slideshow: tests of nonstationarity: example and further complications Original.
============================================================ Dependent Variable: LGHOUS Method: Least Squares Sample: Included observations:
1 The graphical approach appears to have served the time series analysts satisfactorily, but on the whole econometricians prefer more formal methods and.
AUTOCORRELATION 1 The third Gauss-Markov condition is that the values of the disturbance term in the observations in the sample be generated independently.
FITTING MODELS WITH NONSTATIONARY TIME SERIES 1 Detrending Early macroeconomic models tended to produce poor forecasts, despite having excellent sample-period.
ASYMPTOTIC PROPERTIES OF ESTIMATORS: PLIMS AND CONSISTENCY
1 TIME SERIES MODELS: STATIC MODELS AND MODELS WITH LAGS In this sequence we will make an initial exploration of the determinants of aggregate consumer.
Stationary process NONSTATIONARY PROCESSES 1 In the last sequence, the process shown at the top was shown to be stationary. The expected value and variance.
The Multiple Regression Model Prepared by Vera Tabakova, East Carolina University.
ARIMA Forecasting Lecture 7 and 8 - March 14-16, 2011
Discovering and Describing Relationships
1 We will now consider the distributional properties of OLS estimators in models with a lagged dependent variable. We will do so for the simplest such.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 13) Slideshow: tests of nonstationarity: untrended data Original citation: Dougherty,
TESTING A HYPOTHESIS RELATING TO A REGRESSION COEFFICIENT This sequence describes the testing of a hypotheses relating to regression coefficients. It is.
Christopher Dougherty EC220 - Introduction to econometrics (chapter 3) Slideshow: prediction Original citation: Dougherty, C. (2012) EC220 - Introduction.
1 In the previous sequence, we were performing what are described as two-sided t tests. These are appropriate when we have no information about the alternative.
EC220 - Introduction to econometrics (chapter 12)
DURBIN–WATSON TEST FOR AR(1) AUTOCORRELATION
1 PREDICTION In the previous sequence, we saw how to predict the price of a good or asset given the composition of its characteristics. In this sequence,
DUMMY CLASSIFICATION WITH MORE THAN TWO CATEGORIES This sequence explains how to extend the dummy variable technique to handle a qualitative explanatory.
Chapter 15 Forecasting Copyright © 2011 Pearson Addison-Wesley. All rights reserved. Slides by Niels-Hugo Blunch Washington and Lee University.
Regression Method.
Pure Serial Correlation
Autoregressive Integrated Moving Average (ARIMA) Popularly known as the Box-Jenkins methodology.
Christopher Dougherty EC220 - Introduction to econometrics (revision lectures 2011) Slideshow: autocorrelation Original citation: Dougherty, C. (2011)
SPURIOUS REGRESSIONS 1 In a famous Monte Carlo experiment, Granger and Newbold fitted the model Y t =  1 +  2 X t + u t where Y t and X t were independently-generated.
PARTIAL ADJUSTMENT 1 The idea behind the partial adjustment model is that, while a dependent variable Y may be related to an explanatory variable X, there.
TESTS OF NONSTATIONARITY: UNTRENDED DATA 1 In the previous slideshow we considered the conditions under which the process shown at the top of the slide.
The Properties of Time Series: Lecture 4 Previously introduced AR(1) model X t = φX t-1 + u t (1) (a) White Noise (stationary/no unit root) X t = u t i.e.
AUTOCORRELATION 1 Assumption C.5 states that the values of the disturbance term in the observations in the sample are generated independently of each other.
How do we identify non-stationary processes? (A) Informal methods Thomas 14.1 Plot time series Correlogram (B) Formal Methods Statistical test for stationarity.
AUTOCORRELATION: WHAT HAPPENS IF THE ERROR TERMS ARE CORRELATED?
Christopher Dougherty EC220 - Introduction to econometrics (chapter 6) Slideshow: exercise 6.13 Original citation: Dougherty, C. (2012) EC220 - Introduction.
EC208 – Introductory Econometrics. Topic: Spurious/Nonsense Regressions (as part of chapter on Dynamic Models)
Review and Summary Box-Jenkins models Stationary Time series AR(p), MA(q), ARMA(p,q)
Previously Definition of a stationary process (A) Constant mean (B) Constant variance (C) Constant covariance White Noise Process:Example of Stationary.
TESTING FOR NONSTATIONARITY 1 This sequence will describe two methods for detecting nonstationarity, a graphical method involving correlograms and a more.
NONSTATIONARY PROCESSES 1 In the last sequence, the process shown at the top was shown to be stationary. The expected value and variance of X t were shown.
Significance Tests for Regression Analysis. A. Testing the Significance of Regression Models The first important significance test is for the regression.
AUTOCORRELATION 1 Assumption B.5 states that the values of the disturbance term in the observations in the sample are generated independently of each other.
Stationarity and Unit Root Testing Dr. Thomas Kigabo RUSUHUZWA.
VARIABLE MISSPECIFICATION I: OMISSION OF A RELEVANT VARIABLE In this sequence and the next we will investigate the consequences of misspecifying the regression.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Chapter 13.
Financial Econometrics Lecture Notes 2
Correlation and Simple Linear Regression
STATIONARY AND NONSTATIONARY TIME SERIES
Introduction to Econometrics, 5th edition
Introduction to Econometrics, 5th edition Chapter 12: Autocorrelation
BOX JENKINS (ARIMA) METHODOLOGY
Introduction to Econometrics, 5th edition
Presentation transcript:

TESTING FOR NONSTATIONARITY 1 This sequence will describe two methods for detecting nonstationarity, a graphical method involving correlograms and a more technical method involving unit root tests. Autocorrelation function for k = 1,...

TESTING FOR NONSTATIONARITY 2 We will start with the graphical method. The autocorrelation function of a series X t gives the theoretical correlation between the value of the series at time t and its value at time t + k, for values of k from 1 to (typically) about 20. Autocorrelation function for k = 1,...

TESTING FOR NONSTATIONARITY 3 For example, the autocorrelation coefficient  k for an AR(1) process is  2 k. Autocorrelation function Autocorrelation function of an AR(1) process for k = 1,...

TESTING FOR NONSTATIONARITY 4 For stationary processes the autocorrelation coefficients tend to 0 quite quickly as k increases. The figure shows the correlogram for an AR(1) process with  2 = 0.8. Correlogram of an AR(1) process

TESTING FOR NONSTATIONARITY 5 Higher order AR(p) processes will exhibit more complex behavior, but if they are stationary, the coefficients will eventually decline to 0. Correlogram of an AR(1) process

TESTING FOR NONSTATIONARITY 6 A moving average MA(q) process has nonzero weights for only the first q lags and 0 weights thereafter. Correlogram of an AR(1) process

TESTING FOR NONSTATIONARITY 7 In the case of nonstationary processes, the theoretical autocorrelation coefficients are not defined but one may be able to obtain an expression for E(r k ), the expected value of the sample autocorrelation coefficients. For long time series, these coefficients decline slowly. Correlogram of a random walk

TESTING FOR NONSTATIONARITY 8 The figure shows the correlogram for a random walk with 200 observations. Correlogram of a random walk

TESTING FOR NONSTATIONARITY 9 Hence time series analysts can make an initial judgment as to whether a time series is nonstationary or not by computing its sample correlogram and seeing how quickly the coefficients decline. Correlogram of a random walk

TESTING FOR NONSTATIONARITY 10 There are, however, two problems with using correlograms to identify nonstationarity. One is that a correlogram such as that shown above could result from a stationary AR(1) process with a high value of  2. Correlogram of a random walk

TESTING FOR NONSTATIONARITY 11 The other problem is that the coefficients of a nonstationary process may decline quite rapidly if the series is not long. This is illustrated in the figure above, which shows the expected values of r k for a random walk when the series has only 50 observations. Correlogram of a random walk

TESTING FOR NONSTATIONARITY 12 A more formal method of detecting nonstationarity is often described as testing for unit roots, for reasons that are too technical to be explained here.

TESTING FOR NONSTATIONARITY 13 This remainder of this sequence will explain the logic behind the Augmented Dickey–Fuller test for nonstationarity and will apply the test to some of the series in the Demand Functions data set.

TESTING FOR NONSTATIONARITY 14 We will start with the very simple process shown above. For most economic series you can rule out the possibility that  2 is greater than 1, for that would imply that the series is explosive. Likewise you can rule out the possibility that it is less than –1.

TESTING FOR NONSTATIONARITY 15 In practice, there will be just two possibilities:  2 = 1, and –1 <  2 < 1. If  2 = 1, the process is nonstationary because its variance increases with t. If  2 lies between 1 and –1, the variance is fixed and the series is stationary.

TESTING FOR NONSTATIONARITY 16 The test is intended to discriminate between the two possibilities. The null hypothesis is that the process is nonstationary. We need a specific value of  2 when we define the null hypothesis, so we make H 0 :  2 = 1. The alternative hypothesis is then H 1 :  2 < 1.

TESTING FOR NONSTATIONARITY 17 Before performing the test, it is convenient to rewrite the model subtracting X t–1 from both sides. To perform the test, we regress  X t on X t–1 and test whether the slope coefficient is significantly different from 0.

TESTING FOR NONSTATIONARITY 18 One can generalize the test to allow for more complex dynamics. Here, for example, we hypothesize that X t may depend on X t–2 as well as X t–1.

TESTING FOR NONSTATIONARITY 19 The condition for nonstationarity is now  2 +  3 = 1, and for stationarity  2 +  3 < 1. (The condition for stationarity is actually necessary but not sufficient. We will not be concerned with the other conditions.)

TESTING FOR NONSTATIONARITY 20 It will be convenient to rewrite the null and alternative hypotheses as shown.

TESTING FOR NONSTATIONARITY 21 We will now manipulate the model so that the null hypothesis can be tested with a t test. First, subtract X t–1 from both sides.

TESTING FOR NONSTATIONARITY 2 Then add  3 X t–1 to the right side and subtract it again.

TESTING FOR NONSTATIONARITY 23 Combine the second and third terms on the right side.

TESTING FOR NONSTATIONARITY 24 Combine the terms with common factor  3.

TESTING FOR NONSTATIONARITY 25 Regress  X t on X t–1 and  X t–1, and perform a t test on the coefficient of X t–1. Note that if the null hypothesis is true, and the process is nonstationary, the conventional critical values of t will be invalid. We will need to use different ones that are valid under the null hypothesis.

TESTING FOR NONSTATIONARITY 26 By adding a time trend, and performing a t test on its coefficient, the model can be extended to test for deterministic nonstationarity as well.

TESTING FOR NONSTATIONARITY 27 Here is the logarithmic series for expenditure on housing in the Demand Functions data set. It is clearly nonstationary, but nevertheless we will perform a formal test. LGHOUS

TESTING FOR NONSTATIONARITY 28 In EViews you can perform a test of nonstationarity by clicking on the name of the series to be tested, clicking on the View tab in the window that opens, and then clicking on Unit Root Test on the menu that appears. LGHOUS

Augmented Dickey-Fuller Unit Root Test on LGHOUS ============================================================ Augmented Dickey-Fuller test statistic Test critical values1% level % level % level ============================================================ Dependent Variable: D(LGHOUS) Method: Least Squares Sample(adjusted): ============================================================ Variable Coefficient Std. Error t-Statistic Prob. ============================================================ LGHOUS(-1) D(LGHOUS(-1)) C ============================================================ TESTING FOR NONSTATIONARITY 29 The slide shows the relevant part of the output for LGHOUS. You can see that  X t has been regressed on X t–1,  X t–1, and a trend.

TESTING FOR NONSTATIONARITY 30 The key items are the coefficient of X t–1, here LGHOUS(–1), and its t statistic. The coefficient is close to 0, as it would be under the null hypothesis of nonstationarity. Augmented Dickey-Fuller Unit Root Test on LGHOUS ============================================================ Augmented Dickey-Fuller test statistic Test critical values1% level % level % level ============================================================ Dependent Variable: D(LGHOUS) Method: Least Squares Sample(adjusted): ============================================================ Variable Coefficient Std. Error t-Statistic Prob. ============================================================ LGHOUS(-1) D(LGHOUS(-1)) C ============================================================

TESTING FOR NONSTATIONARITY 31 The t statistic is reproduced at the top of the output, where it is described as the Augmented Dickey–Fuller test statistic. Augmented Dickey-Fuller Unit Root Test on LGHOUS ============================================================ Augmented Dickey-Fuller test statistic Test critical values1% level % level % level ============================================================ Dependent Variable: D(LGHOUS) Method: Least Squares Sample(adjusted): ============================================================ Variable Coefficient Std. Error t-Statistic Prob. ============================================================ LGHOUS(-1) D(LGHOUS(-1)) C ============================================================

TESTING FOR NONSTATIONARITY 32 EViews calculates the critical values for you. In this case you would not reject the null hypothesis that LGHOUS is a nonstationary series. The test result thus corroborates the conclusion we drew looking at the graph. Augmented Dickey-Fuller Unit Root Test on LGHOUS ============================================================ Augmented Dickey-Fuller test statistic Test critical values1% level % level % level ============================================================ Dependent Variable: D(LGHOUS) Method: Least Squares Sample(adjusted): ============================================================ Variable Coefficient Std. Error t-Statistic Prob. ============================================================ LGHOUS(-1) D(LGHOUS(-1)) C ============================================================

D(LGHOUS) TESTING FOR NONSTATIONARITY 33 Here is the series for the first differences in the logarithm of expenditure on housing. Does it look stationary or nonstationary?

TESTING FOR NONSTATIONARITY 34 The differenced logarithms of a series give the proportional changes in each period. It looks as if the average growth rate has fallen from about 5 percent per year at te beginning of the series to about 2.5 percent at the end. D(LGHOUS)

Augmented Dickey-Fuller Unit Root Test on DLGHOUS ============================================================ Augmented Dickey-Fuller test statistic Test critical values1% level % level % level ============================================================ Dependent Variable: D(DLGHOUS) Method: Least Squares Sample(adjusted): ============================================================ Variable Coefficient Std. Error t-Statistic Prob. ============================================================ DLGHOUS(-1) D(DLGHOUS(-1)) C ============================================================ TESTING FOR NONSTATIONARITY 35 However, the coefficient is far from 0 and it has a high t statistic. We can reject the null hypothesis of nonstationarity at the 1 percent level.

TESTING FOR NONSTATIONARITY 36 Thus it would appear that LGHOUS can be rendered stationary by differencing once. It would therefore be described as I(1). (Short for integrated of order 1.) Augmented Dickey-Fuller Unit Root Test on DLGHOUS ============================================================ Augmented Dickey-Fuller test statistic Test critical values1% level % level % level ============================================================ Dependent Variable: D(DLGHOUS) Method: Least Squares Sample(adjusted): ============================================================ Variable Coefficient Std. Error t-Statistic Prob. ============================================================ DLGHOUS(-1) D(DLGHOUS(-1)) C ============================================================

LGDPI TESTING FOR NONSTATIONARITY 37 Here is the logarithmic series for income. It is also clearly nonstationary.

Augmented Dickey-Fuller Unit Root Test on LGDPI ============================================================ Augmented Dickey-Fuller test statistic Test critical values1% level % level % level ============================================================ Dependent Variable: D(LGDPI) Method: Least Squares ple(adjusted): ============================================================ Variable Coefficient Std. Error t-Statistic Prob. ============================================================ LGDPI(-1) D(LGDPI(-1)) C ============================================================ TESTING FOR NONSTATIONARITY 38 The coefficient is small with a low t statistic, giving support to the null hypothesis of nonstationarity.

D(LGDPI) TESTING FOR NONSTATIONARITY 39 Here is the series for the first differences in the logarithm of income. It looks stationary.

Augmented Dickey-Fuller Unit Root Test on DLGDPI ============================================================ Augmented Dickey-Fuller test statistic Test critical values1% level % level % level ============================================================ Dependent Variable: D(DLGDPI) Method: Least Squares Sample(adjusted): ============================================================ Variable Coefficient Std. Error t-Statistic Prob. ============================================================ DLGDPI(-1) D(DLGDPI(-1)) C ============================================================ TESTING FOR NONSTATIONARITY 40 The coefficient is now a long way from 0. The t statistic is significant at the 5 percent level but not quite at the 1 percent level.

Augmented Dickey-Fuller Unit Root Test on DLGDPI ============================================================ Augmented Dickey-Fuller test statistic Test critical values1% level % level % level ============================================================ Dependent Variable: D(DLGDPI) Method: Least Squares Sample(adjusted): ============================================================ Variable Coefficient Std. Error t-Statistic Prob. ============================================================ DLGDPI(-1) D(DLGDPI(-1)) C ============================================================ TESTING FOR NONSTATIONARITY 41 One of the problems with the ADF and similar tests is that they appear to be weak in terms of power. Often one is unable to reject the null hypothesis of nonstationarity, even when there is good reason to believe that it is incorrect.

Augmented Dickey-Fuller Unit Root Test on DLGDPI ============================================================ Augmented Dickey-Fuller test statistic Test critical values1% level % level % level ============================================================ Dependent Variable: D(DLGDPI) Method: Least Squares Sample(adjusted): ============================================================ Variable Coefficient Std. Error t-Statistic Prob. ============================================================ DLGDPI(-1) D(DLGDPI(-1)) C ============================================================ TESTING FOR NONSTATIONARITY 42 In this case, given the large size of the coefficient, –0.89, it would be reasonable to suppose that the series is stationary.

LGPRHOUS TESTING FOR NONSTATIONARITY 43 Finally we will look at the logarithmic series for the price index. It is so flat that we have to use a large scale to see anything at all. Stationary or nonstationary?

TESTING FOR NONSTATIONARITY 44 Hard to call. It could be a stationary process with a very high degree of autocorrelation, or it could be a random walk. LGPRHOUS

Augmented Dickey-Fuller Unit Root Test on LGPRHOUS ============================================================ Augmented Dickey-Fuller test statistic Test critical values1% level % level % level ============================================================ Dependent Variable: D(LGPRHOUS) Method: Least Squares Sample(adjusted): ============================================================ Variable Coefficient Std. Error t-Statistic Prob. ============================================================ LGPRHOUS(-1) D(LGPRHOUS(-1)) C ============================================================ TESTING FOR NONSTATIONARITY 45 The coefficient is close to 0 and the t statistic is small. We do not reject the null hypothesis of nonstationarity.

D(LGPRHOUS) TESTING FOR NONSTATIONARITY 46 Here are the first differences. This series looks stationary.

Augmented Dickey-Fuller Unit Root Test on DLPRHOUS ============================================================ Augmented Dickey-Fuller test statistic Test critical values1% level % level % level ============================================================ Dependent Variable: D(DLPRHOUS) Method: Least Squares Sample(adjusted): ============================================================ Variable Coefficient Std. Error t-Statistic Prob. ============================================================ DLPRHOUS(-1) D(DLPRHOUS(-1)) C ============================================================ TESTING FOR NONSTATIONARITY 47 In this case the t statistic allows us to reject the null hypothesis of nonstationarity at the 1 percent level.

Copyright Christopher Dougherty 2000–2006. This slideshow may be freely copied for personal use