EC4051 Project and Introductory Econometrics

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

Multiple Linear Regression CIVL 7012/8012

Linear Regression with 1 Regressor. Introduction to Econometrics Spring 2012 Ken Simons

Motivation for multiple regression

The Simple Linear Regression Model

Modelling the Electric Power Consumption in Germany

1 A Non-technical Introduction to Regression

Final Exam - Solutions

An overview of applied econometrics

New York University Department of Economics. Applied Statistics and Econometrics G Spring 2013

ECONOMETRICS HONOR S EXAM REVIEW SESSION

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

Environmental Econometrics

ECON3150/4150 Spring 2015

Econ 1123: Section 2. Review. Binary Regressors. Bivariate. Regression. Omitted Variable Bias

Multiple Regression Analysis

2. Linear regression with multiple regressors

Chapter 1. An Overview of Regression Analysis. Econometrics and Quantitative Analysis. What is Econometrics? (cont.) What is Econometrics?

2 Prediction and Analysis of Variance

ECON3327: Financial Econometrics, Spring 2016

Financial Econometrics

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

Hypothesis testing I. - In particular, we are talking about statistical hypotheses. [get everyone s finger length!] n =

WISE International Masters

Announcements. J. Parman (UC-Davis) Analysis of Economic Data, Winter 2011 February 8, / 45

MBF1923 Econometrics Prepared by Dr Khairul Anuar

Lectures 5 & 6: Hypothesis Testing

ECNS 561 Multiple Regression Analysis

Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data

ECON 497 Midterm Spring

Empirical Economic Research, Part II

Econometrics Honor s Exam Review Session. Spring 2012 Eunice Han


A Guide to Modern Econometric:

Using regression to study economic relationships is called econometrics. econo = of or pertaining to the economy. metrics = measurement

Multiple Regression Analysis: Inference MULTIPLE REGRESSION ANALYSIS: INFERENCE. Sampling Distributions of OLS Estimators

ECON The Simple Regression Model

Wooldridge, Introductory Econometrics, 4th ed. Chapter 2: The simple regression model

Introductory Econometrics

Lecture 3: Multiple Regression

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

statistical sense, from the distributions of the xs. The model may now be generalized to the case of k regressors:

Panel Data. March 2, () Applied Economoetrics: Topic 6 March 2, / 43

Econometrics I. by Kefyalew Endale (AAU)

E c o n o m e t r i c s

Multiple Regression. Midterm results: AVG = 26.5 (88%) A = 27+ B = C =

UNIVERSIDAD CARLOS III DE MADRID ECONOMETRICS FINAL EXAM (Type B) 2. This document is self contained. Your are not allowed to use any other material.

Empirical Market Microstructure Analysis (EMMA)

OSU Economics 444: Elementary Econometrics. Ch.10 Heteroskedasticity

2) For a normal distribution, the skewness and kurtosis measures are as follows: A) 1.96 and 4 B) 1 and 2 C) 0 and 3 D) 0 and 0

2 Regression Analysis

1 The Multiple Regression Model: Freeing Up the Classical Assumptions

WISE MA/PhD Programs Econometrics Instructor: Brett Graham Spring Semester, Academic Year Exam Version: A

Applied Quantitative Methods II

LECTURE 6. Introduction to Econometrics. Hypothesis testing & Goodness of fit

LECTURE 2: SIMPLE REGRESSION I

Economics 308: Econometrics Professor Moody

Econ 423 Lecture Notes: Additional Topics in Time Series 1

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

A Non-Parametric Approach of Heteroskedasticity Robust Estimation of Vector-Autoregressive (VAR) Models

Econometrics Multiple Regression Analysis: Heteroskedasticity

Econometrics Summary Algebraic and Statistical Preliminaries


Chapter 2: simple regression model

Two-Variable Regression Model: The Problem of Estimation

Multiple Regression Analysis

Statistical Inference with Regression Analysis

TESTING FOR CO-INTEGRATION

WISE MA/PhD Programs Econometrics Instructor: Brett Graham Spring Semester, Academic Year Exam Version: A

ECON2228 Notes 2. Christopher F Baum. Boston College Economics. cfb (BC Econ) ECON2228 Notes / 47

Inference in Regression Model

Econometrics. 4) Statistical inference

Econometrics I KS. Module 1: Bivariate Linear Regression. Alexander Ahammer. This version: March 12, 2018

1 Regression with Time Series Variables

Statistics II. Management Degree Management Statistics IIDegree. Statistics II. 2 nd Sem. 2013/2014. Management Degree. Simple Linear Regression

Multiple Regression Analysis. Basic Estimation Techniques. Multiple Regression Analysis. Multiple Regression Analysis

Introduction to Econometrics

Rewrap ECON November 18, () Rewrap ECON 4135 November 18, / 35

Econ107 Applied Econometrics

Econometrics 2, Class 1

Introduction to Econometrics. Heteroskedasticity

Hypothesis testing Goodness of fit Multicollinearity Prediction. Applied Statistics. Lecturer: Serena Arima

1 Correlation and Inference from Regression

Economics 113. Simple Regression Assumptions. Simple Regression Derivation. Changing Units of Measurement. Nonlinear effects

A Course on Advanced Econometrics

Handout 12. Endogeneity & Simultaneous Equation Models

ECON Introductory Econometrics. Lecture 7: OLS with Multiple Regressors Hypotheses tests

UNIVERSIDAD CARLOS III DE MADRID ECONOMETRICS Academic year 2009/10 FINAL EXAM (2nd Call) June, 25, 2010

Linear Models in Econometrics

Econometrics - 30C00200

REED TUTORIALS (Pty) LTD ECS3706 EXAM PACK

Final Exam - Solutions

EMERGING MARKETS - Lecture 2: Methodology refresher

05 Regression with time lags: Autoregressive Distributed Lag Models. Andrius Buteikis,

Homework Set 2, ECO 311, Fall 2014

Econometrics I Lecture 3: The Simple Linear Regression Model

LECTURE 5. Introduction to Econometrics. Hypothesis testing

Econometrics Homework 1

ECON 4230 Intermediate Econometric Theory Exam

Regression, part II. I. What does it all mean? A) Notice that so far all we ve done is math.

Transcription:

EC4051 Project and Introductory Econometrics Dudley Cooke Trinity College Dublin Dudley Cooke (Trinity College Dublin) Intro to Econometrics 1 / 23

Project Guidelines Each student is required to undertake an individual applied research project. This will account for 20% of the overall grade of the course. The topic of the research project will be of the student s own choosing, but the research should be related to the field of financial economics/economics of financial markets and requires the analysis of data. The research project could aim at testing a theory in financial economics, or at analyzing some type of economic behavior. Although the project does not strictly have to include econometrics it should, broadly-speaking, follow what others do in the literature. In any case, your aims and methodology need to be very explicit. Dudley Cooke (Trinity College Dublin) Intro to Econometrics 2 / 23

General Points The project does not strictly have to be from the range of topics covered on the course, as there are so many other topics (in that sense, the course is specialized), but if you choose to do a project on a different topic, please run it past me. The project should have a large portion of it devoted to what you do, i.e., your analysis, not what others do (unlike a regular term paper), although some recognition of what other people have done is important (and again, you may be drawing inspiration directly from these papers). The deadline for the submission of the projects will be 12 pm Friday April 10th. Dudley Cooke (Trinity College Dublin) Intro to Econometrics 3 / 23

Expectations The submitted project should include the following. 1 Title, Introduction, Background/Motivation/Literature Review. 2 Empirical approach. If not econometrics, what is the hypothesis you are testing? If econometrics, what is the dependent variable? What are the independent variables? How do you expect the independent variables to affect the dependent variable? 3 Description of the dataset. That is, the source of the data, detailed summary statistics, graphics for visual presentation of the data. 4 Empirical results. That is, tables of results (estimated coefficients, standard errors, number of observations, adjusted R 2 ), results of the appropriate tests and comment of the empirical results. 5 Summary/conclusions with discussion of possible extensions. Dudley Cooke (Trinity College Dublin) Intro to Econometrics 4 / 23

Last Year... Last year, there was much worrying and speculation about the project. For any of the above: My office hours are on Friday s from 1600 to 1800 We have classes, some of which I will run using appropriate software (the room is booked every week for your use) The project average grade last year was good (mainly because the projects were good) Specific projects that proved popular (a risk and return trade-off applies) last year: Calender effects and EMH (50% of the papers/the safest option) CAPM (25%) APT, Yield Curve, GARCH effects in financial markets, asset price bubbles (20%) Dudley Cooke (Trinity College Dublin) Intro to Econometrics 5 / 23

Planning the Project You should already have an idea of the project you want to do from Term 1. If not, wait a few weeks maximum. Again, if the topic is standard great, if not, just run it by me (there is a 95% chance it will be fine anyway). Think about where you can get the data and read some papers from the literature. Important: find one you can replicate easily and quickly. Most important: get the data (we have EcoWin and Data Stream in the 24hr PAC room, near the library) Run the regressions and do the write up (easier said than done). Dudley Cooke (Trinity College Dublin) Intro to Econometrics 6 / 23

Econometrics Since some people have done empirical projects and some have not, I will cover some econometrics at the beginning of the course. I will also demonstrate how to run regressions on XL and Microfit. But I encourage you to talk to one another (plus, the project is not marked on a curve) A good book is Wooldridge, J., 2006. Introductory Econometrics: A Modern Approach, Thomson (third edition). [hereafter, W] We ll (very quickly) cover: 1 Bivariate and multivariate models with cross-section data, W Chs. 2-3; Hypothesis (t and F) tests, Wooldridge Ch. 4. 2 Time-series data and autoregressive processes, W Chs. 10-11; Autocorrelated and heteroskedastic errors, W Ch. 12. 3 Unit roots, cointegration and GARCH, W Ch. 18.2-18.3. Dudley Cooke (Trinity College Dublin) Intro to Econometrics 7 / 23

Bivariate Linear Regression Model One of the simplest statistical models we can think of this the following. y = β 0 + β 1 x + u Here, y is the dependent variable (endogenous) and x is the explanatory variable (exogenous); that is, x causes y, with a margin of error, u. Also, β 0 is some fixed number (the intercept) and β 1 is the slope (the extent to which a change in x affects y). Example: ice-cream sales (y) and temperature (x). We expect, β 0 > 0 and β 1 > 0. That is, some ice-creams are always sold, and the hotter it is, the more ice-creams are sold. Dudley Cooke (Trinity College Dublin) Intro to Econometrics 8 / 23

Assumptions in Linear Regression Model What we really want to know is the magnitude of β 1. estimate, denoted β 1. This is an This could be critical in deciding how to market ice-cream sales and/or ice-cream production, given the weather forecast. Out main assumption is: E (u) = 0 We also assume the errors uncorrelated with regressors. That is, Cov (x, u) = E (xu) = 0 E [x (y β 0 β 1 x)] = 0 Dudley Cooke (Trinity College Dublin) Intro to Econometrics 9 / 23

Estimation - Ordinary Least Squares (OLS) Why do we make these assumptions? So we can find a good estimate of β 1. Say we have i = 1...n observations of ice-cream sales. proof, the slope estimate is, Without β 1 = n i=1 (x i x) (y i y) n i=1 (x i x) 2 where y = 1 n n y i i=1 Good news: a PC, plus software (even XL) will work this out for you. Dudley Cooke (Trinity College Dublin) Intro to Econometrics 10 / 23

Multivariate Model Say we propose a model of ice-cream sales with more than one explanatory variable (i.e., a multivariate model). Specifically, ice-cream sales = β 0 + β 1 (temp) + β 2 (vans) + u The interpretation is a ceteris paribus idea. That is, given the number of vans on the street, how does temperature affect ice-cream sales? If it turns out β 2 = 0 we made an initial mistake. That is, previously, β 1 could overstate the impact of temperature on ice-cream sales. Dudley Cooke (Trinity College Dublin) Intro to Econometrics 11 / 23

Multivariate Model In general, k factors can affect y, so, Another example: y i = β 0 + n k=1 β k x ki + u i E (u x 1, x 2,..., x k ) = 0 and i = 1, 2,..., n log (salary) = β 0 + β 1 log (sales) + β 2 (tenure) + β 3 (tenure) 2 Note that (tenure) is linear but (tenure) 2 is not. is still linear (in coefficients). However, the model Say β 2 > 0, then controlling for sales, tenure has a positive effect on salary. Dudley Cooke (Trinity College Dublin) Intro to Econometrics 12 / 23

How Can we Tell if Our Model is any Good? Is our econometric model good? R 2 tells us how well the sample regression line fits the data. Define the following (with TSS = RSS + ESS): TSS = Now, R 2 = n (y i y) 2 and RSS = i=1 n [ ( )] 2 (y i y) ŷ i ŷ i 1 ( n ) ( n (y i y) 2 i=1 i=1 n ûi 2 and ESS = i=1 n (ŷ i y) 2 i=1 ) = ESS ( ) 2 TSS = 1 RSS TSS ŷ i ŷ As R 2 = 1 we get the best fit; if R 2 = 0 we get the worst fit. In our example, if R 2 = 1 temperature and vans explain 100% of ice-cream sales. Dudley Cooke (Trinity College Dublin) Intro to Econometrics 13 / 23

Things to Remember 1 Collinear variables. Ice-cream and vans on RHS could be bad. If temperature increased more vans, as companies want to increase sales. Therefore, both temperature and vans explain ice-cream sales, but they must be related. 2 Irrelevant variables (model overspecification/too many RHS variables). Not too bad can test for this. 3 Omitted variables. Suppose temperature and vans are not related and we don t include one: that affects estimated coefficient of the other. 4 Heteroskedasticity. Error, u, may have non-equal variance given any value of explanatory variables. Dudley Cooke (Trinity College Dublin) Intro to Econometrics 14 / 23

Hypothesis Testing Given the model y i = β 0 + n k=1 β k x ki + u i, we also need to test whether a variable is significant in explaining anything itself - a hypothesis test. The null is, We then, H 0 : β k = 0 1 Specify an alternative. These come from economic theory and are one-sided (H 1 : β k 0) or - more usually -two-sided H 1 : β k = 0. 2 Select a level of significance (stringency of test), which is defined as Pr (reject H 0 H 0 correct). Usual significance levels are 5% and 10%. Finally, it matters how powerful our test is. That depends on degrees of freedom (basically number of observations vs number of explanatory variables) rule of thumb: less observations, worse power of the test. Dudley Cooke (Trinity College Dublin) Intro to Econometrics 15 / 23

Hypothesis Testing Say we want to test the following: ice-cream = β 0 + β 1 (temp) + β 2 (vans) + u H 0 : β 1 = 0 (vans explain ice-cream sales) H 0 : β 1 = 0 (they don t) Note: to do this, we also need assumption on errors that u N ( 0, σ 2), consistent with two things; E (u x 1,..., x K ) = 0 = E (u) = 0 (uncorrelated errors) Var (u x 1,..., x K ) = Var (u) = σ 2 (homoskedastic errors) Dudley Cooke (Trinity College Dublin) Intro to Econometrics 16 / 23

t-statistic What matters is not only the coefficient, but its standard error (s.e.). The t-statistic is then, t β2 = β 2 ) s.e. ( β 2 Again, software can do this for you or see t-tables in statistics books. If reject, we say, x 2 is statistically insignificant. In other words, we may get β 2 0,but statistically speaking it is zero. There are also p-values easy to interpret, as 0 p 1. P-value is defined as, Pr T > t. If p is close to zero, there is }{{}}{{} t n k 1 from table evidence against the null (t ) and vice-versa if p close to one. Dudley Cooke (Trinity College Dublin) Intro to Econometrics 17 / 23

P-values and t-statistics ) It should be clear that β, s.e. ( β, t and p-value are all related. ) The bigger the s.e. ( β 2 then the smaller is the t-statistic, for a given coefficient (i.e. null is good ). Say, p = Pr ( T > 1.85) = 0.5. In words we observe a value for the t-stat as extreme as we did in 50% of all random sample when null is true there is weak evidence against the null. Dudley Cooke (Trinity College Dublin) Intro to Econometrics 18 / 23

F-tests Suppose you want to test another possibility; y = β 0 + β 1 x 1 + β 2 x 2 + u H 0 : β 1 = β 2 H 1 = β 1 < β 2 In this case, t = β 1 β 2 ) s.e. ( β 1 β 2 This is an F-test, and is basically a combination of t-tests. Dudley Cooke (Trinity College Dublin) Intro to Econometrics 19 / 23

An Example of an F-test Example in book, log (wage) = 1.472 (0.021) + 0.067 (college) (0.007) + 0.077 (univ.) + 0.005 (exp.) (0.02) 0.0002 College and univ are both individually insignificant, but are they statistically different from each other? Well, as β 1 β 2 = 0.0162, this suggests return to college (for wages) is 1% less than to university, and we are interested in that. To test, first define Q 1 β 1 β 2, then, log (wage) = β 0 + (Q 1 + β 2 ) (college) + β 2 (univ.) + β 3 (exp.) + u = β 0 + Q 1 (college) + β 2 (college + univ.) + β 3 (exp.) + u H 0 : Q 1 = 0 β 1 = β 2 H 1 : Q 1 < 0 β 1 < β 2 Dudley Cooke (Trinity College Dublin) Intro to Econometrics 20 / 23

F-tests Now, suppose model is y = β 0 + β 1 x 1 + β 2 x 2 + u (*) H 0 : β 1 + β 2 = 1 How do we test H 0? We ve got to run two models. Estimate (*) and a model with the restriction already imposed. That is, (y x 2 ) = β 0 + β 1 (x 1 x 2 ) + u Compare unrestricted and restricted models, Under H 0, F F (d,n K 1). F = (RSS R RSS u ) 1 d RSSu/(n K 1) Dudley Cooke (Trinity College Dublin) Intro to Econometrics 21 / 23

F-tests Alternatively, let we can define a new coefficient, γ = β 1 + β 2 1 And test a new null, H 1 : γ = 0 This gives, y = β 0 + β 1 x 1 + (γ + 1 β 1 ) x 2 + u (y x 2 ) = β 0 + β 1 (x 1 x 2 ) + γx 2 + u Then we use the t-test under H 0, t t (n K 1) Dudley Cooke (Trinity College Dublin) Intro to Econometrics 22 / 23

Roundup You should feel comfortable with the following: 1 Interpreting coefficients from a cross-section OLS regression. 2 Checking goodness of fit. 3 Performing simply hypothesis tests. Much of this needs to go into the project. Dudley Cooke (Trinity College Dublin) Intro to Econometrics 23 / 23