Skip to content

models with interval censored, binned data #664

Open

Description

@josef-pkt

If we only observe discretized endog for an underlying continuous distribution, then we can use MLE with the pmf based on the bins, diff(cdf(bin_edges)).

This is relatively easy to do for distributions that have a cdf that is easy to calculate.

From the observed structure it's a discrete distribution, the underlying model is continuous.

I think this could go into statsmodels.discrete. It's very similar to count models, except count models impose/assume non-negativity of the observed endog.

Activity

  1. jseabold commented on Feb 14, 2013

    @jseabold
    Member

    Somewhat related, interval valued data estimators -- for when we observe interval data in a given time period -- are on my radar. A classmate is writing a dissertation in this area.

  2. josef-pkt commented on Feb 14, 2013

    @josef-pkt
    MemberAuthor

    Is that time series with discrete data?

  3. jseabold commented on Feb 14, 2013

    @jseabold
    Member

    Time series is one domain and the one I've encountered the most. The idea is just that you have some set of data (initially a range or interval) for each observation. Cf. Billard and Diday.

  4. josef-pkt commented on Sep 3, 2017

    @josef-pkt
    MemberAuthor

    some random thought on design (related Censored count data in PR #3892, tobit PR )

    • model needs to define pdf and cdf (or sf),
    • in __init__ we split data into 4 groups: uncensored, left censored, right censored and interval censored
      (splitting the data should avoid that we have to use masks in the optimization loop, i.e. for performance even if it adds code. left and right censored would be interval censored with -inf or +inf as one of the boundaries.) Maybe that's too messy of we need observations in given order (e.g. by time or cluster).
      possible solution: implement loglike, score separately from loglikeobs, scoreobs. The former are in the optimization loop, the latter are only in post-estimation.
    • need general censoring indicator as user specified argument.

    loglike and similar can just use the 4 subdatasets if they are not None.
    another mess: pdf, cdf could take linpred or mu as in GLM, but then we still need extra_params for models with auxiliary or shape parameters (scale, dispersion in normal or negative binomial)

  5. josef-pkt commented on Oct 4, 2020

    @josef-pkt
    MemberAuthor

    OrderedModel #7035 cumulative link model estimation is based on the discretized latent variable.
    However, interval bounds, cut points, are estimated and not fixed as prior info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions