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

More discrete distributions. #52

Open
14 of 22 tasks
JonasMoss opened this issue Oct 3, 2024 · 0 comments
Open
14 of 22 tasks

More discrete distributions. #52

JonasMoss opened this issue Oct 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@JonasMoss
Copy link
Owner

JonasMoss commented Oct 3, 2024

Implement, possibly, the following discrete distributions:

Implement distributions

stats

These are extremely common.

  • Binomial.
    • The ML doesn't always exist, since the Poisson is a limiting case.
  • Negative binomial.
  • Geometric.
  • Poisson.

The hypegeometric distribution is common, but rarely used in the context of maximum likelihood estimation. Maximum likelihood would involve some sort of discrete optimization, and it will converge to binomial / Poisson for some data.

  • Hypergeometric.

extraDistr

These are quite common and natural extensions of the distributions above. There are implementations of some of these already in e.g., iZID. But I'm not sure they are of sufficient quality as they use optimize, and may not estimate size in any case.

  • Zero-inflated Possion.
  • Beta-binomial. This one has several edge cases were the ML does not exist, and may be harder to implement. Analysis would, perhaps, warrant its own publication.
  • Beta negative binomial.
  • Zero-inflated negative binomial.

Other

  • Zipf. (sads:dzipf as VGAM::dzipf is inaccurate.)
  • Logarithmic series distribution (extraDistr::lgser). Uses the Lambert W function, which is good, since we've already used it in the zero-inflated Poisson.)
  • Zeta distribution. Easy to implement. However, the VGAM implementation might be unreliable.
  • Yule-Simon. It's easy to implement. But in VGAM.
  • Conway--Maxwell Poisson. This one is by far the hardest, since it requires computation of a normalizing constant that has to my knowledge no excellent implementation.
  • Conway--Maxwell binomial. Easier to compute since there is no infinite sum, but has Conway--Maxwell Poisson as a limiting case!

Add tests to implemented distributions.

  • Binomial
  • Negative binomial
  • Zero-inflated Possion
  • Geometric
  • Poisson
  • Zipf
  • Logarithmic series distribution
@JonasMoss JonasMoss added the enhancement New feature or request label Oct 3, 2024
@JonasMoss JonasMoss changed the title Discrete distributions. More discrete distributions. Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant