Docsity

esercizi fac-simile esame, Esercizi di Econometria

Anteprima parziale del testo

Scarica esercizi fac-simile esame e più Esercizi in PDF di Econometria solo su Docsity!

Problem set 1: understanding estimators and

getting to know Gretl

September 11, 2013

1 Introduction

This problem set is meant to allow students to practice the econometric theory which is learnt in the first 30 videos or so of the ’undergraduate econometric course’ on youtube. The emphasis is on practical application of the subject, although there will also be a theory section for students wishing to polish up on this aspect.

2 Setting up Gretl

Throughout this course we shall be using Gretl; a nice statistical program which (importantly) is available free of charge. Of course, feel welcome to use other tools: Stata, EViews, R, SPSS, Matlab, Octave etc. will all be (more than) capable of handling the data analysis encountered in this course. However, in order to make this course available to as wide an audience as possible, Gretl will be the primary tool used for analysis. As such, some of the answers will be Gretl-specific, but I shall try to limit this specificity where possible.

In order to get Gretl set up on your computer go to:

  • For Windows machines: http://gretl.sourceforge.net/win
  • For Mac machines: http://gretl.sourceforge.net/osx.html
  • For Linux machines: http://gretl.sourceforge.net

From then on, I recommend using the self-installer if available for your machine. This will guide you through installation, and (in my experience) allow you to get setup as quickly as possible. Alternatively, follow the download instructions to get Gretl setup.

3 Crime and Unemployment - practical

In this question we are going to examine the relationship between rates of violent crime in the US, and the rate of unemployment. In order to download the data for this problem set go to:

http://www.oxbridge-tutor.co.uk/#!datasets/culy

and download the sample dataset for problem set 1 - it should be in a Excel 1997- format. Don’t worry if you don’t have Excel on your computer, Gretl is still able to read the file. Start up Gretl. In order to import the data into Gretl navigate to File → Open data → Import → Excel. Then select the file from its location where it was downloaded to, and click ’open’. Just click ’ok’ of a box opens asking about the row and column number to start from. Then click ’no’ when asked about whether you want to give the data a time series or panel interpretation. If the import has worked

  1. What is the coefficient on ’Unemployment’? What is the interpretation of this value?
  2. What would this model predict would be the increase in the rate of violent crime for a 1 standard deviation increase in unemployment? What is this increase in terms of standard deviations of the rate of violence?
  3. What does a regression of the rate of unemployment on violent crime rates (the other way round to that in the last part) suggest would be the increase in the unemployment rate for a 1 standard deviation increase in the rate of violent crime?
  4. Can you use this regression to uncover what it suggests the increase in unem- ployment associated with a 1 standard deviation increase in violent crime? Is this the same as we found previously? Why is this the same/different?
  5. What can you conclude about the causal mechanism between violent crime and unemployment based on the two regressions you have run? Does violent crime cause unemployment or vice versa?
  6. Why might it be incorrect to conclude that increases in unemployment lead to increases in rates of violent crime?

4 Theory

This section aims to build up your theoretical knowledge of econometrics, and should cover the first 30 videos or so of material from the ’undergraduate econometrics course’. This section will complement the practical part of the problem set, but is not a required part of the course.

  1. For a pupil, i, selected at random from a school, the number of years of education of their parents, Xi, is given by:

Xi = μ + εi

εi ∼ iid(0, σ^2 ). Here μ is the mean number of years of education completed by parents. For a sample of N students selected independently from the population: (a) What is the expected value of the sample mean? (b) Calculate the variance of the sample mean. What happens to the variance as the sample size increases? (c) Is the sample mean consistent? (d) Prove that the sample mean is a least-squares estimator for the population mean. (e) Is the sample mean BLUE? Either way, prove it.

  1. For each of the following state whether or not the estimator is biased, consistent, both or neither, when used to estimate the population mean:

(a) X˜ = (^) N^1 − 1

∑^ N

i= 1

Xi © Unbiased © Consistent © Both © Neither

(b) Xˆ = (^) N^2

N∑/ 2

i= 1

Xi © Unbiased © Consistent © Both © Neither

(c) Assuming N is even. ¯X = (^) N^2

N∑/ 2

i= 1

(Xi + μ) + (^) N^2

∑N

i=N/ 2 + 1

(Xi − μ) © Unbiased © Con-

sistent © Both © Neither (d) Y ∼ N(μ, σ^2 ) © Unbiased © Consistent © Both © Neither

(e) Z = (^) N^1

∑N

i= 1

wiXi Where:

∑N

i= 1

wi = 1 © Unbiased © Consistent © Both © Neither

  1. Examine the following economic model

Yi = α + βXi + εi

(a) Derive the formula for the sample least squares estimator for the parameters α and β. (b) In the regression of X on Y (the reverse of the above), what is the formula for the least squares estimator for the slope parameter on Y? (c) If the slope parameter for the reverse regression is δ. Is the value of δ × β = 1? Explain your reasoning. (d) Show that the geometric mean of δ and β is equal to the correlation coefficient.

  1. There are two populations of individuals called samies varies respectively. The height of individuals in the samies is given by:

Xi ∼ μ + εi

And the height of individuals in the varies is given by:

Yi ∼ μ + i

Where εi ∼ iid(0, σ^2 ) and i ∼ iid(0, 4 σ^2 ). (a) Is the sample mean from the population of samies an unbiased estimator of μ? (b) Is the sample mean from the population of varies an unbiased estimator of μ and consistent? (c) Which of the two previous estimators is most efficient, and why? (d) You have a sample of N individuals from each population. Is the average of the two sample means unbiased? Is this the best estimator you can construct? (e) For the previous example, if relevant construct a BLUE estimator. If not, prove why the mean of the sample means is best.