Econometrics Lecture Notes
Econometrics Lecture Notes
mu
m Likelihood
are
unknown .
fly 10) =
probability density function for a rand .
vary .
L(Olyl=,flYi → Joint
density of
iid observations It shows the .
of .
Solve
for 2 02 ItFind points where tog -
Lik is max
)
.
:
Gradient (score ) vector
Hessian matrix
* Eoff (OOD
-
,
= O : First moment evaluated at true O is zero .
t={EoµjoY%§
-
① IM Estimator : -
¥ " , no ,
,
=
{ ICED
I'
observe that we have exp .
② Empirical Hessian
(-23%5692)
"
war µ, no,
IETTeakta
= -
-
,
.
③ Outer Product to PG )
t t
LESis EG Ei]
-
)
-
'
rope (8)
"a =
i
=
.
men
:*
:c
en
÷÷÷÷÷÷÷÷÷÷÷¥¥¥÷÷ :
④ Sandwich Estimator
Ei ]
t
wars (on y to) H to #
-
= H .
.
in:÷÷÷::::÷:i:::::::::::÷::::
estimators to satisfy BLUE
properties
Conditional ULE : F- (Ah B) = PLA 1131.743)
en Lkl data ) =
lnflyisxik ) =÷L enflyilxi -1¥
,
sa)
,
enslxik )
- -
Conditional Marginal
f = share of men
::::::::::
LL = noo .
{ en (( t S)
-
.
(tort)
) t n so .
{ en ( t -
f) .
Oz
}
+ not .
{ (f H
en .
-
oil )} thee .
{ en (d. Oil}
(nothing tlnootneh.int
} Nj:Si'Ffs,
= '
Mery Women
,¥nae
1- noo Ln . (t -
Oz ) t neo en Oz t not en (t O , )
. .
- t htt Ln Ot .
-
Employed or
unemployed .
and
Log - likelihood is
decomposed into marginal &
conditional LL
LL
Hypothesis Tests
*LK LK=-2(Lr-Lu)nX :
q is also
lN=[RE-qI[K{AsyHarlEB.K]7txE-e
=
RSS, - K Ssu
*LuiLu=fenff9IItodTµenLf)rx= me
* Pdf of
Normal distribution : fly lol =
(2h02It exp . ftp.fl-XBI)
In C Bane ) maximize the likelihood
order to
find UL E ,
we
log -
.
:÷÷÷÷÷÷÷i÷f
÷ """
22µL
202231
µ
t
?
%)
-
t
)
Remember IM
-
{
I ⑦o )
}
↳ asymptotic variance is
④
criterion is re -
estimator! extremism estimator .
Qn ( O ) =
In Egly ,
X O
,
) } Average of n
-
sub
functions .
This is it
more
general form of
MLE ,
satisfies properties of U LE .
LPM :
Response probability linear in parameters BJ : = 249=11×41 .
We
2 XJ
Interpretation
since
y is binary ,
conditional distribution D H Ix) is not normal .
}
Transform Xp by
→ predicted probabilities range outside [o D '
GC ) . { = link
function)
→
Marginal probabilities are sometimes non sense-
.
⇐ ×
13=951×7!! ?
'
logitm.de/:gcz,=eIez=eIIxp=N#
""
nap
I robit
Log
1- * →
#
→ it
. 132
* Effect of categorical variable :
D= G Bo ( t B, Kk ti) t 132×2) -
G (Bo -113, Get BzXz)
*
Effect of a
Dummy : D= G ( Bot Bit 132×2 ) -
G (Bo t 132×2)
PEA=T¥ ,
First
get the
mean
of
→
Evaluatefor
[email protected]
*i÷÷:÷÷÷÷:÷÷÷:::
en
(Ip ) =
xp .
If X changer by 1% ,
""
Yi
Phil Xi ) = [ GHi BD .
[I -
G (Xi BD , yi = o
,
t .
Then the
log -
likelihood
lil3)
in
=
Yi .
en [ GaliBD t H Yi ) en ( t
-
.
-
G ki BD =
(
en G 24i ( -
t ) .
XiB ))
LL Thus
for each observation . we sum all LL 's .
Variables ( E EV)
Endogenous Explanatory
-
y it = aik teh t
E '
gf then Yz
endogenous
p#
o is
, .
Ul = O, .lk t e
, O, = Cov (4th) Nar (vz) = ( PT2) HE = 9th
[email protected]#ekiD
y
*
Alternatively ,
we could follow two-step approach s .
t
→ OLS
of Yz on Z, I Zz and obtain Iz
→ Probit
of
Y, on Zi , Yz and Iz .
Test whether coefficient of Iz is
zero .
the 2 -
step approach ,
rather we
follow ULE . This is also called
" "
forbidden regression .
assuming
strict
exogeneity .
If Cin N ( o ,
of ) :
then ; PEA#Xt) = By 0C Xt B)
.
and
APE =
31cg 0(Xt Bc)
.
where Bc = 13/11+0240.5
Random Effects : P (bit = l l X it , Ci ) = (X it 13 tCi)
.
and it assumes;
plyit-tlxits-Ehit.to/hto2Pi# Be %ef.EE?efhusdoIenabYso
,
need to estimate of by
In random effects model we ,
assume no sandwich estimator .
ig+aaiyga
Yit*=YtXitptXTgtait Estimation equation :
yit-p.li#itXitl3-cituit&sextrgicetneeiIy9eniotuYgfIodineYu;taig}a .
deviation ( -
Yi ) doesn't solve the problem either because
, transformed
lagged dependent variable and error -
term are correlated . The solution
is to take first -
= # ( Xit B tf Yi t
.
,
- it Ci )
Yt
↳ Five Heckman
different solutions available . & IN ookidge Two most
popular ones .
÷: : :÷*¥+÷
"
i
. .. ....
't
y , if y > O
to HBK)
The
probability the
given by 144=01 )
* at corner is x : =L -
ftp.expf-tz.fY-gXIJ}
(
Yi-fl3-JLilp.rl-f-OIlxkr.DE#o?z.pfY-xf3y.c4i
Therefore the LL :
=L .
0
It (
to Stan dart LL .
can
be estimated
by OLS tu LE
Regression estimation)
probit model :
-
43,0=[214--0]
log-t-OIHBKDa-b-tff-1.LY
en L .
TT
i =D log -4 OIL
'
)) Thu
IOI (
-
-
X b x BK
)
Coefficient Interpretations :
→ Latent variable .
effects on
y . ELY IX) : Unconditional expectation
E (Y IX y > o ) Conditional
,
:
expectation
E (y l X ) = 144=01 x) .
O t Ply > ol x ) . E H IX, y > o )
EHlxt-OIXBHJ.EU/x#
-
Rule If =L NN lo, ) then
: t
,
for constant c ;
fIztzm=f¥
Thus '
Enix y >o) , =
xp to
µEHlY7=BstBs.dHxd3#=Bs{tHxBkDfxBk¥g
-
Partial Effect Expectation
of Conditional .
The
*
effect is
again not determined by By itself The sign .
of PE =
Sign of
=¥xBlN.Bs }
'
different values
of x .
No
endogenous
vars in RH s
Problems .
In Variables
censored regression → are
reported only to certain level .
Ex : INages are
reported up
to 70.000 E .
If the data are
missing Above
Threshold .
The censored normal regression is :
t.
{ Threshold level
Hi = min Yi Ci ,
} .
*
Regressing Wi on Xi would yield incorrect results
*
Regressing Yi on Xi would yield correct results but Yi ,
is unobserved .
{¥
" """ "" &" ""
" t " * " " " """
e -
ozfcizxil) ,
if wi = C"
different .
In censored
as in a linear model .
However ,
U LE estimation relies on normality and homes
tedasticity of
Ui Violation these two leads to inconsistent LULE)
.
of .
Yi =
Bot Xi B t Ui ,
4it Xi NN lo , 02 ) } Yi e Xi observed
if Yi sci Here
-
is not
sample a tandem one .
:÷÷÷÷÷÷÷:÷:::i:::::
Just in censored regression if
normality and homos kedashcity
-
as
, of
the error terms are violated, then MLE estimates are inconsistent .
Si Yi = Si Xi B t Si Ui
2) E ( S U l SXI , S Xz
,
. .
-
) =D :
Exogenous sample selection .
3) Selection depends on
exp .
Kars .
and some other
factors uncorrelated
The main
xp ECU 1×1=0
e
g
:
y = tu ,
The selection
eq : 5- I [ ZY t VZo] ,
X is a strict subset
of Z .
would
yield biased estimates unless
f
= 0 .
Estimation
of Heckman Model
entire
sample PCs l l Z) OI FEY) Then
using probit coefficients
calculate
= =
: .
OI Hii )
② Yi = Bo t Xi B t
f . 54 .
I terror , if p .
Tu to ,
there is selection bias .