Thread Futures · model monitoring

Stall-risk model, scored on later launches

Real retail data · UCI Online Retail II Trained on SKUs launched before Oct 2010, then scored quarter by quarter on launches it never saw. Generated by python -m stock.monitor.

Accuracy and calibration by launch quarter

Launch quarterSKUsROC AUCPR AUCPredicted stall rateActual stall rateAlerts
2010Q41750.8140.65728.4%21.1%early_units_per_week: PSI 0.316
early_zero_week_share: PSI 2.634
early_customers: PSI 0.279
early_orders: PSI 0.397
early_return_rate: PSI 0.261
launch_list_price: PSI 0.377
launch_month: PSI 8.883
early_trend: KS p=1.5e-05
2011Q1700.6150.30620.9%7.1%early_units_per_week: PSI 1.616
early_trend: PSI 0.328
early_zero_week_share: PSI 0.559
early_customers: PSI 1.212
early_orders: PSI 0.881
early_return_rate: PSI 0.413
launch_list_price: PSI 1.513
launch_month: PSI 3.347
AUC 0.62 below 0.7
2011Q21780.7920.43813.9%1.7%early_units_per_week: PSI 1.311
early_zero_week_share: PSI 0.899
early_customers: PSI 1.119
early_orders: PSI 1.182
launch_list_price: PSI 0.413
launch_month: PSI 5.24
early_trend: KS p=0.00182
early_return_rate: KS p=1.3e-05

Data drift: PSI per feature versus training data

PSI above 0.25 is highlighted (major shift). KS-test p-values are in models/monitoring.json.

Feature2010Q42011Q12011Q2
early_units_per_week0.3161.6161.311
early_trend0.1630.3280.238
early_zero_week_share2.6340.5590.899
early_customers0.2791.2121.119
early_orders0.3970.8811.182
early_return_rate0.2610.4130.07
early_max_markdown0.00.00.0
launch_list_price0.3771.5130.413
launch_month8.8833.3475.24
is_seasonal_christmas0.00.00.0

Offcut forecast: error by garment

Simulated cutting runs. Error by garment on the 1,600-run hold-out. P10–P90 range covers 76.8% of outcomes (target 80.0%).

GarmentMean abs. error
dress2.16 pp
hoodie1.6 pp
jeans1.23 pp
shirt1.86 pp
tee1.22 pp

Back to Thread Futures