联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp

您当前位置:首页 >> Web作业Web作业

日期:2024-09-12 05:39

ECMT 6002/6702: Econometric Applications

1 Practice problems

1. (Some basic algebra related to the OLS estimator) Suppose that observations (y1, . . . , yT ) and (x1, . . . , xT ) are given and define

Verify the following:

Consider the following simple linear regression model:

yt = α + βxt + ut

(v) Show that the OLS estimator is given by

2. (Simple linear regression)

(i) Consider the following simple linear regression model:

yt = α + βxt + ut

Let (α, β) be the OLS estimates and ut = yt − α − βxt . Verify that the sample average of u is exactly equal to zero.

(ii) Now consider the following regression model:

yt = βxt + ut

and let βˇ be the OLS estimate and ˇut = yt − ˇβxt . Is the sample average of ˇu still equal to zero?

(iii) Now consider the following regression model:

y˜t = β˜xt + ut ,

where

y˜t = yt − ¯y,

˜xt = xt − ¯x.

Let β˜ be the OLS estimate and ˜ut = ˜yt−˜β˜xt . Show that the OLS estimate β˜ is equivalent to β b in (i) and thus the sample average of ˜u is equal to zero.

(iv) Based on the results obtained in (i)-(iii), explain the role of the intercept.

2 Empirical application

Suppose that we are interested in the relationship between # of crimes and # of employed police officers on campus. The following model is considered:

Instructions:

1. Use the attached dataset. The dataset is considered in Wooldridge’s text book “Introductory Econometrics” and was collected from the FBI Uniform. Crime Report.

2. Check summary statistics for yt and xt . If you are using R, use summary(y) and summary(x) if y and x are the vectors contain the observations.

3. Compute the OLS estimates of α and β. In R, lm(y ∼ x) can be used. You can easily do this in any statistical package but, I would recommend you compute those by your own code (see (1.2)). Depending on which software is used, the estimates can be slightly different. But they must be close to the following obtained by lm(y ∼ x) in R:

α = −42.6 and β = 21.3.

4. This computing exercise is not mandatory; any computing code related to this application will not be asked in the exams. But you are strongly encouraged to work on this by yourself with your preferred statistical software (this will be helpful for your assignments).




版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp