Errors to fit parameters of scipy.optimize

前端 未结 3 1742
一向
一向 2020-12-30 13:27

I use the scipy.optimize.minimize ( https://docs.scipy.org/doc/scipy/reference/tutorial/optimize.html ) function with method=\'L-BFGS-B.

An

3条回答
  •  旧时难觅i
    2020-12-30 14:16

    It really depends what you mean by "errors". There is no general answer to your question, because it depends on what you're fitting and what assumptions you're making.

    The easiest case is one of the most common: when the function you are minimizing is a negative log-likelihood. In that case the hessian matrix returned by the fit is the covariance describing the Gaussian approximation to the maximum likelihood, which is a standard way of estimating errors in maximization of a likelihood.

    Beware that if you are fitting a different kind of function or are making different assumptions, then that doesn't apply.

提交回复
热议问题