This page assumes nothing. Before you can read "P(Y∣X) changes" or "PSI=∑(ci−ri)lnrici", every one of those squiggles has to earn its place. We build them one at a time, each on top of the last, each with a picture.
Before any symbol, the single mental image you must own is a distribution: not a number, but a shape describing how often each value shows up.
Look at the picture: the horizontal axis is the value (age), the vertical axis is how common that value is. The whole topic of drift is nothing but comparing two of these shapes — one from the past, one from now — and measuring how far apart they drifted.
Why does the topic need this? Because a model was tuned to one shape. If the shape moves, the model's assumptions crack.
This is the most important symbol on the whole parent page, so we build it slowly.
The picture separates the two ideas cleanly:
P(X) = which people walk through the door (the input shape).
P(Y∣X) = for a fixed person, how the world decides their outcome (the rule).
Why the topic needs this split: drift comes in exactly two flavours, and they map perfectly onto these two objects. Data drift = the door-crowd P(X) changed. Concept drift = the deciding rule P(Y∣X) changed. Keep this figure in your head for the entire topic.
To compare shapes numerically we chop the value axis into slices called bins. This is exactly the "turn a continuous PDF into discrete heights" bridge promised in Section 0.
The picture shows the same axis binned twice — reference bars and current bars side by side. PSI, KL, and chi-square all just walk bin-by-bin and add up how much the bars disagree. Once you see ri and ci as "two bar heights in the same bin," those formulas stop being scary.
The graph below is deliberately small: read it in three streams. (1) The far-left column is the conceptual spine — a distribution splits into the two factors, which combine and then split again into the two drift types. (2) The middle stream is the data-drift toolkit — samples become bins, bins feed the log-ratio scores. (3) The right stream is the two specialist tools — CDF-based KS and error-based DDM. All three streams pour into "full drift detection" at the bottom.
Cover the answers; if you can state each, you are ready for D2.
What is a "distribution" in one sentence?
A description of how often each value occurs — a bucket-shape / histogram (discrete) or density curve (continuous) over the values.
What is the difference between a PMF and a PDF?
A PMF gives a real probability height on each discrete value (heights sum to 1); a PDF is a smooth curve where area under a range gives the probability (total area 1) and any single exact value has probability 0.
How do you feed a continuous feature into PSI/KL, which need heights that sum to 1?
Bin it — chop the range into slices and let each slice's fraction of points become a discrete height; or skip binning and use the KS test directly.
What is the difference between P(X) and P(X=x)?
P(X) is the whole shape (one height per value); P(X=x) is the single height at the specific value x.
Read P(Y∣X) aloud and say what it is.
"Probability of answer Y given inputs X" — the model's input→output rule.
Write the chain rule and say why it forces exactly two drift types.
P(X,Y)=P(Y∣X)P(X); the world can only drift if one factor drifts, so it's data drift or concept drift, never a third.
Which factor moves in data drift? In concept drift?
Data drift = P(X) moves; concept drift = P(Y∣X) moves.
Why compare a reference window to a current window instead of measuring P directly?
We never observe the true P, only finite samples, so we compare two samples.
What are ri and ci, and what breaks if a bin is empty?
Fractions of reference/current points in bin i; an empty bin gives ln0=−∞ or divide-by-zero, so add a small floor ε (smoothing) or merge the bin.
In chi-square, what are Oi and Ei, and how do they relate to ri,ci?
Oi=ciN = observed current counts; Ei=riN = counts expected from reference proportions on a window of N points.
Why does chi-square divide (Oi−Ei)2 by Ei?
To scale each mismatch relative to what's normal for that category — a gap of 10 is huge if you expected 5, trivial if you expected 5000.
What does F(x) mean and what does sup pick out in the KS test?
F(x) = fraction of points ≤x (the cumulative staircase); sup picks the largest vertical gap between the two staircases.
In the concept-drift formulas, what does the index i count?
A running time step / sample number as predictions stream in — not a bin.
What does si=pi(1−pi)/ni measure?
The natural random wobble (standard deviation) of the error-rate estimate at step i; it shrinks as ni grows.
Why does DDM wait for a 3σ jump?
A rise that large is a ~0.1% luck event, so it's almost surely real degradation, not noise.