Label shift
Label shift is a distribution change in which class proportions change while the distribution of features conditional on each class remains unchanged.
For source distribution P and target Q, label shift assumes P(X | Y) = Q(X | Y), while class probabilities may differ. This is a specific distribution-shift model, not a synonym for any change between fleets or time periods. [1]
With a fixed prediction rule and unchanged class-conditional feature distributions, population recall and false-positive rate remain unchanged. Precision depends on prevalence: TPR x pi / (TPR x pi + FPR x (1 - pi)), where pi is the positive-class proportion and the denominator must be positive. Finite-sample estimates can still vary. [1]
In a constructed 10,000-observation example, 80% recall and 10% FPR give precision 4000/4500 with 50% positives and 80/1070 with 1% positives. At the same 1% prevalence, changing the healthy-class alarm rate to 20% gives 80/2060 instead. The last population violates the fixed-rule label-shift model; prevalence alone cannot select the right result. [3]
For storage, retain the observation unit, failure definition and prediction horizon. Changes in device mix, telemetry or within-class sampling can change the conditional distributions, so prior correction needs more than a new fleet failure count. [1]
Relations
Limitations
- Estimating unseen target class proportions with BBSE additionally needs source support for target labels and an invertible expected confusion matrix. [1]
- Posterior reweighting requires justified probabilities; arbitrary classifier scores do not become calibrated by changing class priors. [2]
Citations
- Lipton, Wang and Smola. Detecting and Correcting for Label Shift with Black Box Predictors. ICML 2018, assumptions A.1-A.3 and Lemma 1.
- Podkopaev and Ramdas. Distribution-free uncertainty quantification for classification under label shift. UAI 2021, section 3.2.
- Hesela: exact synthetic class-mixture counts and a conditional-shift counterexample.
Further reading
- Hesela: exact-count invariance, zero-denominator and invalid-input regression tests.
- Hesela: cloud disk-error prediction and time-forward evaluation.
Sources & caveats
- 2026-11-23: reviewed Lipton et al., assumptions A.1-A.3 and Lemma 1; definition and fixed-rule rate invariance are distinct from BBSE estimation conditions.
- 2026-11-23: reviewed Podkopaev and Ramdas, section 3.2, equation 16, for posterior and calibration scope.
- The 10,000-observation populations are exact constructed counts, not measured drives, estimated fleet rates or a reproduction of a published storage experiment.
- Device-mix and label-horizon cautions apply the conditional-distribution assumption to storage; no named fleet is asserted to satisfy label shift.
- 2026-11-23: added a reciprocal covariate-shift relation, contrasting which conditional distribution is held fixed; existing definition and example unchanged.