I'm using scipy.optimize.minimize, method = 'trust-constr'.
Does anyone know how to retrieve the Hessian at the minimum when using method = ‘trust-constr’? I would like to use the Hessian to compute standard errors of my estimates.
I'm using scipy.optimize.minimize, method = 'trust-constr'.
Does anyone know how to retrieve the Hessian at the minimum when using method = ‘trust-constr’? I would like to use the Hessian to compute standard errors of my estimates.
Copyright © 2021 Jogjafile Inc.
Lets assume you have formulated your problem (in this MCVE a least square problem):
You have some data and uncertainty on it:
When you minimize, it recovers the initial parameters:
What you need is to assess the Hessian of the function at the solution:
And invert the Hessian matrix to estimate the Covariance matrix:
From this you can draw uncertainty on each parameter: