Covariate label and concept drift
Quick answer
Model monitoring compares deployed behavior with a documented reference. Covariate shift changes input distribution P(X) while P(Y|X) stays fixed; label shift changes P(Y) with P(X|Y) fixed; concept drift changes P(Y|X). These are specific assumptions, not conclusions from a dashboard alone. Examples use Python, SciPy 1.17.0 and scikit-learn 1.8.0 with small synthetic inputs. ByteMind execution is unverified.
Changing input mixture
Expected output (locally tested): 0.32 0.68. The label marginal changes even though group-conditional rates stay fixed.
How it works
For a binary outcome Y and input X, P(X,Y)=P(Y|X)P(X)=P(X|Y)P(Y). A changed marginal label rate can occur under covariate shift without pure label shift. A changed conditional relationship may be invisible in feature histograms. Example: a synthetic machine has two load regimes; the mix changes but its failure rule remains fixed. A replacement sensor or changed operating policy may instead alter the conditional outcome. Inspect matched seasons, model versions, data sources, and intervention histories before attributing causes. Compare input distributions immediately and outcome metrics when labels arrive. A stable feature histogram does not establish stable quality, and a changed histogram need not imply worse quality. In practice mixed shifts, feedback and measurement errors may occur together.
Same inputs, changed labels
x=[0,0,1,1]; pred=x.copy(); old=x.copy(); new=[1-v for v in x]print(sum(a==b for a,b in zip(pred,old)),sum(a==b for a,b in zip(pred,new)))Expected output (locally tested): 4 0. The feature distribution is identical while the label rule changes.
Common mistakes
Do not equate any change in positive rate with pure label shift. Do not conclude concept drift from input-only statistics. Compare conditional behavior with mature labels and sufficient samples.
Practice and next steps
Construct two groups with fixed conditional positive rates and changed group proportions. Then change the conditional rate while keeping group proportions fixed. Explain which dashboard can distinguish each case.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Covariate label and concept drift — knowledge check
Apply covariate label and concept drift to small examples and debugging scenarios.
Which quantity changes in pure covariate shift?
What is assumed fixed in pure label shift?
What defines concept drift?
Can label prevalence change under covariate shift?
What does stable input distribution prove?