Multiple Regression
Multiple Regression
β1
EARNINGS
EXP
1
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
β1
EARNINGS
EXP
Specifically, we will look at an earnings function model where hourly earnings, EARNINGS,
depend on years of schooling (highest grade completed), S, and years of work experience,
EXP.
2
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
β1
EARNINGS
EXP
The model has three dimensions, one each for EARNINGS, S, and EXP. The starting point
for investigating the determination of EARNINGS is the intercept, β1.
3
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
β1
EARNINGS
EXP
Literally the intercept gives EARNINGS for those respondents who have no schooling and
no work experience. However, there were no respondents with less than 6 years of
schooling. Hence a literal interpretation of β1 would be unwise.
4
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
β 1 + β 2S
β1
pure S effect
EARNINGS
EXP
The next term on the right side of the equation gives the effect of variations in S. A one year
increase in S causes EARNINGS to increase by β2 dollars, holding EXP constant.
5
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
β1 + β3EXP
pure EXP effect
β1
EARNINGS
EXP
Similarly, the third term gives the effect of variations in EXP. A one year increase in EXP
causes earnings to increase by β3 dollars, holding S constant.
6
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
β1 + β2S + β3EXP
β1 + β3EXP combined effect of S
pure EXP effect and EXP
β 1 + β 2S
β1
pure S effect
EARNINGS
EXP
Different combinations of S and EXP give rise to values of EARNINGS which lie on the plane
shown in the diagram, defined by the equation EARNINGS = β1 + β2S + β3EXP. This is the
nonstochastic (nonrandom) component of the model.
7
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
β1 + β2S + β3EXP + u
u
β1 + β2S + β3EXP
β1 + β3EXP combined effect of S
pure EXP effect and EXP
β 1 + β 2S
β1
pure S effect
EARNINGS
EXP
The final element of the model is the disturbance term, u. This causes the actual values of
EARNINGS to deviate from the plane. In this observation, u happens to have a positive
value.
8
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
β1 + β2S + β3EXP + u
u
β1 + β2S + β3EXP
β1 + β3EXP combined effect of S
pure EXP effect and EXP
β 1 + β 2S
β1
pure S effect
EARNINGS
EXP
A sample consists of a number of observations generated in this way. Note that the
interpretation of the model does not depend on whether S and EXP are correlated or not.
9
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
β1 + β2S + β3EXP + u
u
β1 + β2S + β3EXP
β1 + β3EXP combined effect of S
pure EXP effect and EXP
β 1 + β 2S
β1
pure S effect
EARNINGS
EXP
However we do assume that the effects of S and EXP on EARNINGS are additive. The
impact of a difference in S on EARNINGS is not affected by the value of EXP, or vice versa.
10
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
The regression coefficients are derived using the same least squares principle used in
simple regression analysis. The fitted value of Y in observation i depends on our choice of
b1, b2, and b3.
11
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
uˆ i = Yi − Yˆi = Yi − b1 − b2 X 2 i − b3 X 3 i
The residual ei in observation i is the difference between the actual and fitted values of Y.
12
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
uˆ i = Yi − Yˆi = Yi − b1 − b2 X 2 i − b3 X 3 i
= ∑ uˆ= ∑ (Y − b1 − b2 X 2 i − b3 X 3 i )
2 2
RSS i i
We define RSS, the sum of the squares of the residuals, and choose b1, b2, and b3 so as to
minimize it.
13
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
uˆ i = Yi − Yˆi = Yi − b1 − b2 X 2 i − b3 X 3 i
= ∑ uˆ= ∑ (Y − b − b2 X 2 i − b3 X 3 i )
2 2
RSS i i 1
= ∑ (Y + b + b X
i
2 2
1
2
2
2
2i + b32 X 32i − 2b1Yi − 2b2 X 2 iYi
− 2b3 X 3 iYi + 2b1b2 X 2 i + 2b1b3 X 3 i + 2b2 b3 X 2 i X 3 i )
= ∑ Yi 2 + nb12 + b22 ∑ X 22i + b32 ∑ X 32i − 2b1 ∑ Yi
− 2b2 ∑ X 2 iYi − 2b3 ∑ X 3 iYi + 2b1b2 ∑ X 2 i
+ 2b1b3 ∑ X 3 i + 2b2 b3 ∑ X 2 i X 3 i
14
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
uˆ i = Yi − Yˆi = Yi − b1 − b2 X 2 i − b3 X 3 i
+ 2b1b3 ∑ X 3 i + 2b2 b3 ∑ X 2 i X 3 i
15
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
( X X )(
∑ 2i 2 i ∑ 3i 3
− Y − Y ) ( X − X )2
− ∑ ( X 3 i − X 3 )(Yi − Y ) ∑ ( X 2 i − X 2 )( X 3 i − X 3 )
β2 =
ˆ
∑ ( X 2i − X 2 ) ∑ ( X 3i − X 3 ) − ( ∑ ( X 2i − X 2 )( X 3i − X 3 ) )
2 2 2
βˆ1 =
Y − βˆ2 X 2 − βˆ3 X 3
We thus obtain three equations in three unknowns. Solving these equations, we obtain
expressions for the specific values that satisfy the OLS criterion. (The expression for β̂ 3 is
the same as that for β̂ 2 , with the subscripts 2 and 3 interchanged everywhere.)
16
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
( X X )(
∑ 2i 2 i ∑ 3i 3
− Y − Y ) ( X − X )2
− ∑ ( X 3 i − X 3 )(Yi − Y ) ∑ ( X 2 i − X 2 )( X 3 i − X 3 )
β2 =
ˆ
∑ ( X 2i − X 2 ) ∑ ( X 3i − X 3 ) − ( ∑ ( X 2i − X 2 )( X 3i − X 3 ) )
2 2 2
βˆ1 =
Y − βˆ2 X 2 − βˆ3 X 3
17
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
( X X )(
∑ 2i 2 i ∑ 3i 3
− Y − Y ) ( X − X )2
− ∑ ( X 3 i − X 3 )(Yi − Y ) ∑ ( X 2 i − X 2 )( X 3 i − X 3 )
β2 =
ˆ
∑ ( X 2i − X 2 ) ∑ ( X 3i − X 3 ) − ( ∑ ( X 2i − X 2 )( X 3i − X 3 ) )
2 2 2
βˆ1 =
Y − βˆ2 X 2 − βˆ3 X 3
However, the expressions for the slope coefficients are considerably more complex than
that for the slope coefficient in simple regression analysis.
18
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
( X X )(
∑ 2i 2 i ∑ 3i 3
− Y − Y ) ( X − X )2
− ∑ ( X 3 i − X 3 )(Yi − Y ) ∑ ( X 2 i − X 2 )( X 3 i − X 3 )
β2 =
ˆ
∑ ( X 2i − X 2 ) ∑ ( X 3i − X 3 ) − ( ∑ ( X 2i − X 2 )( X 3i − X 3 ) )
2 2 2
βˆ1 =
Y − βˆ2 X 2 − βˆ3 X 3
For the general case when there are many explanatory variables, ordinary algebra is
inadequate. It is necessary to switch to matrix algebra.
19
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
ˆ
EARNINGS =
−14.67 + 1.88 S + 0.98 EXP
Here is the regression output for the wage equation using Data Set 21.
20
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
ˆ
EARNINGS =
−14.67 + 1.88 S + 0.98 EXP
It indicates that hourly earnings increase by $1.88 for every extra year of schooling and by
$0.98 for every extra year of work experience.
21
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
ˆ
EARNINGS =
−14.67 + 1.88 S + 0.98 EXP
Literally, the intercept indicates that an individual who had no schooling or work experience
would have hourly earnings of –$14.67.
22
MULTIPLE REGRESSION WITH TWO EXPLANATORY VARIABLES: EXAMPLE
ˆ
EARNINGS =
−14.67 + 1.88 S + 0.98 EXP
Obviously, this is impossible. The lowest value of S in the sample was 8. We have obtained
a nonsense estimate because we have extrapolated too far from the data range.
23
Copyright Christopher Dougherty 2016.
Individuals studying econometrics on their own who feel that they might benefit
from participation in a formal course should consider the London School of
Economics summer school course
EC212 Introduction to Econometrics
http://www2.lse.ac.uk/study/summerSchools/summerSchool/Home.aspx
or the University of London International Programmes distance learning course
EC2020 Elements of Econometrics
www.londoninternational.ac.uk/lse.
2016.04.28