2

I have minimized a log likelihood function using scipy.minimize and I want to compute the standard-errors associated to the parameters.

In cases in which parameters are not bounded, using numdifftools (nd.Gradient and nd.Hessian) works perfectly. I have issues when the parameters are bounded because nd.Gradient tries to compute the function with values of parameters out of bounds where the function is not defined.

My guess is that I should use the options relative to step (step_max, step_nom, etc.) but I do not understand how they work. Can anyone help me understand how to use them?

Thanks

Amir
  • 10,600
  • 9
  • 48
  • 75
Ariane
  • 173
  • 1
  • 2
  • 10

0 Answers0