[Scipy-tickets] [SciPy] #1802: Infinite time taken by scipy hypergeom function for some particular values

SciPy Trac scipy-tickets@scipy....
Tue Jan 1 05:20:59 CST 2013


#1802: Infinite time taken by scipy hypergeom function for some particular values
--------------------+-------------------------------------------------------
 Reporter:  imsc    |       Owner:  somebody   
     Type:  defect  |      Status:  new        
 Priority:  normal  |   Milestone:  Unscheduled
Component:  Other   |     Version:  0.11.0     
 Keywords:          |  
--------------------+-------------------------------------------------------
 I am using the hypergeom function from scipy.stats. Although it works for
 most of the parameter, it do not yeild anything for some particular
 parameters. For eg. the following works,

 from scipy import stats

 stats.hypergeom.interval(.94, 187601, 43192, 757)
 (153.0, 196.0)

 stats.hypergeom.interval(.93, 187601, 43192, 757)
 (154.0, 195.0)

 stats.hypergeom.interval(.96, 187601, 43192, 757)
 (151.0, 198.0)

 However changing the parameter to .95 do not yield any answer.

 stats.hypergeom.interval(.95, 187601, 43192, 757)

 Am I missing something or is it a bug in scipy?

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


More information about the Scipy-tickets mailing list