# Estimation Problem

**URL:** <https://forum.dynare.org/t/estimation-problem/2970>\
**Category:** Dynare help (legacy posts)\
**Created:** [21 February 2013 17:20 UTC](https://forum.dynare.org/t/estimation-problem/2970 "2013-02-21T17:20:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![irisqueiroz](https://forum.dynare.org/letter_avatar_proxy/v4/letter/i/d26b3c/32.png) [@irisqueiroz](https://forum.dynare.org/u/irisqueiroz)\
**Post date:** [21 February 2013 17:20 UTC](https://forum.dynare.org/t/estimation-problem/2970/1 "2013-02-21T17:20:15Z")

</div>

Hi,

I’m running a model that’s suposed to make a bayesian estimation. It gives me a result, but this message appears:

POSTERIOR KERNEL OPTIMIZATION PROBLEM!  
(minus) the hessian matrix at the “mode” is not positive definite!  
=\> posterior variance of the estimated parameters are not positive.  
You should try to change the initial values of the parameters using  
the estimated\_params\_init block, or use another optimization routine.  
Warning: The results below are most likely wrong!

What this means?

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [22 February 2013 07:44 UTC](https://forum.dynare.org/t/estimation-problem/2970/2 "2013-02-22T07:44:08Z")

</div>

The message is pretty explicit. The mode you found is probably not a minimum as shown by the second order conditions (the Hessian matrix of second derivatives is not positive semi-definite). It might be that the message just derives from numerical inaccuracies, it could be that the mode-finder got stuck, or that you found a saddlepoint. Try mode\_compute=6, which often helps.
