Editing
Automated Dispute Resolution and Algorithmic Justice
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== <span style="color: #FFFFFF;">Applying</span> == '''Modeling 'The Bias Audit' (Detecting Algorithmic Bias in a Risk Assessment Tool):''' <syntaxhighlight lang="python"> def audit_algorithm_for_bias(predictions): """ Audits a risk assessment algorithm for demographic bias. predictions: list of dicts with 'group', 'actual_reoffend', 'predicted_high_risk' """ from collections import defaultdict stats = defaultdict(lambda: {'fp': 0, 'tn': 0, 'tp': 0, 'fn': 0, 'total': 0}) for p in predictions: g = p['group'] stats[g]['total'] += 1 actual, predicted = p['actual_reoffend'], p['predicted_high_risk'] if not actual and predicted: stats[g]['fp'] += 1 # False positive (wrongly labeled risky) elif not actual and not predicted: stats[g]['tn'] += 1 elif actual and predicted: stats[g]['tp'] += 1 elif actual and not predicted: stats[g]['fn'] += 1 print("BIAS AUDIT RESULTS:") for group, s in stats.items(): fpr = s['fp'] / (s['fp'] + s['tn']) if (s['fp'] + s['tn']) > 0 else 0 print(f" {group}: False Positive Rate = {fpr:.1%} (wrongly labeled 'high risk')") # Simulated COMPAS-like dataset import random; random.seed(42) data = ([{'group': 'Group A', 'actual_reoffend': random.random() < 0.4, 'predicted_high_risk': random.random() < 0.45} for _ in range(200)] + [{'group': 'Group B', 'actual_reoffend': random.random() < 0.4, 'predicted_high_risk': random.random() < 0.55} for _ in range(200)]) audit_algorithm_for_bias(data) </syntaxhighlight> ; Justice Landmarks : '''eBay Resolution Center''' β "Resolves" **"60M+ Disputes/Year"** β "The World's Largest" "ODR" "System." : '''ProPublica's COMPAS Analysis (2016)''' β "Exposing" **"Racial Bias"** in "Criminal Risk Assessment" β "The Defining Moment" for "Algorithmic" "Justice" "Ethics." : '''The EU AI Act (2024)''' β "Classifying" **"Criminal Justice AI"** as "High Risk" β "Requiring Transparency, Explainability, Human Oversight." : '''Kleros''' β "The First" **"Blockchain" "Dispute Resolution"** "System" β "Used" for "DeFi," "Content," "Translation" "Disputes." </div> <div style="background-color: #8B4500; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
Summary:
Please note that all contributions to BloomWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BloomWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information