Families/gamma family#121
Merged
Merged
Conversation
MyznikovFD
reviewed
Jul 17, 2026
BykovaElizaveta
force-pushed
the
families/gamma-family
branch
4 times, most recently
from
July 18, 2026 19:32
7f9cb3e to
c4658b9
Compare
MyznikovFD
reviewed
Jul 19, 2026
LeonidElkin
reviewed
Jul 19, 2026
BykovaElizaveta
force-pushed
the
families/gamma-family
branch
from
July 20, 2026 21:42
c4658b9 to
6f2f17f
Compare
BykovaElizaveta
force-pushed
the
families/gamma-family
branch
from
July 21, 2026 12:17
6f2f17f to
6f8bf93
Compare
LeonidElkin
requested changes
Jul 21, 2026
- Implement Gamma distribution family with (k, theta) base parametrization - Add three parametrizations: shapeScale (base), shapeRate, meanVar - Implement all distribution characteristics: PDF, CDF, PPF, CF, LPDF - Implement base_score (gradient of lpdf) and gradient_transform for non-base parametrizations - Support: ContinuousSupport(left=0.0) - Register in FamilyName enum and wire into configuration
- Add tests covering all distribution characteristics - Test all three parametrizations and conversions between them - Test score (gradient) for all parametrizations against analytical formula - Test numerical gradient verification and edge cases - Compare characteristics against scipy.stats.gamma
BykovaElizaveta
force-pushed
the
families/gamma-family
branch
from
July 21, 2026 18:31
6f8bf93 to
fb5216b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement Gamma distribution with shapeScale, shapeRate, meanVar parametrizations
Add analytical implementations for PDF, CDF, PPF, characteristic function, log-PDF
Implement moment calculations (mean, variance)
Configure family registry, parametrization system, and continuous support (left=0.0)
Add tests covering all distribution characteristics
Test all three parametrizations and conversions between them
Verify against scipy.stats.gamma for correctness
Resolves #41