[SciPy-User] How to print the jacobian in the output of leastsq function

Charles R Harris charlesr.harris@gmail....
Wed Aug 24 23:11:17 CDT 2011

On Tue, Aug 23, 2011 at 9:57 AM, Abraham Zamudio

> Hi All,
> i use  the leastsq function from module scipy ... but what I want now
> is the jacobian matrix of the algorithm ... How should I use this
> function to print the Jacobian ??? .
That's tricky, as what is returned is the qr factorization of the Jacobian
stored in condensed form containing the r part and what I think are the
vectors of the Householder reflections that can be used to generate q. In
addition, the columns are pivoted. So I think it would take a bit of
research and work to recover the Jacobian. Perhaps someone here knows a bit
more about the specific function used in this function. If you just want the
covariance of the coefficients, that is easier to get, but note the
documentation is incorrect, you need to multiply by the variance, not the
standard deviation.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20110824/111e4c7b/attachment-0001.html 

More information about the SciPy-User mailing list