Professional Documents
Culture Documents
03 Linear Regression Intro
03 Linear Regression Intro
Ignacio Sarmiento-Barbieri
1 Intro
3 Statistical Properties
4 Asymptotic Tests
5 Further Readings
3 Statistical Properties
4 Asymptotic Tests
5 Further Readings
3 Statistical Properties
4 Asymptotic Tests
5 Further Readings
y = Xβ + u (1)
I where
I y is a vector n × 1 with typical element yi
I X is a matrix n × k
I Note that we can represent it as a column vector X = [ X1 X2 . . . Xk ]
n×k n×1 n×1 n×1
I β is a vector k × 1 with typical element β j
80
70
y
60
50
4 6 8 10
X1
We would specify:
y = β 0 + β 1 X1 + u (2)
I How do we obtain β?
I Method of Moments H.W.
I MLE (more on this later)
I OLS: minimize SSR (e0 e)
I where e = Y − Ŷ = Y − X β̂
I FOC are
∂ẽ0 ẽ
=0 (7)
∂ β̃
∂ẽ0 ẽ
= − 2X0 y + 2X0 X β̃ = 0 (8)
∂ β̃
X0 X β̂ = X0 y (9)
70
y
60
50
4 6 8 10
X1
I The variance of β̂ 0
x̄2
2 1
Var( β̂ 0 ) = σ + n (11)
n ∑i=1 (xi − x̄)2
I and β̂ 1
σ2
Var( β̂ 1 ) = (12)
∑ni=1 (xi − x̄)2
1 Intro
3 Statistical Properties
4 Asymptotic Tests
5 Further Readings
I Large Sample
I Consistency: β̂ →p β
√
I Asymptotically Normal: N ( β̂ − β) ∼a N (0, S)
I and implies that ŷ is an unbiased predictor and minimum variance, from the class of
unbiased linear predictors (BLUP) H.W. proof
I and implies that ŷ is an unbiased predictor and minimum variance, from the class of
unbiased linear predictors (BLUP) H.W. proof
I However, it is essential to note the limitations of the theorem.
I Correctly specified with exogenous Xs,
I The term error is homoscedastic
I No serial correlation.
I Nothing about the OLS estimator being the more efficient than any other estimator one can
imagine.
3 Statistical Properties
4 Asymptotic Tests
5 Further Readings
y = β 0 + β 1 X1 + u (13)
H0 = β 1 = 0 (14)
H1 = β 1 6= 0 (15)
β̂ 1 − 0
t= (16)
SE( β̂ 1 )
I However, in some cases the asymptotic approximation need not be very good
I Especially with highly nonlinear models
I Resampling methods can allow us to somewhat quantify uncertainty and improve
on the asymptotic distribution approximations
I Bootstrapping, which is a popular resampling method, can be used as an alternative
to asymptotic approximations for obtaining standard errors, confidence intervals,
and p-values for test statistics.
3 Statistical Properties
4 Asymptotic Tests
5 Further Readings
I Davidson, R., & MacKinnon, J. G. (2004). Econometric theory and methods (Vol. 5). New York: Oxford
University Press.
I James, G., Witten, D., Hastie, T., & Tibshirani, R. (2013). An introduction to statistical learning (Vol. 112,
p. 18). New York: springer.