HW4 Solutions
HW4 Solutions
HW4 Solutions
n
X
˜ln (β
β) = [Yi · log pi + (1 − Yi ) · log(1 − pi )]
i=1
1
where pi = 1+exp(−X X iβ ) is the logistic function. Let us compute the partial derivatives of pi
with respect to βj :
∂ −1
pi = · exp(−X
X iβ ) · (−Xij )
∂βj X iβ ))2
(1 + exp(−X
∂ 1 − pi
=⇒ pi = −p2i (−Xij ) = pi (1 − pi )Xij
∂βj pi
1
by using the partial derivatives of pi
∂
pi = pi (1 − pi )Xij
∂βj
Since the observed Fisher information is just the negative of the Hessian, we have the following
Newton’s method
n n −1
(ν+1) (ν) (ν) (ν) (ν)
X X
β
β̂ β
= β̂ + (Yi − pi (β̂
β Xi
))X β
pi (β̂ )(1 − pi (β̂
β X Ti X i
))X , ν = 0, 1, 2, ...
i=1 i=1
where care must be taken to remember that X i and β are row vectors. Also note that since
the Hessian/Fisher information is a sum of outer products, it is positive semidefinite, ensuring
that it is symmetric.