Autocorrelation in Regression Analysis

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.
Regression Analysis.
Autocorrelation Lecture 20 Lecture 20.
Managerial Economics in a Global Economy
Welcome to Econ 420 Applied Regression Analysis Study Guide Week Fourteen.
Forecasting Using the Simple Linear Regression Model and Correlation
Part II – TIME SERIES ANALYSIS C5 ARIMA (Box-Jenkins) Models
Lecture #9 Autocorrelation Serial Correlation
Economics 20 - Prof. Anderson1 Time Series Data y t =  0 +  1 x t  k x tk + u t 2. Further Issues.
Chapter 11 Autocorrelation.
Regression Analysis Once a linear relationship is defined, the independent variable can be used to forecast the dependent variable. Y ^ = bo + bX bo is.
How should these data be modelled?. Identification step: Look at the SAC and SPAC Looks like an AR(1)- process. (Spikes are clearly decreasing in SAC.
1 Lecture 2: ANOVA, Prediction, Assumptions and Properties Graduate School Social Science Statistics II Gwilym Pryce
1 Lecture 2: ANOVA, Prediction, Assumptions and Properties Graduate School Social Science Statistics II Gwilym Pryce
Chapter 13 Additional Topics in Regression Analysis
Economics Prof. Buckles1 Time Series Data y t =  0 +  1 x t  k x tk + u t 1. Basic Analysis.
Economics 310 Lecture 15 Autocorrelation. Correlation between members of series of observations order in time or space. For our classic model, we have.
Economics 20 - Prof. Anderson1 Time Series Data y t =  0 +  1 x t  k x tk + u t 2. Further Issues.
Lecture 25 Multiple Regression Diagnostics (Sections )
Data Sources The most sophisticated forecasting model will fail if it is applied to unreliable data Data should be reliable and accurate Data should be.
Lecture 24 Multiple Regression (Sections )
Chapter Topics Types of Regression Models
ARIMA Forecasting Lecture 7 and 8 - March 14-16, 2011
Lecture 20 Simple linear regression (18.6, 18.9)
Econ 140 Lecture 191 Autocorrelation Lecture 19. Econ 140 Lecture 192 Today’s plan Durbin’s h-statistic Autoregressive Distributed Lag model & Finite.
Autocorrelation Lecture 18 Lecture 18.
Business Statistics - QBM117 Statistical inference for regression.
Introduction to Regression Analysis, Chapter 13,
12 Autocorrelation Serial Correlation exists when errors are correlated across periods -One source of serial correlation is misspecification of the model.
BOX JENKINS METHODOLOGY
Regression Method.
BSc (Hons) Finance II/ BSc (Hons) Finance with Law II
Lecture Slide #1 OLS Review Review of Multivariate OLS –Topics –Data Analysis –Questions Exam Particulars.
1 Least squares procedure Inference for least squares lines Simple Linear Regression.
Serial Correlation and the Housing price function Aka “Autocorrelation”
What does it mean? The variance of the error term is not constant
Pure Serial Correlation
The Examination of Residuals. Examination of Residuals The fitting of models to data is done using an iterative approach. The first step is to fit a simple.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Time Series Forecasting Chapter 16.
Chap 14-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 14 Additional Topics in Regression Analysis Statistics for Business.
Multiple Regression Petter Mostad Review: Simple linear regression We define a model where are independent (normally distributed) with equal.
Welcome to Econ 420 Applied Regression Analysis Study Guide Week Thirteen.
Cointegration in Single Equations: Lecture 6 Statistical Tests for Cointegration Thomas 15.2 Testing for cointegration between two variables Cointegration.
LECTURE 7 CONSTRUCTION OF ECONOMETRIC MODELS WITH AUTOCORRELATED RESIDUES.
Autocorrelation, Box Jenkins or ARIMA Forecasting.
Christopher Dougherty EC220 - Introduction to econometrics (revision lectures 2011) Slideshow: autocorrelation Original citation: Dougherty, C. (2011)
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Model Building and Model Diagnostics Chapter 15.
Applied Quantitative Analysis and Practices LECTURE#25 By Dr. Osman Sadiq Paracha.
Time Series Analysis Lecture 11
AUTOCORRELATION: WHAT HAPPENS IF THE ERROR TERMS ARE CORRELATED?
Residual Analysis Purposes –Examine Functional Form (Linear vs. Non- Linear Model) –Evaluate Violations of Assumptions Graphical Analysis of Residuals.
More on regression Petter Mostad More on indicator variables If an independent variable is an indicator variable, cases where it is 1 will.
2/25/ lecture 121 STATS 330: Lecture 12. 2/25/ lecture 122 Diagnostics 4 Aim of today’s lecture To discuss diagnostics for independence.
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.
Economics 173 Business Statistics Lecture 28 © Fall 2001, Professor J. Petry
Statistics for Business and Economics Module 2: Regression and time series analysis Spring 2010 Lecture 8: Time Series Analysis and Forecasting 2 Priyantha.
Forecasting. Model with indicator variables The choice of a forecasting technique depends on the components identified in the time series. The techniques.
Lecture 9 Forecasting. Introduction to Forecasting * * * * * * * * o o o o o o o o Model 1Model 2 Which model performs better? There are many forecasting.
REGRESSION DIAGNOSTIC III: AUTOCORRELATION
Chapter 6: Autoregressive Integrated Moving Average (ARIMA) Models
Econometric methods of analysis and forecasting of financial markets
Pure Serial Correlation
Chapter 12 – Autocorrelation
Autocorrelation.
Autocorrelation.
Lecturer Dr. Veronika Alhanaqtah
BOX JENKINS (ARIMA) METHODOLOGY
Presentation transcript:

Autocorrelation in Regression Analysis What is Autocorrelation? What causes Autocorrelation? Tests for Autocorrelation Examples Durbin-Watson Tests Modeling Autoregressive Relationships April 11, 2006 Bush 632 Lecture 12a

What is Autocorrelation? Correlation between values of the same variable across observations Violation of the assumption: where: In the presence of autocorrelation, the function of Y can be expressed as: the function: where defined as: April 11, 2006 Bush 632 Lecture 12a

What is Autocorrelation? April 11, 2006 Bush 632 Lecture 12a

Where do we find Autocorrelation? Autocorrelation is most often a problem in time series or geographic data It reflects changes in data that are a function of proximity in time or space Examples Energy market price shocks Transitions depend on prior states Economic consequences of LULUs Distance from hazard influences magnitude of price effect April 11, 2006 Bush 632 Lecture 12a

Federal Budget Example: Incrementalists argue that the federal budget shifts only incrementally from the prior year’s budget. Partial Effects Calculating partial effects; interpretation Variable selection and model building Risks in model building April 11, 2006 Bush 632 Lecture 12a

Two types of Autocorrelation Positive autocorrelation This is what we normally find. If the autocorrelation is positive, then we expect the sign of the residual at t to be the same as at t-1. April 11, 2006 Bush 632 Lecture 12a

Negative Autocorrelation We find that the sign of the residual at t is the opposite of that at t-1 Example: a drunken amble April 11, 2006 Bush 632 Lecture 12a

What causes autocorrelation? Misspecification Data Manipulation Before receipt After receipt Event Inertia Spatial ordering April 11, 2006 Bush 632 Lecture 12a

Checking for Autocorrelation Test: Durbin-Watson statistic: Positive Zone of No Autocorrelation Zone of Negative autocorrelation indecision indecision autocorrelation |_______________|__________________|_____________|_____________|__________________|___________________| 0 d-lower d-upper 2 4-d-upper 4-d-lower 4 Autocorrelation is clearly evident Ambiguous – cannot rule out autocorrelation Autocorrelation in not evident April 11, 2006 Bush 632 Lecture 12a

Consider the following regression: From Statistics option in SPSS April 11, 2006 Bush 632 Lecture 12a

Find the D-upper and D-lower Check a Durbin Watson table for the numbers for d-upper and d-lower. In Hamilton that’s on pp. 355-356 For n=20 and k=2, α = .05 the values are: Lower = 1.20 Upper = 1.41 Because our value falls between zero and d-lower we have positive autocorrelation April 11, 2006 Bush 632 Lecture 12a

The Runs Test An alternative to the D-W test is a formalized examination of the signs of the residuals. We would expect that the signs of the residuals will be random in the absence of autocorrelation. The first step is to estimate the model and predict the residuals. Next, order the signs of the residuals against time (or spatial ordering in the case of cross-sectional data) and see if there are excessive “runs” of positives or negatives. Alternatively, you can graph the residuals and look for the same trends. April 11, 2006 Bush 632 Lecture 12a

Runs test continued The final step is to use the expected mean and deviation in a standard t-test April 11, 2006 Bush 632 Lecture 12a

More on The D-W D-W is not appropriate for auto-regressive (AR) models, where: In this case, we use the Durbin alternative test For AR models, need to explicitly estimate the correlation between Yi and Yi-1 as a model parameter Techniques: AR1 models (closest to regression; 1st order only) ARIMA (any order) April 11, 2006 Bush 632 Lecture 12a

Dealing with Autocorrelation There are several approaches to resolving problems of autocorrelation. Lagged dependent variables Differencing the Dependent variable GLS ARIMA April 11, 2006 Bush 632 Lecture 12a

Lagged dependent variables The most common solution Simply create a new variable that equals Y at t-1, and use as a RHS variable This correction should be based on a theoretic belief for the specification Can, at times cause more problems than it solves Also costs a degree of freedom (lost observation) There are several advanced techniques for dealing with this as well April 11, 2006 Bush 632 Lecture 12a

Differencing Differencing is simply the act of subtracting the previous observation value from the current observation. This process is effective; however, it is an EXPENSIVE correction This technique “throws away” long-term trends Assumes the Rho = 1 exactly April 11, 2006 Bush 632 Lecture 12a

GLS and ARIMA GLS approaches use maximum likelihood to estimate Rho and correct the model These are good corrections, and can be replicated in OLS ARIMA is an acronym for Autoregressive Integrated Moving Average This process is a univariate “filter” used to cleanse variables of a variety of pathologies before analysis April 11, 2006 Bush 632 Lecture 12a

Corrections based on Rho There are several ways to estimate rho, the most simple being calculating it from the residuals We then estimate the regression by transforming the regressors so that: and This gives the regression: April 11, 2006 Bush 632 Lecture 12a

Estimating the relationship between X and Y First, we can estimate the lagged dependent variable model. April 11, 2006 Bush 632 Lecture 12a

Now the regression correcting for Rho We can estimate Rho by calculating it. ρ = .587 April 11, 2006 Bush 632 Lecture 12a

Final thoughts Each correction has a “best” application. If we wanted to evaluate a mean shift (dummy variable only model), calculating rho will not be a good choice. Then we would want to use the lagged dependent variable Also, where we want to test the effect of inertia, it is probably better to use the lag In Small N, calculating rho tends to be more accurate April 11, 2006 Bush 632 Lecture 12a

Homework Using the data that accompany this lecture, estimate the effect of X on Y. Run the regular regression, a lagged dependent variable model and calculate rho. Next, test the effect of dummy variable X2 on the series Y2. Run a regular regression, then run a regression with a lagged dependent variable. Write a brief description of what problems neglecting the effect of time in the second model might cause a decision-maker April 11, 2006 Bush 632 Lecture 12a

Break Coming up… Review for Exam Exam Posting Available on Wednesday Morning, 10am April 11, 2006 Bush 632 Lecture 12a