Econometrics I: Professor William Greene Stern School of Business Department of Economics
Econometrics I: Professor William Greene Stern School of Business Department of Economics
Econometrics I: Professor William Greene Stern School of Business Department of Economics
n
Sum of residuals: e
i1 i
i1 i
n 2
Sum of squares: e
n
Sum of absolute values of residuals: i1
ei
n
Absolute value of sum of residuals e
i1 i
e i 1 (yi - xi b) 2
n n
(yi - xi b) 2
2
i 1
n
i 1 i
b b b
i 1 2(yi - xi b)(-xi ) = -2 i 1 xi yi 2 i 1 xi xi b
n n n
= -2 n
i 1
xi y i 2
n
i 1
xi xi b
= -2X'y + 2X'Xb
1 1
1 1 1 n 1 n
b = X'X X'y i ` xi xi i ` xi yi
n n n n
Suggests something desirable about least squares
xi1
x
=in1 i 2 xi1 xi 2 ... xiK
...
xik
=in1xi xi
3-15/29 Part 3: Least Squares Algebra
Does b Minimize e’e?
in1 xi21 in1 xi1 xi 2 ... in1 xi1 xiK
n
e'e
2
x x n
x 2
... in1 xi 2 xiK
2 X'X = 2 i 1 i 2 i1 i 1 i 2
n
i'e = e = 0. The residuals sum to zero.
i 1 i
1 n
(3) It follows that i 1 ei = 0 which mimics E[i ] 0.
n
n
i'y = i=1
y i ny
i'y i'Xb + i'e = i'Xb so (1/n)i'y = (1/n)i'Xb
implies
y x b (the regression line passes through the means)
These do not apply if the model has no constant term.
I X XX X M
M is n n potentially huge
MX =