MACHINE LEARNING · CALIBRATION
When Base Rates Shift, Model Confidence Drifts
A classifier can keep seeing the same evidence and still become miscalibrated when the population changes.
The parcel scanner
The source and current populations have the same base rate. The original confidence remains appropriate.
Run a parcel audit
Draw a fresh batch from the current population. Among parcels with positive scanner evidence, compare the observed positive fraction with the target-population Bayes prediction.
Run the audit to take a finite sample and compare it with the model's target-population prediction.
Independent numerical checks
Checks recompute whenever a control changes. Differences are relative to the stated reference value; zero is expected for these algebraic identities.
OPEN THE MODELThe science+
1. The same evidence, a different prior
The scanner emits one of two evidence states, positive (+) or negative (−). Sensitivity and specificity describe the evidence process and are held constant between populations. Only the prevalence of the positive class changes.
Here π is positive-class prevalence, s is sensitivity, and c is specificity. The original model uses the source prevalence πs. Under label shift, the current population uses πt, so its posterior probabilities must be recalculated.
2. Odds correction
This is prior-probability adjustment. It is valid when class-conditional evidence distributions remain stable: P(E | Y) does not change. It is not a universal repair for arbitrary distribution shift.
3. What is simplified?
The observatory uses a binary class and two evidence outcomes, fixed sensitivity and specificity, and a known prevalence for each population. Real models usually emit continuous scores, have many classes, and estimate these quantities from finite data. The parcels and scanner are illustrative, not a deployed screening system.
All rates and sample counts are illustrative. The probability identities are textbook; no external dataset is used. A change in sensitivity or specificity is concept drift and is outside this label-shift-only model.