Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative binomial distribution? #1295

Closed
WarrenWeckesser opened this issue Mar 4, 2023 · 2 comments
Closed

Negative binomial distribution? #1295

WarrenWeckesser opened this issue Mar 4, 2023 · 2 comments

Comments

@WarrenWeckesser
Copy link
Collaborator

Is there interest in adding the negative binomial distribution to rand_distr? The method is straightforward, and can be found in Devroye's book Non-Uniform Random Variate Generation (section X.4.7). Existing implementations include statrs, Julia (in JuliaStats), boost/random and NumPy. I can submit a pull request if there is interest.

@WarrenWeckesser
Copy link
Collaborator Author

I went ahead and created a pull request with an implementation: #1296. Even if it turns out there is no interest in adding this to rand_distr, it was worthwhile for me to learn more about the conventions used in rand and rand_distr.

@dhardy
Copy link
Member

dhardy commented Oct 31, 2023

Closing this since all discussion is in the PR.

@dhardy dhardy closed this as completed Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants