[SciPy-user] linear regression
Wed May 27 13:35:45 CDT 2009
On Wed, May 27, 2009 at 2:28 PM, <firstname.lastname@example.org> wrote:
> On Wed, May 27, 2009 at 12:35 PM, ms <email@example.com> wrote:
>> firstname.lastname@example.org ha scritto:
>>>> Have a look here <http://www.scipy.org/Cookbook/LinearRegression>
>>> y = Beta0 + Beta1 * x + Beta2 * x**2 is the second order polynomial.
>>> I also should have looked, polyfit returns the polynomial coefficients
>>> but doesn't calculate the variance-covariance matrix or standard
>>> errors of the OLS estimate.
>> AFAIK, the ODR fitting routines return all these parameters, so one can
>> maybe use that for linear fitting too.
It does look like the ODR routines can be used for linear fitting,
using the least squares fitting criterion (and OLS assumptions about
the errors in your data being restricted to the dependent variable) as
opposed to the ODR criterion. But I don't know too much about this
More information about the SciPy-user