[SciPy-Dev] Contingency Table Model
Mon Aug 9 15:11:10 CDT 2010
On Mon, Aug 9, 2010 at 3:31 PM, Anthony Scopatz <email@example.com> wrote:
> Hello All,
> I have just opened a ticket
> (http://projects.scipy.org/scipy/ticket/1258) that adds a general
> contingency table class to the the stats package. This class includes
> methods to slice and collapse the table as well a calculate metrics such as
> chi-squared and entropy.
> This implementation came out of Warren Weckesser and me working on this over
> the SciPy 2010 statistics sprint.
> Please take a look! Comments and suggestions are always welcome.
just a quick question that I don't understand from a brief look at the source
Isn't the core of "from_columns" doing the same quantization as
np.histogramdd? ( I haven't looked closely enough yet)
If x in from_columns is a tuple, then an array_like could also contain
strings, e.g. names/levels of a categorical variable. I'm not sure how
far this should go.
methods or functions "from_flat" and "to_flat" would be useful.
chi2 could be renamed to chi2_indep, or take an optional expected
keyword, where the user could specify other distribution hypotheses.
> Be Well,
> SciPy-Dev mailing list
More information about the SciPy-Dev