ENH: Add Multivariate Hypergeometric Distribution
See original GitHub issuePart of “A Solid Foundation for Statistics in Python with SciPy”.
Add Multivariate Hypergeometric Distribution to scipy.stats.
Be sure to follow the guide Adding a New Statistics Distribution carefully and see gh-6375 for an example of adding a related distribution. See methods inherited from multi_rv_generic in _multivariate.py, although I guess there’s not too much and most of it needs to be implemented from scratch.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
12.3: The Multivariate Hypergeometric Distribution
We will compute the mean, variance, covariance, and correlation of the counting variables. Results from the hypergeometric distribution and the ...
Read more >A compound multivariate binomial-hypergeometric distribution ...
multivariate forms of the hypergeometric distributions in the model are used to derive an equation for the covariance between recoveries of two different ......
Read more >Uses of the Hypergeometric Distribution for Determining ...
They show that their approximation methods could be used in testing hypotheses concerning the parameters of the multivariate hypergeometric distribution.
Read more >13. Multivariate Hypergeometric Distribution
This lecture describes how an administrator deployed a multivariate hypergeometric distribution in order to access the fairness of a procedure for awarding ...
Read more >The exact distribution of the maximum, minimum and the ...
... and multivariate hypergeometric distributions of n balls in. ... since it requires ad hoc computations for each combination of n and m....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

No, you don’t need to add the C++ code. Please just implement the marginals methods as @WarrenWeckesser suggested, and if it is too slow, we can look at replacing it later.
BTW @tirthasheshpatel while I’d suggest following @WarrenWeckesser’s suggestion, don’t worry about speed too much here. If it is not fast enough, we have permission to add these random number generators under the BSD license, and we’ll already be laying the groundwork for the noncentral hypergeometric distributions. It would be easy to also add the multinomial random number generator.