[SciPy-user] optimize.leastsq and uncertianty in results

Stephen Walton stephen.walton at csun.edu
Thu Feb 10 14:38:05 EST 2005


R. Padraic Springuel wrote:

> Is there a way to get the uncertainty in the resultant parameters out 
> of the optimize.leastsq fitting function?

optimize.leastsq? reveals that it can return a dictionary of optional 
values, among which is the Jacobian matrix fjac at the final step.  The 
diagonal elements of fjac times its transpose can be taken as the 
squares of the errors in the corresponding coefficients.




More information about the SciPy-User mailing list