How does covariate shift affect a supervised model's predictions if the conditional label distribution remains fixed?

Last updated 14 November 2026

  • With p(y|x) fixed, the Bayes-optimal predictor stays correct. A learned model is only fit well where training data was dense, so test mass moving to sparse regions raises error.

  • It hurts most for misspecified models (fit trades off errors to suit the old p(x)), for extrapolation, and for calibration in sparse regions. Aggregate metrics shift too as the mix of easy and hard inputs changes.

  • Remedies: importance weighting by p_test(x)/p_train(x) (watch variance), labelling newly populated regions, and more flexible models. Flagging low-density inputs for review also helps.

  • https://icml.cc/virtual/2024/session/35594
  • https://huyenchip.com/2022/02/07/data-distribution-shifts-and-monitoring.html
All Supervised Learning interview questions