[SciPy-User] least square fit with weight in linalg.lstsq

Charles R Harris charlesr.harris@gmail....
Tue Dec 7 13:33:36 CST 2010

On Tue, Dec 7, 2010 at 12:25 PM, Xunchen Liu <xunchen.liu@gmail.com> wrote:

> Hello,
> I don't know if there is option to have weighting in least square fit?
> attached is the code I use linalg.lstsq to fit 4 parameters out of 6
> measurement.
> Also, how can I read the uncertainty of each parameters fitted?
There is no option for weights at the moment, nor for the covariance of the
fitted parameters. We should fix that up someday, but at the moment you need
to write your own implementation.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20101207/ab604759/attachment.html 

More information about the SciPy-User mailing list