scipy/scipy — pull request #2556 by WarrenWeckesser (2013-06-11 12:28:00+00:00)
Title: MAINT: stats: Simplified the calculation of Pearson's R.

* Removed the common factor 'n' from the numerator and denominator in
the calcuation of Pearson's R. (Closes the issue gh-2512.)
* Added basic tests of pearsonr. (All the existing tests were for perfect
correlation or anticorrelation.)
* Modifed stats.mstats.pearsonr to not raise RuntimeWarnings when abs(r) == 1.