Skip to content

SUMM/ENH rare events, unbalanced sample, matching, weights, tail #2701

Open

Description

@josef-pkt

see also #505 with some links to stackoverflow questions in comments
my current view (without knowing literature): http://stackoverflow.com/questions/33605979/statsmodels-logistic-regression-class-imbalance/33611826#33611826

Instance sampling in credit scoring: An empirical study of sample size and balancing
http://www.sciencedirect.com/science/article/pii/S0169207011001403
answer and comments here by one of the authors http://www.analyticbridge.com/forum/topics/handling-imbalanced-data-when-building-regression-models

Gary King and Langche Zeng, 2001, Logistic Regression in Rare Events Data
http://pan.oxfordjournals.org/content/9/2/137.abstract
referenced in answer here http://stats.stackexchange.com/questions/6067/does-an-unbalanced-sample-matter-when-doing-logistic-regression

an overview of methods related to machine learning
http://www.ele.uri.edu/faculty/he/PDFfiles/ImbalancedLearning.pdf

King/Zeng looks the most popular on stats.stackexchange and might be a good starting point for the statistics problem, e.g. for inference.

There is also a relationship to matching (like propensity score matching) but subsampling or oversampling uses the endogenous variable, and to case-control matching which matches on outcome, IIRC. (related aside: Agresti categorcal data analysis has comments in several sections about sampling, fixed margin counts, based on the "endogenous" variable. Odds ratio is identified in Logit, but not in other models, but I didn't try to figure out the details.)
#2442 proposes to implement weights without worrying about interpretation i.e. implement first and add support for different interpretation or kinds of weights later.

specifically, I need them for IPW in #2455

Activity

  1. added this to the 0.8 milestone on Nov 9, 2015
  2. changed the title [-]SUMM/ENH rare events, unbalanced sample, matching, weights[/-] [+]SUMM/ENH rare events, unbalanced sample, matching, weights, tail[/+] on Jun 4, 2021
  3. josef-pkt commented on Jun 4, 2021

    @josef-pkt
    MemberAuthor

    random thought while looking at tails of distributions, e.g. #7472

    In rare events, the usual confusion table (threshold 0.5) doesn't make sense because the large majority is "healthy" and we won't predict (m)any individuals as "unhealthy". We need measures about the gof in tail.

    non-parametric, neglected heterogeneity, nonlinearity:

    If there are differences across individuals that are not captured by observed variables and their functional form, and the functional form of the link/mean function, then the estimation would be dominated by the overall population and not by the population that is in the critical range.

    possibilities:

    • importance weight: in machine learning they add sometimes more weight to observations with the rare outcome
    • endogenous weighting: e.g. we could weight on outcome probability (fittedvalues) to drop individuals that are far away from the relevant tail.
    • choosing links and diagnostics for gof in tails: If we don't want to fit a model like logit or probit to the bulk of the observations, then we need links that have a better match in the tails. i.e. we need more asymmetric and tail link functions, e.g. based on extreme value distributions links probit, CDFLink precision loss in Hessian #1878 (comment)
  4. modified the milestones: 0.8, 0.13 on Jun 4, 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

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions