Skip to content

.stats.hypergeom documentation error in the note about pmf #2671

@jeanfrancisroy

Description

@jeanfrancisroy

.stats.hypergeom documentation states :

The probability mass function is defined as::
pmf(k, M, n, N) = choose(n, k) * choose(M - n, N - k) / choose(M, N),
for N - (M-n) <= k <= min(m,N)

In the boundaries for k, m is not defined.

It should be replaced by n, as the number k of drawn Type I objects cannot exceed the total number of Type I objects (as well as N, the number of draws).

Metadata

Metadata

Assignees

No one assigned

    Labels

    defectA clear bug or issue that prevents SciPy from being installed or used as expectedgood first issueGood topic for first contributor pull requests, with a relatively straightforward solutionscipy.stats

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions