Skip to content

Added logitnormal distribution#23

Merged
aloctavodia merged 2 commits intopymc-devs:mainfrom
fonnesbeck:logitnormal
Jan 14, 2026
Merged

Added logitnormal distribution#23
aloctavodia merged 2 commits intopymc-devs:mainfrom
fonnesbeck:logitnormal

Conversation

@fonnesbeck
Copy link
Member

Logit-normal and associated tests (test against empirical)

return pt.sigmoid(y)


def mean(mu, sigma):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In helper.py, we have functions to numerically compute moments for discrete distributions. We should move this and other methods there, so we can reuse them for other distributions. In preliz, distributions has a xvals method https://github.com/arviz-devs/preliz/blob/28bbd018963cbc010d3f13e62124eb4653ec1459/preliz/distributions/distributions.py#L507 that we used for plotting or, in this cas,e to get a reasonable range of values to evaluate some functions. We could have something similar here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ported a few things over to helper.py. Let me know what you think.

@aloctavodia aloctavodia merged commit c8ce6d8 into pymc-devs:main Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants