Skip to content

MNLogit perfect separation #516

Open

Description

@jseabold

Add perfect separation warning to MNLogit.

Activity

  1. josef-pkt commented on Oct 5, 2012

    @josef-pkt
    Member

    Detecting perfect prediction will be necessary.

    However, in the example of #514 we get the problems (in my fit) with a few non perfectly predicted cases

    >>> ((res.predict()[:,0] < 0.9999999) & (res.predict()[:,0] > 0.000001)).sum()
    19
    >>> ((res.predict()[:,0] < 0.999) & (res.predict()[:,0] > 0.001)).sum()
    12
    

    with 20 parameters to estimate, we might hit the perfect separation problems already before all observations are perfectly predicted.

    Note: I'm working with L1 regularized fit to have more meaningful results to look at.

  2. modified the milestones: 0.6, 0.7 on Aug 17, 2014
  3. modified the milestones: 0.8, 0.7 on Jul 17, 2015
  4. modified the milestones: 0.8, Someday on Mar 14, 2021
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions