What is the difference between covariate shift and label shift?

Quick Overview

Asks how covariate shift differs from label shift when the data a model sees in deployment change. Tests which distribution each assumption holds fixed, how the causal direction guides the choice, and how importance weighting or prior re-estimation corrects each one.

What is the difference between covariate shift and label shift?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What is the difference between covariate shift and label shift? For each one, say what changes between training and deployment, what is assumed to stay the same, and how you would correct a model for it. ```hint Factor the joint Write the joint distribution $p(x, y)$ in its two possible factorizations. Each kind of shift keeps one factor fixed and lets the other move. ``` ```hint Think about causes Ask whether the features cause the label or the label causes the features in a given problem. That usually tells you which assumption is believable. ``` ### What a Strong Answer Covers - The precise definition of each shift: which distribution changes and which conditional stays fixed - How the causal direction of the problem suggests which assumption holds, with an example of each - The standard correction for each shift and how its weights are estimated - Why monitoring the inputs alone cannot separate the two, and what happens when neither assumption holds ### Follow-up Questions - How does Black-Box Shift Estimation recover the new class priors without any labels from the deployment data? - What goes wrong with importance weighting when deployment inputs fall outside the region covered by training data? - Your model's predicted positive rate jumps from 2% to 6% in production. How would you work out whether this is label shift, covariate shift or concept drift? - Does a well-specified model need importance weighting under covariate shift? Why or why not?

Overview: Asks how covariate shift differs from label shift when the data a model sees in deployment change. Tests which distribution each assumption holds fixed, how the causal direction guides the choice, and how importance weighting or prior re-estimation corrects each one.

General logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

What is the difference between covariate shift and label shift? For each one, say what changes between training and deployment, what is assumed to stay the same, and how you would correct a model for it.

What a Strong Answer Covers Guidance

  • The precise definition of each shift: which distribution changes and which conditional stays fixed
  • How the causal direction of the problem suggests which assumption holds, with an example of each
  • The standard correction for each shift and how its weights are estimated
  • Why monitoring the inputs alone cannot separate the two, and what happens when neither assumption holds

Follow-up Questions Guidance

  • How does Black-Box Shift Estimation recover the new class priors without any labels from the deployment data?
  • What goes wrong with importance weighting when deployment inputs fall outside the region covered by training data?
  • Your model's predicted positive rate jumps from 2% to 6% in production. How would you work out whether this is label shift, covariate shift or concept drift?
  • Does a well-specified model need importance weighting under covariate shift? Why or why not?