python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
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))
How...
Jacob2309
Votes: 0
Answers: 0
How to get Hessian Matrix from python minimize function?
Is there any way that we could get the Hessian matrix (so as to calculate the standard error) after getting the optimization result through scipy.minimize function?
The parameter of hessian in the min...
Jacob2309
Votes: 0
Answers: 2
How can I add multiple constraint groups to a diet model?
I struggle a bit to understand the different steps that are used in this example: diet.py, I've added the same code below. Also not an expert in modelling. As I understand it:
the first part makes tu...
Caroline Gebara
Votes: 0
Answers: 1
Scipy Minimize Ignores the Constraints
I want to estimate the parameters of a model using maximum-likelihood method. The model has 6 parameters A, n, B, w1, w2, and w3 and I know that the true values of them are 180, 0.5, 1.5, 0.35, 0.45, ...

H2H
Votes: 0
Answers: 1