Académique Documents
Professionnel Documents
Culture Documents
David T. Jacho-Chvez
Una variable aleatoria es simplemente una funcin que asigna un
nmero real a un evento o collecin de eventos. En estas notas denotaremos como X (mayscula) cualquier variable aleatoria genrica, y
como x (minscula) cualquier valor particular esta variable aleatoria
pueda tener.
Toda variable aleatoria posee una Funcin de Distribucin que se
define como
F ( x ) = Pr { X x } .
Si la variable aleatoria X posee momentos, entonces el valor esperado de
X se define como1
Z
E[ X ] =
xdF ( x ) ,
X
2
X.
var( X ) = E[ X 2 ] { E[ X ]}2 .
2
Notemos que
F ( x ) = Pr { X x } =
dF (u)
I (u x ) dF (u)
= E [I ( X x )] .
As mismo, uno puede crear estimadores basados en la integral emprica,
por ejemplo
3
Z
X
Esperanza Condicional
Z x
xd Fb ( x ) =
1
n
Xi
i =1
evaluacin de impacto
5. E[Y | X ] = E[ E[Y | X, Z ]| X ].
6. Si E[Y | X ] = E[Y ], entonces cov(Y, X ) = 0. De hecho, toda funcin
de X est incorrelacionada con Y.5
7. Si E[Y 2 ] < y E[ g( X )2 ] < para alguna funcin g(), entonces
5
La covarianza de dos variables
aleatorias Y y X se define como
cov(Y, X ) = E[YX ] E[Y ] E[ X ].
LALONDE.DES
Obs:
445
1.
age
age in years
2.
educ
years of schooling
3.
black
evaluacin de impacto
4.
hisp
4.
married
5.
nodegr
6.
re74
7.
re75
8.
re78
9.
u74
10. u75
11. treat
y = (y ) :=
0
y 0.
Entonces podemos escribir
Pr {y = 1|x} = Pr{y > 0|x} = Pr{x0 + > 0|x}
= Pr {y = 1|x} .
La funcin de verosimilitud
h
io
n n
Ln ( ) := ln L( |y, X) = yi ln[1 F|x (xi0 )] + (1 yi ) ln F|x (xi0 ) .
i =1
Ln ( ) =
1
n
ln
F|x qi xi0
i
i =1
Entonces
Ln ( )
1
=
qi f |x qi xi0
1
F q x 0 xi = : n
i i
|x
i =1
n
i =1
(yi , xi0 )
1
n ( )
=
.
x
i
0
n i
0
=1
2 L
Una vez que escogemos la especificacin funcional para F|x , el estimador de mxima verosimilitud se define como9
evaluacin de impacto
Ln ( )
b
Asy. Var( n( (C)ML )) = E
.
0
Name
Probit
Logit
Linear
. clear all
Gumbel
Cloglog
F|x (e)
(
t
)
dt
:= (e)
exp
(e)/[1 + exp(e)] := (e)
e<0
0
e
0e<1
1
e1
exp[ exp(e)]
1 exp[ exp(e)]
Re
.
. use "http://pages.iu.edu/~kphuynh/rsch/ic2015/lalonde.dta", clear
. gen re74sq=re74^2
. gen agesq=age^2
. gen educsq=educ^2
. global xlist age agesq educ educsq black hisp married nodegr re74 re74sq u74
.
. quiet probit treat $xlist
. predict phat_probit, pr
. estimate store Probit
.
. quiet logit treat $xlist
. predict phat_logit, pr
. estimate store Logit
.
. quiet cloglog treat $xlist
. predict phat_cloglog, pr
. estimate store Cloglog
.
. estimates table Probit Logit Cloglog, b(%9.3f) p
-------------------------------------------------Variable |
Probit
Logit
Cloglog
-------------+-----------------------------------age |
0.021
0.029
0.026
0.6992
0.7489
0.6815
agesq |
-0.000
-0.000
-0.000
0.6800
0.7068
0.7579
educ |
-0.510
-0.819
-0.603
0.0437
0.0464
0.0254
educsq |
0.026
0.042
0.031
0.0638
0.0672
0.0417
black |
-0.189
-0.306
-0.223
0.4077
0.4055
0.3936
evaluacin de impacto
hisp |
-0.567
-0.934
-0.739
0.0681
0.0679
0.0638
married |
0.146
0.239
0.171
0.3907
0.3856
0.4068
nodegr |
-0.265
-0.426
-0.310
0.2731
0.2739
0.2744
re74 |
0.000
0.000
0.000
0.9709
0.9908
0.9423
re74sq |
-0.000
-0.000
-0.000
0.5706
0.5963
0.5860
u74 |
-0.231
-0.379
-0.278
0.3416
0.3342
0.3475
_cons |
2.441
3.999
2.491
0.0588
0.0629
0.0725
-------------------------------------------------legend: b/p