Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is meant by rv_frozen object in scipy?

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?

like image 911
MANI MARAN Avatar asked Aug 17 '15 09:08

MANI MARAN


1 Answers

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.

like image 151
ev-br Avatar answered Sep 18 '22 17:09

ev-br