Sub topic 2
The Monitoring Gap: What You Can and Cannot Know Today
Prerequisites and the central problem
This chapter assumes you know binary classification metrics such as accuracy, precision, recall, and ROC AUC. You should also be comfortable with Python, pandas, train-validation-test splits, and prediction logs.
A deployed model often produces a prediction before the real outcome exists. A fraud model may predict whether a payment is fraudulent, but the chargeback may arrive weeks later. A churn model may predict cancellation, but the customer may remain active for months.
The monitoring gap is the time between a prediction and the arrival of its outcome label. During this period, you can observe the model's inputs and outputs, but you cannot directly calculate its true performance.
What you can know today
A prediction log can answer operational questions immediately:
- How many requests did the model receive?
- Which model version produced each prediction?
- What scores and predicted classes did it produce?
- Did input values change or become invalid?
- How did the distribution of scores change?
- How many outcomes have arrived so far?
- How old are the predictions without labels?
These measurements are useful, but they are not the same as model performance. A stable score distribution does not prove that accuracy is stable. A sudden distribution change is a warning, not proof that the model is wrong.
| Observation available now | What it tells you | What it does not prove |
|---|---|---|
| Prediction count | Traffic and coverage | Correctness |
| Score distribution | Changes in model outputs | Changes in accuracy |
| Feature distribution | Possible input drift | A change in the true outcome |
| Labels received so far | Performance for that selected subset | Performance for all recent predictions |
| Missing-label rate | How incomplete monitoring is | Whether missing cases are positive or negative |
A missing label is unknown unless your domain defines a reliable meaning for it. Treating every missing label as a negative can make a fraud model look better than it is.
Make the gap visible
Create a monitoring snapshot that reports both performance and its evidence. For example, report the number of predictions, the number of labels, and the age of the newest fully evaluated cohort.
import pandas as pd
predictions = pd.DataFrame({
"id": [1, 2, 3, 4],
"predicted_at": pd.to_datetime([
"2026-11-20", "2026-11-21", "2026-11-28", "2026-11-29"
]),
"score": [0.90, 0.20, 0.80, 0.30],
})
labels = pd.DataFrame({
"id": [1, 2],
"label": [1, 0],
})
now = pd.Timestamp("2026-11-30")
joined = predictions.merge(labels, on="id", how="left")
joined["has_label"] = joined["label"].notna()
print(f"predictions: {len(joined)}")
print(f"labels received: {joined['has_label'].sum()}")
print(f"label coverage: {joined['has_label'].mean():.1%}")
print(f"unlabeled predictions: {(~joined['has_label']).sum()}")This output separates the volume of predictions from the amount of evidence available for evaluation. It does not calculate accuracy because the two unlabeled rows have no known outcomes.
Use proxy signals carefully
Before labels arrive, teams often monitor proxies. A proxy is an observable measurement that may indicate a problem indirectly. Examples include:
- Feature and score drift compared with a reference period
- Changes in prediction volume or class balance
- Increases in manual review or user complaints
- Changes in downstream actions, such as approvals or declines
- Data validation failures and missing features
Proxies are early-warning signals. They can alert you to changed conditions, but they cannot establish a performance value without assumptions. A score shift might result from a real population change, a logging bug, or a model deployment.
Separate current evidence from future reconciliation
A useful monitoring record has two states:
- Current estimate: what the available data suggests today, including coverage and uncertainty.
- Reconciled result: the actual metric calculated after the required labels arrive.
The reconciliation step reveals whether a proxy or estimate was trustworthy for this population and period. Keep those comparisons by model version and cohort so that future alerts become evidence-based.
Exercise
A new model's score distribution is unchanged, but label coverage is only 20%. Can you report that its accuracy is unchanged?
Show answer
No. The stable score distribution is only a proxy, and 80% of outcomes are still unknown. Report the distribution and coverage separately, then evaluate a matured cohort when labels arrive.