Skip to content

docs: fix counterfactual-fairness.md's COMPAS numbers to the repo-canonical figures - #561

Merged
yakew7 merged 1 commit into
yakew7:mainfrom
propcgamer20-png:docs/counterfactual-fairness-compas-numbers
Sep 10, 2026
Merged

docs: fix counterfactual-fairness.md's COMPAS numbers to the repo-canonical figures#561
yakew7 merged 1 commit into
yakew7:mainfrom
propcgamer20-png:docs/counterfactual-fairness-compas-numbers

Conversation

@propcgamer20-png

Copy link
Copy Markdown
Collaborator

Problem

explainers/counterfactual-fairness.md's COMPAS "biased model" table cited:

Group High-Risk Rate
Black defendants 58.15%
White defendants 28.37%
Fairness Gap 29.78pp

Those three numbers appear nowhere else in the repo. The canonical unfair.py COMPAS result - cited identically by README.md and 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, the faircode/_explainers/ mirror, and llms-full.txt.

check_em_dash.py, check_broken_links.py, check_generated_files_current.py pass.

Closes #551

…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
@vercel

vercel Bot commented Sep 9, 2026

Copy link
Copy Markdown
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.

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

@yakew7 @Shreyash0712 - new PR touching a path you own, please review.

@yakew7
yakew7 merged commit 1415a27 into yakew7:main Sep 10, 2026
18 of 19 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.

counterfactual-fairness.md's COMPAS example cites numbers found nowhere else in the repo (58.15%/28.37% instead of the real 87.16%/0.40%)

2 participants