[SciPy-User] scipy.stats.linregress

josef.pktd at gmail.com josef.pktd at gmail.com
Tue Feb 12 10:48:33 EST 2013


On Tue, Feb 12, 2013 at 10:33 AM, Jerome Kieffer <Jerome.Kieffer at esrf.fr> wrote:
> On Tue, 12 Feb 2013 07:54:38 -0500
> josef.pktd at gmail.com wrote:
>
>> Volunteers for a pull request ?
>> and for checking that the test suite has a case with negative r, so
>> this doesn't get changed by accident.
>
> I can ... but I am not used to the tests in scipy

Usually I just have to search the test folder by function.

most of the linregress tests are from an old benchmark test suite,
checking mainly difficult cases.
This https://github.com/scipy/scipy/blob/master/scipy/stats/tests/test_stats.py#L736
is a test that I added.
Similar we could add one with a negative coefficient.

statsmodels OLS is verified against other packages, so we can get the
correct test results from there.

Thank you,

Josef



>
>
> --
> Jérôme Kieffer
> On-Line Data analysis / Software Group
> ISDD / ESRF
> tel +33 476 882 445
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user



More information about the SciPy-User mailing list