Skip to content

Fix time-dependent reference prevalence by horizon - #328

Merged
uriahf merged 8 commits into
mainfrom
fix/time-reference-prevalence
Aug 20, 2026
Merged

Fix time-dependent reference prevalence by horizon#328
uriahf merged 8 commits into
mainfrom
fix/time-reference-prevalence

Conversation

@uriahf

@uriahf uriahf commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • add a shared helper that derives time-dependent reference prevalence from cutoff 0 only
  • use it for Precision-Recall, Lift, and Decision Curve *_times functions
  • add regression coverage for two populations across two horizons with deliberately conflicting cutoff-1 values

Scope

This intentionally does not change ROC (its diagonal reference is prevalence-independent) or Gains (already fixed and covered separately). It also avoids unrelated API cleanup such as size, colors, sorting, calibration heuristics, or export changes.

Why

The generic time-dependent reference helper included both cutoff 0 and cutoff 1. Under time-dependent AJ adjustment, those boundary rows can differ, so prevalence-dependent reference curves could accidentally use/mix the wrong value across a population/horizon. The regression tests lock the reference estimate to reference_group × fixed_time_horizon at cutoff 0.

@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-08-20 08:31 UTC

@uriahf
uriahf marked this pull request as ready for review August 20, 2026 08:30
@uriahf
uriahf merged commit d9454a4 into main Aug 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant