Assignment 2
Instructions
For questions 1-2, you can submit a PDF or scanned copy of your work.consult with me if you don’t know how to accomplish this.
For questions 3-4, you must use STATA, and must turn in a copy of your Do-file. The Do-file must perform every task below neatly and correctly.
The work you hand in must be your own. You must NOT copy any answers from anyone or anywhere else. Please review FIU’s policy on academic misconduct for more information.
Questions
- Derive the critical values of β0^ and β1^ that minimize the residual sum of squares for the following sample regression model Yi=β0^+β1^Xi+ei^
- Derive the critical values of α0^ and α1^ that minimize the residual sum of squares for the following sample regression model Yi=α0^+α1^(Xi−X¯)+ei^
- Download this dataset and load it into STATA for this question. Alternatively you can load the dataset directly from http://estebanch.com/ECO4421/HW02/question4.dta
- a) Use the answers from question 1 to get the values for β0^ and β1^.
- b) Generate the predicted values of Y
- c) Calculate the mean of the true value of Y , and compare it to the mean of the predicted value of Y. Are they the equal?
- d) Generate the sample error term
- e) Derive the value of R2
- f) How much of the variation in Y is explained by X?
Hint: Use preserve, collapse, and restore to make everything a bit easier
- Download this dataset and load it into STATA for this question. Alternatively, you can load the dataset directly from http://estebanch.com/ECO4421/HW02/question5.dta
The dataset has information on CEOs of US Corporations. There are 177 observations, and two variables: ceoten has the years the individual has been a CEO of that company, and salary is the compensation in thousands of dollars.
- a) Find the average salary and the average tenure in the sample
- b) Identify how many CEOs are in their first year as CEO
- c) Estimate the values of the parameters β0^ and β1^ for the following simple regression model:
salaryi=β0^+β1^ceoteni+ei^
- d) On average, what is the predicted increase in salary given one additional year as CEO?
- e) How much of the variation in salary is explained by years as CEO?
- f) Is years as CEO a good predictor of the variation in CEO salary? Explain.