[SciPy-User] scipy.stats.linregress

josef.pktd@gmai... josef.pktd@gmai...
Tue Feb 12 09:48:33 CST 2013


On Tue, Feb 12, 2013 at 10:33 AM, Jerome Kieffer <Jerome.Kieffer@esrf.fr> wrote:
> On Tue, 12 Feb 2013 07:54:38 -0500
> josef.pktd@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@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user


More information about the SciPy-User mailing list