Text & documents
Numbers & maths
Data & formats
Security
Development & DevOps
Artificial Intelligence
Finance
Health & Wellness
Productivity
Games & Entertainment
Multimedia & design
Business
How to use
What drift is

A model learns from data of one moment. In production the world changes: covariates (the variables change: different customers arrive), concept (the relationship between the variables and what is predicted changes), labels (the share of positives changes) or a sudden jump (a new form, a recalibrated sensor). Drift starts in week 7 (the shaded area).

PSI, KS and accuracy

PSI (population stability index) compares each variable's distribution with the training one by deciles: below 0.1, stable; 0.1 to 0.2, moderate; above 0.2, major change. KS measures the largest distance between the two cumulative distributions; with p < 0.01, they have changed. Both look only at the VARIABLES: no labels needed, but they don't see concept drift. Accuracy does see it, but needs the true labels, which usually arrive late (whether a loan is repaid is known months later).

Data driftPSI, KS and the model that breaks in production
Data driftPSI, KS and the model that breaks in production

A risk model (two variables, x₁ and x₂) is trained and goes into production. For 20 weeks new data arrives; from week 7, something changes. When do you find out, and with what?

The true labels arrive:

The most treacherous: the variables don't change, so PSI and KS say nothing, while accuracy sinks. Only accuracy gives it away, and late, because the labels take time to arrive (raise the delay and see how much). Retraining with recent data partly recovers it.