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

Add logcdf for CensoredRV #6894

Closed
wants to merge 5 commits into from
Closed

Add logcdf for CensoredRV #6894

wants to merge 5 commits into from

Conversation

aadya940
Copy link

@aadya940 aadya940 commented Sep 6, 2023

Addresses #6686

This function is implemented based on the following function:
https://juliastats.org/Distributions.jl/stable/censored/

Checklist

New features

  • logcdf for CensoredRV

@welcome
Copy link

welcome bot commented Sep 6, 2023

Thank You Banner
💖 Thanks for opening this pull request! 💖 The PyMC community really appreciates your time and effort to contribute to the project. Please make sure you have read our Contributing Guidelines and filled in our pull request template to the best of your ability.

Copy link
Member

@ricardoV94 ricardoV94 left a comment

Choose a reason for hiding this comment

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

Thanks for taking a stab. I spotted a couple of issues above

pymc/distributions/censored.py Outdated Show resolved Hide resolved
pymc/distributions/censored.py Outdated Show resolved Hide resolved
return
for offset in (-1, 0, 1):
test_xt_v = bound + offset
assert xt_logcdf_fn(test_xt_v) is not None
Copy link
Member

Choose a reason for hiding this comment

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

We need to test the numerical outputs are correct (same for the other test)

@aadya940 aadya940 closed this by deleting the head repository Feb 9, 2024
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