You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add _logccdf dispatcher for numerically stable log survival function
Add _logccdf (log complementary CDF / log survival function) support:
- pymc/logprob/abstract.py: Add _logccdf singledispatch and _logccdf_helper
- pymc/distributions/distribution.py: Register logccdf methods via metaclass
- pymc/distributions/continuous.py: Add logccdf to Normal using stable normal_lccdf
- pymc/logprob/censoring.py: Use _logccdf for right-censored distributions
- pymc/logprob/binary.py: Use _logccdf for comparison operations
- pymc/logprob/transforms.py: Use _logccdf_helper for monotonic transforms
- pymc/logprob/basic.py: Add public logccdf() function
- pymc/logprob/__init__.py: Export logccdf
This fixes numerical instability when computing log-probabilities for
censored Normal distributions at extreme tail values (e.g., 10+ sigma).
0 commit comments