Professional Documents
Culture Documents
HW #5
exp{yij (x0ij + ui )
f (yij |ui ) = .
1 + exp(x0ij + ui )
where ui is the current ui and u⇤i is the candidate draw from the jumping distribution.
2. Consider estimating the normal mean from observations y1 , . . . , yn , which are independent
from the N (✓, 1) distribution. Let the prior distribution for ✓ be N (µ, 1), where µ is a given
number.
a. Derive the posterior mean ✓˜ = E{✓|y (K) }, where y = (yi )1in and y (K) = (y, . . . , y),
where the y’s are independent copies repeated K times.
b. What is the MLE of ✓, ✓? ˆ
c. How di↵erent is the MLE from the posterior mean? Does the di↵erence vanish as K
increases? Does the choice of µ matter when K goes to infinity?
Let g be measurable ,
El glue) ) so
on
Actual proof
last page
. . . .
. .
the
ftp.g-nij.Btdiflyiglei
Bl Pig) log
b)
Yij #
Milos Pis t (t ki ) ly fi p
?
Did
- -
'
"
-
) -
Pig if .
, -
p, ;)
"'
fog ftp..ge
!i÷ nii 't
.
=p ,
=
log =
too
fhteeis
, .
→ pig
.
( a teii ) -
-
Elise as Pii =
Elis l
l -
Pig . p - =
flit
/ f erie It
→ fly
.gr/uiS.expd9iilnij9steiI41texpfnijtBtUi9
f- ( 4. lui ) =
¥! expdbislno.gr/BtUiI41texpEnoj'Btai }
*
Hid
,
x.
f- ( bilked I
texpdu.gr 'B tails
*
qexpdbijlxi ktllil-Yijltigktnif.si/texpEnoj'Btaiy } I 1-
exp { hog 'Btai* }
gift texpsnijitai !
}
*
⇐
"
"
P f9ij ( Ui -
ki A }
I
texpfq.jp + g a
,
a) I Yn n
NO ' ) O -
NIM D ,
ni in
. . .
. . ,
'"
ne
Y -
( Yi Yn ) Y =
( Y ,Yn Y ,Un . ! . . . .
Yn )
:
.
. .
. .
.
,
. . . .
.
. .
.
.
,
. .
.
.
,
( Yi Ya In )
Ya 92 Bn
=
-
, . . . . . . -
- -
,
, , , ,
,
m me -
k k k
Yi -
( Yi Yi )
Kritik exp f-%
.
-
}
,
.
( Sia ol
'
5- Gilo )
,
I
-
"
'
%
f- ( Y' lo )
exp f Yak ! }
''
HTT
'
-2 Iyo ol
-
> -
@itYkexpf.Yglo-ieJ2lgf oIymJ.y
f- (o ) =
MY
×
expf-tafk-2.la .
-
ol 't lo -
AM }.
]}
' '
to aorta
-
4
f Yg Ik -2in Yi aok-2iyitkno.to goatee 't
'
}
'
exp
-
let
simplify
k
-2in Yi '
-
aok-2iyitkm.IE
'
-
sortie
.
= OH at kn ) -
201k -291.tn/tk-2iYi2tM
'
aofkfyu.tn/tkIiyit9
' "
O -
'
.
I t kn t tkn
It kn
f lo Ffi
Him }
"
-
Holy " ) x
exp
k£9: th =§ variance EE t
Posterior mean
is
I fkn
A fkn
§ .
o :( KEY ta ) as B . - E' ( keg +
u
)
.
""
kexpf
-
b) Holy ) "'
-
Htt ) -
Yak -21%-0124
'
blob ) -2 ! ( )
""
Kzn log
'
29 Yi O
-
zk
= - -
of Eg H
=
-
.
2 . -
I .
-2 ! Yi -
o
'
-
O
kf-2.is ,
-
nof -
-
o as 8--271=5
MLK is g-
a) 8=5 -
( Yin ta
) 8=5
( t.at/..so--glo
.
)
B - E.
J -
O = NKT '
Ft 82M -
j
g- In # E' a) -
*tF'a
817 :* ) -
t t Fink
"
K -80 J -
O to
K sa
µ
-
- se 0
No , sthechrice M does not matter since Itnk
of
HI
to
Let g be measurable ,
El glue) ) so
a) Note
that is Big are
conditionally independent .
Ii ) re : only related to Yi
fu !
""
Ekdahl 's )
pfmfgnglui ) dude
-
.
I 1
.
=
I
In fan I
glad this )
fly )
da dy
dandy
f- ( y )
dis
fly )
↳ f! glue ) flu Ym )
=
:
.
In .
. .
.
da . da . . .
dyn
m
$44 ,
. .
.
,
Dm)
duo dy ,
.
f- ( Bo )
=
f- ( ghosts ) .