[Scipy-tickets] [SciPy] #1203: stats: chi-square test of independence

SciPy Trac scipy-tickets@scipy....
Thu Jun 17 01:10:21 CDT 2010


#1203: stats: chi-square test of independence
----------------------------------------------+-----------------------------
 Reporter:  warren.weckesser                  |       Owner:  somebody
     Type:  enhancement                       |      Status:  new     
 Priority:  normal                            |   Milestone:  0.8.0   
Component:  scipy.stats                       |     Version:  0.7.0   
 Keywords:  chi-square chisquare chi-squared  |  
----------------------------------------------+-----------------------------

Comment(by warren.weckesser):

 Replying to [comment:2 josefpktd]:

 >
 > xtabs drop.unused.levels mentions that the test doesn't work if a
 marginal is zero.
 >
 > I would check how it behaves in this case, and also when we have a few
 zeros in the contingency table
 >

 Right--I think it should check that the values in `table` are nonnegative
 and the values in `expected` are positive, and raise a ValueError if
 either condition fails.

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


More information about the Scipy-tickets mailing list