Aequitas

Also known as: Aequitas bias audit toolkit

On this page 7

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.

StageInputOutput
GroupPredictions, labels, attributesCounts and rates per group
BiasGroup metrics and reference groupDisparity ratios per metric
FairnessDisparities and tolerance thresholdFair or unfair flags per metric
ReportAll previous outputsTables, plots and summary verdict
Stages of an Aequitas audit

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.

MetricWhat it measuresRelated fairness notion
Predicted positive rateShare of the group flagged positiveDemographic parity
False positive rateNegatives wrongly flaggedEqualized odds
False negative ratePositives wrongly missedEqual opportunity
False discovery rateFlagged cases that are wrongPredictive parity
False omission rateUnflagged cases that are wrongPredictive parity
Predicted prevalenceGroup’s share of all positivesRepresentation in selection
Core metrics in an Aequitas bias report

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.

SituationMetric to prioritizeReason
Punitive, whole population affectedFalse positive rate parityWrongful harm should not fall on one group
Punitive, only flagged cases matterFalse discovery rate parityAccusations should be equally reliable
Assistive, need across populationFalse negative rate parityMissed help should be evenly spread
Assistive, limited resourcesFalse omission rate parityUnserved cases should be equally needy
Representation is the goalPredicted positive rate paritySelection should mirror group size
Simplified fairness tree logic

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.

ToolkitMain focusTypical user
AequitasAudit and reporting of group disparitiesPolicy analysts, auditors, data scientists
AI Fairness 360Large set of metrics and mitigation algorithmsMachine learning researchers
FairlearnAssessment dashboard and constrained trainingPython model developers
What-If ToolInteractive probing of model behaviorModel developers exploring cases
Positioning among common fairness libraries

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.