At Quillfern Parcels. This is the system from chapter 9 of the Quillfern story, "Predicting delivery times": Customers want an arrival time, not a day. A model trained on last quarter's parcels gets heavy holiday parcels badly wrong.
What the model simplifies
One input feature, parcel weight, in five buckets. Drift is measured with the population stability index (PSI) between the training data and this week's parcels. The common reading: under 0.1 stable, 0.1 to 0.25 moderate, over 0.25 significant. Retraining here means training on recent data, so the new baseline is this week's mix. Every number on this page comes from one shared set of calculations, which the simulation questions use too, so a question can never disagree with what the simulator shows.
The drills, written out
Holiday parcels drift away from the training data
- Healthy state. This week's parcels match the training data: PSI 0.000, stable.
- Trigger. In the holiday season a furniture retailer starts shipping with Quillfern, and heavy parcels become far more common.
- What is affected. Delivery-time predictions, mostly for heavy parcels, which take longer to load and need two-person delivery.
- Symptoms. Customers are told "tomorrow by noon" for sofas that arrive in the evening; complaints about late deliveries rise, though drivers are on time for their routes.
- Metrics. PSI rises to 0.425, significant. The share of parcels over 20 kg goes from 5% to 18%.
under 1 kg 30% 15% 0.111
1–3 kg 35% 22% 0.056
3–10 kg 20% 24% 0.006
10–20 kg 10% 22% 0.093
over 20 kg 5% 18% 0.159
- Logs. The drift monitor raises an alert and triggers the retraining pipeline.
drift-monitor: feature=weight_bucket psi=0.425 threshold=0.25 status=DRIFT
retrain: pipeline run started, training window = last 4 weeks
- Reasoning. The model is not broken; the world changed. It learned delivery times from a parcel mix it no longer sees, so its errors are largest exactly where the mix moved.
- Mitigation. Retrain on the last four weeks, compare the new model with the old one on recent deliveries in shadow mode, then promote it through a canary.
- Recovery. Against its own training data the new model's PSI is 0.000, and late-delivery complaints fall back.
- Prevention. Monitor input drift and real prediction error once deliveries complete, schedule retraining before known seasons, and keep the previous model ready for rollback.
Learn it properly
All simulators · Curriculum map