Skip to content

DOC: Add example and math to stats.pearsonr #7720

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

Merged
merged 1 commit into from
Aug 18, 2017
Merged

DOC: Add example and math to stats.pearsonr #7720

merged 1 commit into from
Aug 18, 2017

Conversation

MartinThoma
Copy link
Contributor

No description provided.


.. math::

r_{pb} = \frac{\sum (x - m_x) (y - m_y)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs r""" on top to use \ without escaping.

@pv pv added the needs-work Items that are pending response from the author label Aug 12, 2017
@MartinThoma
Copy link
Contributor Author

@pv Ok, I did so.

References
----------
http://www.statsoft.com/textbook/glosp.html#Pearson%20Correlation

Examples
--------
>>> a = np.array([0, 0, 0, 1, 1, 1, 1])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs from scipy import stats --- only import numpy as np is assumed in the examples

@pv pv removed the needs-work Items that are pending response from the author label Aug 18, 2017
@pv pv merged commit 485b8c8 into scipy:master Aug 18, 2017
@pv pv added this to the 1.0 milestone Aug 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants