Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Fix division by zero in linregress() for 2 data points #7007

Merged
merged 1 commit into from Feb 9, 2017

Conversation

evanlimanto
Copy link
Contributor

Fixes issue #6991 when only 2 data points are passed to linregress(), which causes a division by zero. The pvalue and stderr values returned in this case are NaN.

@pv
Copy link
Member

pv commented Feb 6, 2017 via email

@evanlimanto evanlimanto force-pushed the linregress-zero-division branch 2 times, most recently from 2c4c95a to b1bbd5b Compare February 6, 2017 16:31
@evanlimanto
Copy link
Contributor Author

evanlimanto commented Feb 6, 2017

Tests added. Don't know why CI is failing only for python3.5.

@ev-br ev-br merged commit a222d64 into scipy:master Feb 9, 2017
@ev-br
Copy link
Member

ev-br commented Feb 9, 2017

Thanks @evanlimanto, merged. keep them coming!

@ev-br ev-br added maintenance Items related to regular maintenance tasks scipy.stats defect A clear bug or issue that prevents SciPy from being installed or used as expected and removed maintenance Items related to regular maintenance tasks labels Feb 9, 2017
@ev-br ev-br added this to the 0.19.0 milestone Feb 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect A clear bug or issue that prevents SciPy from being installed or used as expected scipy.stats
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants