[Scipy-tickets] [SciPy] #95: Statistics Review: corrcoef

SciPy scipy-tickets at scipy.net
Fri Jun 30 11:16:44 CDT 2006

#95: Statistics Review: corrcoef
 Reporter:  rkern        |        Owner:  rkern                   
     Type:  review       |       Status:  assigned                
 Priority:  normal       |    Milestone:  Statistics Review Months
Component:  scipy.stats  |      Version:  devel                   
 Severity:  normal       |   Resolution:                          
 Keywords:               |  
Comment (by arauzo):

 This function is not numerically stable. As commented in wikipedia[1] this
 simple test fails (should give correlation factor equal to -1):

 >>> import scipy
 >>> x=[90000000+i for i in range(1,101)]
 >>> y=[90000000-i for i in range(1,101)]
 >>> scipy.corrcoef(x,y)[0,1]


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

More information about the Scipy-tickets mailing list