I am writing Python script to code for finding probability of Hypergeometric distribution. When I am using hypergeom()
function in scipy
, it is showing like below:
scipy.stats.distributions.rv_frozen object at 0*2519690
I have googled but couldn't find anything useful. I just wanted to know what does it actually mean?
It's an object (an instance, really) which knows its shape parameters (hypergeom: M, N, n) and has methods pmf, cdf etc. These two are equivalent from a user perspective: hypergeom.pmf(4, 20, 7, 12)
and hypergeom(20, 7, 12).pmf(4)
.
See the stats tutorial and the hypergeom reference.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With