[Scipy-tickets] [SciPy] #1852: Bug in spearmanr function to calculate correlation

SciPy Trac scipy-tickets@scipy....
Tue Feb 26 00:49:52 CST 2013

#1852: Bug in spearmanr function to calculate correlation
 Reporter:  damani  |       Owner:  somebody   
     Type:  defect  |      Status:  new        
 Priority:  normal  |   Milestone:  Unscheduled
Component:  Other   |     Version:  0.11.0     
 Keywords:          |  
 Encountering a problem with scipy v.11 library in python2.7 which gives
 spearmanrcorrel([1,2,3,4,5],[5,6,7,8,7]) = 0.8207 while scipy v.6 in
 python2.5 gives spearmanr([1,2,3,4,5],[5,6,7,8,7]) = 0.825(which is
 correct according to spearman correlation formula).

 The spearman correlation for [1,2,3,4,5],[5,6,7,8,7] calculated online
 according to formula available at :
 , also gives 0.825.

 --The definition of spearmanr function in Scipy v.11 is given at :

 Maybe related to Ticket #1411.

Ticket URL: <http://projects.scipy.org/scipy/ticket/1852>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.

More information about the Scipy-tickets mailing list