Missingness and delayed outcomes
Quick answer
Missingness monitoring tracks whether required inputs and outcomes arrive as expected. A delayed label is not a negative label. Evaluate predictions by event-time cohort and only use outcomes available at the monitoring cutoff. Examples use Python, SciPy 1.17.0 and scikit-learn 1.8.0 with small synthetic inputs. ByteMind execution is unverified.
Missingness counts
Expected output (locally tested): 2 5. Zero is an observed value, not missing.
How it works
Log an anonymous prediction identifier, prediction time, feature version, missingness flags, prediction score, and outcome availability time. Join labels by stable prediction identity with deduplication. Separate absent, invalid, stale and intentionally optional fields. A missing rate is missing count divided by eligible observations; report denominators and slices. Missing completely at random, missing at random conditional on observed data, and missing not at random are assumptions about missingness, not properties established by one observed rate. Delayed labels may be outcome-dependent; partial-cohort metrics can be biased. Use a fixed maturity window or report coverage and provisional quality. Corrected outcomes need versioning and reproducible snapshots. In the lab, labels arrive after two or three windows; a complete cohort is assessed after three. Production systems may have permanently missing outcomes, requiring careful censoring and uncertainty analysis.
As-of outcome join
rows=[(1,4,1),(2,6,0),(3,4,0)]print([y for _,arrival,y in rows if arrival<=4])Expected output (locally tested): [1, 0]. Only outcomes available at the cutoff enter the evaluation.
Common mistakes
Do not fill missing labels with zero, silently drop rows without coverage reporting, or use outcome arrival date as the prediction cohort date. Do not log sensitive raw features unnecessarily.
Practice and next steps
For six predictions, assign outcome arrival times and compute available coverage at two cutoffs. Compare the provisional metric with the mature result.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Missingness and delayed outcomes — knowledge check
Apply missingness and delayed outcomes to small examples and debugging scenarios.
How should an unavailable label be represented?
Which timestamp defines prediction cohort?
What should accompany partial quality metrics?
Does zero equal missing?
Why deduplicate outcome records?