Economics 20 - Prof. Anderson1 Time Series Data y t =  0 +  1 x t1 +...+  k x tk + u t 2. Further Issues.

Slides:



Advertisements
Similar presentations
Cointegration and Error Correction Models
Advertisements

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.
Economics 20 - Prof. Anderson
The Simple Regression Model
Economics 20 - Prof. Anderson1 Multiple Regression Analysis y =  0 +  1 x 1 +  2 x  k x k + u 7. Specification and Data Problems.
Economics 20 - Prof. Anderson1 Stationary Stochastic Process A stochastic process is stationary if for every collection of time indices 1 ≤ t 1 < …< t.
Using SAS for Time Series Data
Nonstationary Time Series Data and Cointegration Prepared by Vera Tabakova, East Carolina University.
Lecture #9 Autocorrelation Serial Correlation
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.
Advanced Time Series PS 791C. Advanced Time Series Techniques A number of topics come under the general heading of “state-of-the-art” time series –Unit.
1 MF-852 Financial Econometrics Lecture 11 Distributed Lags and Unit Roots Roy J. Epstein Fall 2003.
Unit Roots & Forecasting
Chapter 11 Autocorrelation.
10 Further Time Series OLS Issues Chapter 10 covered OLS properties for finite (small) sample time series data -If our Chapter 10 assumptions fail, we.
8.4 Weighted Least Squares Estimation Before the existence of heteroskedasticity-robust statistics, one needed to know the form of heteroskedasticity -Het.
Economics Prof. Buckles1 Time Series Data y t =  0 +  1 x t  k x tk + u t 1. Basic Analysis.
Economics 20 - Prof. Anderson1 Multiple Regression Analysis y =  0 +  1 x 1 +  2 x  k x k + u 6. Heteroskedasticity.
Prof. Dr. Rainer Stachuletz
Economics 20 - Prof. Anderson1 Time Series Data y t =  0 +  1 x t  k x tk + u t 2. Further Issues.
Econ 140 Lecture 131 Multiple Regression Models Lecture 13.
1Prof. Dr. Rainer Stachuletz Multiple Regression Analysis y =  0 +  1 x 1 +  2 x  k x k + u 6. Heteroskedasticity.
Econ Prof. Buckles1 Multiple Regression Analysis y =  0 +  1 x 1 +  2 x  k x k + u 4. Further Issues.
12.3 Correcting for Serial Correlation w/ Strictly Exogenous Regressors The following autocorrelation correction requires all our regressors to be strictly.
1Prof. Dr. Rainer Stachuletz 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 
1Prof. Dr. Rainer Stachuletz Multiple Regression Analysis y =  0 +  1 x 1 +  2 x  k x k + u 4. Further Issues.
1Prof. Dr. Rainer Stachuletz Fixed Effects Estimation When there is an observed fixed effect, an alternative to first differences is fixed effects estimation.
Chapter 11 Multiple Regression.
Economics 20 - Prof. Anderson
Topic 3: Regression.
Economics 20 - Prof. Anderson1 Fixed Effects Estimation When there is an observed fixed effect, an alternative to first differences is fixed effects estimation.
Econ 140 Lecture 191 Autocorrelation Lecture 19. Econ 140 Lecture 192 Today’s plan Durbin’s h-statistic Autoregressive Distributed Lag model & Finite.
1Prof. Dr. Rainer Stachuletz Time Series Data y t =  0 +  1 x t  k x tk + u t 2. Further Issues.
1Prof. Dr. Rainer Stachuletz Time Series Data y t =  0 +  1 x t  k x tk + u t 1. Basic Analysis.
Economics Prof. Buckles
Autocorrelation Lecture 18 Lecture 18.
12 Autocorrelation Serial Correlation exists when errors are correlated across periods -One source of serial correlation is misspecification of the model.
Chapter 15 Forecasting Copyright © 2011 Pearson Addison-Wesley. All rights reserved. Slides by Niels-Hugo Blunch Washington and Lee University.
1 MADE WHAT IF SOME OLS ASSUMPTIONS ARE NOT FULFILED?
Regression Method.
Multiple Regression. In the previous section, we examined simple regression, which has just one independent variable on the right side of the equation.
Serial Correlation and the Housing price function Aka “Autocorrelation”
Pure Serial Correlation
Random Regressors and Moment Based Estimation Prepared by Vera Tabakova, East Carolina University.
Byron Gangnes Econ 427 lecture 3 slides. Byron Gangnes A scatterplot.
Cointegration in Single Equations: Lecture 6 Statistical Tests for Cointegration Thomas 15.2 Testing for cointegration between two variables Cointegration.
FAME Time Series Econometrics Daniel V. Gordon Department of Economics University of Calgary.
1 Javier Aparicio División de Estudios Políticos, CIDE Primavera Regresión.
1 Javier Aparicio División de Estudios Políticos, CIDE Primavera Regresión.
Problems with the Durbin-Watson test
How do we identify non-stationary processes? (A) Informal methods Thomas 14.1 Plot time series Correlogram (B) Formal Methods Statistical test for stationarity.
Dynamic Models, Autocorrelation and Forecasting ECON 6002 Econometrics Memorial University of Newfoundland Adapted from Vera Tabakova’s notes.
Autocorrelation II Lecture 21 Lecture 21.
Economics 20 - Prof. Anderson1 Time Series Data y t =  0 +  1 x t  k x tk + u t 1. Basic Analysis.
Univariate Time series - 2 Methods of Economic Investigation Lecture 19.
Stationarity and Unit Root Testing Dr. Thomas Kigabo RUSUHUZWA.
Ch5 Relaxing the Assumptions of the Classical Model
Kakhramon Yusupov June 15th, :30pm – 3:00pm Session 3
Pure Serial Correlation
Chapter 12 – Autocorrelation
Autocorrelation.
Serial Correlation and Heteroskedasticity in Time Series Regressions
Unit Roots 31/12/2018.
Serial Correlation and Heteroscedasticity in
Chapter 7: The Normality Assumption and Inference with OLS
Autocorrelation.
Autocorrelation MS management.
Serial Correlation and Heteroscedasticity in
Presentation transcript:

Economics 20 - Prof. Anderson1 Time Series Data y t =  0 +  1 x t  k x tk + u t 2. Further Issues

Economics 20 - Prof. Anderson2 Testing for AR(1) Serial Correlation Want to be able to test for whether the errors are serially correlated or not Want to test the null that  = 0 in u t =  u t-1 + e t, t =2,…, n, where u t is the model error term and e t is iid With strictly exogenous regressors, the test is very straightforward – simply regress the residuals on lagged residuals and use a t-test

Economics 20 - Prof. Anderson3 Testing for AR(1) Serial Correlation (continued) An alternative is the Durbin-Watson (DW) statistic, which is calculated by many packages If the DW statistic is around 2, then we can reject serial correlation, while if it is significantly < 2 we cannot reject Critical values are difficult to calculate, making the t test easier to work with

Economics 20 - Prof. Anderson4 Testing for AR(1) Serial Correlation (continued) If the regressors are not strictly exogenous, then neither the t or DW test will work Regress the residual (or y) on the lagged residual and all of the x’s The inclusion of the x’s allows each x tj to be correlated with u t-1, so don’t need assumption of strict exogeneity

Economics 20 - Prof. Anderson5 Testing for Higher Order S.C. Can test for AR(q) serial correlation in the same basic manner as AR(1) Just include q lags of the residuals in the regression and test for joint significance Can use F test or LM test, where the LM version is called a Breusch-Godfrey test and is (n-q)R 2 using R 2 from residual regression Can also test for seasonal forms

Economics 20 - Prof. Anderson6 Correcting for Serial Correlation Start with case of strictly exogenous regressors, and maintain all G-M assumptions except no serial correlation Assume errors follow AR(1) so u t =  u t-1 + e t, t =2,…, n Var(u t ) =  2 e /(1-  2 ) We need to try and transform the equation so we have no serial correlation in the errors

Economics 20 - Prof. Anderson7 Correcting for S.C. (continued) Consider that since y t =  0 +  1 x t + u t, then y t-1 =  0 +  1 x t-1 + u t-1 If you multiply the second equation by , and subtract if from the first you get y t –  y t-1 = (1 –  )  0 +  1 (x t –  x t-1 ) + e t, since e t = u t –  u t-1 This quasi-differencing results in a model without serial correlation

Economics 20 - Prof. Anderson8 Feasible GLS Estimation Problem with this method is that we don’t know , so we need to get an estimate first Can just use the estimate obtained from regressing residuals on lagged residuals Depending on how we deal with the first observation, this is either called Cochrane- Orcutt or Prais-Winsten estimation

Economics 20 - Prof. Anderson9 Feasible GLS (continued) Often both Cochrane-Orcutt and Prais- Winsten are implemented iteratively This basic method can be extended to allow for higher order serial correlation, AR(q) Most statistical packages will automatically allow for estimation of AR models without having to do the quasi-differencing by hand

Economics 20 - Prof. Anderson10 Serial Correlation-Robust Standard Errors What happens if we don’t think the regressors are all strictly exogenous? It’s possible to calculate serial correlation- robust standard errors, along the same lines as heteroskedasticity robust standard errors Idea is that want to scale the OLS standard errors to take into account serial correlation

Economics 20 - Prof. Anderson11 Serial Correlation-Robust Standard Errors (continued) Estimate normal OLS to get residuals, root MSE Run the auxiliary regression of x t1 on x t2, …, x tk Form â t by multiplying these residuals with û t Choose g – say 1 to 3 for annual data, then

Economics 20 - Prof. Anderson12 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 and subtract y t-1 from both sides to obtain  y t =  +  y t-1 + e t Unfortunately, a simple t-test is inappropriate, since this is an I(1) process A Dickey-Fuller Test uses the t-statistic, but different critical values

Economics 20 - Prof. Anderson13 Testing for Unit Roots (cont) We can add p lags of  y t to allow for more dynamics in the process Still want to calculate the t-statistic for  Now it’s called an augmented Dickey- Fuller test, but still the same critical values The lags are intended to clear up any serial correlation, if too few, test won’t be right

Economics 20 - Prof. Anderson14 Testing for Unit Roots w/ Trends If a series is clearly trending, then we need to adjust for that or might mistake a trend stationary series for one with a unit root Can just add a trend to the model Still looking at the t-statistic for , but the critical values for the Dickey-Fuller test change

Economics 20 - Prof. Anderson15 Spurious Regression Consider running a simple regression of y t on x t where y t and x t are independent I(1) series The usual OLS t-statistic will often be statistically significant, indicating a relationship where there is none Called the spurious regression problem

Economics 20 - Prof. Anderson16 Cointegration Say for two I(1) processes, y t and x t, there is a  such that y t –  x t is an I(0) process If so, we say that y and x are cointegrated, and call  the cointegration parameter If we know , testing for cointegration is straightforward if we define s t = y t –  x t Do Dickey-Fuller test and if we reject a unit root, then they are cointegrated

Economics 20 - Prof. Anderson17 Cointegration (continued) If  is unknown, then we first have to estimate , which adds a complication After estimating  we run a regression of  û t on û t-1 and compare t-statistic on û t-1 with the special critical values If there are trends, need to add it to the initial regression that estimates  and use different critical values for t-statistic on û t-1

Economics 20 - Prof. Anderson18 Forecasting Once we’ve run a time-series regression we can use it for forecasting into the future Can calculate a point forecast and forecast interval in the same way we got a prediction and prediction interval with a cross-section Rather than use in-sample criteria like adjusted R 2, often want to use out-of-sample criteria to judge how good the forecast is

Economics 20 - Prof. Anderson19 Out-of-Sample Criteria Idea is to note use all of the data in estimating the equation, but to save some for evaluating how well the model forecasts Let total number of observations be n + m and use n of them for estimating the model Use the model to predict the next m observations, and calculate the difference between your prediction and the truth

Economics 20 - Prof. Anderson20 Out-of-Sample Criteria (cont) Call this difference the forecast error, which is ê n+h+1 for h = 0, 1, …, m Calculate the root mean square error and see which model has the smallest, where