1 year ago

#69881

test-img

Jacob2309

How to obtain accurate standard errors of logit estimation in scipy.optimize.minimize?

Previously I tried

opt1 = minimize(logit, args = (df), x0=x_start,method = 'L-BFGS-B')
hessinv1 = opt1.hess_inv.todense()
hessinvm1 = np.asmatrix(hessinv1)
diag1 = np.sqrt(np.diagonal(hessinvm1))

However, it turns out that this Hessian matrix is very unreliable and the results of standard errors are not correct, which has also been mentioned here (LBFGS: Accuracy of Hessian approximation). Is there any way that we could obtain the standard error after the optimization process?

python

scipy

minimize

0 Answers

Your Answer

Accepted video resources