docs: fix counterfactual-fairness.md's COMPAS numbers to the repo-canonical figures - #561
Merged
yakew7 merged 1 commit intoSep 10, 2026
Conversation
…onical figures The COMPAS "biased model" table cited Black 58.15% / White 28.37% / 29.78pp gap. Those numbers appear nowhere else in the repo. The canonical unfair.py COMPAS result, cited identically by README.md and 8+ other explainers, is Black 87.16% / White 0.40% / 86.77pp. Replaced the table with the canonical figures (and matched the "High-Risk Flag Rate" header wording used elsewhere). The surrounding causal-graph narrative (CustodyStatus proxy, prior arrests downstream of race, why dropping race alone didn't help) is unchanged and holds identically. Regenerated the page, package mirror, and llms-full.txt. Closes yakew7#551
propcgamer20-png
requested review from
Shreyash0712 and
yakew7
as code owners
September 9, 2026 20:11
Contributor
|
@propcgamer20-png 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. |
|
@yakew7 @Shreyash0712 - new PR touching a path you own, please review. |
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.
Problem
explainers/counterfactual-fairness.md's COMPAS "biased model" table cited:Those three numbers appear nowhere else in the repo. The canonical
unfair.pyCOMPAS result - cited identically byREADME.mdand at least 8 other explainers (automation-bias,confounding-variable,data-leakage,how-ai-detects-patterns,ml-bias,proxy-variables,ai-objectivity-myth, ...) - is Black 87.16% / White 0.40% / 86.77pp.Fix
Replaced the table with the canonical figures and matched the "High-Risk Flag Rate" header wording used elsewhere. The surrounding causal-graph narrative (CustodyStatus as a race proxy, prior arrests being causally downstream of race, why removing race alone didn't remove the bias) does not cite the numbers again and holds identically - if anything the real 86.77pp gap makes the point more sharply. Regenerated
counterfactual-fairness.html, thefaircode/_explainers/mirror, andllms-full.txt.check_em_dash.py,check_broken_links.py,check_generated_files_current.pypass.Closes #551