Sub topic 11
Monitoring when labels are late or missing
This chapter assumes you can compute drift scores on features and predictions, and that you know metrics such as ROC AUC. Here the question changes. Performance metrics need ground truth, and ground truth often arrives weeks later or never.
Why labels lag
A fraud model learns the true outcome only after a chargeback, which can take 30 to 90 days. A loan default model waits months. A recommender may never see a true label, only clicks. Until labels arrive, performance is unknown, so you need other evidence.
Signals available before labels
Use these in layers, from fastest to slowest:
- Input and prediction drift. Feature drift tests and score distribution checks need no labels. They show that something changed, not that accuracy fell.
- Proxy signals. These are fast outcomes correlated with the real label. Examples are user overrides, manual review rates, support tickets, refunds, and click-through rate.
- Sampled labeling. Send a random sample of predictions to human reviewers. A few hundred labels per week can give a usable accuracy estimate with a confidence interval.
- Full labels. Compute the real metric once the outcomes mature.
Evaluate by prediction date, not label date
Group predictions by the date they were made, then compute the metric for each cohort once its labels have matured. If you instead score whatever labels have arrived so far, the result is biased. Fast labels are rarely typical. Quick chargebacks, for example, may come from a different kind of fraud than slow ones.
The example below simulates delayed labels. It reports label coverage for every weekly cohort and computes AUC only for cohorts with complete labels.
import numpy as np
import pandas as pd
from sklearn.metrics import roc_auc_score
rng = np.random.default_rng(0)
days, per_day = 60, 100
n = days * per_day
score = rng.uniform(size=n)
df = pd.DataFrame({
"pred_date": np.repeat(pd.date_range("2026-01-01", periods=days), per_day),
"score": score,
"label": (rng.random(n) < score).astype(int),
})
df["label_date"] = df["pred_date"] + pd.to_timedelta(rng.integers(5, 40, size=n), unit="D")
as_of = pd.Timestamp("2026-03-01")
df["week"] = df["pred_date"].dt.to_period("W")
rows = []
for week, g in df.groupby("week"):
known = g[g["label_date"] <= as_of]
coverage = len(known) / len(g)
auc = roc_auc_score(known["label"], known["score"]) if coverage == 1.0 else np.nan
rows.append({"week": str(week), "label_coverage": round(coverage, 2), "auc": auc})
print(pd.DataFrame(rows).to_string(index=False))Early weeks show full coverage and an AUC. Recent weeks show partial coverage and NaN. Those recent weeks are where you rely on drift and proxy signals.
Common errors
- Reading partial cohorts as final. A metric on 40% of labels can look better or worse than the final one. Show coverage next to every metric.
- Selection bias. If labels exist only for cases the model approved, such as repaid loans, the labeled data does not represent all inputs. Sample some rejected cases or use a holdout policy.
- Trusting a proxy blindly. Proxies can move for reasons unrelated to model quality, such as a UI change. Validate each proxy against real labels when they arrive.
- Treating drift as failure. Drift without a performance drop may be harmless. Use it to prioritize investigation and to decide when to spend labeling budget.
Exercise
A churn model's labels mature after 60 days. Last week's cohort shows 20% label coverage and a lower AUC than usual. What should you conclude, and what should you check instead?
Show answer
Nothing yet. The 20% of labels that arrived first are probably not representative, so the AUC is unreliable. Check feature drift, prediction score drift, and fast proxies such as support contacts or cancellation requests. Optionally label a random sample of that cohort. Compute the final AUC when the cohort reaches full coverage after 60 days.