MAINT: stats: Simplified the calculation of Pearson's R.

* Removed the common factor 'n' from the numerator and denominator in
  the calculation of Pearson's R.  (Closes the issue gh-2512.)
* Added basic tests of pearsonr. (All the existing tests were for perfect
  correlation or anticorrelation.)
* Modified stats.mstats.pearsonr to not raise RuntimeWarnings when abs(r) == 1.
stats: replace a print() with a warning
Merge pull request #2556 from WarrenWeckesser/stats-pearsonr-calc

MAINT: stats: Simplified the calculation of Pearson's R.
Merge pull request #2563 from bburlo/print_warn

MAINT: stats: replace a print() with a warning