Econometrics 2, Class 1

Similar documents
Monte Carlo Simulations and the PcNaive Software

Monte Carlo Simulations and PcNaive

Linear Regression with Time Series Data

Linear Regression with Time Series Data

Dynamic Regression Models (Lect 15)

LECTURE 10: MORE ON RANDOM PROCESSES

LECTURE 11. Introduction to Econometrics. Autocorrelation

Econometrics of Panel Data

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

Christopher Dougherty London School of Economics and Political Science

Econometrics Spring School 2016 Econometric Modelling. Lecture 6: Model selection theory and evidence Introduction to Monte Carlo Simulation

This note analyzes OLS estimation in a linear regression model for time series

ECON 4160, Lecture 11 and 12

Applied Econometrics (MSc.) Lecture 3 Instrumental Variables

ECON 4160, Spring term Lecture 12

Univariate, Nonstationary Processes

Covers Chapter 10-12, some of 16, some of 18 in Wooldridge. Regression Analysis with Time Series Data

Answers: Problem Set 9. Dynamic Models

Spatial Econometrics

BCT Lecture 3. Lukas Vacha.

E 4160 Autumn term Lecture 9: Deterministic trends vs integrated series; Spurious regression; Dickey-Fuller distribution and test

Linear Regression with Time Series Data

Internal vs. external validity. External validity. This section is based on Stock and Watson s Chapter 9.

Diagnostics of Linear Regression

Nonstationary Time Series:

Bootstrapping Heteroskedasticity Consistent Covariance Matrix Estimator

The regression model with one stochastic regressor.

F9 F10: Autocorrelation

ECON 312 FINAL PROJECT

LECTURE 13: TIME SERIES I

Simultaneous Equation Models Learning Objectives Introduction Introduction (2) Introduction (3) Solving the Model structural equations

Lecture 5: Unit Roots, Cointegration and Error Correction Models The Spurious Regression Problem

Statistics 910, #5 1. Regression Methods

Reliability of inference (1 of 2 lectures)

MA Advanced Econometrics: Applying Least Squares to Time Series

Motivation for multiple regression

Prof. Dr. Roland Füss Lecture Series in Applied Econometrics Summer Term Introduction to Time Series Analysis

The regression model with one stochastic regressor (part II)

E 4101/5101 Lecture 9: Non-stationarity

Efficiency Tradeoffs in Estimating the Linear Trend Plus Noise Model. Abstract

Multiple Linear Regression CIVL 7012/8012

DEPARTMENT OF ECONOMICS AND FINANCE COLLEGE OF BUSINESS AND ECONOMICS UNIVERSITY OF CANTERBURY CHRISTCHURCH, NEW ZEALAND

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

FinQuiz Notes

Economics 620, Lecture 13: Time Series I

Non-Stationary Time Series, Cointegration, and Spurious Regression

Using all observations when forecasting under structural breaks

SOME BASICS OF TIME-SERIES ANALYSIS

Empirical Market Microstructure Analysis (EMMA)

G. S. Maddala Kajal Lahiri. WILEY A John Wiley and Sons, Ltd., Publication

INTRODUCTION TO BASIC LINEAR REGRESSION MODEL

Lecture: Testing Stationarity: Structural Change Problem

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

EC4051 Project and Introductory Econometrics

Testing for Unit Roots with Cointegrated Data

Essential of Simple regression

1 Introduction to Generalized Least Squares

The Linear Regression Model

Advanced Econometrics

Bootstrap Testing in Econometrics

Applied Econometrics (QEM)

Introduction to Regression Analysis. Dr. Devlina Chatterjee 11 th August, 2017

Box-Jenkins ARIMA Advanced Time Series

Iris Wang.

:Effects of Data Scaling We ve already looked at the effects of data scaling on the OLS statistics, 2, and R 2. What about test statistics?

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

A New Solution to Spurious Regressions *

Financial Econometrics Review Session Notes 3

The Simple Linear Regression Model

Time Series Methods. Sanjaya Desilva

11. Further Issues in Using OLS with TS Data

1. How can you tell if there is serial correlation? 2. AR to model serial correlation. 3. Ignoring serial correlation. 4. GLS. 5. Projects.

Simple and Multiple Linear Regression

13. Time Series Analysis: Asymptotics Weakly Dependent and Random Walk Process. Strict Exogeneity

2 Prediction and Analysis of Variance

Lecture 6a: Unit Root and ARIMA Models

Econometrics of financial markets, -solutions to seminar 1. Problem 1

ECON3327: Financial Econometrics, Spring 2016

An overview of applied econometrics

Cointegration and Error Correction Exercise Class, Econometrics II

Økonomisk Kandidateksamen 2004 (I) Econometrics 2. Rettevejledning

AUTOCORRELATION. Phung Thanh Binh

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

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

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

TESTING FOR CO-INTEGRATION PcGive and EViews 1

Economics 308: Econometrics Professor Moody

Section 2 NABE ASTEF 65

Controlling for Time Invariant Heterogeneity

Quantitative Techniques - Lecture 8: Estimation

Business Economics BUSINESS ECONOMICS. PAPER No. : 8, FUNDAMENTALS OF ECONOMETRICS MODULE No. : 3, GAUSS MARKOV THEOREM

Econometrics Part Three

Unless provided with information to the contrary, assume for each question below that the Classical Linear Model assumptions hold.

Econometrics Honor s Exam Review Session. Spring 2012 Eunice Han

Trending Models in the Data

Econometrics. 7) Endogeneity

1 Quantitative Techniques in Practice

Drawing Inferences from Statistics Based on Multiyear Asset Returns

Short T Panels - Review

FINANCIAL ECONOMETRICS AND EMPIRICAL FINANCE -MODULE2 Midterm Exam Solutions - March 2015

Transcription:

Econometrics 2, Class Problem Set #2 September 9, 25 Remember! Send an email to let me know that you are following these classes: paul.sharp@econ.ku.dk That way I can contact you e.g. if I need to cancel class

#2. Monte Carlo Simulation What is a Monte Carlo simulation? Named after the city in Monaco and its roulette wheels (simple random number generators) We generate an artificial dataset with known statistical properties (or use a known distribution) We can then test for these properties within sub-samples using our econometric methods Example (Econometrics ): We know that in the presence of endogeneity of the explanatory variables, the OLS estimators are biased. E ˆ β β With a Monte Carlo simulation we can generate a dataset where we know the true β, thus allowing us to check the extent of this bias by performing OLS on several subdatasets drawn from the generated dataset. PcNaive PcNaive is a module in GiveWin (like PcGive) It can be accessed by clicking on Modules Start PcNaive Remember licence codes! 2

The model Time series, y, y2,..., yt Generated by first order autoregressive, AR(), model ( ) yt = α yt + εt, εt N, (2.) (2.) is the Data Generating Process (DGP) We need to use this one! () Generating one realization of the DGP This is the α parameter (=) We don t need a constant Yes! No! Just one realization Only one sample size needed ( steps ignored) We will use these later! When you click OK you will be warned that we haven t asked for any evaluation statistics. That doesn t matter. You will also need to save the experiment it doesn t really matter where. Select data so we can see what we have generated (the last three are only relevant for more than replication!) 3

Running the experiment PcNaive now gives you the option of editing the experiment you have just created and running it. Click Run. Results displayed in GiveWin These are just the settings we chose. We have no additional regressors (z s). First 2 observations are discarded by default. Reduces effect of starting values on the lagged dependent variable. There is no observation of for t=. yt T is sample size, M is number of replications. The seed is used to generate the random process. - is the default. If we don t change it, we will get the same result every time. 4

The Experimental Data Here is the data we have generated for y = ε, ε N, t t t ( ) If this series is to be stationary, then all observations of y t must be drawn from the same distribution. Of course this is the case here! Graphically this means that y t must fluctuate around a constant level. This process looks very stationary! (White noise) (2) Alpha=-.7 y =.7 y + ε t t t Note the change in the model! The parameter is now different from zero. We have not changed the seed, so the residuals will be the same as in the previous experiment. We can now see that there is negative autocorrelation (a positive observation is likely to be followed by a negative observation) and vice versa. 5

Alpha=.5 y =.5 y + ε t t t Data, M= Ya 2 - -2-3 5 5 2 25 3 35 4 45 5 Positive autocorrelation means that high observations are likely to be followed by high observations, and low observations by low observations. (e.g. Unemployment data) Alpha=.7 y =.7 y + ε t t t Data, M= 3 Ya 2 - -2-3 -4 5 5 2 25 3 35 4 45 5 As alpha increases, the process becomes less and less stationary, i.e. it crosses less and less. Shocks become more and more persistent. 6

Alpha=.9 y =.9 y + ε t t t 4 3 2 Data, M= Ya As alpha approaches, the process is very nonstationary. - -2-3 -4-5 5 5 2 25 3 35 4 45 5 Alpha =. y = y + ε t t t 3 2 - -2-3 -4-5 -6 Data, M= Ya This is a random walk. The best predictor of y t is yt. Nonstationary! This is the best model we have for fluctuations on the currency markets! 5 5 2 25 3 35 4 45 5 7

Alpha=. y =. y + ε t t t Data, M= Ya - -2-3 -4 This is the extreme case, where the observations move further and further away from. -5-6 -7 5 5 2 25 3 35 4 45 5 (3) Properties of the OLS estimator See lecture note Linear Regression with Time Series Data. Consistency: (See page 4) OLS is consistent. Unbiasedness: (See page 5) OLS is only unbiased if there is strict exogeneity, i.e. Consider our model: yt is a function of εt, so εt cannot be uncorrelated with current and future values of the explanatory variables. The OLS estimator is therefore biased in general. (Except when the coefficient is equal to.) 8

(4) Define concepts We perform a Monte Carlo experiment with M replications. We define: MEAN ( ˆ βi) M = ˆ βm M m= ( ˆ ) MEAN ( ˆ ) BIAS β = β β MCSD i i i M ( ˆ β ) ˆ ( ( ˆ )) 2 i = βm MEAN βm M m= ( ˆ β ) 2 ( ˆ i = βi) MCSE M MCSD Monte Carlo Standard Deviation Monte Carlo Standard Error N.B. MCSD is a measure of the uncertainty of the OLS estimator (approaches as T approaches infinity), MCSE is a measure of the uncertainty of the estimator MEAN in the simulation (approaches as M approaches infinity). (5) The Experiment! 9

Properties of ˆ β ˆβ and Properties of ˆ β and ˆβ (cont.) Are the estimators unbiased (i.e. is there a significant difference between the estimate and the true value)? MEAN ˆ BIAS ˆ.48273 Clear accept (only t = = = =.32 MCSE MCSE.5968 because β = )! MEAN ˆ.7 BIAS ˆ.39 t = = = = 29.65 MCSE MCSE.762 So there is bias, as we anticipated. Clear reject!

(6) Rejection frequency, size and power Rejection frequency: Proportion of cases where a hypothesis is rejected. TRUE. Rejection frequency FALSE. Rejection frequency 5% % T Rejecting H 2 is an example of a TYPE I error (rejecting a true null hypothesis). Probability is controlled by researcher through choice of significance level: the size of the test. As T increases, we will become less and less likely to reject the true hypothesis. Accepting H 3 is an example of a TYPE II error (not rejecting the null when the alternative is true). Depends on the true parameter values. If hypothesis is very different from the true value, then the probability of rejection will be large. The reverse, the probability of rejecting the null when it is false, is the power of the test. As T increases, we will become more and more likely to reject the false hypothesis. as Select t-tests under AR() T= You need to choose sample size to to get this output! T= This shows the distribution of the t-statistics for T= and T=. Note how the distribution for ˆβ shifts to the right for larger T. The bias (towards ) is decreasing, so it is becoming more likely that we reject the false hypothesis.

Rejection frequencies For low T we are making a lot of type II errors! (i.e. accepting the null when the alternative is true) Computer basement (or home) Try to replicate these results yourself Try this problem set again with an intercept different from, i.e. β 2