Skip to content

Constructing a censored distribution #1468

Closed
@sethaxen

Description

@sethaxen

It would be handy to have a Censored object and corresponding censored function that behaved just like Truncated and truncate, respectively, but for censored data. The implementations would be much the same, with two main differences:

  • instead of evaluating the logpdf of the wrapped distribution at the bounds, they would evaluate its logcdf at the lower-bound and logccdf at the upper-bound
  • rand would use clamp instead of rejection sampling

inspired by the addition of Censored to PyMC and this Twitter thread

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions