Documente Academic
Documente Profesional
Documente Cultură
Week 5
Multiple Regression
(Partial and overall significance test)
Gujarati(2003): Chapter 6, 7
All rights reserved by Dr.Bill Wan Sing Hung - HKBU
5.2
Regression through the origin
The intercept term is absent or zero.
i.e., Yi = b 2 X i + ui
Yi ^ ^
SRF : Yi = b 2 X i
^
b2
0 Xi
and u~2
s^ 2 =
N -1
All rights reserved by Dr.Bill Wan Sing Hung - HKBU
5.4
Some feature of interceptless model
1. u
~
i need not be zero
can be occasions turn out to be negative.
2. R2 may not be appropriate for the summary
of statistics.
Y = b 1 + b 2 X+ u i Y = b2 X + u’i
^ xy XY
b2 = ~
=
x2 b2 X2
^ s
^2
Var (b2 ) =
^
s2
Var (b2 )=
~
x2 X2
s^ 2 =
^2
^ 2 = u’
u ~2
s
n-2 n -1
=
[ (X- X)(Y- Y)]
2
( XY )
2
R
(X- X) (Y- Y)
2
2 2
raw R = 2
( xy ) 2 X2 Y2
or R =2
x y 2 2
All rights reserved by Dr.Bill Wan Sing Hung - HKBU
5.6
Y
False SFR:
^ ^ X
Y = β’ 2
^
b1
X
10 50
False SFR:
^
Y = ^β2X
5
^
b1
X
10 50
^
b1
X
10 50
( ER i
- r f
)= b2 ( ER m
- r f
)
Example 1:(cont.)
b2
1
ERm - f
e
International interest rate differentials equal exchange rate
forward premium.
- e
i.e., (i - i ) = b2 (
* F
)
e
i - i*
Covered interest
parity line
b2
1
F -e
e
All rights reserved by Dr.Bill Wan Sing Hung - HKBU
5.12
Example 2:(Cont.)
in regression: E (b1 ) = 0
F -e
(i - i ) = b 1 + b 2(
*
) + ui
e
If covered interest parity holds, b1 is expected to be zero.
^=
Formal report: Y 1.0899 X R2=0.714 N=10
(5.689) SEE=19.54
All rights reserved by Dr.Bill Wan Sing Hung - HKBU
5.14
H0: b 1 = 0
1.279 - 0
7.668
^=
Y 1.2797 + 1.0691X R2=0.715 N=10
(0.166) (4.486) SEE=20.69
Multiple Regression
Y = b1 + b2 X2 + b3 X3 +…+ bk Xk + u
RSS ^ ^ ^
^ =2 ( Y - b - b X - b 3X3)(-1) = 0
b1 1 2 2
RSS ^ ^ ^
^ =2 ( Y - b - b X - b 3X3)(-X2) = 0
b2 1 2 2
RSS ^ ^ ^
^ =2 ( Y - b - b 2 2 b3X3)(-X3) = 0
X -
b3 1
^ X + b^ X X + b^ X 2 = X Y
b 1 3 2 2 3 3 3 3
^
(X’X) b = X’Y Matrix notation
n X2 Y
X2 X22 X2Y
X3 X2X3 X3Y (yx3)(x22) - (yx2)(x2x3)
^ =
b3 =
n X2 X3 (x22)(x32) - (x2x3)2
X2 X22 X2X3
X3 X2X3 X32
_ ^_ ^_
^
b1 = Y - b2X2 - b3X3
All rights reserved by Dr.Bill Wan Sing Hung - HKBU
5.19
or in matrix form:
(X’X) b^ = X’Y
3x3 3x1 3x1
^ = (X’X)-1 (X’Y)
==> b
3x1 3x3 3x1
^ ^ ^ ^
u 2
Var-cov(b) = su2 (X’X)-1 and su2 =
n-3
Variance-Covariance matrix
^ ^ ^ ^ ^
Var(b1) Cov(b1 b2) Cov(b1 b3)
^ ^ ^
Var-cov(b) = Cov (b2 b1) Var(b^2) Cov(b^ b
2 3
^)
Cov (b^3 b^1) Cov(b
^ ^b )
3 2 Var(b^ )
3
^
= su2(X’X)-1
All rights reserved by Dr.Bill Wan Sing Hung - HKBU
5.20
-1
n X2 X3
^ X2 X22 X2X3
= su2
X3 X3X2 X32
^ 2= u^2 u^2
and s u n-3 = n- k
k=3
# of independent variables
( including the constant term)
Y
= b2 : b2 measures the change in the mean
X2 values of Y, per unit change in X2,
holding X3 constant.
or The ‘direct’ or ‘net’ effect of a unit change in
X2 on the mean value of Y
Y holding X2 constant, the direct effect
= b3
X3 of a unit change in X3 on the mean
value of Y.
Holding constant:
To assess the true contribution of X2 to the change in
Y, we control the influence of X3.
All rights reserved by Dr.Bill Wan Sing Hung - HKBU
5.22
Properties of multiple OLS estimators
_ _ _
1. The regression line(surface)passes through the mean of Y1, X2, X3
_ _ _
i.e., ^ ^ ^
b1 = Y - b2X2 - b3X3 Linear in parameters
_
^ ^_ ^ _ Regression through the mean
==> Y = b1 + b2X2 + b3X3
_
2. ^ = Y + b^ x + b^ x
Y 2 2 3 3
Unbiased: E(b^)=b
i i
or y =^ b x +^
2 2 bx 3 3
4. ^ = uX
uX1
^ =0
2
^ k=0 )
(uX constant Var(ui) = s2
5. ^^
uY=0 random sample
All rights reserved by Dr.Bill Wan Sing Hung - HKBU
Properties of multiple OLS estimators 5.23
^
6. As X2 and X3 are closely related ==> var(b2) and var(b^3)
become large and infinite. Therefore the true values of b2
and b3 are difficult to know.
All the normality assumptions in the two-variables case regression
are also applied to the multiple variable regression.
But one addition assumption is
No exact linear relationship among the independent variables.
(No perfect collinearity, i.e., Xk Xj )
7. The greater the variation in the sample values of X2 or
X3, the smaller variance of b^2 and b
^ , and the
3
estimations are more precisely.
Y = b1 + b2 X2 + b3 X3 + u
Y TSS
sY n-1
s^ u
C
X2
X3
X4
^
Answer : Yes, b2 is statistically significant and is
significantly different from zero.
^
Answer: Yes, b3 is statistically significant and is
significantly different from zero.
All rights reserved by Dr.Bill Wan Sing Hung - HKBU
5.30
2. Testing overall significance of the multiple regression
H0 : b2 = … = bk = 0
if F > Fck-1,n-k ==> reject Ho
H1 : b2 … bk 0
All rights reserved by Dr.Bill Wan Sing Hung - HKBU
5.32
^ ^
Three- y = b2x2 + b3x3 + u^
variable ^ ^
y2 = b2 x2 y + b3 x3 y + u^2
case
TSS = ESS + RSS
ANOVA TABLE
Source of variation SS df(k=3) MSS
ESS ^ x y + b^ x y
b 3-1 ESS/3-1
2 2 3 3
RSS u
^2 n-3 RSS/n-3
(n-k)
TSS y2 n-1
R2 / (k-1) (k-1) F
F = Reverse : R2 =
(1-R2) / n-k (k-1)F + (n-k)
H0 : b2 = b3 = b4 = 0
H1 : at least one coefficient
is not zero.
b2 0 , or b3 0 , or b4 0
R2 / k-1
F* = 2
=
(1-R ) / n- k
0.9710 / 3
=
(1-0.9710) /16
= 179.13
Fc(0.05, 4-1, 20-4) = 3.24
k-1 n-k
Since F* > Fc ==> reject H0.
All rights reserved by Dr.Bill Wan Sing Hung - HKBU
Construct the ANOVA Table (8.4) .(Information from EViews) 5.36
Source of SS Df MSS
variation
2 2 2 2
Due to R (y ) k-1 R (y )/(k-1)
regression =(0.971088)(28.97771)2x19
(SSE) =15493.171 =3 =5164.3903
(1- R )(y ) or ( )
2 2 2 2 2
Due to n-k (1- R )(y )/(n-k)
Residuals =(0.0289112)(28.97771) )2x19
(RSS) =461.2621 =16 =28.8288
2
Total (y ) n-1
(TSS) =(28.97771) 2x19
=15954.446 =19
H0 : b 1 = b 2 = b 3 = 0
* ESS / k-1 R2 / k-1 0.707665 / 2
F = = =
RSS/(n- k) 2
(1-R ) / n- k (1-0.707665)/ 61
F* = 73.832
k-1 n-k
Since F* > Fc
==> reject H0.
(1- R )(y ) or ( )
2 2 2 2 2
Due to n-k (1- R )(y )/(n-k)
Residuals =(0.292335)(75397807)2x64
(RSS) =108003.37 =61 =1770.547
2
Total (y ) n-1
(TSS) =(75.97807)2x64
=369450.7 =63