Econometrics - ECON4160 Exercises (GiveWin & PcGive) 1. Exercises to PcGive lectures 15. January 2009

Similar documents
Econometrics - ECON4160 Exercises (GiveWin & PcGive) 1. Exercises to PcGive lectures 5th February 2004

Econometrics (ECON4160) PcGive lectures

Lecture: Simultaneous Equation Model (Wooldridge s Book Chapter 16)

Applied Econometrics (MSc.) Lecture 3 Instrumental Variables

Econ 510 B. Brown Spring 2014 Final Exam Answers

Motivation Non-linear Rational Expectations The Permanent Income Hypothesis The Log of Gravity Non-linear IV Estimation Summary.

The multiple regression model; Indicator variables as regressors

UNIVERSITY OF OSLO DEPARTMENT OF ECONOMICS

ECON 4160, Spring term 2015 Lecture 7

ECON 4160: Econometrics-Modelling and Systems Estimation Lecture 9: Multiple equation models II

ECON 4160, Lecture 11 and 12

Department of Agricultural Economics. PhD Qualifier Examination. May 2009

Queen s University Department of Economics Instructor: Kevin Andrew

Econometrics 2, Class 1

1 Outline. 1. Motivation. 2. SUR model. 3. Simultaneous equations. 4. Estimation

DATABASE AND METHODOLOGY

PANEL DISCUSSION: THE ROLE OF POTENTIAL OUTPUT IN POLICYMAKING

Will it float? The New Keynesian Phillips curve tested on OECD panel data

08 Endogenous Right-Hand-Side Variables. Andrius Buteikis,

UNIVERSITY OF OSLO DEPARTMENT OF ECONOMICS

Handout 12. Endogeneity & Simultaneous Equation Models

Closed economy macro dynamics: AD-AS model and RBC model.

Linear Regression with Time Series Data

DSGE-Models. Calibration and Introduction to Dynare. Institute of Econometrics and Economic Statistics

Linear Regression with Time Series Data

Graduate Macro Theory II: Notes on Quantitative Analysis in DSGE Models

Agricultural and Applied Economics 637 Applied Econometrics II

9) Time series econometrics

ECON 4160: Econometrics-Modelling and Systems Estimation Lecture 7: Single equation models

Econometrics of Panel Data

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

ECO 310: Empirical Industrial Organization Lecture 2 - Estimation of Demand and Supply

Non-Stationary Time Series, Cointegration, and Spurious Regression

ECON 4230 Intermediate Econometric Theory Exam

Dynamic Regression Models (Lect 15)

Regression with time series

Lecture 6: Dynamic Models

F9 F10: Autocorrelation

Econ107 Applied Econometrics

SIMULTANEOUS EQUATION MODEL

Wooldridge, Introductory Econometrics, 4th ed. Chapter 15: Instrumental variables and two stage least squares

LECTURE 11. Introduction to Econometrics. Autocorrelation

Global Value Chain Participation and Current Account Imbalances

ACE 564 Spring Lecture 8. Violations of Basic Assumptions I: Multicollinearity and Non-Sample Information. by Professor Scott H.

Monetary Economics: Solutions Problem Set 1

Bayesian Econometrics - Computer section

Econometrics of Panel Data

A Guide to Modern Econometric:

PhD/MA Econometrics Examination January 2012 PART A

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

Eastern Mediterranean University Department of Economics ECON 503: ECONOMETRICS I. M. Balcilar. Midterm Exam Fall 2007, 11 December 2007.

ECON 4160, Spring term Lecture 12

Taylor Rules and Technology Shocks

New Notes on the Solow Growth Model

Econometrics. 9) Heteroscedasticity and autocorrelation

The transmission mechanism How the monetary-policy instrument affects the economy and the target variables

Econometrics of Panel Data

Econometrics - 30C00200

Bristol Business School

Linear Models in Econometrics

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

Lecture 1: OLS derivations and inference

Identifying the Monetary Policy Shock Christiano et al. (1999)

Forecasting. Simultaneous equations bias (Lect 16)

Empirical Market Microstructure Analysis (EMMA)

ADVANCED MACROECONOMICS I

Economtrics of money and finance Lecture six: spurious regression and cointegration

ECON 255 Introduction to Mathematical Economics

Session 4: Money. Jean Imbs. November 2010

PhD/MA Econometrics Examination. January, 2015 PART A. (Answer any TWO from Part A)

You are permitted to use your own calculator where it has been stamped as approved by the University.

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

Non-Stationary Time Series and Unit Root Testing

Solutions: Monday, October 15

Lecture 4: Heteroskedasticity

Ch3. TRENDS. Time Series Analysis

E 31501/4150 Properties of OLS estimators (Monte Carlo Analysis)

ECONOMICS TRIPOS PART I. Friday 15 June to 12. Paper 3 QUANTITATIVE METHODS IN ECONOMICS

Housing and the Business Cycle

Slides to Lecture 3 of Introductory Dynamic Macroeconomics. Linear Dynamic Models (Ch 2 of IDM)

Econometrics Problem Set 11

Monte Carlo Simulations and PcNaive

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

Economics 308: Econometrics Professor Moody

Econometrics of Panel Data

Notes on Heterogeneity, Aggregation, and Market Wage Functions: An Empirical Model of Self-Selection in the Labor Market

Econometrics I Lecture 3: The Simple Linear Regression Model

Introduction to Econometrics

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

The regression model with one fixed regressor cont d

8. Instrumental variables regression

A Course on Advanced Econometrics

ECON 3150/4150, Spring term Lecture 6

Introduction to Economic Time Series

Exercise sheet 6 Models with endogenous explanatory variables

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

LECTURE 10. Introduction to Econometrics. Multicollinearity & Heteroskedasticity

Linear Regression with Time Series Data

1. Constant-elasticity-of-substitution (CES) or Dixit-Stiglitz aggregators. Consider the following function J: J(x) = a(j)x(j) ρ dj

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

Transcription:

Econometrics - ECON4160 Exercises (GiveWin & PcGive) 1 Exercises to PcGive lectures 15. January 2009 We outline 10 exercises for this course in econometrics. The exercises have been designed such that students should be able to carry out their own empirical research using the datasets which belong to the different exercises. Data are organized in the form of Lotus 123 spreadsheets (*.wk1), Excel spreadsheets (*.xls) or PcGive data files (*.in7 *.bn7). Sample batch files (*.fl) are available to get a head start to analyze the data. Results will be discussed during the lectures. See also the associated handout file with results. Contents A Exercise 1A Inflation and excess demand 2 B Exercise 1B Investment relationships for US (Greene) 3 C Exercise 1C The US macro consumption function (Maddala) 3 D Exercise 2 Using PcGive to create and analyze artificial data 4 E Exercise 3 Bivariate regression analysis and model evaluation 5 F Exercise 4 Bivariate regressions with autocorrelated errors 6 G Exercise 5 Variable transformations 7 H Exercise 6 Multicollinearity 7 I Oppgave 7 Residual regression. 8 J Exercise 8 More about heteroskedasticity. 8 K Exercise 9 Estimation of product functions (Maddala(1989), tab. 3.11) 9

Econometrics - ECON4160 Exercises (GiveWin & PcGive) 2 L Exercise 10 A simple market model. 10 M Data and sample programs (PcGive *.FL batch files) 12 A Exercise 1A Inflation and excess demand Let p t be (the log) of headline CPI, y t denotes (the log of) output in the Norwegian mainland economy (fixed prices), and yt is the log of a measure of potential output (equilibrium growth path) for the mainland economy. Assume that the following simple relationship holds between the annual rate of CPI growth, 4 p t, and output gap measured by the (log) difference (y t yt ). What is the interpretation of the output gap in words? (1) 4 p t = α + β 4 p t 1 + γ(y y ) t + ε t assuming ε t N(0, σ 2 ε). Disposition of PcGive batch file E01-INFL.FL Read and calculate necessary variables Calculate potential output y t Calculate the output gap (y t y t ) Formulate and estimate the model using OLS Evaluate the model Consider alternative model specifications Batch-commands in the example-program E01-INFL.FL module module selection, e.g. PcGive (single equation modeling) loaddata load data from disk (in7,bn7),wk1,xls,... algebra data transformations system model specification println print line to output file (Results) estsystem estimation e.g. using OLS store stores fitted values of regression to the database

Econometrics - ECON4160 Exercises (GiveWin & PcGive) 3 B Exercise 1B Investment relationships for US (Greene) Read the batch-file E01-GINV.FL into a suitable editor (e.g., OxEdit), or load the batch file directly into GiveWin. The program reads the dataset GREENINV (see Greene) which contains annual observations of the following six variables: Annual time trend (years), Y EAR, nominal GNP, NGNP, nominal gross investment, NINV, headline CPI, CP I, interest rates (discount rate) RDIS, annual rate of inflation, INF L, for the period from 1968 to 1982. Write a batch file which carries out the following steps: a) Read data b) Make new variables y = NGNP/(10 CP I), g = NINV/(10 CP I), r = RDIS, p = INF L as described in Greene and give a motivation for the two first transforms. c) Plot data for y and g e) Estimate the coefficients in the investment equation (2) y t = α + β g g t + β r r t + β p p t + β t t t + u t under the assumption that u t N(0, σ 2 u). Give a motivation for the relationship, and interpret the estimated coefficients in light of economic theory. f) Calculate the model residuals û t = y t ŷ t and interpret the misspecification diagnostics which are calculated by the command testsummary; in the batch-file. C Exercise 1C The US macro consumption function (Maddala) Read the batch-file E01-USCP.FL. The program reads the dataset USCP which contain observations of an annual time trend, Y EAR, private consumption, CP, and household real disposable income Y P. There are missing observations for some years, and we must take this into consideration in the empirical analysis. a) Estimate the coefficients in the consumption function

Econometrics - ECON4160 Exercises (GiveWin & PcGive) 4 (3) C t = α + βy t + u t under the assumption that u t N(0, σ 2 u). b) Calculate the model residuals û t = C t Ĉt, and interpret the misspecification diagnostics which are calculated by the command testsummary; in the batch-file. D Exercise 2 Using PcGive to create and analyze artificial data 1. Use the ranseed(arg) and rann() functions to generate the stochastic variables eps1 and eps2 2. Then generate z1 and z2 according to the formulae in the batch-file. What are their properties? 3. Generate y t and x t according to the formulae in the batch-file. What are their properties? 4. Regress y t on x t and a constant. What is a sensible estimate of the regression coefficient and how should this result be interpreted? 5. Regress y t on z1 t and z2 t. What are the expected values of the OLSestimates? 6. What will happen if x t is heteroskedastic? 7. What happens if z2 t is heteroskedastic? Example E02-RANN (DGP formulae): First, construct two normally distributed random variables ε 1t, ε 2t with mean zero but with different variance: ε 1t Niid(0, (0.01) 2 ), ε 2t Niid(0, (0.02) 2 )

Econometrics - ECON4160 Exercises (GiveWin & PcGive) 5 Then we define the variables z 1t, z 2t as follows: z 1t = ε 1t + 0.5ε 2t + 0.005t + 0.01rann() z 2t = ε 1t 0.5ε 2t + 0.0025t + 0.01rann() We note that z 1t, z 2t are linear functions of ε 1t, ε 2t, a linear trend t and a normally distributed random term generated by the function rann(). Now, construct the variables y t, x t as y t = 0.4z 1t + 0.2z 2t + 0.01rann() x t = 0.6z 1t 0.2z 2t + 0.01rann() 1. Regress y t on x t and a constant. What is a sensible estimate of the regression coefficient and how should this result be interpreted? 2. Regress y t on z1 t and z2 t. What are the expected values of the OLSestimates? 3. What will happen if x t is heteroskedastic? 4. What will happen if z2 t is heteroskedastic? E Exercise 3 Bivariate regression analysis and model evaluation Read the dataset SP8101, which contains 81 observations of the variables X and Y. Analyze the properties of the following simple regression model for Y t given X t (4) Y t = α + βx t + u t a) What is it reasonable to assume about the errors u t?. b) Interpret the results, is it reasonable to conclude that β 1 on the basis of the estimated results. What is the interpretation of R 2? c) Is this model an adequate conditional model of Y t given X t? d) What are the criteria we use to evaluate this model? e) Compare the results with those of the inverted model, i.e. X t given Y t.

Econometrics - ECON4160 Exercises (GiveWin & PcGive) 6 f) Are the results reasonable in light of the evaluation criteria? g) Estimate the parameters in a more general dynamic model where also Y t 1 and X t 1 are included as explanatory variables in a conditional model of Y t. Evaluate the results. (5) Y t = α + β 0 X t + β 1 X t 1 + γ 1 Y t 1 + u t h) Consider the three models given by (6) (7) (8) Model1) Y t = α + β 0 X t + u t Model2) Y t = α + β 0 X t + β 1 X t 1 + γ 1 Y t 1 + u t Model3) Y t = α + β 0 X t + β 1 X t 1 + β 2 X t 2 + γ 1 Y t 1 + γ 2 Y t 2 + u t i) Formulate a strategy for evaluating the three models against each other. Explain the difference between simple-to-general and general-to-simple modeling strategies. F Exercise 4 Bivariate regressions with autocorrelated errors Repeat the analysis in Exercise 3 on the data in SP8102 and SP8103 (in addition to SP8101. All three datasets contain 81 observations of X and Y. consider the following models: Model 1: Y t = α + βx t + ε t Model 2: Y t = α + β X t + γ X t 1 + δ Y t 1 + ε t Model 4: Y t = α + βx t + u t, where ε t Niid(0, σ 2 ). We can rewrite model 3 as u t = ρu t 1 + ε t (Y t α βx t ) = ρ(y t 1 α βx t 1 ) + ε t Y t = (1 ρ)α + β X }{{}}{{} t ρβ X }{{} t 1 + α β γ ρ }{{} δ Y t 1 + ε t Estimate Model 1 and Model 2 using the OLS method and Model 4 using the RALS method. Explain and interpret the results.

Econometrics - ECON4160 Exercises (GiveWin & PcGive) 7 G Exercise 5 Variable transformations The data on {X t, Y t } 81 t=1 in the dataset SP8102 are used in Exercise 4 above. Estimate the following regression model (9) Y t = α + β 0 X t + β 1 X t 1 + γ 1 Y t 1 + u t under the assumption that u t N(0, σ 2 u). Now, subtract Y t 1 from both sides of the equation and add and subtract β 0 X t 1 on the RHS of the equation. The model can now be written: (10) Y t = δ + φ 0 X t + φ 1 X t 1 + ψ 1 Y t 1 + u t a) What is the difference between the two models? In particular, what is the relationship between the parameters of the two equations? b) Estimate the parameters and comment on the results. c) How should we evaluate these models in light of R 2 and the estimated coefficients? d) Comment on the problem with multicollinearity in these regressions? (Hint: Calculate the correlation matrix of the RHS variables) H Exercise 6 Multicollinearity Load the datasets SE10001,SE10002 and SE10003. All datasets contain 100 observations of the three variables Y, X1 and X2. a) For each dataset: Estimate the parameters in the model (11) Y t = β 0 + β 1 X 1t + β 2 X 2t + u t under the assumption that u t N(0, σ 2 u). b) What can we conclude about the magnitude of the parameters β i, i = 0... 2 in each of the three cases? Estimate the following model: (12) Y t = β 0 + β 1 X 1t + u t

Econometrics - ECON4160 Exercises (GiveWin & PcGive) 8 c) We want to test whether this is a valid simplification or not. How can we test this in PcGive? d) Write the batch-file such that the test is automatically calculated. e) Interpret and comment the results for each of the three datasets. I Oppgave 7 Residual regression. We use the data set SE10001 introduced in exercise 6. Consider the following regression model where we have removed the linear effect from X 2t on Y t and X 1t respectively. (13) [Y t b y2 X 2t ] = β 0 + β 1 [X 1t b 12 X 2t ] + (β 2 + β 1 m 12 m 22 m y2 m 22 ) + u t m ij denote empirical moments between variable i and variable j. Note that the final parenthesis on the right hand side is exactly 0, and β 1 is determined in auxilliary regressions where b y2 = m y2 /m 22 and b 12 = m 12 /m 22, i.e., regressing Y t and X 1t on X 2t respectively. Then we find the residuals in the parenthesis in (13) above, and finally we find the OLS estimator of β 1 as (14) ˆβ1 = m y1.2 m 11.2 where m ij.2 denote the empirical moment between variable i and variable j where we have removed the effect from X 2t. Compare with the results from OLS estimation of the model: (15) y t = β 0 + β 1 X 1t + β 2t X 2t + u t J Exercise 8 More about heteroskedasticity. The data set TVV200, contain 200 observations of the variables Y, X1 and X2, i.e., a sequence of observations {Y t, X1 t, X2 t } 200 t=1. a) Estimate first the regression model

Econometrics - ECON4160 Exercises (GiveWin & PcGive) 9 (16) Y t = β 0 + β 1 X1 t + β 2 X2 t + u t using OLS. b) Suggest suitable tests which can detect whether model residuals are heteroskedastic. c) Which conclusions can be drawn with respect to the size of the parameters? K Exercise 9 Estimation of product functions (Maddala(1989), tab. 3.11) The data set PRFU contain 39 observations of the variables YEAR, X, L1, L2, K1 and K2 from table 3.11 i the textbook by Maddala(1989). a) Estimate the parameters in the following production function (17) X t = β 0 + β 1 L t + u t Define x t = ln X t, l t = ln L t etc. b) Estimate the parameters in the log-linear model (18) x t = β 0 + β 1 l t + u t c) Analyze the model residuals in the two regression models. What can they tell about the model specification? d) Test whether k t = ln K t should be included in the models, i.e., whether the production function can be written as: (19) x t = β 0 + β 1 l t + β 2 k t + u t Define labour productivity xl t = x t l t and the the capital-labour ratio kl t = k t l t. e) Estimate the following model with OLS:

Econometrics - ECON4160 Exercises (GiveWin & PcGive) 10 (20) xl t = β 0 + β 1 kl t + u t f) Compare with the results above and interpret the estimated parameters. g) Which are the (linear) restrictions that the new parameters satisfies? h) Discuss the necessary exogeneity assumptions. i) Discuss under which assumptions it may be more appropriate to estimate the following model: (21) l t = β 0 + β 1 x t + u 1t k t = α 0 + α 1 x t + u 2t j) How should these two equations be estimated? (discuss) k) What are the reasonable assumptions to make about the error terms u 1t, u 2t? k) Comment on the results obtained from using OLS separately on each equation with the results if the two equations are estimated simultaneously using the SURE method. L Exercise 10 A simple market model. The datasets BFM101 and BFM201 each contain 100 observations of the variables Y 1 (quantity) and Y 2 (price) for a consumer good, and contain in addition observations of two variables X1 (supply shocks) and X2 (demand shocks). For each of the two datasets the following steps to develop a simple simultaneous system should be undertaken. Compare the results for alternative assumptions about the identification of the parameters in the structural equation: a) Formulate a simple market model where prices and quantities are simultaneously determined. Specify a supply relationship and a demand relationship for this market. Discuss under which conditions the two relationships are identified. b) Estimate the parameters in the reduced-form equations (RF) for this model. c) Under the assumption that the parameters in the supply- and demand-relationships (SF) can be identified, estimate the parameters in these relationships using

Econometrics - ECON4160 Exercises (GiveWin & PcGive) 11 i) indirect least squares ILS, ii) ordinary least squares OLS, iii) instrumental variables IV (discuss the choice of instruments), iv) two stage least squares 2SLS, In each case, discuss whether the estimators are unbiased, consistent and/or efficient. Make the necessary additional assumptions, and discuss whether these assumptions have testable implications. Supply- and demand relationships (SF) p t = φq t + ρs t + ε 1t q t = ψp t + ηd t + ε 2t Price- and quantity equations (RF) p t = q t = ϕη 1 + ϕψ d ρ t + 1 + ϕψ s 1 t + 1 + ϕψ (ϕε 2t + ε 1t ) η 1 + ϕψ d t ψρ 1 + ϕψ s 1 t + 1 + ϕψ (ε 2t ψε 1t )

Econometrics - ECON4160 Exercises (GiveWin & PcGive) 12 M Data and sample programs (PcGive *.FL batch files) -------------------------------------------------------------------------- Ex: Data: Program: Output:.WK1.XLS.IN7 (.BN7) -------------------------------------------------------------------------- 01) V04INFL.XLS.IN7 E01_INFL.FL E01_INFL.OUT GREENINV.WK1 E01_GINV.FL E01_GINV.OUT GREENGAS.WK1 USCP.WK1 E01_USCP.FL E01_USCP.OUT 02) E02_RANN.FL E02_RANN.OUT 03-05) SP8101.WK1.XLS E03_SP01.FL E03_SP01.OUT SP8102.WK1.XLS E03-SP02.FL E03-SP02.OUT SP8103.WK1.XLS 06-07) SE10001.WK1 E06_SE.FL SE10002.WK1 E07_RERE.FL SE10003.WK1 SE40001 SE40002 SE40003.WK1.WK1.WK1 08) TVV200.WK1 09) PRFU.WK1.XLS 10) BFM101.WK1.XLS E10-BFM1.FL E10-BFM1.OUT BFM201.WK1.XLS E10-BFM2.FL E10-BFM2.OUT