[Scipy-tickets] [SciPy] #1871: Large ties count in data leads to int32 overflow in wilcoxon test

SciPy Trac scipy-tickets@scipy....
Fri Mar 22 11:00:23 CDT 2013


#1871: Large ties count in data leads to int32 overflow in wilcoxon test
-------------------------+--------------------------------------------------
 Reporter:  simonb       |       Owner:  rgommers   
     Type:  defect       |      Status:  new        
 Priority:  normal       |   Milestone:  Unscheduled
Component:  scipy.stats  |     Version:  0.9.0      
 Keywords:  wilcoxon     |  
-------------------------+--------------------------------------------------

Comment(by simonb):

 Demo code above mangled by formatting.  It should read:

 {{{
 import numpy
 import scipy.stats
 numpy.seterr(all='raise')
 # Raises: FloatingPointError: overflow encountered in int_scalars
 scipy.stats.wilcoxon([0.1] * 46341)  # 46341^2 > 2^31-1
 }}}

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


More information about the Scipy-tickets mailing list