Function hypergeometricPmf

  • The probability mass function for the hypergeometric distribution.

    Parameters

    • N: number

      The size of the finite population.

    • K: number

      The number of objects with the desired feature in the finite population.

    • n: number

      The number of draws without replacement.

    • k: number

      The desired number of successes.

    Returns number