PowerPoint

advertisement
Multiple Regression Analysis
y = b0 + b1x1 + b2x2 + . . . bkxk + u
1. Estimation
Economics 20 - Prof. Anderson
1
Parallels with Simple Regression
b0 is still the intercept
b1 to bk all called slope parameters
u is still the error term (or disturbance)
Still need to make a zero conditional mean
assumption, so now assume that
E(u|x1,x2, …,xk) = 0
Still minimizing the sum of squared
residuals, so have k+1 first order conditions
Economics 20 - Prof. Anderson
2
Interpreting Multiple Regression
yˆ  bˆ 0  bˆ 1 x1  bˆ 2 x 2  ...  bˆ k x k , so
 yˆ   bˆ 1 x1   bˆ 2 x 2  ...   bˆ k x k ,
so holding
x 2 ,..., x k fixed implies
that
 yˆ   bˆ 1 x1 , that is each b has
a ceteris pa ribus interpreta tion
Economics 20 - Prof. Anderson
3
A “Partialling Out” Interpretation
Consider t he case where k  2 , i.e.
yˆ  bˆ 0  bˆ1 x1  bˆ 2 x 2 , then
bˆ1 
 rˆ y   rˆ
i1
the residuals
regression
i
2
i1
, where rˆi1 are
from the estimated
xˆ1  ˆ 0  ˆ 2 xˆ 2
Economics 20 - Prof. Anderson
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 is being related to yi so
we’re estimating the effect of x1 on y after
x2 has been “partialled out”
Economics 20 - Prof. Anderson
5
Simple vs Multiple Reg Estimate
Compare the simple
~y  b~  b~ x
0
1 1
regression
with the
multiple regression
~
Generally, b 1  bˆ 1 unless :
yˆ  bˆ 0  bˆ 1 x1  bˆ 2 x 2
bˆ 2  0 (i.e. no partial effect of x 2 ) OR
x1 and x 2 are uncorrelat
ed in the sample
Economics 20 - Prof. Anderson
6
Goodness-of-Fit
We can think
of each observatio
up of an explained
y i  yˆ i  uˆ i
 y  y
  yˆ  y 
 uˆ is the
2
i
i
2
i
2
n as being made
part, and an unexplaine
We then define the following
d part,
:
is the total sum of squares (SST)
is the explained
sum of squares (SSE)
residual sum of squares (SSR)
Then SST  SSE  SSR
Economics 20 - Prof. Anderson
7
Goodness-of-Fit (continued)
How do we think about how well our
sample regression line fits our sample data?
Can compute the fraction of the total sum
of squares (SST) that is explained by the
model, call this the R-squared of regression
R2 = SSE/SST = 1 – SSR/SST
Economics 20 - Prof. Anderson
8
Goodness-of-Fit (continued)
2
We can also think of R as being equal to
the squared correlatio n coefficien
yˆ i
the actual y i and the values
R 
2
  y
  y
i
i

 y  yˆ i  yˆ
 y
2
  yˆ
i

2
 yˆ
Economics 20 - Prof. Anderson
t between

2
9
More about R-squared
R2 can never decrease when another
independent variable is added to a
regression, and usually will increase
Because R2 will usually increase with the
number of independent variables, it is not a
good way to compare models
Economics 20 - Prof. Anderson
10
Assumptions for Unbiasedness
Population model is linear in parameters:
y = b0 + b1x1 + b2x2 +…+ bkxk + 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 = b0 + b1xi1 + b2xi2 +…+ bkxik + ui
E(u|x1, x2,… xk) = 0, implying that all of the
explanatory variables are exogenous
None of the x’s is constant, and there are no
exact linear relationships among them
Economics 20 - Prof. Anderson
11
Too Many or Too Few Variables
What happens if we include variables in
our specification that don’t belong?
There is no effect on our parameter
estimate, and OLS remains unbiased
What if we exclude a variable from our
specification that does belong?
OLS will usually be biased
Economics 20 - Prof. Anderson
12
Omitted Variable Bias
Suppose the true model is given as
y  b 0  b 1 x1  b 2 x 2  u , but we
~
~
~
estimate y  b 0  b 1 x1  u , then
~
b1 
 x
 x
i1
i1
 x1  y i
 x1 
2
Economics 20 - Prof. Anderson
13
Omitted Variable Bias (cont)
Recall the true model, so that
y i  b 0  b 1 x i1  b 2 x i 2  u i , so the
numerator
 x
i1
becomes
 x1  b 0  b 1 x i1  b 2 x i 2  u i  
b 1   x i1  x1   b 2   x i1  x1 x i 2 
2
Economics 20 - Prof. Anderson
 x
i1
 x1 u i
14
Omitted Variable Bias (cont)
~
b  b1  b 2
 x
  x
i1
 x1  x i 2
i1
 x1
x


    x
i1
2
since E( u i )  0, taking expectatio
 
~
E b1  b1  b 2
 x
  x
i1
i1
 x1 u i
 x1 
2
ns we have
 x1  x i 2
i1
 x1 
Economics 20 - Prof. Anderson
2


15
Omitted Variable Bias (cont)
Consider t he regression
~
~
~
~
x 2   0   1 x1 then  1 
 
~
of x 2 on x1
 x
  x
i1
 x1  x i 2
i1
 x1 
2
~
so E b 1  b 1  b 2  1
Economics 20 - Prof. Anderson
16

Summary of Direction of Bias
Corr(x1, x2) > 0 Corr(x1, x2) < 0
b2 > 0
Positive bias
Negative bias
b2 < 0
Negative bias
Positive bias
Economics 20 - Prof. Anderson
17
Omitted Variable Bias Summary
Two cases where bias is equal to zero

b2 = 0, that is x2 doesn’t really belong in model

x1 and x2 are uncorrelated in the sample
If correlation between x2 , x1 and x2 , y is
the same direction, bias will be positive
If correlation between x2 , x1 and x2 , y is
the opposite direction, bias will be negative
Economics 20 - Prof. Anderson
18
The More General Case
Technically, can only sign the bias for the
more general case if all of the included x’s
are uncorrelated
Typically, then, we work through the bias
assuming the x’s are uncorrelated, as a
useful guide even if this assumption is not
strictly true
Economics 20 - Prof. Anderson
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) = s2
(Homoskedasticity)
Economics 20 - Prof. Anderson
20
Variance of OLS (cont)
Let x stand for (x1, x2,…xk)
Assuming that Var(u|x) = s2 also implies
that Var(y| x) = s2
The 4 assumptions for unbiasedness, plus
this homoskedasticity assumption are
known as the Gauss-Markov assumptions
Economics 20 - Prof. Anderson
21
Variance of OLS (cont)
Given the
 
Var bˆ j 
SST
j

Gauss - Markov Assumption
s
2

SST j 1  R
 x
2
j

, where
 x j  and R is the R
2
ij
from regressing
s
2
j
2
x j on all other x ' s
Economics 20 - Prof. Anderson
22
Components of OLS Variances
The error variance: a larger s2 implies a
larger variance for the OLS estimators
The total sample variation: a larger SSTj
implies a smaller variance for the estimators
Linear relationships among the independent
variables: a larger Rj2 implies a larger
variance for the estimators
Economics 20 - Prof. Anderson
23
Misspecified Models
Consider
again the
misspecifi
ed model
s
~
~
~
~
y  b 0  b 1 x1 , so that Var b 1 
SST 1
~
Thus, Var b 1  Var bˆ 1 unless x1 and
 
2
 
 
x 2 are uncorrelat
ed, then they ' re the same
Economics 20 - Prof. Anderson
24
Misspecified Models (cont)
While the variance of the estimator is
smaller for the misspecified model, unless
b2 = 0 the misspecified model is biased
As the sample size grows, the variance of
each estimator shrinks to zero, making the
variance difference less important
Economics 20 - Prof. Anderson
25
Estimating the Error Variance
We don’t know what the error variance, s2,
is, because we don’t observe the errors, ui
What we observe are the residuals, ûi
We can use the residuals to form an
estimate of the error variance
Economics 20 - Prof. Anderson
26
Error Variance Estimate (cont)
sˆ 
2
thus,
 uˆ  n  k  1  SSR df
se bˆ   sˆ SST 1  R 
2
i
j
j
2
j
1 2
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. Anderson
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. Anderson
28
Download