[SciPy-User] Why scipy supply a different result comparing with matlab when doing multi-linear regression analysis
Mon Oct 19 11:44:35 CDT 2009
I will have a try!
2009/10/20 Robert Kern <firstname.lastname@example.org>
> 2009/10/19 王友忠 <email@example.com>:
> > Hello!
> > The data used in scipy and matlab is as the same.
> > There is an dependent variable Y and 9 independent variables X, each
> > variable has 90100 elements.
> > Each variable has been standardized.
> > In scipy, I used: c,resid,rank,sigma = linalg.lstsq(Y,X)
> That's backwards. You need linalg.lstsq(X,Y).
> Robert Kern
> "I have come to believe that the whole world is an enigma, a harmless
> enigma that is made terrible by our own mad attempt to interpret it as
> though it had an underlying truth."
> -- Umberto Eco
> SciPy-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User