Homework 2 Done
Homework 2 Done
1. Yi = α + ei , ei ∼ i.i.d.(0, σ 2 ), i = 1, 2, ..., T.
a) Derive the least squares estimator α̂.
T
(Yi − α̂)2 is minimized.
X
α̂ is chosen such that
i=1
T
X
(-2) (Yi − α̂) = 0
i=1
XT
⇐⇒ Yi − T.α̂ = 0
i=1
T
X
⇐⇒ α̂ = T1 . Yi = Ȳ .
i=1
α̂ is unbiased if E(α̂) = α.
From question a), we have that the least squares estimator α̂ is the sample mean Ȳ .
T T T
1
X
1
X
1
X 1
So E(α̂) = E(Ȳ ) = E( T . Yi ) = T E(Yi ) = T α = .T.α = α.
i=1 i=1 i=1 T
a) Find the average salary and the average tenure in the sample.
The average salary is 865,864.4 dollars, and the average tenure is 7.95 years.
b) There are 5 CEOs in their first year. The longest tenure in this sample is 37 years.
1
dollars more in his or her salary.
2
The graph of eˆi versus xi :
βˆ1 − β1 0.0097236 − 0
t= = ≈ 1.53.
se(βˆ1 ) 0.0063645
At 95% confidence level, i.e., 5% significance level, the critical value tc = 1.9736 (with the
sample size T = 177 and 2 parameters, the degree of freedom is 177 - 2 = 175). Because t <
tc , again we fail to reject the null hypothesis that β1 = 0. The 95% confidence interval for β1
is [-0.0028374, 0.0222846], which includes 0.
3. Stata code
cd ”C:\mdong61\Dropbox (GaTech)\Computer\Documents\Semester I 2019 - 2020\Econometrics
I”
use ceosal2
summarize salary ceoten
count if ceoten == 0
reg salary ceoten
graph twoway scatter salary ceoten
3
graph twoway lfit salary ceoten
graph twoway (lfit salary ceoten) (scatter salary ceoten)
rvpplot ceoten
gen lnsalary = ln(salary)
reg lnsalary ceoten
test ceoten = 0
display invttail(175, 0.05/2)