What is the difference between covariate (data) drift and concept drift, what is an example of each, and how would you detect each in production?

ML systems and evaluation, Monitoring
Level L2 Elementary. Length Short. Nature Th Theoretical.

What's being asked

Whether you can say which part of p(x,y)=p(y∣x) p(x) changes in each case, and know that they need different monitoring.

Key idea

Covariate drift: p(x) changes but p(y∣x) stays the same. Concept drift: p(y∣x) changes, so the same input should now get a different label. The first can be detected from inputs alone; the second needs labels or a proxy for them.

Steps

  1. Factor p(x,y)=p(y∣x) p(x) and define the two drifts. Mention label (prior) shift, where p(y) changes but p(x∣y) does not, as a third type.
  2. Covariate example: a loan model trained on salaried applicants starts seeing many gig workers. Concept example: during a lockdown, a purchase pattern that used to signal fraud becomes normal.
  3. Detect covariate drift by comparing live input statistics with a training reference: population stability index, KL divergence, or per-feature two-sample tests such as Kolmogorov–Smirnov.
  4. Detect concept drift by tracking performance on labels as they arrive (often delayed), or proxies such as shifts in the prediction distribution and user feedback. Respond by retraining on recent data or weighting it more heavily.

Common mistakes

How long your answer should be

4–6 sentences with one example each.

Last checked on 4 December 2026.

Read this

Previous in ML systems and evaluation: When would you prefer PR-AUC over ROC-AUC?
Next in ML systems and evaluation: A search system returns four documents whose graded relevance, in rank order, is [3,2,0,1] (higher is more relevant; 0 is irrelevant). What are precision@3 and NDCG@4, using DCG@k=∑i=1krelilog⁡2(i+1)?