CDCgov / CDCgov/PyRenew

Update to use NumPyro support for zero-mean Negative Binomials and add tests

Open
#830 2 comments 1 reaction 2 assignees View on GitHub

@dylanhmorris is already working on this.

Since May 19, 2026.

  • #831 by @copilot-swe-agent — open
Dominant language
Python
Stars
29
Forks
9
Avg merge
9d 9h
Merged PRs (30d)
8

Description

#806 incorrectly removed zero-padding for NegativeBinomial2 distributions, on the incorrect assumption that the addition of support for zero-mean Poisson would resolve issues with zero-mean negative binomials. This was not the case. Our tests did not catch this. We should

  • Add tests for NegativeBinomialNoise and NegativeBinomialObservation with 0 mean and confirm they currently fail.
  • Add back epsilon padding to NegativeBinomialNoise and NegativeBinomialObservation
  • Confirm the tests now pass.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.