Before you can read a formula like PSI=∑i(ai−ei)ln(ai/ei), you need to earn every piece of it: what a distribution is, what a proportion is, what ln does, what "sum over bins" means. We build them one at a time, each on top of the last. A smart 12-year-old should never hit a symbol we didn't first draw.
The picture: imagine a spreadsheet. Each row is a data point. The coloured columns are features X. The final column is the true label Y. The model reads the coloured columns and scribbles its guess Y^ in the margin.
Why the topic needs it: monitoring watches three different things — the incoming X (data drift), the outgoing Y^ (prediction drift), and the eventual truth Y (performance). If you can't tell these three apart, every later sentence collapses.
If you don't know what a distribution is, the words "data drift" mean nothing. So we build it visually first.
Look at the figure. The horizontal axis is the feature value (income). Each vertical bar is a bin — one bucket. The taller the bar, the more common that range of values.
Raw counts are unfair: a reference batch of 10,000 rows and a new batch of 500 rows can't be compared bar-height to bar-height. So we convert counts into proportions.
The picture: take the bar chart from figure s01 and re-label every bar height as a fraction of the whole. Now the reference chart and the new chart are on the same footing — you can lay one over the other.
Why the topic needs it: PSI compares ai against ei bin by bin. Without proportions the comparison would be dominated by whichever batch is bigger.
Why not stop here? You might think "just add up ∣ai−ei∣ and call it drift." That's a real measure (it's called total variation). But it treats a shift from 40% to 20% the same as 4% to 2% — yet the second is a proportionally bigger upheaval. We need a tool that notices ratios, not just gaps. Enter the logarithm.
We chose the log-ratio because it answers a specific question: "by what multiplicative factor did this bin change?" A gap subtracts; a ratio divides; the log turns that ratio into a clean, sign-aware number.
PSI needs you to choose bins. For a smooth continuous feature, choosing bins is arbitrary. The KS statistic dodges that by comparing cumulative curves instead.
In the figure, two staircases climb the same box. Where the new data sits further right, its staircase lags behind — and the biggest vertical gap between the two curves is marked by the yellow arrow.