Example 7.2. Autocorrelation. Pilar González and Susan Orbe. Dpt. Applied Economics III (Econometrics and Statistics)

Similar documents
F1: Introduction to Econometrics

Getting started with Eviews 9 (Volume IV)

Inference with Difference-in-Differences Revisited

MEA DISCUSSION PAPERS

EC352 Econometric Methods: Week 07

NPTEL Project. Econometric Modelling. Module 14: Heteroscedasticity Problem. Module 16: Heteroscedasticity Problem. Vinod Gupta School of Management

Online Appendix. According to a recent survey, most economists expect the economic downturn in the United

INTRODUCTION TO ECONOMETRICS (EC212)

1.4 - Linear Regression and MS Excel

Problem set 2: understanding ordinary least squares regressions

Write your identification number on each paper and cover sheet (the number stated in the upper right hand corner on your exam cover).

IS BEER CONSUMPTION IN IRELAND ACYCLICAL?

Dr. Kelly Bradley Final Exam Summer {2 points} Name

1 Simple and Multiple Linear Regression Assumptions

Exam 2 Solutions: Monday, April 2 8:30-9:50 AM

Using SPSS for Correlation

Multiple Regression Analysis

An Introduction to Modern Econometrics Using Stata

One-Way Independent ANOVA

Technical appendix Strengthening accountability through media in Bangladesh: final evaluation

Testing the Predictability of Consumption Growth: Evidence from China

Session 1: Dealing with Endogeneity

STP 231 Example FINAL

Validity, Reliability and Classical Assumptions

Intro to SPSS. Using SPSS through WebFAS

BIOL 458 BIOMETRY Lab 7 Multi-Factor ANOVA

Heteroskedasticity in Multiple Regression Analysis: What it is, How to Detect it and How to Solve it with Applications in R and SPSS

Final Exam - section 2. Thursday, December hours, 30 minutes

LAB ASSIGNMENT 4 INFERENCES FOR NUMERICAL DATA. Comparison of Cancer Survival*

Two-Way Independent ANOVA

CHAPTER 2: TWO-VARIABLE REGRESSION ANALYSIS: SOME BASIC IDEAS

Impact of Major Farm Inputs on Tobacco Productivity in Pakistan: An Econometric Analysis ( )

EXERCISE: HOW TO DO POWER CALCULATIONS IN OPTIMAL DESIGN SOFTWARE

Where does "analysis" enter the experimental process?

GROSS FIXED CAPITAL FORMATION SUFFICES AS A DETERMINANT FOR GROSS DOMESTIC PRODUCT IN INDIA

Doing Quantitative Research 26E02900, 6 ECTS Lecture 6: Structural Equations Modeling. Olli-Pekka Kauppila Daria Kautto

6. Unusual and Influential Data

Lecture 14: Adjusting for between- and within-cluster covariates in the analysis of clustered data May 14, 2009

(b) empirical power. IV: blinded IV: unblinded Regr: blinded Regr: unblinded α. empirical power

CLASSICAL AND. MODERN REGRESSION WITH APPLICATIONS

Two Factor Analysis of Variance

Sample size and power calculations in Mendelian randomization with a single instrumental variable and a binary outcome

Multiple Regression Using SPSS/PASW

Instrumental Variables Estimation: An Introduction

The Impacts of Food Safety Information on Meat Demand: A Cross-Commodity Approach Using U.S. Household Data

Influence of overweight and obesity on the diabetes in the world on adult people using spatial regression

Problem Set 3 ECN Econometrics Professor Oscar Jorda. Name. ESSAY. Write your answer in the space provided.

On Regression Analysis Using Bivariate Extreme Ranked Set Sampling

Effects of propensity score overlap on the estimates of treatment effects. Yating Zheng & Laura Stapleton

Problem #1 Neurological signs and symptoms of ciguatera poisoning as the start of treatment and 2.5 hours after treatment with mannitol.

CHAPTER - 6 STATISTICAL ANALYSIS. This chapter discusses inferential statistics, which use sample data to

Marno Verbeek Erasmus University, the Netherlands. Cons. Pros

Various Approaches to Szroeter s Test for Regression Quantiles

Citation for published version (APA): Ebbes, P. (2004). Latent instrumental variables: a new approach to solve for endogeneity s.n.

Demand for Healthy Food in the United States

Abstract. Alcohol and Food Consumption, 110 Countries in 2005

Survey research (Lecture 1) Summary & Conclusion. Lecture 10 Survey Research & Design in Psychology James Neill, 2015 Creative Commons Attribution 4.

Survey research (Lecture 1)

In this module I provide a few illustrations of options within lavaan for handling various situations.

12.1 Inference for Linear Regression. Introduction

Day 11: Measures of Association and ANOVA

Seid M. Zekavat, Loyola Marymount University

Carrying out an Empirical Project

Regional variations in health care supply and their potential impact on health care use

Problem Set 5 ECN 140 Econometrics Professor Oscar Jorda. DUE: June 6, Name

What is Multilevel Modelling Vs Fixed Effects. Will Cook Social Statistics

Examining Relationships Least-squares regression. Sections 2.3

Simple Linear Regression the model, estimation and testing

ANOVA in SPSS (Practical)

Doctors Fees in Ireland Following the Change in Reimbursement: Did They Jump?

The Effects of Autocorrelated Noise and Biased HRF in fmri Analysis Error Rates

A COMPARISON OF IMPUTATION METHODS FOR MISSING DATA IN A MULTI-CENTER RANDOMIZED CLINICAL TRIAL: THE IMPACT STUDY

SUMMER 2011 RE-EXAM PSYF11STAT - STATISTIK

MMI 409 Spring 2009 Final Examination Gordon Bleil. 1. Is there a difference in depression as a function of group and drug?

Meta-Analysis. Zifei Liu. Biological and Agricultural Engineering

How to analyze correlated and longitudinal data?

The Effects of Maternal Alcohol Use and Smoking on Children s Mental Health: Evidence from the National Longitudinal Survey of Children and Youth

Online Appendix. Supply-Side Drug Policy in the Presence of Substitutes: Evidence from the Introduction of Abuse-Deterrent Opioids

Catherine A. Welch 1*, Séverine Sabia 1,2, Eric Brunner 1, Mika Kivimäki 1 and Martin J. Shipley 1

Session 3: Dealing with Reverse Causality

Preliminary Report on Simple Statistical Tests (t-tests and bivariate correlations)

Bayesian Methods p.3/29. data and output management- by David Spiegalhalter. WinBUGS - result from MRC funded project with David

Planning Sample Size for Randomized Evaluations.

2 Assumptions of simple linear regression

Assessing Studies Based on Multiple Regression. Chapter 7. Michael Ash CPPA

Multiple Linear Regression Analysis

Introduction to Econometrics

LOGLINK Example #1. SUDAAN Statements and Results Illustrated. Input Data Set(s): EPIL.SAS7bdat ( Thall and Vail (1990)) Example.

Overview of Lecture. Survey Methods & Design in Psychology. Correlational statistics vs tests of differences between groups

arxiv: v2 [stat.ap] 7 Dec 2016

Ordinary Least Squares Regression

Cheap Donuts and Expensive Broccoli: The Effect of Relative Prices on Obesity

WRITTEN PRELIMINARY Ph.D. EXAMINATION. Department of Applied Economics. January 17, Consumer Behavior and Household Economics.

Evaluating Social Programs Course: Evaluation Glossary (Sources: 3ie and The World Bank)

bivariate analysis: The statistical analysis of the relationship between two variables.

The Pretest! Pretest! Pretest! Assignment (Example 2)

Chapter 10: Moderation, mediation and more regression

2.75: 84% 2.5: 80% 2.25: 78% 2: 74% 1.75: 70% 1.5: 66% 1.25: 64% 1.0: 60% 0.5: 50% 0.25: 25% 0: 0%

CHILD HEALTH AND DEVELOPMENT STUDY

Using SAS to Calculate Tests of Cliff s Delta. Kristine Y. Hogarty and Jeffrey D. Kromrey

Transcription:

Example 7.2 Autocorrelation Pilar González and Susan Orbe Dpt. Applied Economics III (Econometrics and Statistics) Pilar González and Susan Orbe OCW 2014 Example 7.2. Autocorrelation 1 / 17

Questions. Load the file chicken.gdt. a. Estimate a regression model of consumption of chicken on disposable income, the prices of chicken, pork and beef and the avian flu epidemic. Write down the Sample Regression Function. b. Is the effect of the avian flu epidemic statistically significant? c. Under the assumption that the error term is autocorrelated, use a statistic robust to autocorrelation to test whether the effect of the avian flu epidemic is statistically significant. d. Comment the time series plot of the OLS residuals. Pilar González and Susan Orbe OCW 2014 Example 7.2. Autocorrelation 2 / 17

Questions. e. Perform the Durbin-Watson test to analyse whether the error term follows a first order autoregressive process. f. Perform the Breusch-Godfrey test to analyse whether the error term follows a first order autoregressive process. g. Given the results obtained in these two autocorrelation tests, how would you test the individual significance of the variable avian flu epidemic? Justify your answer in terms of the properties of the estimators. h. Interpret the results. Pilar González and Susan Orbe OCW 2014 Example 7.2. Autocorrelation 3 / 17

The results of estimating the model proposed in item a. by OLS are shown below. It is possible to test the individual significance of the avian flu epidemic effect using these results, if all the assumptions of the Multiple Regression Model are satisfied. Pilar González and Susan Orbe OCW 2014 Example 7.2. Autocorrelation 4 / 17

To estimate the covariance matrix of the OLS estimators robust to autocorrelation, select the option Robust standard errors in the specify model dialog box. Pilar González and Susan Orbe OCW 2014 Example 7.2. Autocorrelation 5 / 17

Mark Select from regular HCCME options in the dialog box. And select HAC to use the Newey-West estimator for the covariance matrix of the OLS estimators. Pilar González and Susan Orbe OCW 2014 Example 7.2. Autocorrelation 6 / 17

Notice that the only difference in the OLS estimation results comes from the new standard errors robust to autocorrelation. As a consequence the t-ratios and the p-values are different as well. Pilar González and Susan Orbe OCW 2014 Example 7.2. Autocorrelation 7 / 17

Plot of the OLS residuals against time. 3 Regression residuals (= observed - fitted Y) 2 1 residual 0-1 -2-3 -4 1990 1995 2000 2005 2010 Pilar González and Susan Orbe OCW 2014 Example 7.2. Autocorrelation 8 / 17

The Durbin-Watson statistic is always displayed in the last row of the estimation output window when dealing with time series data. Pilar González and Susan Orbe OCW 2014 Example 7.2. Autocorrelation 9 / 17

To perform the Durbin-Watson test we need its p-value. Select Tests > Durbin-Watson p-value The null hypothesis of no autocorrelation is rejected if the p-value is smaller than the level of significance chosen. Pilar González and Susan Orbe OCW 2014 Example 7.2. Autocorrelation 10 / 17

To perform the Breusch-Godfrey autocorrelation test, use the Tests pulldown menu. Tests > Autocorrelation Write down the lag order for the test, in this case 1. Pilar González and Susan Orbe OCW 2014 Example 7.2. Autocorrelation 11 / 17

The results of estimating the Breusch-Godfrey auxiliary regression are shown below. Pilar González and Susan Orbe OCW 2014 Example 7.2. Autocorrelation 12 / 17

Results (I). Sample regression function: Ŷ t = 32.9461 + 0.006345340 X2 t 10.6778 X3 t + 3.91841 X4 t + + 1.16019 X5 t + 2.74647 AV IAN t t = 1990,..., 2012 Individual significance test for the avian flu epidemic explanatory variable. H 0 : β 6 = 0 H 0 : β 6 0 t = ˆβ 6 0 ˆσ ˆβ6 H 0 t(n k) where ˆσ ˆβ6 is computed using the estimate of the covariance matrix of the OLS estimators give by ˆV ( ˆβ) = ˆσ(X X) 1. t = 2.962 > 2.10982 = t 0.05/2 (40 7) Therefore, the null hypothesis is rejected at a 5 % significance level and it may be concluded that the avian flu epidemic is a statistically significant variable. Pilar González and Susan Orbe OCW 2014 Example 7.2. Autocorrelation 13 / 17

Results (II). Individual significance test for avian flu epidemic using Newey-West robust to autocorrelation estimate of the covariance matrix. H 0 : β 6 = 0 H 0 : β 6 0 t = ˆβ 6 0 ˆσ Rˆβ6 H 0,a N(0, 1) where ˆσ Rˆβ6 is computed using the estimator of the covariance matrix of the OLS estimators robust to autocorrelation proposed by Newey-West. Since t = 5.325 > 1.96 = N 0.05/2 (0, 1), the null hypothesis is rejected at a 5 % significance level and it may be concluded that the avian flu epidemic is a statistically significant variable. The residuals time series plot shows a group of negative residuals at the beginning of the sample followed by a group of positive residuals and so on. These clusters of residuals, positive and negative, may suggest the presence of a first order autoregressive process in the error term. Therefore, the assumption of no autocorrelation in the error term may not hold. The presence of autocorrelation should be checked using some autocorrelation tests. Pilar González and Susan Orbe OCW 2014 Example 7.2. Autocorrelation 14 / 17

Results (III). Durbin-Watson test. { H0 : ρ = 0 (No autocorrelation) H a : u t = ρ u t 1 + v t ρ > 0 (Positive autocorrelation) Test statistic: DW = T (û t û t 1) 2 t=2 T t=1 Decision rule: DW = 1.169501 (d L = 0.8949, d U = 1.9196) û 2 t Therefore, at the 5 % significance level, it is not possible to reach any conclusion using the critical values of the Durbin-Watson tables. Since the Durbin-Watson p-value is 0.0008, it may concluded that the null hypothesis of no autocorrelation is rejected at the 5 % significance level, that is, the error term follows a first order autoregressive process. Pilar González and Susan Orbe OCW 2014 Example 7.2. Autocorrelation 15 / 17

Results (IV). Breusch-Godfrey test. H 0 : No autocorrelation of order 1 H a : First order autocorrelation (p = 1) Auxiliary regression: û t = α 1 + +α 2 X2 t + α 3 X3 t + α 4 X4 t + α 5 X5 t + α 6 AV IAN t + α 7û t 1 + w t Test statistic: BG = T R 2 H0,a χ 2 (p = 1) Decision rule: BG = 3.997453 > 3.84 = χ 2 0.05(1) Therefore, the null hypothesis of no autocorrelation is rejected at the 5 % significance level, that is, the error term follows a first order autoregressive process. Pilar González and Susan Orbe OCW 2014 Example 7.2. Autocorrelation 16 / 17

Results (V). Conclusions. The autocorrelation tests conclude that the error term is autocorrelated so the assumption of no autocorrelation is not satisfied. As a consequence, the OLS estimator of the vector of coefficients is, conditional on X, linear and unbiased but it has not the smallest variance in the class of linear and unbiased estimators. The estimator of the variance of the error term, ˆσ 2 = SSR/(N k) and the standard estimator of the covariance matrix of the OLS estimator are biased. Therefore the inference based on the t-statistic constructed using these estimators is not valid. It is possible to perform significance tests valid for large samples using an estimator of the covariance matrix of the OLS estimators robust to autocorrelation, for instance the Newey-West estimator. Therefore, the second test performed to check the significance of the avian flu epidemic is the appropriate one. Pilar González and Susan Orbe OCW 2014 Example 7.2. Autocorrelation 17 / 17