Skip to content
Advertisement

Is there a hypergeometric function in python?

Is there any module/function in python that supply the same functionality as the Hypergeometric Function in R? (dhyper, phyper, qhyper, rhyper)- docs for the function in R

Advertisement

Answer

Looks like this is implement in scipy.

https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.hypergeom.html

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement