Aequitas is an open-source bias audit toolkit that measures whether a classification or risk-scoring model produces unequal error rates and selection rates across demographic groups. In AI ethics, it serves as a practical instrument for turning abstract fairness principles into auditable numbers, and it is widely used in public policy, criminal justice, lending and health analytics.
The toolkit was created at the Center for Data Science and Public Policy at the University of Chicago and later extended in collaboration with Feedzai. It exists as a Python library, a command-line tool and a web application, and it produces a bias report that compares each group with a chosen reference group. Aequitas audits model outputs; it does not by itself make a model fair.
How Aequitas audits a model
Aequitas audits a model by computing confusion-matrix metrics for every group defined by a protected attribute and then dividing each group’s value by the value of a reference group. The input is a table with one row per scored entity, containing the binary prediction or score, the observed label and one or more attribute columns such as race, sex or age band.
The audit runs in three stages. The Group stage counts true positives, false positives, true negatives and false negatives per group. The Bias stage converts those counts into disparity ratios against the reference group, which can be the majority group, the group with the lowest metric value or a group chosen by the analyst. The Fairness stage marks each disparity as fair or unfair using a tolerance threshold.
The default threshold is tau = 0.8, which treats a disparity between 0.8 and 1.25 as acceptable. This mirrors the four-fifths rule used in United States employment law, although Aequitas applies it to error rates as well as selection rates. Analysts can change the threshold when a stricter or looser standard is justified.
| Stage | Input | Output |
|---|---|---|
| Group | Predictions, labels, attributes | Counts and rates per group |
| Bias | Group metrics and reference group | Disparity ratios per metric |
| Fairness | Disparities and tolerance threshold | Fair or unfair flags per metric |
| Report | All previous outputs | Tables, plots and summary verdict |
Metrics that Aequitas reports
Aequitas reports group-level rates that correspond to the main families of group fairness definitions. Each rate answers a different question about who receives an intervention and who bears the cost of a wrong decision, so the toolkit deliberately reports many metrics instead of a single score.
| Metric | What it measures | Related fairness notion |
|---|---|---|
| Predicted positive rate | Share of the group flagged positive | Demographic parity |
| False positive rate | Negatives wrongly flagged | Equalized odds |
| False negative rate | Positives wrongly missed | Equal opportunity |
| False discovery rate | Flagged cases that are wrong | Predictive parity |
| False omission rate | Unflagged cases that are wrong | Predictive parity |
| Predicted prevalence | Group’s share of all positives | Representation in selection |
These metrics cannot all be equal at once when base rates differ between groups, a result known as the impossibility theorem of fairness. Aequitas therefore asks the user to decide which metrics matter for the specific decision rather than optimizing every ratio simultaneously.
The fairness tree for choosing metrics
The fairness tree is a decision guide published with Aequitas that maps the nature of the intervention to the metrics that should be audited. Its central distinction is whether the model triggers a punitive intervention, such as detention or fraud investigation, or an assistive intervention, such as a job training offer or housing support.
| Situation | Metric to prioritize | Reason |
|---|---|---|
| Punitive, whole population affected | False positive rate parity | Wrongful harm should not fall on one group |
| Punitive, only flagged cases matter | False discovery rate parity | Accusations should be equally reliable |
| Assistive, need across population | False negative rate parity | Missed help should be evenly spread |
| Assistive, limited resources | False omission rate parity | Unserved cases should be equally needy |
| Representation is the goal | Predicted positive rate parity | Selection should mirror group size |
The tree is a reasoning aid, not a legal standard. It makes the value judgment explicit, which helps an ethics board or regulator see why one metric was preferred over another.
Aequitas compared with other fairness toolkits
Aequitas is primarily an auditing tool, whereas several other libraries focus on bias mitigation during training. Its strength is a clear, policy-oriented report that non-specialists can read, which suits procurement reviews and algorithmic impact assessments.
| Toolkit | Main focus | Typical user |
|---|---|---|
| Aequitas | Audit and reporting of group disparities | Policy analysts, auditors, data scientists |
| AI Fairness 360 | Large set of metrics and mitigation algorithms | Machine learning researchers |
| Fairlearn | Assessment dashboard and constrained training | Python model developers |
| What-If Tool | Interactive probing of model behavior | Model developers exploring cases |
The newer Aequitas Flow component adds experiment pipelines that compare mitigation methods, such as reweighting or threshold adjustment, on both accuracy and fairness. This makes the fairness-accuracy trade-off visible across many candidate models instead of one.
Limitations and common mistakes
Aequitas measures observable group disparities and inherits the weaknesses of its inputs. When labels reflect historical bias or measurement bias, equal error rates against those labels can still encode unfair outcomes.
- Choosing the reference group carelessly changes every ratio and can hide or exaggerate disparities.
- Small groups produce unstable rates, so a flagged disparity may be noise; confidence intervals or minimum group sizes are needed.
- Auditing one attribute at a time misses intersectional effects unless combined attributes are defined explicitly.
- Treating a pass as certification ignores individual fairness, proxy discrimination and deployment context.
- Missing protected attributes prevent the audit entirely, which is a common obstacle where such data is not collected.
A plain-language summary
Aequitas is a checking tool for automated decisions. A computer model may decide who gets a loan review or extra support. Aequitas looks at its past decisions. It asks whether the model makes more mistakes for one group of people than for another.
Think of a referee in a sports match. A fair referee makes some errors, but the errors should not always favor one team. Aequitas counts the errors for each group and compares them. If one group gets far more wrongful flags, the report shows it clearly. People still decide what is fair, but they now have the numbers.
An example from practice
A county social services agency uses a model to rank families for early intervention home visits. Before the program expands, an analyst runs Aequitas on two years of predictions, using the white non-Hispanic group as the reference group and the default tolerance of 0.8.
Because the intervention is assistive, the team follows the fairness tree and focuses on false negative rate parity. The audit shows that families in one rural region have a false negative rate 1.4 times higher than the reference group, meaning eligible families there are missed more often. The model relied on service-usage records that are sparse in areas with few local offices.
The agency adds alternative data on school attendance and recalibrates thresholds by region. A second audit brings the disparity to 1.1, within the accepted range, and the report is attached to the program’s algorithmic impact assessment for the oversight board.