Explainer: What Is Model Drift?#75
Merged
Merged
Conversation
Closes yakew7#36. Anchors on the German Credit Lending audit: re-measures its age-based fairness gap across five sequential windows instead of one snapshot (gap ranges 4.3%-15.1% depending on which slice is measured, versus the audit's single 6.39% figure), and adds PSI plus a Page-Hinkley change-point test as detection code. Explicitly scoped against the existing distribution-shift.md explainer: that one covers the one-shot reference-vs-current taxonomy, this one covers ongoing rolling-window monitoring of an already-deployed model.
Contributor
|
@AnayDhawan is attempting to deploy a commit to the yashkewlani2020-gmailcom's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Hey @AnayDhawan, your first PR on Fair Code, that's awesome, thank you. This project is about making AI more accountable, and contributions like yours are what keep that work going. We'll review your changes shortly. If you haven't already, give the contributing guide a quick read: it covers how audits are structured and what we look for in a review. |
yakew7
marked this pull request as ready for review
July 14, 2026 08:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #36.
Concept: Model drift is the ongoing process by which a deployed model's accuracy and fairness gap change over calendar time as the population or the feature-outcome relationship it was trained on keeps moving.
Scoping against
distribution-shift.md: This repo already has a distribution-shift explainer covering covariate/label/concept shift with one-shot reference-vs-current statistical tests (KS test, chi-squared). This explainer is deliberately scoped as the operational counterpart: rolling-window monitoring of a model already in production, using PSI and a Page-Hinkley change-point test, neither of which distribution-shift.md covers. The explainer states this boundary explicitly in its "Why It Matters" and "Related Concepts" sections so it doesn't read as a duplicate.What's included:
credit_amount(0.119, moderate shift) actually moved more thanageitself (0.096, borderline).population_stability_index,page_hinkley_test,rolling_fairness_gap.All numbers were generated by actually running the code in the explainer against the repo's own
German Credit Lending/credit_customers.csv, not invented.