question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ENH: Add Multivariate Hypergeometric Distribution

See original GitHub issue

Part 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:closed
  • Created 3 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
mdhabercommented, Aug 13, 2020

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.

1reaction
mdhabercommented, Aug 13, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found