
Equalized Odds (TPR / FPR gaps across groups)
Source:R/frns_metrics.R
morie_fairness_equalized_odds.RdEqualized odds holds when both the true-positive rate and the false-positive rate are equal across groups. Needs ground truth, so it audits a system's errors rather than its decision rates - a system can satisfy demographic parity yet make many more false positives against one group.
Arguments
- y_true
Realised ground-truth outcome per individual.
- y_pred
The system's decision per individual.
- group
Protected-attribute vector aligned with
y_pred.- privileged
Reference group. If
NULL, the highest-rate group is inferred and a warning is emitted.- favorable
Value of
y_predthat counts as favourable (default1).