<p dir="auto">Calling scipy.stats.hypergeom.pmf with a total of 0 Type I objects (and therefore, having a maximal k value of 0), returns a NaN value instead of 1.0.</p>
<p dir="auto">From the documentation :<br>
pmf(k, M, n, N) = choose(n, k) * choose(M - n, N - k) / choose(M, N),</p>
<p dir="auto">Fixing k = n = 0, we have :<br>
pmf(0, M, 0, N) = choose(0, 0) * choose(M - 0, N - 0) / choose(M, N),<br>
= 1 * choose(M, N) / choose(M, N)<br>
= 1 * 1<br>
= 1</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/57" rel="nofollow">http://projects.scipy.org/scipy/ticket/57</a> on 2006-04-02 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rkern/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rkern">@rkern</a>, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rkern/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rkern">@rkern</a>.</em></p>
<p dir="auto">The function <code class="notranslate">tmean</code> in file source:trunk/Lib/stats/stats.py needs review.</p>
<p dir="auto">Please look over the StatisticsReview guidelines and add your comments below.</p>