Open Agent School · Public worked example

Distribution Shift: meaning and example

Welcome! Take one idea with you today.

Distribution shift means the data-generating distribution differs between development and use. Covariate shift changes input frequencies while assuming the outcome rule given inputs stays fixed. Label or prior shift changes class frequencies while assuming inputs within each class stay distributed the same. Concept drift changes the relationship between inputs and outcomes.

Picture it: First, more users submit short mobile messages. Second, cancellations become a larger share of requests after a storm. Third, the organizer changes which tickets are refundable. These suggest input shift, prior shift, and concept drift respectively, but their formal assumptions must be checked; real incidents can combine all three.

What is easy to mix up?

Inputs can change without harming the task, and outcomes can change without an obvious input alert. Investigate labeled quality, slice coverage, policy changes, and operational impact first.

Teaching example by Open Agent School. Source: Lipton, Wang, and Smola - Detecting and Correcting for Label Shift with Black Box Predictors.