logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Chris AddisonCriminology
(5/5)

693 Answers

Hire Me
expert
Carson FisherEnglish
(5/5)

868 Answers

Hire Me
expert
Adrian ReedFinance
(5/5)

953 Answers

Hire Me
expert
Nafees AliFinance
(5/5)

769 Answers

Hire Me
Econometrics
(5/5)

Again import the file mlbdata.xlsx from the course website in STATA. Generate the same variables

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Problem 1.

Consider the linear regression model without an intercept, 𝑦𝑖 = 𝛽π‘₯𝑖 + 𝑒𝑖. Assume 𝐸(𝑒𝑖|π‘₯1, … , π‘₯𝑛) = 0.

a) Similarly to Slide 4 of Notes #5, write down the average squared error as a function of 𝛽. Take a derivative with respect to 𝛽 and solve for the least squares estimator, 𝛽̂.

b) Substitute 𝑦𝑖 = 𝛽π‘₯𝑖 + 𝑒𝑖 into your formula for 𝛽̂ as we did on Slide 11 of Notes #4 and use the resulting expression along with the Law of Iterated Expectations to show 𝛽̂ is unbiased.

c) Suppose (for this part of the question only) that there are only two observations (𝑛 = 2). Write out the expression you found for 𝛽̂ in part b) without summation notation (just involving the four random variables 𝑒1, 𝑒2, π‘₯1, and π‘₯2). Now carefully explain why you need strict exogeneity, i.e., 𝐸(𝑒1|π‘₯1, π‘₯2) = 𝐸(𝑒2|π‘₯1, π‘₯2) = 0, in order to show that 𝛽̂ is unbiased.

d) Assume that Var(𝑒𝑖|𝒙) = 𝜎2 and Cov(𝑒 , 𝑒 |𝒙) = 0 for 𝑖 ≠ 𝑗 (i.e., Homoskedasticity). Write

down a formula for π‘‰π‘Žπ‘Ÿ(𝛽̂|𝒙) similar to Slide 9 of Notes #6.

 

Problem 2.

 

Again import the file mlbdata.xlsx from the course website in STATA. Generate the same variables

salaryk and pos1 (the dummy variable for first basemen) we used in Problem Set #2.

Note: This problem assumes that you know/remember the ‘two sample t-test’ from your ECON 121 or

Math 140 class. The TAs and I can go over this in office hours/recitation for those who don’t!

a) Repeat the t-tests in problems 4b) and 4c) from Problem Set #2 using regression (i.e., use the

reg command instead of ttest). Verify that the answers you get are numerically identical.

b) Using tabulate pos1, summarize(salaryk), how does the variance of salaries compare between first basemen and non-first basemen? Look back at the histograms from last week and see if your numeric results are supported by visual evidence. In Stata, the command sdtest performs a test where the null hypothesis is that the variances are equal. The syntax and usage of the ,by() option work the same way as for ttest. Use this command to test the null hypothesis that the variance of salaries is equal for first basemen vs non-first basemen.

c) Do these same t-tests using heteroskedasticity robust standard errors (the reg with the

,robust option. Using the 5% significance level, do your conclusions change? How?

d) Re-do the same tests as part c) with the ttest command, but this time use the ,unequal

option. How do the t-statistics compare with part c)?

e) Re-do the regression in the final slide of Notes #5 with heteroskedasticity robust standard errors. Do the results change?

 

 

Problem 3.

Show that the OLS intercept estimator, 𝛽̂0  = 𝑦̅  − 𝛽̂1π‘₯Μ… , is unbiased.

Begin by writing 𝑦𝑖  = 𝛽0  + 𝛽1π‘₯𝑖  + 𝑒𝑖.  Take an average of both sides to show 𝑦̅ = 𝛽0  + 𝛽1π‘₯Μ… + 𝑒̅. (Careful, 𝑒𝑖 are the unobservables computed using the ‘true’ coefficients, 𝛽0 and 𝛽1, not the OLS estimates 𝛽̂0  and 𝛽̂1, so 𝑒̅ is a random variable, not necessarily equal to zero!)

Now plug this expression for 𝑦̅ into the expression for 𝛽̂0  and take expected values to show 𝐸(𝛽̂0) = 𝛽0. Be specific about where and/or whether you are using i) Strict Exogeneity, and ii) the Law of Iterated Expectations.

 

 

 

 

Problem 4.

 

This time load the consump.dta file we talked about on Slide 7 of Notes #5. Instead of regression consumption spending growth (gc) on the current year’s disposable income growth (gy), suppose we regress gc on the previous year’s disposable income growth, which in this dataset is called gy_1.

a) Run a regression of gc on gy_1. What is the p-value associated with a test of the null hypothesis H0: 𝛽1=0? How does it compare with the regression on Slide 6 of Notes 4?

b) Use the correlate command with the ,covariance option to display the sample variance- covariance matrix of gc and gy_1. Verify that ‘covariance over variance’ gives you the same answer as the slope coefficient from the regression you ran in part a).

c) Make a plot of the residuals of this regression vs gy_1 using rvpplot gy_1. Do the residuals appear to be mean zero and uncorrelated with x?

d) In Stata entering the command predict u, resid after using the reg command stores the residuals from the preceding regression in a variable called u. Do this for the regression from part a) and verify that the residuals have sample mean and sample correlation with gy_1 exactly equal to zero. Explain why we know this will always be the case for residuals computed using the OLS estimates.

e) Make a scatterplot of gc vs gy_1. Using the same syntax as shown on the Slide 6, overlay the fitted regression line on the scatterplot. Visually, is the relationship stronger or weaker than that between of gc and gy?

f) If this relationship is weaker, why bother with this regression at all? (Hint: Suppose we’re sitting in December 2019 and we’re thinking about a tax increase that will take effect in 2020. The tax revenue raised will depend on consumption next year…)

 

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. ThisΒ  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme