You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
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)
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.
Activity
josef-pkt commentedon Jan 17, 2020
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)
josef-pkt commentedon Jan 17, 2020
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.
josef-pkt commentedon Jan 18, 2020
just a thought: linear recalibration
They check that
logit(y_test) = a + b linpred(x_test)hasa=0, b=1. They use restricted estimation also, estimate intercept under constraint b=1.We could jointly test
a=0, b=1in 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)
josef-pkt commentedon Jan 18, 2020
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.