Skip to content

ENH: Beta negative binomial distribution #247

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

Closed
ferrine opened this issue Sep 3, 2023 · 2 comments · Fixed by #258
Closed

ENH: Beta negative binomial distribution #247

ferrine opened this issue Sep 3, 2023 · 2 comments · Fixed by #258

Comments

@ferrine
Copy link
Member

ferrine commented Sep 3, 2023

Before

There is no such a distribution that represents Beta Negative Binomial distribution.

The beta negative binomial is non-identifiable which can be seen easily by simply swapping $r$ and
$\beta$ in the above density or characteristic function and noting that it is unchanged. Thus estimation demands that a constraint be placed on $r$,
$\beta$ or both.

After

with pm.Model() as model:
    pm.BetaNegativeBinomial("bnb", alpha=alpha, beta=1, r=r)

Context for the issue:

No response

@ricardoV94
Copy link
Member

I would add it to pymc-experimental. Otherwise sounds good

@ricardoV94 ricardoV94 transferred this issue from pymc-devs/pymc Oct 4, 2023
@williambdean
Copy link
Contributor

There seems to be pr on scipy.stats (will link)
But the sampling step might not be the difficult point and doesn't need to be bottleneck
I can give it a try without waiting for scipy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants