Healthcare Readmission/unfair.py's self-pay claim contradicts its own printed crosstab (AfricanAmerican rate is lower than Caucasian's, not higher)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- data, machine-learning
Research direction
The issue is in Healthcare Readmission/unfair.py, specifically the 'Self-pay rate by race' proxy-analysis block. Run the script to see the printed crosstab and the contradictory claim. Examine the code that generates the claim and the data grouping logic. Determine whether to adjust the claim's wording to match the data or remove the inaccurate assertion.
Written by the indexing model from the issue text.
Description
Where: Healthcare Readmission/unfair.py, the "Self-pay rate by race" proxy-analysis block, printed at runtime.
The gap: The script prints:
"Self-pay = uninsured. Uninsured rates are higher among minority populations due to structural access gaps."
immediately under a crosstab it just computed and printed itself, which shows the opposite for the dataset's largest minority subgroup:
Repro:
$ python3 "Healthcare Readmission/unfair.py" 2>&1 | sed -n '13,20p'
Self-pay rate by race:
AfricanAmerican 2.6%
Asian 10.1%
Caucasian 5.2%
Hispanic 5.8%
Other 7.6%
AfricanAmerican (2.6%) is lower than Caucasian (5.2%) - not higher. Asian, at 10.1%, is the highest of all groups. The "is_minority" grouping used everywhere else in this exact script (~df['race'].isin(['Caucasian','Asian'])) makes AfricanAmerican the dominant minority subgroup, so the claim "uninsured rates are higher among minority populations" is directly contradicted by the script's own data for that subgroup. (Contrast with the adjacent Medicaid claim two paragraphs up, which is well-supported: Hispanic 9.0% and AfricanAmerican 5.5% both exceed Caucasian's 2.7%.)
Fix direction: Correct or remove the self-pay claim's directional assertion - either restrict it to the subgroups it's actually true for (Asian, Other, Hispanic), or drop the "higher among minority populations" framing since it doesn't hold for AfricanAmerican specifically.
- Dominant language
- HTML
- Stars
- 47
- Forks
- 45
- Avg merge
- 2h
- Merged PRs (30d)
- 92
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from yakew7/Fair-Code
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
bug documentation
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
bug documentation
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
All issues in yakew7/Fair-Code
Similar issues
-
area:recipes bug priority:p1 wave:1
Difficulty 2/5 Under an hour Newbie friendliness 92/100
jejjohnson/gaussx#386 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
deepchem/deepchem#5159 · 2 comments ·
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Hebbian-Robotics/hflow#633 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day