What is the difference between covariate shift and label shift?

Last updated 14 November 2026

  • Covariate shift: p(x) changes while p(y|x) stays fixed (x causes y). Correct by importance weighting with p_test(x)/p_train(x), often estimated by a domain classifier.

  • Label shift: class prior p(y) changes while p(x|y) stays fixed (y causes x, e.g. disease outbreak). Estimate new priors (BBSE, EM) and reweight by p_test(y)/p_train(y).

  • The wrong correction can hurt, and input monitoring alone can't tell them apart. If p(y|x) itself changes, that is concept drift and needs new labels.

All Supervised Learning interview questions