I am trying to work with some hypergeometric and binomial random variables, and so I am looking at the scipy.stats functionality. But I'm confused what scipy.stats.binom() and script.stats.hypergeom() functions actually do. Do they implicitly create a PMF for with given parameters, which we then access with the stats.pmf() function, or do they define a function from the sample space to the numerical quantities we define? The last is what a random variable actually does, but I haven't passed a sample space to the binom or hypergeom functions, so I'm confused about what they are actually doing. The reference manual doesn't clear things up.
Thank you for any help.