[SciPy-Dev] Moving `fisher_exact` and `barnard_exact` to `scipy.stats.contingency`

Ralf Gommers ralf.gommers at gmail.com
Sun Mar 14 09:41:38 EDT 2021


On Sat, Mar 13, 2021 at 10:48 PM Arthur VOLANT <arthurvolant at gmail.com>
wrote:

> Hello,
>
> I have been working on the implementation of `barnard_exact` test for the
> analysis of contingency tables in gh-13441. It is pretty close to be merged
> (any reviews are welcomed btw) and with Matt Haberland, we were thinking of
> moving this test and `fisher_exact` test into `scipy.stats.contingency`. At
> the moment, `barnard_exact` is in `scipy.stats._hypotests.py` and
> `fisher_exact` in `scipy.stats.stats`.
>
> For backwards compatibility, we could leave `fisher_exact` as an alias,
> but remove `scipy.stats.fisher_exact` from documentation and add
> `scipy.stats.contingency.fisher_exact`.
>
> What do you think?
>

This makes sense to me. It would be good to think about what other
functions are exclusive to contingency tables, like
`stats.chi2_contingency`.

Cheers,
Ralf



> Thanks for your feedbacks,
> Arthur
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at python.org
> https://mail.python.org/mailman/listinfo/scipy-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/scipy-dev/attachments/20210314/25033979/attachment.html>


More information about the SciPy-Dev mailing list