Skip to content

ENH: graphic diagnostic binary endog - performance of predicted probabilities #6430

Open

Description

@josef-pkt

Looks interesting (partial skimming)

perfomance of Logit or similar in terms of predicted probabilities and how well they match observered proportions, proportions/frequencies by exog pattern or by some kind of grouping

I think this is mostly a special case of #4262 for binary response models,
for count data I have the plots for average prediction in a notebook

Van Calster, Ben, Daan Nieboer, Yvonne Vergouwe, Bavo De Cock, Michael J. Pencina, and Ewout W. Steyerberg. 2016. “A Calibration Hierarchy for Risk Models Was Defined: From Utopia to Empirical Data.” Journal of Clinical Epidemiology 74 (June): 167–76. https://doi.org/10.1016/j.jclinepi.2015.12.005.

(There likely is a larger literature, I just ran into this by chance, related articles to something else)

Activity

  1. josef-pkt commented on Jan 17, 2020

    @josef-pkt
    MemberAuthor

    A new article (2020 pre-proof)
    Stevens RJ, Poppe KK, Validation of clinical prediction models: what does the
    “calibration slope” really measure?, Journal of Clinical Epidemiology (2019), doi: https://doi.org/10.1016/
    j.jclinepi.2019.09.016.

    criticizes the use of "calibration slope" as main measure for calibration
    (preference in many fields to report ONE nice number)

  2. josef-pkt commented on Jan 17, 2020

    @josef-pkt
    MemberAuthor

    The Van Calster et al 2016 article is pretty good.
    Calibration is mainly evaluated at test sample (out of estimation sample)
    Basic averages are matched in Logit by construction.

    weak calibration when applied to internal (in-sample) data is similar to reset test, i.e. fit Logit to function of linear prediction.

    Also good discussion of what we get if different calibration levels are satisfied, weak, moderate or strong. In the weak case we only have overall averages, in the strong case we can make valid predictions for individuals.
    This is similar to count regression, e.g. Poisson estimates mean consistently, but might not match the distribution well, e.g. if the true model is Generalized Poisson, NegBin or inflated.

    Maybe not quite the same, in count models, as in my notebook, E(y|X) might be correct (and we need correctly specified mean function to get consistency), However Prob(y = k | X) might be wrong, e.g. with have excess zeros or fatter tails. In Binary endog case, E(y|X) and Prob(y = 1 | X) are the same.
    I guess outside of binary models, strong calibration could mean that we also have the correct predictive distribution, i.e. distribution of new observations. We need that e.g. for outlier detection or control charts.

  3. josef-pkt commented on Jan 18, 2020

    @josef-pkt
    MemberAuthor

    just a thought: linear recalibration
    They check that logit(y_test) = a + b linpred(x_test) has a=0, b=1. They use restricted estimation also, estimate intercept under constraint b=1.

    We could jointly test a=0, b=1 in the recalibration model. However, we don't reject the hypothesis in small samples when we don't have enough power.
    If we use a equivalence test, then we could "shift the burden of proof". #6403
    The problem is that this is a joint hypothesis that is difficult/impossible to test.
    We could use some kind of linear combination of a and b for equivalence testing.
    (needs more thought)

  4. josef-pkt commented on Jan 18, 2020

    @josef-pkt
    MemberAuthor

    one possibility to get closer to a hypothesis test are using simultaneous confidence intervals added by Kerby. Those would provide a visual check for much recalibrated probabilities differ from the 45 degree line.
    (e.g. if we have a 5 percent point equivalence tolerance for the predicted probabilities, then we could compare that band with the confidence/prediction intervals.)
    Problem Sheffe simultaneous confindence intervals could be conservative and pretty wide.

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