Q&A-1Distinguish data drift, concept drift, skew, and data quality.
Answer
The 90-second answer
These are four different failure questions, and the discriminator is what evidence proves each one.
- Data quality: the value itself is unusable: null, wrong type, out of range, stale, duplicated. It is wrong regardless of what the distribution looks like.
- Skew: training and serving disagree. Either the transform differs between the two paths (training-serving skew), or the serving population differs from the training population (nonstationarity).
- Covariate drift: P(X) moved, P(Y|X) held. Detectable today, no labels required.
- Concept drift: P(Y|X) moved. Same feature values, different correct answer. Needs ground truth.
- Prediction drift: P(ŷ) moved. That is a symptom, not a diagnosis; it can be caused by any of the above.
Why they hide from each other
A monitor on input distributions cannot see concept drift. If amount_usd shifts by PSI 0.3 but the fraud rate conditional on amount is unchanged, the model is still correct: you have covariate drift and no accuracy loss. Flip it: if a merchant category gets reclassified so the same mcc_code now means something else, PSI on that column reads near zero while precision collapses. The input distribution is identical; the label function is not.
That asymmetry sets the detection lag. Covariate drift is visible in the next batch. Concept drift is visible only when labels land: for card fraud, chargeback windows run to roughly 120 days, so you are blind for a quarter unless you have a proxy label.
Worked trace (illustrative figures)
A card-fraud model, 30-day rolling window, PSI rule of thumb: <0.1 stable, 0.1–0.25 moderate, >0.25 significant.
| Week | Signal | Value | Reading |
|---|---|---|---|
| 1 | PSI amount_usd | 0.04 | stable |
| 1 | null rate country_code | 0.02% | healthy |
| 3 | PSI amount_usd | 0.31 | covariate drift, new merchant segment |
| 3 | null rate country_code | 6.3% | data quality, not drift: a client release dropped the field |
| 3 | precision @ 0.5 | 0.72 → 0.41 | unconfirmed; labels not due for ~90 days |
The country_code spike is the one you fix today: block the batch, page the client, backfill. Retraining on it would bake a 6% null-imputed-to-zero population into the model. The PSI spike is a retrain-on-recent-window candidate. The precision drop is a hypothesis you cannot act on until labels arrive.
Choosing a response
| Diagnosis | Evidence | Fix | Retraining helps? |
|---|---|---|---|
| Data quality | schema/range/freshness checks fail | upstream repair, quarantine batch | No: makes it worse |
| Training-serving skew | TFDV skew comparator, JS divergence above its 0.01 default | align the transform, backfill, re-run training | No |
| Covariate drift | PSI/KS on features, labels not needed | retrain on recent window or reweight | Yes, cheaply |
| Concept drift | labelled accuracy/AUC decay | retrain with labels, or roll back | Yes, but only with ground truth |
| Prediction drift alone | output histogram shift | investigate, do not act | Not yet |
Failure modes to name
- Retraining on skewed features. The model learns the bug. Symptom: offline metrics improve, online metrics do not.
- Output-only monitoring. Prediction drift alerts fire, but concept drift stays invisible for the full label latency. Detect by tracking a proxy label (e.g. dispute rate) alongside.
- PSI on high-cardinality categoricals. It explodes on sparse bins. Use chi-square or Jensen–Shannon divergence instead, and bin first.
- Silent nulls. A null imputed to 0 passes range checks. Detect with explicit null-rate expectations (Great Expectations
expect_column_values_to_not_be_null), not range assertions. - Alert fatigue. Per-feature thresholds on 400 features produce hundreds of daily alerts. Aggregate to a drift share and alert on the share crossing a threshold.
Tools that carry this: TFDV for skew and schema, Evidently's DataDriftPreset for PSI/KS/JS, Great Expectations or Deequ for data quality. The point of the split is that each one routes to a different fix, and only concept drift requires waiting for labels.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.