Log inStart free
LESSON 4.64 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Drift detection

Watch six monitors catch four kinds of drift in a model's weekly data.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 4.64 · MONITOR BAYWEEK 8 · DRIFT 100%
01
Stage 1 of 6 · Model and data
A logistic regression learns its line from 2000 reference rows. In week 8, the dashed true line has moved.
Explain it simply

The model learned a line from old data, called the reference. Dots have label 1 and squares have label 0. Each week, new rows arrive and the model scores them. Drift means the new rows stop looking like the reference, so the line can stop fitting.

A scatter of the first 40 rows of week 8, with the model line from the reference. The monitor grid on the right is still empty.

rows, inputs, labelsmodel line, limits, weekscores p̂alarms, gaps, empty cellstrue line, reference
refdrift amount12345678missing x₁ >5%PSI x₁ >0.2PSI x₂ >0.2PSI p̂ >0.2label rate ±10accuracy −5ECE >0.08x₁x₂model linetrue lineweek 8 · 1000 rowsmonitors · weeks 1 to 8p̂ = σ(2.00·x₁ + 0.97·x₂ + 0.03)refdrift amount12345678missing x₁ >5%PSI x₁ >0.2PSI x₂ >0.2PSI p̂ >0.2label rate ±10accuracy −5ECE >0.08x₁x₂model linetrue lineweek 8 · 1000 rowsmonitors · weeks 1 to 8p̂ = σ(2.00·x₁ + 0.97·x₂ + 0.03)
Toy: 2000 reference rows, 8 weeks of 100 or 1000 rows
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
p^=σ(w1 x1+w2 x2+b)\sy{p}{out}{\hat p} = \sigma(\sy{w}{param}{w_1}\,\sy{x}{data}{x_1} + \sy{w}{param}{w_2}\,\sy{x}{data}{x_2} + \sy{w}{param}{b})
p^=σ(2.00 x1+0.97 x2+0.03)\hat p = \sigma(2.00\,x_1 + 0.97\,x_2 + 0.03)

The model turns two inputs into the chance of label 1.

Common mix-ups

MYTHIf the inputs do not move, the model is fine.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With concept drift, does any PSI row raise an alarm?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.