pymc icon indicating copy to clipboard operation
pymc copied to clipboard

Infer logp and logcdf of abs of discrete variables

Open ricardoV94 opened this issue 1 month ago • 1 comments

I was going to work on general icdf(abs(x)) which requires an optimization routine, but found some small crumbs along the way.

  • Allow logp(abs(x)) and logcdf(abs(x)) for discrete x.
  • Fix logcdf of DiscreteUniform for x == lower
  • Handle special case in logdiffexp(-inf, -inf) so it can be safely used in more contexts

ricardoV94 avatar Nov 10 '25 12:11 ricardoV94