Multiple Regression Analysis (MLR)
Multiple Regression Analysis (MLR)
1. Estimation
y 0 1 x1 2 x2 ... k xk , so
y x x ... x ,
1 1 2 2 k k
Economics 20 - Prof. 3
A Partialling Out Interpretation
Consider the case where k 2, i.e.
y x x , then
0 1 1 2 2
1 ri1 yi r 2
i1 , where ri1 are
the residuals from the estimated
regression x1 0 2 x2
Economics 20 - Prof. 4
Partialling Out continued
Previous equation implies that regressing y
on x1 and x2 gives same effect of x1 as
regressing y on residuals from a regression of
x1 on x2
This means only the part of xi1 that is
uncorrelated with xi2 are being related to yi so
were estimating the effect of x1 on y after x2
has been partialled out
Economics 20 - Prof. 5
Simple vs Multiple Reg Estimate
~ ~ ~
Compare the simple regression y 0 1 x1
with the multiple regression y 0 1 x1 2 x2
~
Generally, 1 1 unless :
0 (i.e. no partial effect of x ) OR
2 2
Economics 20 - Prof. 6
Goodness-of-Fit
We can think of each observation as being made
up of an explained part, and an unexplained part,
yi y i ui We then define the following :
y y is the total sum of squares (SST)
2
i
R2 = SSE/SST = 1 SSR/SST
Economics 20 - Prof. 8
Goodness-of-Fit (continued)
We can also think of R 2 as being equal to
the squared correlation coefficient between
the actual yi and the values y i
y y y y
2
y y y y
i i
R 2
2 2
i i
Economics 20 - Prof. 9
More about R-squared
R2 can never decrease when another
independent variable is added to a
regression, and usually will increase
Economics 20 - Prof. 10
Assumptions for Unbiasedness
Population model is linear in parameters:
y = 0 + 1x1 + 2x2 ++ kxk + u
We can use a random sample of size n,
{(xi1, xi2,, xik, yi): i=1, 2, , n}, from the
population model, so that the sample model
is yi = 0 + 1xi1 + 2xi2 ++ kxik + ui
E(u|x1, x2, xk) = 0, implying that all of the
explanatory variables are exogenous
None of the xs is constant, and there are no
exact linear relationships among them
Economics 20 - Prof. 11
Too Many or Too Few Variables
What happens if we include variables in
our specification that dont belong?
There is no effect on our parameter
estimate, and OLS remains unbiased
~
1 xi1 x1 yi
x x1
2
i1
Economics 20 - Prof. 13
Omitted Variable Bias (cont)
Recall the true model, so that
yi 0 1 xi1 2 xi 2 ui , so the
numerator becomes
x x
i1 1 0 1 xi1 2 xi 2 ui
x x 2 xi1 x1 xi 2 xi1 x1 ui
2
1 i1 1
Economics 20 - Prof. 14
Omitted Variable Bias (cont)
~
1 2
x x x x
i1 1 i2 i1 x1 ui
x x x x1
2 2
i1 1 i1
~
E 1 1 2
x x x
i1 1 i2
x x
2
i1 1
Economics 20 - Prof. 15
Omitted Variable Bias (cont)
x x
2
i1 1
~ ~
so E 1 1 2 1
Economics 20 - Prof. 16
Summary of Direction of Bias
Corr(x1, x2) > 0 Corr(x1, x2) < 0
Economics 20 - Prof. 17
Omitted Variable Bias Summary
Two cases where bias is equal to zero
2 = 0, that is x2 doesnt really belong in model
x1 and x2 are uncorrelated in the sample
Economics 20 - Prof. 19
Variance of the OLS Estimators
Now we know that the sampling
distribution of our estimate is centered
around the true parameter
Want to think about how spread out this
distribution is
Much easier to think about this variance
under an additional assumption, so
Assume Var(u|x1, x2,, xk) = 2
(Homoskedasticity)
Economics 20 - Prof. 20
Variance of OLS (cont)
Let x stand for (x1, x2,xk)
Assuming that Var(u|x) = 2 also implies
that Var(y| x) = 2
Economics 20 - Prof. 21
Variance of OLS (cont)
Given the Gauss - Markov Assumptions
2
Var j , where
SST j 1 R j
2
Economics 20 - Prof. 23
Misspecified Models
2
~ ~ ~ ~
y 0 1 x1 , so that Var 1
SST1
~
Thus, Var Var unless x and
1 1 1
Economics 20 - Prof. 24
Misspecified Models (cont)
While the variance of the estimator is
smaller for the misspecified model, unless
2 = 0 the misspecified model is biased
Economics 20 - Prof. 25
Estimating the Error Variance
We dont know what the error variance, 2,
is, because we dont observe the errors, ui
thus, se SST 1 R
j j
2 12
j
df = n (k + 1), or df = n k 1
df (i.e. degrees of freedom) is the (number
of observations) (number of estimated
parameters)
Economics 20 - Prof. 27
The Gauss-Markov Theorem
Given our 5 Gauss-Markov Assumptions it
can be shown that OLS is BLUE
Best
Linear
Unbiased
Estimator
Thus, if the assumptions hold, use OLS
Economics 20 - Prof. 28