[Scipy-tickets] [SciPy] #1489: fisher_exact throws ValueErrors when row or col is 0, 0

SciPy Trac scipy-tickets@scipy....
Mon Aug 8 00:28:14 CDT 2011


#1489: fisher_exact throws ValueErrors when row or col is 0,0
--------------------------+-------------------------------------------------
 Reporter:  aihardin      |       Owner:  somebody   
     Type:  defect        |      Status:  new        
 Priority:  normal        |   Milestone:  Unscheduled
Component:  scipy.stats   |     Version:  0.9.0      
 Keywords:  fisher_exact  |  
--------------------------+-------------------------------------------------

Comment(by josefpktd):

 Good argument by Warren.

 In this case there is only a single table consistent with the margins. A
 degenerate distribution with only one point satisfies the definition of
 independence (trivially).

 odds ratio = Nan would still indicate to users that there is something
 fishy (no information) in this case.

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


More information about the Scipy-tickets mailing list