[SciPy-user] linear regression
Skipper Seabold
jsseabold@gmail....
Wed May 27 13:35:45 CDT 2009
On Wed, May 27, 2009 at 2:28 PM, <josef.pktd@gmail.com> wrote:
> On Wed, May 27, 2009 at 12:35 PM, ms <devicerandom@gmail.com> wrote:
>> josef.pktd@gmail.com 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
either.
More information about the SciPy-user
mailing list