版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
‘1Chapter
3Further
development
and
analysis
of
theclassical
linear
regression
model西北大学《金融计量学》Multiple
Linear
Regression‘Before,
we
have
used
the
modelyt
a
bxt
utt=
1,2,...,T
But what
if
our
dependent
(y)
variable depends
on
more than
oneindependent
variable?For
example
the
number
of
cars
sold
might
plausibly
depend
onthe
price
of
carsthe
price
of
public
transportthe
price
of
gasthe
extent
of
the
public’s
concern
about
global
warmingMultiple
Linear
Regression‘Similarly,
stock
returns
might
depend
on
several
factors.
Having
just
one
independent
variable
is
no
good
in
this
case
-
we
want
tohave
more
than
one
x
variable.
It
is
very
easy
to
generalise
the
simplemodel
to
one
with
k-1
regressors
(independent
variables).Multiple
Regression
and
the
Constant
Term•yt
b1b
2
x2t
b3
x3t...b,ktx=1kt,2,..u.t,T1b1
is
the
coefficient
attached
to
the
constant
term.1
Where
is
x1?
It
is
the
constant
term.
In
fact
the
constant
term
is
usuallyrepresented
by
a
column
of
ones
of
length
T:11xb
2
measures
the
effect
of
x
2
on
y
afterNow
we
write
eliminating
the
effects
of
x3
,
x
4,
xk‘Different
Ways
of
Expressing
the
Multiple
Linear
Regression
ModelWe
could
write
out
a
separate
equation
for
every
value
of
t:2
x212
x22b
3
x31b
3
x32......b
k
xk1b
k
xk
2u1u2b
k
xkTuTy1b1by2b1byTb1b2
x2Tb
3
x3T...Different
Ways
of
Expressing
the
Multiple
Linear
Regression
Model‘wherey
is
T
1X
is
T
kb
is
k
1u
is
T
1We
can
write
this
in
matrix
formy
=
Xb
+uInside
the
Matrices
of
theMultiple
Linear
Regression
Model‘e.g.
if
k
is
2,
we
have
2
regressors,
one
of
which
is
a
column
of
ones:T
1T
1yTu1u2222y1yx21x11b1b
2x2T
uT1T
2
2
1How
Do
We
Calculate
the
Parameters
(the
b
Vector)in
this
Case?‘uˆ2uˆPreviously,
we
took
the
residual
sum
of
squares,
and
minimised
itw.r.t.
a
and
b.In
the
matrix
notation,
we
haveuˆ12222uˆt1uˆ
2
uˆ
.T..uˆˆTuTu2ˆuˆTThe
RSS
would
be
given
byuˆ1L
u
"uˆ
ˆu
u1
ˆ
2
ˆuˆThe
OLS
Estimator
fortheMultiple
Regression
Model‘"ˆ
ˆL
u
u
(
y
xbˆ)"
(
yxbˆ)(y"
bˆ"
x"
)(
y
xbˆ)y"
xbˆ
bˆ"
x"
xbˆbˆ"
x"
xbˆL0bˆ(x"
x)1
x"
ybˆy"
y
bˆ"
x"
yy"
y
b1
2ˆbˆ"
x"
ybˆ2bˆkerrors,
s
2,
we
usedT
2s
2uˆt
.Standard
Errors
of
the
Coefficient
Estimates
for
theMultiple
Regression
Modela
bxtIn
bivariate
regression
y2
t
ut
,
to
estimate
the
varianceIn
multiple
linear
regression,
wse2use
u"
uT
kIntercept
+
one
coefficient‘#
of
regressors+interceptIt
can
be
proved
that
the
OLS
estimator
of
the
variance
of
bdiagonal
elements
of
s2(
X
"
X
)‘1
,
so
that
the
variance
of
bis
given
by
t1is
the
firstelement,
the
variance
of
b
2
is
the
second
element,
and
…,
and
the
variancof
b
k
is
the
kth
diagonal
element.Standard
Errors
of
the
Coefficient
Estimates
for
theMultiple
Regression
ModelCalculating
Parameter
and
Standard
Error
Estimatesfor
Multiple
Regression
Models:
An
ExampleExample:
The
following
model
with
k=3
is
estimated
over
15
observations:y
b
1
b
2
x2
b
3
x3
uCalculate
the
coefficient
estimates
and
their
standard
errors.s20.91RSS
10.96T
k
15
3(
X
"
X
)and
the
following
data
have
been
calculated
from
the
original
X’s.3.02.0
31..50
6.5
,(
X
"
y1).0
2.2 ,
u
"
u
10.961
16.3.0.55
4.3
0.6-1.0
6.5
4.3
0.6To
calculate
the
standard
errors,
we
n1e9.e8d8an
estimate
of
s
2.1.1b1ˆˆ2bbˆ3("x
x)12.0
3.5
-1.0
3"x
y
3.5
1.0
6.5bˆ
2.24.4Calculating
Parameter
and
Standard
Error
Estimatesfor
Multiple
Regression
Models:
An
Example
(cont’d)‘bis
given
The
variance-covariance
matrix
ofbySE
(b11SE
(b22Var(bVar(bVar(b)
1.83)
0.91)
3.93SE
(b)
1.35)
0.96)
1.9833We
write:19.88
x3tyˆ
1.101.354.40
x2
t0.961.981.830.91
5.94The
variances
are
on
the
leading
diagonal:Var(bˆ)1s2
(
X
"
X
)
0.91(
X
"
X
)10.913.20
0.915.39.4203.93Testing
Multiple
Hypotheses:
The
F-test‘
T-test
to
test
single
hypotheses,
i.e.
hypotheses
involving
only
onecoefficient.F-test
is
for
multiple
hypothesesTesting
Multiple
Hypotheses:
The
F-test‘F-test
involves
estimating
2
regressions:The
unrestricted
regression
is
the
one
in
which
the
coefficients
are
freeldetermined
by
the
data,
as
we
have
done
before.The
restricted
regression
is
the
one
in
which
the
coefficients
are
restrici.e.
the
restrictions
are
imposed
on
some
bs.The
F-test:Restricted
and
Unrestricted
Regressions‘ExampleThe
general
regression
isyt
=
b1
+
b2x2t
+
b3x3t
+
b4x4t
+
ut(1)
(unrestricted
regression)some
theory
predicts
that:
b3
+b4
=
1s.t.
b3
+b4
=
1yt
=
b1
+
b2x2t
+
b3x3t
+
b4x4t
+
ut(restricted
regression)The
F-test:Restricted
and
Unrestricted
Regressions‘
We
substitute
the
restriction
(b3
+b4
=
1)
into
the
regression
so
that
it
isautomatically
imposed
on
the
data.b3
+b4
=
1
b4
=
1-
b3
(substitute
into
equation
(1))The
F-test:
Forming
the
Restricted
Regressionyt
=
b1
+
b2x2t
+
b3x3t
+
(1-b3)x4t
+
ut
yt=
b1
+
b2x2t
+
b3x3t
+
x4t
-
b3x4t
+
utGather
terms
in
b’s
together
and
rearrange(yt
-
x4
t
)=
b1
+
b2x2t
+
b3(x3t
-
x4t)
+
ut
This
is
the
restricted
regression.
We
actually
estimate
it
by
creating
two
nvariables,
call
them,
say,
Pt
and
Qt.Pt
=
yt
-
x4tQt
=
x3t
-
x4tsoPt
=
b1
+
b2x2t
+
b3
Qt
+
ut
is
the
restricted
regression
we
actually
estimate.‘Calculating
the
F-Test
Statistic‘The
test
statistic
is
given
byF
test
statisticRRSS
URSS
T
k
URSS
mwhere
URSS
=
RSS
from
unrestricted
regressionRRSS
=
RSS
from
restricted
regressionm
=
number
of
restrictionsT
=
number
of
observationsk
=
number
of
regressors
in
unrestricted
regressionincluding
a
constant
in
the
unrestricted
regression
(or
the
total
number
ofparameters
to
be
estimated).Understanding
the
F-testF
test
statistic
follows
a
F
distribution.Recall
that
OLS
regression
is
to
minimize
URSS.
If
RRSS
is
NOT
much
higher
than
URSS
the
restriction
issupported
by
the
data
If
RRSS
is
much
higher
than
URSS the
restriction
is
notsupported
by
the
data‘Understanding
the
F-test‘Usually
RRSS>URSS,
so
F-test
statistic
>0F-test
has
two
different
d.f.
(recall
that
T-Test
only
has
one
d.f.=T-K)•is
rejected
if
the
F
test
statistic>the
critical
F-valueH0F-distribution
Table‘Determining
the
Number
of
Restrictions
in
an
F-test‘Examples
:H0:
hypothesisb1
+
b2
=
2b2
=
1
and
b3
=
-1b2
=
0,
b3
=
0
and
b4
=
0No.
of
restrictions,
m123If
the
model
is
yt
=
b1
+
b2x2t
+
b3x3t
+
b4x4t
+
ut,andH0:
b2
=
0,
and
b3
=
0
and
b4
=
0
is
tested
by
the
regression
F-statistic.
Ittests
the
null
hypothesis
that
all
of
the
coefficients
except
the
interceptcoefficient
are
zero.
Note
the
form
of
the
alternative
hypothesis
for
all
tests
when
more
than
onerestriction
is
involved:
H1:
b2
0,
or
b3
0
or
b4
0What
we
Cannot
Test
with
Either
an
F
or
a
t-test‘
We
cannot
test
using
this
framework
hypotheses
which
are
not
linearor
which
are
multiplicative,
e.g.H0:
b2
b3
=
2
or
H0:
b2
2
=
1cannot
be
tested.F-test
Example‘Question:Suppose
a
researcher
wants
to
test
whether
the
returns
on
a
company
stock
(y)show
unit
sensitivity
to
two
factors
(factor
x2
and
factor
x3)
among
threeconsidered.
The
regression
is
carried
out
on
144
monthly
observations.
Theregression
is
yt
=
b1
+
b2x2t
+
b3x3t
+
b4x4t+
utWhat
are
the
restricted
and
unrestricted
regressions?If
the
two
RSS
are
436.1
and
397.2
respectively,
perform
the
test.Goodness
of
Fit:
R2
Goodness
of
fit
measures
how
well
the
model
fits
the
data,
or,
how
well
dothe
X
explain
the
variation
in
Y?Can
RSS
measures
the
goodness
of
fit?
No.
Because
RSS
is
unbounded
from
above
and
it
can
take
any
(non-negative
value
The
value
of
RSS
depends
to
a
great
extent
on
the
scale
of
Y.
e.g.
Y/10
hasless
RSS
than
Y.So
we
need
a
scaled
version
of
RSS:
R2If
this
is
high,
it
meansThe
model
fits
the
data
wellR2
is
the
square
of
the
correlation
coefficient
between
Y
and
y[-1,1][0,1]Goodness
of
Fit:R2‘
For
another
explanation,
recall
that
what
we
are
interested
in
doing
isexplaining
the
variability
of
y
about
its
mean
value,
,
i.e.
the
total
sum
ofsquares,
TSS:ttTSS
y2yGoodness
of
Fit:R2‘
We
can
split
the
TSS
into
two
parts,ESS(explained
sum
of
squares)
andRSS(the
part
which
we
did
not
explain
using
the
model
)Defining
R2That
is,
TSS=
ESS
+
RSSOur
goodness
of
fit
statistic
isR21RSSESS
TSS
RSS
TSS
TSSTSS
R2
must
always
lie
between
zero
and
one.
To
understand
this,
consider
twoextremesRSS
=
TSSi.e.ESS
=
0soR2
=
ESS/TSS
=
0ESS
=
TSSi.e.RSS
=
0soR2
=
ESS/TSS
=
1t
t‘ttttuˆ2y
y2yˆ
y2The
Limit
Cases:
R2
=
0
and
R2
=
1ytWhen
R2
=
0
,
the
model
hasno
any
ability
to
explain
the
variationof
Y,
this
would
happen
only
theestimated
coefficients
are
all
zero.yxt‘The
Limit
Cases:
R2
=
0
and
R2
=
1When
R2
=
1
,
the
model
hasexplained
all
of
the
variation
ytof
Y
about
its
mean
value,this
would
happen
only
in
the
casewhen
all
of
the
observations
lie
exactlyon
the
fitted
line.xt‘Problems
with
R2
as
a
Goodness
of
Fit
MeasureThere
are
a
number
of
them:1.R2
is
defined
as
the
variation
about
the
mean
of
y
(
y
)
,
so
if
a
model
isrearranged
and
the
dependent
variable
changes,
R2
will
change.
(ev
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025-2030年医疗机器人清洁与消毒行业跨境出海战略分析研究报告
- 2025-2030年化妆品活性成分行业跨境出海战略分析研究报告
- 2023-2028年中国轨道交通信号系统行业商业模式创新战略制定与实施分析报告
- 工程中心企业数字化转型与智慧升级战略分析报告
- 红岩中考模拟试题及答案
- 模块四:避坑与迭代-从“提示词工程师”到“流程设计师”
- 护士笔试试题及答案
- 2026年军队文职招聘面试预测题管理学
- 2026年文化传媒行业招聘题集
- 2026年抗洪救灾科普知识
- 太原市机动车排放检验机构检验服务记分制管理制度(试行)
- 2026完整版离婚协议书
- 广西雍融地产发展有限公司校招笔试题带答案
- 2026中煤绿能科技(北京)有限公司本部及所属企业招聘备考题库含答案详解
- 2026年初级社会工作者《社会工作综合能力》试题及答案
- 智慧中小学平台培训课件
- DB23∕T 3031-2021 玉米种质田间抗旱性鉴定技术规程
- 干熄焦安全培训课件
- 云南省楚雄彝族自治州2024-2025学年八年级下学期期末考试数学试卷(含答案)
- 运维培训知识课件
- 2025年徐州市中考地理生物合卷试题卷(含答案及解析)
评论
0/150
提交评论