[SciPy-Dev] Bug in stats.fisher_exact

Warren Weckesser warren.weckesser at gmail.com
Wed Oct 23 14:50:34 EDT 2013


On Wed, Oct 23, 2013 at 2:20 PM, Warren Weckesser <
warren.weckesser at gmail.com> wrote:

> A problem with stats.fisher_exact was reported on stackoverflow:
>
> http://stackoverflow.com/questions/19548854/python-scipy-stats-module-valueerror-axis-entry-is-out-of-bounds
>
> The culprit appears to be this line:
>     https://github.com/scipy/scipy/blame/master/scipy/stats/stats.py#L2633
>
> I assume that `np.max(pexact, pmode)` should be
> `np.maximum(pexact, pmode)`.  Could someone more familiar with this
> calculation confirm this?
>
>

I created a github issue for this:
https://github.com/scipy/scipy/issues/3014



> Warren
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20131023/a9bd6ad2/attachment.html>


More information about the SciPy-Dev mailing list