What is obj$he(parameter_value) returning?

109 views
Skip to first unread message

Fredrik L. Aa

unread,
May 3, 2020, 4:46:09 PM5/3/20
to TMB Users
Hello,

I thought obj$he returned the analytical hessian.

However, when I consider a  multivariate normal distritbution, where the Hessian matrix is available on the web,
obj$he and the analytical expression do not match. I have attached the code and also the analytical expression (jump to page 73--the page number is in the right lower corner).

Best regards 

Fredrik 
LinExample3.cpp
Chapter2_MLE.pdf
HessianNormalDistribution.R

Hans Skaug

unread,
May 4, 2020, 2:04:28 AM5/4/20
to TMB Users
Hi, There is no problem with obj$he in TMB. I suspect that the difference is that the slides
do the differentiation with respect to sigma^2, while your TMB code is doing it wrt sigma.

Fredrik L. Aa

unread,
May 4, 2020, 2:43:55 AM5/4/20
to TMB Users
Hello Hans,

Thanks for your reply,

You are absolutely right,
Reply all
Reply to author
Forward
0 new messages