Bias Amplification Score (parity gap x Gini of group rates)
Source:R/fairness_metrics.R, R/frns_metrics.R
morie_fairness_bias_amplification.RdBAS = delta_parity * G, where delta_parity is the
demographic-parity gap of the worst-affected group and G
is the Gini coefficient of the per-group favourable-outcome rates.
Large only when a directional disparity coincides with high
cross-group inequality.
BAS = Delta_parity * G, where Delta_parity is the demographic
parity gap of the worst-affected group and G is the Gini
coefficient of the per-group favourable-outcome rates. Large only
when a directional disparity coincides with high overall inequality.
Usage
morie_fairness_bias_amplification(
y_pred,
group,
privileged = NULL,
favorable = 1
)
morie_fairness_bias_amplification(
y_pred,
group,
privileged = NULL,
favorable = 1
)Arguments
- y_pred
Vector of decisions/assignments, one per individual.
- group
Vector of protected-attribute values (e.g. race).
- privileged
The reference group. If
NULL(default) the highest-rate group is used and a warning is attached.- favorable
The value of
y_predcounted as the favourable outcome (default1).
Value
A morie_fairness_result; headline value is BAS.
A named list: value (BAS), bias_amplification_score,
demographic_parity_gap, gini, rates, privileged,
warnings, interpretation.