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

Allow negative total_count in Extended distributions #2439

Merged
merged 1 commit into from
Apr 24, 2020

Conversation

fritzo
Copy link
Member

@fritzo fritzo commented Apr 24, 2020

Addresses #2426

This implements a suggestion of @martinjankowiak to allow negative (invalid) total_count in the ExtendedBinomial and ExtendedBetaBinomial distributions, thereby simplifying probability computations in compartmental models.

Tested

  • added unit tests to ensure ExtendedFoo(-n, ...).log_prob(data) == -inf.

@martinjankowiak martinjankowiak merged commit e284f64 into dev Apr 24, 2020
@fritzo fritzo deleted the extended-total-count branch April 28, 2020 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants