Algorithmic Bias Compliance Auditor

Audit decision models for Disparate Impact and Equal Opportunity violations under EU AI Act guidelines.

100% Local Processing & Privacy-First: All Disparate Impact Ratio (DIR) computations, demographic outcome statistics, and dataset simulations run entirely in your local browser RAM. No sensitive model training data or protected class attributes are ever uploaded or stored.
Compliance Dashboard
Worst Case DIR ?
1.00
Target: Threshold: > 0.80
Worst Case SPD ?
0.000
Optimal: 0.000

DIR Fairness Gauge

1.0 = Perfect Parity
0.0 (Severe Bias) 0.50 1.0 (Parity)

Favorable Outcome Rates

Demographic Breakdown

Group Name Favorable Rate DIR SPD EOD PP Status

1The Four-Fifths Rule (80% Rule) Explained

Established in the 1978 Uniform Guidelines on Employee Selection Procedures (UGESP), the Four-Fifths (80%) Rule is the historical and foundational benchmark for identifying disparate impact in United States labor and employment law. Initially designed for physical tests and human-driven hiring, it has now become the de facto standard for auditing Artificial Intelligence and Machine Learning models in HR.

The rule explicitly states that a selection rate for any protected group (classified by race, sex, or ethnic origin) which is less than four-fifths (4/5 or 80%) of the rate for the group with the highest selection rate will generally be regarded by Federal enforcement agencies (like the EEOC and DOJ) as evidence of adverse impact.

Crucial Nuance: The Four-Fifths rule is a rule of thumb, not a strict legal mandate. If a company can prove that the selection procedure is "job-related and consistent with business necessity," they may successfully defend an algorithm that fails the 80% test. Conversely, algorithms passing the 80% test can still be struck down if statistically significant bias is proven via other advanced metrics.

How the Calculation Works

  • Step 1: Identify the privileged (highest passing rate) demographic group. E.g., Male candidates have a 50% pass rate.
  • Step 2: Calculate the 80% threshold of that privileged rate. E.g., 50% × 0.80 = 40%.
  • Step 3: Evaluate the unprivileged group. If Female candidates pass at 35%, they fall below the 40% threshold, triggering a presumption of adverse impact.

2Understanding Disparate Impact vs. Disparate Treatment

To effectively audit AI models, compliance teams must understand the critical legal distinction established by landmark Supreme Court cases such as Griggs v. Duke Power Co. (1971). Bias in machine learning rarely manifests as intentional discrimination; instead, it emerges from systemic data patterns.

Disparate Treatment
Intentional Discrimination. Occurs when an algorithm explicitly uses protected attributes (race, gender, religion) as direct features in the decision-making tree. Removing these variables (blinding) prevents disparate treatment.
Disparate Impact
Unintentional Discrimination. Occurs when facially neutral features (like zip code, credit history, or gaps in employment) act as proxies for protected classes, disproportionately harming a specific demographic.
Mathematical Formulation (DIR):
DIR = P(&Yhat; = 1 | S = unprivileged) / P(&Yhat; = 1 | S = privileged)

The Disparate Impact Ratio (DIR) directly quantifies Disparate Impact. If DIR < 1.0, the unprivileged group receives a lower proportion of favorable outcomes (e.g., job offers, loan approvals). If DIR = 1.0, the model exhibits perfect statistical parity. Regulatory frameworks establish minimum DIR thresholds (typically 0.80 or 0.90) below which an algorithm is legally presumed to exhibit discriminatory bias.

3NYC Local Law 144 (AEDT) Compliance Guide

New York City's Local Law 144 represents a watershed moment in algorithmic governance. Enforced starting July 2023, it mandates that employers utilizing Automated Employment Decision Tools (AEDTs) for hiring or promotion must undergo an annual, independent bias audit.

Key Provisions of NYC Law 144

  • Public Disclosure: The results of the audit—specifically the impact ratios for sex/gender, race/ethnicity, and intersectional categories—must be visibly published on the employer's career website.
  • Independent Auditing: Audits cannot be performed internally by the engineers who built the model. They must be conducted by an objective, independent auditor.
  • Notification Requirements: Candidates must be notified that an AEDT is being used to evaluate them at least 10 business days before the tool is utilized.

While the law relies on the EEOC's historical calculation methodology, modern enterprise legal teams enforce a stricter 0.90 DIR internal threshold for NYC compliance. Given that the audit results are public, companies cannot afford the reputational damage of hovering at an 0.81 DIR (barely legal under the Four-Fifths rule). A 0.90 threshold provides a secure buffer against data drift and public scrutiny.

4EU AI Act: High-Risk AI Systems Auditing

The European Union AI Act establishes the world's most comprehensive regulatory framework for artificial intelligence, utilizing a risk-based tier system. Algorithms deployed in employment, critical infrastructure, law enforcement, and credit scoring are classified explicitly as High-Risk AI Systems (Annex III).

Obligations for High-Risk Deployers

Unlike the US framework which focuses heavily on post-hoc outcomes, the EU AI Act demands rigorous proactive governance:

  • Data Quality & Governance: Datasets must be relevant, representative, free of errors, and complete to prevent the injection of historical bias.
  • Continuous Conformity Assessments: Bias auditing is not a one-time event; it requires a continuous risk management system (RMS) throughout the AI lifecycle.
  • Strict Parity Demands: The EU places immense weight on fundamental human rights. Deployers are encouraged to target Strict Parity (DIR > 0.95), aiming for outcomes that are statistically indistinguishable across demographic lines.

Failure to comply with High-Risk obligations can result in catastrophic administrative fines of up to €35 million or 7% of total worldwide annual turnover, whichever is higher.

5Statistical Parity Difference (SPD) Math Breakdown

While the Disparate Impact Ratio (DIR) uses division, the Statistical Parity Difference (SPD) calculates the absolute mathematical difference between favorable outcome rates. This metric is crucial because DIR becomes highly unstable and deceptive when base selection rates are extremely low.

Mathematical Formulation:
SPD = P(&Yhat; = 1 | S = unprivileged) - P(&Yhat; = 1 | S = privileged)

When to Use SPD vs. DIR

Imagine an elite college admissions algorithm. The privileged group has an acceptance rate of 2%, and the unprivileged group has an acceptance rate of 1%. The DIR is a severe 0.50 (violating the 80% rule drastically). However, the SPD is only -0.01 (-1%).

An SPD of 0.0 indicates perfect parity. A negative SPD indicates the unprivileged group is at a disadvantage. Regulatory audits, especially in financial services and Ivy League admissions, demand reviewing SPD alongside DIR to paint an accurate, holistic picture of algorithmic behavior without being skewed by hyper-selective models.

6Equal Opportunity Difference (EOD) in Classification

Statistical Parity (DIR and SPD) assumes that the base rate of qualified individuals is identical across all demographic groups. In reality, this is not always true. Equal Opportunity Difference (EOD) moves beyond basic parity to evaluate fairness based on ground-truth labels.

EOD evaluates the True Positive Rate (TPR), also known as Recall or Sensitivity. It asks a profound ethical question: Of the people who were actually qualified for this opportunity, did the algorithm select them at equal rates regardless of their demographic?

Mathematical Formulation:
EOD = TPRunprivileged - TPRprivileged

Where TPR = True Positives / (True Positives + False Negatives)

EOD is the gold standard for auditing models where you have historical ground-truth performance data. For example, if a loan underwriting AI approves 95% of qualified men (who would have paid back the loan) but only 70% of qualified women, the EOD is severely negative (-0.25). This indicates the model fails to provide equal opportunity to competent candidates, likely penalizing women for unseen proxy variables.

7Predictive Parity & False Positive Rates

Predictive Parity (PP) shifts the focus from the candidates to the model's predictions. It evaluates the Positive Predictive Value (PPV), commonly known as Precision, across different groups.

It answers the question: When the algorithm predicts a candidate will succeed, is that prediction equally accurate for all demographics?

The COMPAS Algorithm Controversy: The most famous failure of Predictive Parity occurred in criminal justice risk assessments. While an algorithm may exhibit similar overall accuracy across races, it can still suffer from highly skewed error types. If a model has a much lower PPV for a marginalized group, it means the model is generating excess False Positives for them—wrongly classifying innocent or qualified individuals as high-risk or unqualified.

Violations of Predictive Parity often expose flaws in the training data labels themselves (label bias). In high-stakes environments like criminal justice, healthcare triage, or automated resume rejection, failing Predictive Parity can have cascading, life-altering downstream effects.

8Dataset Re-weighing Mitigation Techniques

Identifying bias is only the first half of AI Governance; mitigating it is the second. When our compliance auditor detects a failure (DIR < threshold), it automatically generates a Mitigation Prescription utilizing Dataset Reweighing principles.

How Reweighing Works

Reweighing is a pre-processing technique applied before the model is even trained. Instead of altering the algorithm's architecture (in-processing) or changing its output thresholds (post-processing), reweighing assigns different importance weights to the training examples.

  • Upweighting: Assigning a multiplier > 1.0 to instances where unprivileged groups received favorable outcomes, effectively telling the model these examples are highly important.
  • Downweighting: Assigning a multiplier < 1.0 to instances where privileged groups received favorable outcomes, reducing their dominance in the loss function.

The auditor's prescribed reweigh multiplier provides data scientists with the exact mathematical ratio needed to balance the dataset's class distribution, forcing the neural network to learn a decision boundary devoid of historical demographic prejudice.

9Addressing Low Statistical Power (N < 30) in Audits

A widespread and dangerous failing in corporate bias auditing is the ignorance of statistical power. Data science teams often calculate DIR on micro-cohorts and draw massive legal conclusions from them.

If an algorithm is audited on a small sample size (e.g., $N < 30$ candidates for a specific intersectional demographic), the resulting Disparate Impact Ratio is highly susceptible to random statistical variance (noise). A single candidate being accepted or rejected can swing the DIR from 0.75 (Illegal) to 1.05 (Compliant).

Expert Feature: Low Power Detection
Our auditing engine actively monitors cohort populations. If a demographic group falls below $N = 30$, the system generates a Low Statistical Power Warning. In these scenarios, compliance officers must refrain from relying solely on DIR. Instead, they must employ advanced significance testing—such as Fisher's Exact Test or the Two-Proportion Z-Test—to mathematically prove whether the observed disparity is systemic or merely the result of a small sample size.

10Enterprise Legal Liability & AI Governance

The era of "move fast and break things" is over for Artificial Intelligence. As global regulators rapidly deploy legislative frameworks, failing to proactively audit AI systems exposes enterprises to existential risks.

The Cost of Non-Compliance

  • Regulatory Fines: Ranging from FTC enforcement actions in the US to the EU AI Act's 7% global turnover penalties.
  • Class-Action Litigation: EEOC lawsuits for algorithmic discrimination can result in millions in back-pay damages and forced algorithmic destruction (algorithmic disgorgement).
  • Reputational Destruction: Publicly failing a mandatory NYC Local Law 144 audit can permanently damage employer branding and consumer trust.

A resilient AI Governance framework requires integrating compliance tools directly into the CI/CD and MLOps pipelines. Before any model weights are promoted to production, the candidate model must pass a rigorous, documented parity check across all protected classes (Race, Gender, Age, Intersectional). By utilizing this Algorithmic Bias Compliance Auditor, enterprises can establish a cryptographically defensible, mathematical record of their commitment to fair and ethical AI.

FAQFrequently Asked Questions

What is the Disparate Impact Ratio (DIR) in algorithmic fairness?
The Disparate Impact Ratio (DIR) is a quantitative measure used to determine if an algorithm exhibits demographic bias. It is calculated by dividing the favorable outcome rate of an unprivileged group by the favorable outcome rate of a privileged group. A DIR of 1.0 implies perfect statistical parity.
What is a safe DIR threshold for EEOC compliance?
Under the US EEOC Four-Fifths Rule, a DIR below 0.80 is generally considered evidence of adverse impact. However, many enterprise risk teams target a DIR above 0.90 to account for margin of error and to ensure compliance with stricter local mandates like NYC Local Law 144.
How does the EEOC view algorithmic hiring tools?
The EEOC has explicitly stated that employers are responsible for the outcomes of the algorithmic tools they use, even if developed by third-party vendors. If an Applicant Tracking System (ATS) screens out protected classes at a rate violating the Four-Fifths Rule, the employer can be held liable for disparate impact discrimination.
What is the difference between Statistical Parity Difference (SPD) and DIR?
While DIR is a ratio of favorable outcome rates, SPD is the absolute difference between them (Unprivileged Rate minus Privileged Rate). SPD provides a linear measure of bias that is particularly useful when overall favorable outcome rates are very low, where DIR can become highly volatile.
What is Equal Opportunity Difference (EOD)?
Equal Opportunity Difference (EOD) measures the difference in True Positive Rates (TPR) between groups. It evaluates whether qualified candidates in the unprivileged group have the same probability of being correctly selected as qualified candidates in the privileged group. A negative EOD indicates bias against the unprivileged group.
Why is Predictive Parity (PP) important?
Predictive Parity (PP) compares the Positive Predictive Value (Precision) across demographic groups. It ensures that when an algorithm predicts a favorable outcome, the prediction is equally accurate regardless of the applicant's demographic. Failures in PP often indicate fundamentally biased ground-truth labels in the training data.
How does dataset re-weighing mitigate algorithmic bias?
Dataset re-weighing is a pre-processing mitigation technique that assigns different weights to training examples based on their protected attributes and class labels. By artificially upweighting favorable outcomes for marginalized groups during training, the algorithm learns a decision boundary that achieves statistical parity.
How does NYC Local Law 144 regulate Automated Employment Decision Tools (AEDTs)?
NYC Local Law 144 requires employers to conduct and publish an independent bias audit of any AEDT used for hiring or promotion within the city. The audit must explicitly calculate the impact ratio for sex/gender and race/ethnicity, and the results must be made publicly available on the employer's website.
What are the AI auditing requirements under the EU AI Act?
The EU AI Act classifies AI used in employment, education, and credit scoring as High-Risk. These systems require rigorous conformity assessments, continuous risk management, and high-quality training datasets designed to mitigate bias. Non-compliance can result in fines up to 7% of a company's global annual turnover.
Why is statistical power (Sample Size) critical in bias auditing?
If an algorithm is audited on a small sample size (e.g., N < 30 for a specific demographic), the resulting DIR is highly susceptible to random variance. In these cases, naive DIR calculations must be supplemented with advanced significance testing, such as Fisher's Exact Test, to determine if observed disparities are statistically significant.

Rate Algorithmic Bias Compliance Auditor

Help us improve by rating this tool.

4.9/5
212 reviews