F9 F10: Autocorrelation

Similar documents
Econometrics. Week 4. Fall Institute of Economic Studies Faculty of Social Sciences Charles University in Prague

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

LECTURE 11. Introduction to Econometrics. Autocorrelation

Reading Assignment. Serial Correlation and Heteroskedasticity. Chapters 12 and 11. Kennedy: Chapter 8. AREC-ECON 535 Lec F1 1

AUTOCORRELATION. Phung Thanh Binh

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

Heteroskedasticity and Autocorrelation

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

11.1 Gujarati(2003): Chapter 12

F3: Classical normal linear rgression model distribution, interval estimation and hypothesis testing

Iris Wang.

Empirical Economic Research, Part II

Linear Regression with Time Series Data

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

Section 2 NABE ASTEF 65

L2: Two-variable regression model

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

Unit Root and Cointegration

Statistics 910, #5 1. Regression Methods

1. You have data on years of work experience, EXPER, its square, EXPER2, years of education, EDUC, and the log of hourly wages, LWAGE

Autocorrelation. Jamie Monogan. Intermediate Political Methodology. University of Georgia. Jamie Monogan (UGA) Autocorrelation POLS / 20

Econometrics Summary Algebraic and Statistical Preliminaries

Formulary Applied Econometrics

Freeing up the Classical Assumptions. () Introductory Econometrics: Topic 5 1 / 94

Reliability of inference (1 of 2 lectures)

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

L7: Multicollinearity

STAT Regression Methods

Econometrics of Panel Data

Linear Regression with Time Series Data

MA Advanced Econometrics: Applying Least Squares to Time Series

LECTURE 13: TIME SERIES I

Lesson 17: Vector AutoRegressive Models

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

Simple Linear Regression: The Model

Model Mis-specification

Linear Regression with Time Series Data

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

Lecture 6: Dynamic Models

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

13.2 Example: W, LM and LR Tests

Diagnostics of Linear Regression

Econometrics. 9) Heteroscedasticity and autocorrelation

1 Graphical method of detecting autocorrelation. 2 Run test to detect autocorrelation

Economics 620, Lecture 13: Time Series I

Likely causes: The Problem. E u t 0. E u s u p 0

Økonomisk Kandidateksamen 2004 (I) Econometrics 2. Rettevejledning

Christopher Dougherty London School of Economics and Political Science

Econ 300/QAC 201: Quantitative Methods in Economics/Applied Data Analysis. 17th Class 7/1/10

10. Time series regression and forecasting

Environmental Econometrics

Lecture 4: Heteroskedasticity

22s:152 Applied Linear Regression. Returning to a continuous response variable Y...

22s:152 Applied Linear Regression. In matrix notation, we can write this model: Generalized Least Squares. Y = Xβ + ɛ with ɛ N n (0, Σ)

Section 6: Heteroskedasticity and Serial Correlation

Multiple Regression Analysis: Heteroskedasticity

Econometrics Part Three

Panel Data Models. Chapter 5. Financial Econometrics. Michael Hauser WS17/18 1 / 63

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

Dynamic Regression Models (Lect 15)

Economics 308: Econometrics Professor Moody

Problem Set #6: OLS. Economics 835: Econometrics. Fall 2012

Exercise E7. Heteroskedasticity and Autocorrelation. Pilar González and Susan Orbe. Dpt. Applied Economics III (Econometrics and Statistics)

Chapter 5. Classical linear regression model assumptions and diagnostics. Introductory Econometrics for Finance c Chris Brooks

Spatial inference. Spatial inference. Accounting for spatial correlation. Multivariate normal distributions

Non-Stationary Time Series and Unit Root Testing

Stationary and nonstationary variables

2. Linear regression with multiple regressors

Econ 510 B. Brown Spring 2014 Final Exam Answers

Autocorrelation or Serial Correlation

LECTURE 10: MORE ON RANDOM PROCESSES

Econometrics - 30C00200

An Improved Specification Test for AR(1) versus MA(1) Disturbances in Linear Regression Models

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

Heteroskedasticity. Part VII. Heteroskedasticity

The Linear Regression Model with Autocorrelated Errors: Just Say No to Error Autocorrelation

Volume 31, Issue 1. The "spurious regression problem" in the classical regression model framework

Empirical Market Microstructure Analysis (EMMA)

MS&E 226: Small Data

Week 11 Heteroskedasticity and Autocorrelation

FinQuiz Notes

Regression with time series

1 The Multiple Regression Model: Freeing Up the Classical Assumptions

Advanced Econometrics

Econometrics Multiple Regression Analysis: Heteroskedasticity

Econometrics of Panel Data

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

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

Answers: Problem Set 9. Dynamic Models

Practical Econometrics. for. Finance and Economics. (Econometrics 2)

Ch.10 Autocorrelated Disturbances (June 15, 2016)

Heteroscedasticity and Autocorrelation

Math 3330: Solution to midterm Exam

Chapter 12 - Lecture 2 Inferences about regression coefficient

Non-independence due to Time Correlation (Chapter 14)

Econometrics of Panel Data

Multiple Regression Analysis

Macroeconometrics. Christophe BOUCHER. Session 4 Classical linear regression model assumptions and diagnostics

Regression of Time Series

Transcription:

F9 F10: Autocorrelation Feng Li Department of Statistics, Stockholm University

Introduction In the classic regression model we assume cov(u i, u j x i, x k ) = E(u i, u j ) = 0 What if we break the assumption? Look at these patterns Feng Li (Stockholm University) Econometrics 2 / 15

Positive and negative autocorrelation Feng Li (Stockholm University) Econometrics 3 / 15

What happens to OLS/GLS when autocorrelation? Consider a simple model Y t = β 1 + β 2 X t + u t where the error terms is autocorrelated as u t = ρu t 1 + ɛ t The OLS estimator will not change (still linear unbiased) But is not efficient since ) ř ř ) Var (ˆβ 2 = ř σ2 xt x t 1 x 2 (1 + 2ρ ř t x 2 + 2ρ 2 xt x ř t 2 t x 2 +... ą ř σ2 t x 2 t where σ 2 / ř x 2 t is the variance of ˆβ 2 when no autocorrelation presents. The GLS estimators under autocorrelation is BLUE. Feng Li (Stockholm University) Econometrics 4 / 15

Consequences of using OLS when autocorrelation The confidence intervals are likely wider than those from GLS. The usual t and F tests are not valid. The residual variance ˆσ 2 likely to underestimate the true σ 2 Likely to overestimate R 2 Feng Li (Stockholm University) Econometrics 5 / 15

Detection of autocorrelation ï The runs test (nonparametric test) step 1: Plot the residuals as follows Residuals 0.4 0.2 0.0 0.2 0.4 0 2 4 6 8 10 12 Time step 2: Count the runs as: (- -)(+ + +)(-)(+)(- - -) step 3: N 1 = number of + residuals = 4, N 2 = number of - residuals = 6, N = N 1 + N 2 = 10, R = number of runs = 5 step 3: The number of runs is normally distributed ( ) 2N1 N 2 R N N + 1, 2N 1 N 2 (2N 1 N 2 N) N 2 (N + 1) Feng Li (Stockholm University) Econometrics 6 / 15

Detection of autocorrelation ï The runs test example Carry out the runs test with the residuals give in the previous slides. What critical value are you look for? Why this test is called nonparametric test? Feng Li (Stockholm University) Econometrics 7 / 15

Detection of autocorrelation ï Durbin Watson d test (1) The Durbin Watson d statistic d = ř n t=2 (û t û t 1 ) 2 ř n t=1 û2 t Assumptions underlying the d statistic The regression model includes the intercept. If you model does not have intercept, rerun the model include intercept to obtain û i. It can only determine first-order autoregressive scheme. The error term are assumed normally distributed. The explanatory variables do not contains lagged values (talk more on second part of the course). Feng Li (Stockholm University) Econometrics 8 / 15

Detection of autocorrelation ï Durbin Watson d test (2) Feng Li (Stockholm University) Econometrics 9 / 15

Detection of autocorrelation ï Durbin Watson d test (3) Approximation of d statistic where ˆρ = û t, i.e., ř ût û t 1 ř û2 t When ρ Ñ 1, positive autocorrelation; d «2(1 ˆρ) is the sample first-order coefficient of autocorrelation of û t = ˆρu t 1. When ρ Ñ 1, negative autocorrelation; When ρ Ñ 0, no autocorrelation. Feng Li (Stockholm University) Econometrics 10 / 15

Detection of autocorrelation ï Durbin Watson d test example Given a sample of 100 observations and 5 explanatory variables, what can you say about autocorrelation if d = 1.2? Can handle without looking at the table? Feng Li (Stockholm University) Econometrics 11 / 15

The comparison between Durbin Watson test and runs test Runs test does not require and probability distribution of the error term. Warning: The d test is not valid if u i is not iid. When n is large,? n(1 d/2) N(0, 1) We can use the normality approximation when n is large regardless of iid. Durbin Watson statistic requires the covariates be non stochastic which is difficult to meet in econometrics. In this case, try the test on next slides. Feng Li (Stockholm University) Econometrics 12 / 15

Detection of autocorrelation ï The Breusch Godfrey test (Lagrange Multiplier test) Consider the model Y t = β 1 + β 2 X t + u t, Assume u t = ρ 1 u t 1 + ρ 2 u t 2 +... + ρ p u t p + ɛ t H 0 : ρ 1 = ρ 2 =... = ρ p = 0, i.e. no autocorrelation. Run the auxiliary model and obtain R 2. When n large, u t = α 1 + α 2 X t + ρ 1 û t 1 + ρ 2 û t 2 + ρ p û t p + ɛ t Reject H 0 if χ 2 obs (p) ą χ2 crit (p). (n p)r 2 χ 2 (p). Question: Have you seen similar another test that has the similar way of constructions as this one? Feng Li (Stockholm University) Econometrics 13 / 15

Model misspecification and pure autocorrelation Some variables that were supposed to be in the model but not. This is the case of excluding variable, which is a type of model specification bias (will talk more in next chapter). This may also show patterns in the residuals plot. Try to find out if it is pure autocorrelation or misspecification. See example on p. 441. Feng Li (Stockholm University) Econometrics 14 / 15

Use GLS to correct pure autocorrelation Assume you have model Y t = β 1 + β 2 X t + u t and there is pure autocorrelation u t = ρu t 1 + ɛ t. When ρ known From the model we also have Yt 1 = β 1 + β 2 X t 1 + u t 1 Then Yt ρy t 1 = β 1 (1 ρ) + β 2 (X t ρx t 1 ) + (u t ρu t 1 ). Why? The above model can be written as Y t = β 1 + β 2 X t + ɛ t which removes autocorrelation. Why? When ρ not known One may run the model Yt Y t 1 = β 2 (X t X t 1 ) + (u t u t 1 ) We will talk more at second part of this course. Feng Li (Stockholm University) Econometrics 15 / 15