Preprint
Article

This version is not peer-reviewed.

Does Group Fairness Guarantee Recourse Fairness? An Empirical Test Across Two Decision Domains

Submitted:

03 November 2026

Posted:

05 November 2026

You are already at the latest version

Abstract
Automated decision systems are commonly audited with group fairness metrics such as demographic parity and equalized odds, which compare outcome or error rates across protected groups. Algorithmic recourse asks a different question: for a person who receives an unfavourable decision, how large a change would be needed to obtain a favourable one? We measure how two standard bias mitigation methods, Reweighing and a covariance-penalized logistic regression, change the recourse gap between groups, using linear classifiers whose distance to the decision boundary has an exact closed form. Experiments use Adult Census Income (sex) and COMPAS recidivism data (race), with Mann–Whitney U tests and rank-biserial effect sizes over 30 random train/test splits, plus two robustness checks: removing the protected attribute from the model inputs, and sweeping the penalty strength. On Adult, the two methods achieved similar group-fairness scores (mean SPD −0.087 versus −0.094; AOD 0.068 versus 0.057) but different recourse disparities (rank-biserial r = 0.205 versus −0.083), and the difference persisted on the same denied individuals. After the penalty, the privileged-minus-unprivileged distance gap was negative at the 10th and 25th percentiles (−0.126, −0.160) and positive from the median upward (+0.083 at the median, +0.725 at the 90th percentile): denied men had the longer upper tail. With sex removed, Reweighing’s r moved only from 0.311 to 0.293 and the penalty’s sign change disappeared (r = 0.040). COMPAS was an exploratory secondary evaluation: λ was selected on the reported split, and small denied-group samples limited power to detect modest disparities. The similar SPD and AOD values are observed properties of these fitted models, not an enforced match, and do not rank the methods in general. Similar outcome-based fairness scores do not establish similar geometric recourse burdens, and geometric distance alone does not establish feasible real-world recourse; the results support reporting recourse disparities and their distributions alongside conventional group-fairness metrics.
Keywords: 
;  ;  ;  ;  ;  ;  ;  

1. Introduction

Suppose a bank uses a machine learning model to decide who receives a loan. Regulators, and increasingly the public, ask whether that model is fair. Demographic parity and equalized odds are widely studied group-level criteria that compare outcomes or error rates across protected groups.
Among the people a model denies, how close were they to being approved? This is the question addressed by the algorithmic recourse literature: for a given individual, what is the minimum-cost change to their features that would flip an unfavourable prediction to a favourable one [12]? Prior work has proposed defining fairness directly in terms of this cost, requiring that the average distance to a favourable outcome be similar across protected groups [5,11]. Distance to a decision boundary is only a geometric proxy, however: it is not the effort a person would actually need to change a decision [9,12].
The two notions are conceptually distinct, and prior work argues that fairness of recourse is complementary to fairness of prediction [13]. A model can, in principle, deny two groups at identical rates while consistently placing one group’s denied members much closer to the decision boundary than the other’s. Because group-level rates are the most widely used fairness checks, a classifier that passes them could still leave one group a harder path to a favourable outcome, one that the check that certified the model as fair does not measure.
This paper asks an empirical question about standard tools: when a classifier is modified with a standard bias mitigation method until its group fairness metrics improve, what happens to the recourse gap between groups? We test two methods that act at different stages of the pipeline, Reweighing (pre-processing) and a covariance-penalized logistic regression (in-processing), on two public datasets from different decision domains. Every experiment is repeated over 30 random splits so that no result rests on a single train/test split. Two robustness checks address threats we found in our own design: the protected attribute is an input to the models, and the penalty method’s training objective is closely tied to the recourse measure (Section 3.5).
Section 2 reviews related work, Section 3 describes the data, models, metrics and tests, Section 4 reports results, and Section 5 and Section 6 discuss implications and limitations.

3. Methods

3.1. Datasets

We use two public, widely studied datasets, loaded through the AI Fairness 360 toolkit (AIF360) [2] with its default preprocessing. Adult Census Income (Adult) is a 1994 U.S. Census extract; the task is to predict whether annual income exceeds $50,000, which is the favourable outcome, and the audited attribute is sex (male = privileged, 30,527 instances; female = unprivileged, 14,695). COMPAS is ProPublica’s recidivism dataset from Broward County, Florida; the task is to predict two-year recidivism, the favourable outcome is no recidivism, and the audited attribute is race, binarized by AIF360 as Caucasian (privileged, 2,100) versus all other recorded groups (unprivileged, 4,067). After AIF360’s preprocessing, Adult has 45,222 instances (3,620 rows with missing values removed) and COMPAS has 6,167. Each experiment uses an 80/20 random train/test split and is repeated over 30 splits: seed 42, the split used during development, plus seeds 0 to 28.

3.2. Baseline Model

For both datasets we train an L2-regularized logistic regression (scikit-learn, default C = 1, at most 2,000 iterations) on standardized features (zero mean and unit variance, fitted on the training split only). Standardization was necessary for reliable optimizer convergence on Adult and puts the margin of Section 3.4 on a common scale across features. We choose a linear model deliberately: the distance from any point to the decision boundary then has an exact closed form, with no approximation error from a counterfactual search. This is a scope decision, not an oversight; Section 6 returns to it. AIF360’s loaders keep both of their default protected attributes (sex and race) as input features in both datasets, so the audited attribute is an input to the primary models. Section 3.7 describes a check that removes it.

3.3. Group Fairness Metrics

We report statistical parity difference (SPD) and average odds difference (AOD):
SPD = P(ŷ = fav | u) − P(ŷ = fav | p) (1)
AOD = ½ [ (FPRu − FPRp) + (TPRu − TPRp) ] (2)
where ŷ is the predicted outcome, fav is the favourable outcome (treated as the positive class), u and p index the unprivileged and privileged groups, and all rates are computed on the test split. Zero indicates parity, and a negative SPD means the unprivileged group receives the favourable outcome less often. Both metrics are computed with a short numpy function that we checked against AIF360’s ClassificationMetric.

3.4. Recourse (Margin) Metric

For a linear classifier with weight vector w and bias b, the signed distance from an instance x to the decision boundary, computed in the standardized feature space, is
margin(x) = (w · x + b) / ‖w‖ (3)
where ‖w‖ is the Euclidean norm. For every test instance the model predicts as unfavourable (“denied”), the recourse cost is |margin(x)|, the smallest Euclidean change in the standardized features that would flip the prediction. We compare the costs of denied members of the privileged and unprivileged groups. We do not condition on whether a denial was correct: recourse is a property of what the deployed model asks of an individual, whether or not the prediction matches the true label.
The audited attribute cannot be changed by the individual. If all other coordinates are treated as continuously movable, excluding only the audited attribute from the movable coordinates multiplies every cost in a given model by the same constant, ‖w‖ / ‖w−j‖, where w−j is w without that coordinate (provided ‖w−j‖ is nonzero). This cannot change a rank-based comparison between groups under that restricted geometric calculation, so we compute the margin over all coordinates. It does not account for other immutable features, discrete changes or real-world feasibility.

3.5. Bias Mitigation Methods

Reweighing [8] is a pre-processing method that gives each training instance a weight so that group membership and label are statistically independent in the weighted training data; the classifier is then trained with those weights.
Our second method is a covariance-penalized logistic regression. It minimizes
L(w, b) = mean logistic loss + 10−3‖w‖2 + λC2 (4)
where C is the sample covariance between the protected attribute and the raw decision score w · x + b, and λ = 5. This is the decision-boundary covariance proxy of Zafar et al. [14], used as a penalty rather than a constraint. We implemented it directly, optimizing with L-BFGS-B and an analytic gradient, rather than using AIF360’s PrejudiceRemover, which wraps an external reference implementation and does not expose its fitted weights, so the margin of Section 3.4 could not be computed from it. Both methods keep a linear decision function.
The penalty method is not independent of the recourse measure. The margin is the same raw score divided by ‖w‖, so a penalty that pulls the groups’ mean scores together acts on margins directly. Reweighing is therefore the cleaner test of whether group-fairness mitigation moves recourse; the penalty method shows what happens when the training objective is closely coupled to the margin.
λ = 5 was chosen from a four-value sweep (0, 1, 5, 20) on COMPAS, judged by SPD and accuracy on the same held-out split later used for reporting, and then reused unchanged on Adult. It was not tuned toward any recourse number. Section 4.5 reports a sweep over seven values.

3.6. Statistical Testing

Recourse costs are skewed, and Shapiro–Wilk tests rejected normality for every group and method on the seed-42 split (all p < 10−10), so we use the two-sided Mann–Whitney U test throughout. As effect size we report the rank-biserial correlation
r = 1 − 2U / (npnu) (5)
where U is the statistic for the privileged group’s costs and np, nu are the numbers of denied privileged and unprivileged observations. Thus r > 0 means the unprivileged group’s costs tend to be larger, and (1 + r)/2 is the probability that a randomly chosen denied unprivileged person is farther from the boundary than a randomly chosen denied privileged person, counting ties with half weight. We test at α = 0.05 within each split. Because the 30 splits overlap (each shares most of its data with the others), the spread of r across splits describes sensitivity to the split, not a confidence interval for a population effect. We therefore report the mean and the middle 95% of the 30 values, together with the number of splits with p < .05 or r < 0. We do not pool p-values.

3.7. Robustness Checks

Protected column removed. We repeat all runs after removing the audited attribute from the model’s inputs; the penalty and the sample weights still use it during training. The other protected attribute that AIF360 keeps as a feature (race in Adult, sex in COMPAS) stays in the model.
Penalty strength. We train the covariance-penalized model with λ ∈ {0, 1, 2, 5, 10, 20, 50} on the first 10 splits.
Power. For COMPAS we simulate the power of the Mann–Whitney test at the observed group sizes, using a normal-shift model that produces a stated r (2,000 simulated datasets per value).

3.8. Additional Adult Diagnostics

To test whether a change in who is denied explains the between-method comparison, we identified the observations denied by both Reweighing and the λ = 5 covariance-penalized model within each of the 30 Adult test splits, and recomputed each model’s rank-biserial effect on that shared population using its own boundary distances. We also compared the privileged-minus-unprivileged mean signed margin over the full test set with the privileged-minus-unprivileged mean absolute boundary distance among denied observations, using descriptive linear fits across seven penalty strengths and ten overlapping splits, a fit excluding λ = 0, and the three primary methods across 30 splits. These fits are descriptive, not independent causal tests. Finally, we calculated group-specific denied-distance means and quantiles (10th, 25th, 50th, 75th, 90th, 95th and 99th percentiles) on each Adult split and averaged the within-split group gaps. All distances are in standardized-feature units.

4. Results

Results are reported separately for each dataset, followed by a cross-dataset comparison. Each value is the mean over 30 random splits, with the middle 95% of the 30 values in brackets; denied counts are means over splits, and recourse costs are in standardized-feature units. In Section 4.1 and Section 4.2 the audited attribute is a model input.

4.1. Adult Income.

The recourse gap is statistically detectable on every split for all three models (p < .05 in 30 of 30 splits each), but its direction and size depend on the method. In probability terms, a randomly chosen denied woman is farther from the decision boundary than a randomly chosen denied man with probability 0.71 at baseline, 0.60 after Reweighing and 0.46 after the covariance penalty.
On the same 30 splits, Reweighing and the penalty differ by at most 0.014 in SPD and 0.027 in AOD, while their recourse gaps differ by 0.27 to 0.30, with Reweighing’s larger on every split. Mean AOD changes sign under both methods (−0.091 at baseline; 0.068 and 0.057 after). Using |SPD| and |AOD| below 0.1 as a common rule of thumb for “group-fair” (not a standard), Reweighing passes both checks on 28 of 30 splits and leaves |r| ≥ 0.1 on 28 of those; the penalty passes on 25 of 30 and leaves |r| ≥ 0.1 on 3 of those 25.
Both interventions reduce the baseline disparity in favourable-outcome rates, but their similar SPD and AOD do not imply comparable distances among denied people. Reweighing reduces the positive rank-biserial effect without eliminating it; covariance penalization yields a small negative effect. These are associations in the tested configuration, not evidence of feasible individual recourse.
Table 1. Group fairness before and after each intervention, Adult (sex). Mean over 30 splits [middle 95%].
Table 1. Group fairness before and after each intervention, Adult (sex). Mean over 30 splits [middle 95%].
Model Statistical parity difference Average odds difference Accuracy
Baseline −0.186 [−0.198, −0.176] −0.091 [−0.117, −0.061] 0.847 [0.841, 0.852]
Reweighing −0.087 [−0.102, −0.076] 0.068 [0.043, 0.089] 0.841 [0.834, 0.849]
Covariance-penalized LR −0.094 [−0.109, −0.082] 0.057 [0.035, 0.080] 0.840 [0.832, 0.848]
Table 2. Recourse statistics by group, Adult. Cost = |margin| of denied test instances; r is the mean over 30 splits [middle 95%], and r > 0 means the unprivileged group (women) is farther from the boundary.
Table 2. Recourse statistics by group, Adult. Cost = |margin| of denied test instances; r is the mean over 30 splits [middle 95%], and r > 0 means the unprivileged group (women) is farther from the boundary.
Model Denied (priv. / unpriv.) Mean cost, priv. Mean cost, unpriv. Recourse gap r Splits with p < .05 Splits with r < 0
Baseline 4,486 / 2,705 0.895 1.386 0.426 [0.403, 0.450] 30/30 0/30
Reweighing 4,778 / 2,554 0.949 1.132 0.205 [0.183, 0.233] 30/30 0/30
Covariance-penalized LR 4,782 / 2,576 1.294 1.087 −0.083 [−0.107, −0.056] 30/30 30/30

4.2. COMPAS

On COMPAS the baseline gap is small: mean r = 0.083, positive on 28 of 30 splits and individually significant on 7. The single split used during development (seed 42) gave r = 0.012, lower than 26 of the 30 split values, so the earlier single-split reading of “no recourse gap on COMPAS” belongs to that split and not to the dataset. Reweighing brings mean SPD to −0.010 and the penalty to −0.078; mean r is 0.059 for both, individually significant on 5 and 2 of 30 splits, respectively. With about 120 and 363 denied people (medians), the Mann–Whitney test has 38% power for a true r of 0.10, 70% for 0.15 and 92% for 0.20, and reaches 80% at about 0.17. A non-significant COMPAS split is therefore uninformative about gaps below roughly that size.
COMPAS is an exploratory secondary evaluation and does not establish recourse parity: λ was selected on the reported split, the denied-group samples are small and limit sensitivity to effects of the observed magnitude, and the overlap across splits prevents treating individual significance counts as independent confirmations. Differences between datasets cannot be attributed to domain alone.
Table 3. Group fairness before and after each intervention, COMPAS (race). Mean over 30 splits [middle 95%].
Table 3. Group fairness before and after each intervention, COMPAS (race). Mean over 30 splits [middle 95%].
Model Statistical parity difference Average odds difference Accuracy
Baseline −0.159 [−0.218, −0.101] −0.139 [−0.207, −0.080] 0.667 [0.643, 0.687]
Reweighing −0.010 [−0.059, 0.067] 0.014 [−0.038, 0.089] 0.663 [0.644, 0.686]
Covariance-penalized LR −0.078 [−0.133, −0.011] −0.056 [−0.113, 0.014] 0.666 [0.646, 0.686]
Table 4. Recourse statistics by group, COMPAS. r is the mean over 30 splits [middle 95%], and r > 0 means the unprivileged group (non-Caucasian defendants) is farther from the boundary.
Table 4. Recourse statistics by group, COMPAS. r is the mean over 30 splits [middle 95%], and r > 0 means the unprivileged group (non-Caucasian defendants) is farther from the boundary.
Model Denied (priv. / unpriv.) Mean cost, priv. Mean cost, unpriv. Recourse gap r Splits with p < .05 Splits with r < 0
Baseline 121 / 364 0.563 0.599 0.083 [−0.007, 0.163] 7/30 2/30
Reweighing 160 / 318 0.541 0.607 0.059 [−0.023, 0.158] 5/30 3/30
Covariance-penalized LR 141 / 336 0.543 0.555 0.059 [−0.006, 0.149] 2/30 2/30

4.3. Cross-Dataset Comparison

Figure 1 shows the recourse gap over all 30 splits for both datasets, with the audited attribute kept as a model input and removed.
On Adult the three methods are separated by 0.22 to 0.51 in mean r, while the spread across splits within a method is at most 0.016 (standard deviation). On COMPAS the three methods overlap completely, and the middle 95% of every cell includes or touches zero. Adult therefore shows a stable separation between methods on this geometric measure, whereas COMPAS does not resolve similarly small effects. Dataset size, group composition, feature distributions and initial disparities all differ; the design does not isolate which factor accounts for the contrast.

4.4. Protected Column Removed, and Where the Mitigation Acts

With the audited attribute removed, the baseline gap on Adult falls from r = 0.426 to 0.311. Reweighing then leaves the gap almost unchanged (0.293) while still cutting |SPD| from 0.180 to 0.095, and the penalty brings it to 0.040. On COMPAS, removing the column changes the gap little (mean r = 0.080, 0.072 and 0.073), and neither method then reduces |SPD| much (from 0.154 to 0.147 and 0.148).
With the column kept, the audited attribute’s weight share on Adult moves from 0.119 at baseline to −0.088 under Reweighing and −0.355 under the penalty (Table 6), that is, from favouring men to favouring women. After the penalty the two groups’ mean margins are nearly equal (−0.836 versus −0.868), but their spreads differ (SD 1.426 versus 0.911), and denied men are on average farther from the boundary than denied women (1.294 versus 1.087).
The Adult sensitivity analysis indicates that the audited attribute’s inclusion as a feature matters to the observed pattern: Reweighing can improve SPD while leaving the measured distance disparity nearly unchanged when sex is excluded. The weight and margin summaries are consistent with different fitted score distributions but do not independently establish a causal explanation.
Table 5. The same models with the audited attribute removed from the model’s inputs. Means over 30 splits; r with the middle 95%. The last column repeats the mean r from Table 2 and Table 4 for comparison.
Table 5. The same models with the audited attribute removed from the model’s inputs. Means over 30 splits; r with the middle 95%. The last column repeats the mean r from Table 2 and Table 4 for comparison.
Data Model SPD AOD r, column removed r, column kept
Adult Baseline −0.180 −0.078 0.311 [0.289, 0.333] 0.426
Adult Reweighing −0.095 0.057 0.293 [0.271, 0.320] 0.205
Adult Covariance-penalized LR −0.048 0.115 0.040 [0.011, 0.066] −0.083
COMPAS Baseline −0.154 −0.134 0.080 [−0.002, 0.170] 0.083
COMPAS Reweighing −0.147 −0.127 0.072 [−0.007, 0.149] 0.059
COMPAS Covariance-penalized LR −0.148 −0.128 0.073 [−0.004, 0.166] 0.059
Table 6. Where the mitigation acts (audited attribute kept as an input; means over 30 splits). Weight share is the audited attribute’s coordinate divided by ‖w‖, signed so that a positive value favours the privileged group. Margins are signed so that positive means toward the favourable decision, over all test instances.
Table 6. Where the mitigation acts (audited attribute kept as an input; means over 30 splits). Weight share is the audited attribute’s coordinate divided by ‖w‖, signed so that a positive value favours the privileged group. Margins are signed so that positive means toward the favourable decision, over all test instances.
Data Model Weight share Mean margin, priv. Mean margin, unpriv. Margin SD, priv. Margin SD, unpriv.
Adult Baseline 0.119 −0.448 −1.214 1.317 0.977
Adult Reweighing −0.088 −0.560 −0.887 1.313 0.978
Adult Covariance-penalized LR −0.355 −0.836 −0.868 1.426 0.911
COMPAS Baseline 0.004 0.283 0.023 0.908 0.912
COMPAS Reweighing −0.093 0.145 0.091 0.905 0.909
COMPAS Covariance-penalized LR −0.050 0.184 0.063 0.911 0.847

4.5. Penalty Strength

Figure 2 shows the covariance-penalized model across penalty strengths λ from 0 to 50.
On Adult, mean r falls from 0.427 at λ = 0 (the unpenalized model) to −0.028 at λ = 1 and −0.099 at λ = 50, while mean SPD moves only from −0.106 at λ = 1 to −0.088 at λ = 50. The mean gap is negative for every λ ≥ 1, so the sign change does not depend on λ = 5; its size does. On COMPAS, mean r is 0.092 at λ = 0 and between 0.074 and 0.075 for every λ ≥ 1, while mean SPD moves from −0.163 at λ = 0 to −0.075 at λ = 50.
On Adult, the negative mean rank-biserial effect appeared at the smallest nonzero penalty strength tested (λ = 1) and changed in magnitude across the sweep. The data do not locate the zero crossing between λ = 0 and λ = 1 or establish a general threshold. Because the penalty does not optimize recourse parity, we describe this as a sign change in the measured gap, not as evidence that the method systematically overcorrects recourse.

4.6. Additional Adult Diagnostics

Table 7 compares the two methods on their own denied sets and on the people both deny. The shared group averaged 4,710 privileged and 2,528 unprivileged denied people per split. The paired r difference was 0.288 on each model’s own denied set and 0.287 on the shared set, so the change in who is denied does not materially explain this Adult comparison.
Table 8 summarizes the descriptive relationship between group-mean signed-margin gaps and mean denied-distance gaps. The fitted R2 was 0.998 across all seven penalty strengths and 0.940 with the zero-penalty condition excluded. Both quantities come from the same fitted scores, so this is not independent evidence of a causal mechanism.
Table 9 shows that after penalization the privileged-minus-unprivileged gap is negative at q10 (−0.126) and q25 (−0.160) but positive at the median (+0.083) and q90 (+0.725). Positive values mean that denied men are farther from the boundary, that is, that their upper-distance tail is longer. The selected quantiles describe distributional shape; they do not identify individual trajectories or establish the exact contribution of any tail region to the mean.

5. Discussion

5.1. Similar Group Fairness, Different Recourse Gaps

On Adult, Reweighing and covariance-penalized logistic regression achieved similar group-fairness scores (SPD −0.087 and −0.094; AOD 0.068 and 0.057) but different rank-biserial recourse effects (0.205 and −0.083), and their paired difference was positive on all 30 splits. Friedler et al. [3] found that fairness-intervention results can vary with data composition and preprocessing; our repeated splits address one aspect of that concern, although the splits overlap and are not independent replications.
The distinction itself is established in prior work [5,6,11,13]. Friedler et al. [3] compared several outcome-based fairness metrics, not recourse. The contribution here is a particular comparison: near-matched SPD and AOD on Adult coexist with different distances among denied people. These metrics summarize classification outcomes, not how far denied observations lie from each model’s boundary.
With the orientation of r used here, (1 + r)/2 is the probability that a randomly selected denied woman has a greater measured distance than a randomly selected denied man, counting ties as half: approximately 0.71 at baseline, 0.60 after Reweighing and 0.46 after the covariance penalty. It is not the probability of feasible real-world recourse. The penalized model’s negative rank effect is small (mean r = −0.083), and the quantile analysis in Section 5.4 shows why that summary alone is insufficient.

5.2. The Difference Persists Among People Denied by Both Methods

Each classifier denies a slightly different set of people, so a change in the recourse gap could reflect who is denied rather than the distances assigned. To check this, we kept, for each Adult split, only the people denied by both Reweighing and the covariance-penalized model and recomputed the rank-biserial effect using each model’s own distances (Table 7). The shared set averaged 4,710 privileged and 2,528 unprivileged people per split, 98.7% of Reweighing’s denied people and 98.4% of the penalized model’s. Reweighing’s r remained 0.205, and the penalty’s moved from −0.083 to −0.082. The between-method difference was 0.287 on the shared set, compared with 0.288 on each model’s own denied set, and was positive on all 30 splits.
Changes in the denied population therefore do not materially explain the observed between-method difference. This check addresses composition, not mechanism: the two fitted boundaries still assign different distances to the same people.

5.3. What the Covariance Penalty Changes

Reweighing changes how much each combination of group and label counts during training. The covariance penalty instead acts on the fitted score: it penalizes the squared covariance between group membership and the raw decision score, following the decision-boundary covariance approach of Zafar et al. [14]. For a binary attribute this covariance is proportional to the difference between the groups’ mean scores, so the penalty acts on a quantity close to the gap in mean margins.
On Adult, the descriptive relationship between the mean signed-margin gap and the mean denied-distance gap is summarized in Table 8, and Table 9 shows how the measured distance gap differs across quantiles. Both quantities are computed from the same fitted score distribution, so the association does not independently establish a mechanism. In this linear setting, a smaller gap in group-mean scores goes with a change in the measured recourse gap, and because the penalty and the distance measure depend on the same decision function, this is partly built in. The result shows how far the penalty can move this geometric quantity; it does not show that the penalized model gives people better recourse in practice.

5.4. What the Rank Effect Misses in the Distance Distributions

The rank-biserial effect is based on how often a person from one group is farther from the boundary than a person from the other. It can be close to zero while the two distance distributions differ in shape, and the quantiles show that after the covariance penalty (Table 9).
At baseline, the privileged-minus-unprivileged gap in distance among denied people was negative at every quantile we examined (10th to 99th percentile), so denied women were farther from the boundary throughout the distribution. After Reweighing the gap stayed negative through the 75th percentile and was small and positive in the top decile: +0.049, +0.094 and +0.101 at the 90th, 95th and 99th percentiles, positive on 28, 30 and 25 of 30 splits. (The 99th percentile rests on roughly 25 unprivileged people per split.)
After the penalty, mean denied distance was 1.294 for men and 1.087 for women, a privileged-minus-unprivileged gap of +0.206 from unrounded values. The mean gap equals the integral of the difference between the two quantile functions. The selected quantiles show larger positive gaps in the upper tail after penalization (+0.725 at the 90th percentile, compared with −0.341 at baseline) but do not by themselves establish that tail’s exact contribution to the mean. Rank-biserial r describes relative ordering and cannot convey the magnitude of separation in the tails. We therefore report the rank effect, the mean gap and the quantiles together. Related work uses bounded-effort improvability [4] and subgroup effectiveness–cost distributions [10]; our quantiles provide a concrete qualification of this experiment’s small penalized rank effect.
These comparisons are descriptive. They compare quantiles within each group and do not say which individuals sit at the same quantile under different models. The 30 splits overlap, so the sign consistency shows stability under resampling, not independent replication. We computed quantiles only for the primary models (penalty strength 5) on Adult, so we cannot say whether the same pattern appears at other strengths, with other mitigations or on other data.

5.5. Protected-Attribute Sensitivity and the Limits of the COMPAS Results

Removing sex from the Adult model inputs changed the picture. Reweighing still improved SPD, from −0.180 to −0.095, but the recourse effect moved only from 0.311 to 0.293. The covariance penalty brought the effect down to 0.040 and, unlike in the primary run, did not produce a negative mean effect. The sign change in the primary results is therefore not a fixed property of the covariance penalty; it depends in part on whether the audited attribute is an input to the model. This sensitivity run does not describe a classifier blind to demographics: the other protected attribute (race) is still a model input, and both mitigation methods still use sex during training.
COMPAS supports a weaker comparison. Mean effect sizes were 0.083 at baseline and 0.059 for both mitigations. With the column kept, SPD and AOD improved, but the recourse effects were small and so were the denied groups: about 120 privileged and 363 unprivileged people per split at baseline. With those sizes, 80% power needs |r| of about 0.17 in a normal-shift simulation of the Mann–Whitney test at α = 0.05, and the effect was significant on 7, 5 and 2 of 30 splits for baseline, Reweighing and the covariance penalty. Non-significance on most splits therefore cannot establish parity and cannot exclude gaps of the observed size.
The Adult and COMPAS results should not be combined into a claim about income prediction versus recidivism prediction. The datasets differ in size, group composition, features and baseline gap. The Adult results are better supported; COMPAS is inconclusive for effects of this size.

5.6. Implications and Limits

The Adult comparison adds a specific empirical case to established work on recourse fairness: near-matched outcome-based scores, different geometric recourse effects, persistence on a shared denied population, and an upper-tail disparity that a small rank effect does not describe. Friedler et al. [3] also caution against relying on a single split when evaluating fairness interventions. These findings support auditing distances alongside outcome-based metrics; they do not support treating geometric distance as proof of actionable recourse.
The distance is measured in standardized feature space and does not enforce immutable-feature restrictions, discrete feasibility, feature-specific effort or causal dependencies; Ustun et al. [12], Karimi et al. [9] and von Kügelgen et al. [13] explain why such constraints matter. Section 6 details the remaining design and generalizability limits.

6. Limitations

The audited attribute is a model input. In the primary analysis, AIF360’s loaders keep the audited attribute and the other protected attribute as input features, so a mitigation can act by giving the model a group-specific score offset, that is, by treating the groups differently at decision time. The protected-column run (Section 4.4) removes the audited attribute but not the other protected attribute, and the penalty and the weights still use the audited attribute during training. It therefore does not answer the question for a model that never sees any protected attribute.
The penalty method is coupled to the recourse measure. Its penalty is the covariance between the protected attribute and the raw score, and the margin is that score divided by ‖w‖, so the penalty moves margins by construction. The Adult reversal under this method should be read with that in mind; Reweighing is the cleaner test.
Penalty strength. λ = 5 was picked from a four-value sweep on COMPAS using SPD and accuracy on the same split later used for reporting, then reused on Adult. It was not tuned toward a recourse number. The seven-value sweep (10 splits) shows a negative mean gap on Adult for every λ ≥ 1, with a size that depends on λ (mean r from −0.028 at λ = 1 to −0.099 at λ = 50).
COMPAS power. With about 120 and 363 denied people, 80% power needs |r| of about 0.17. The COMPAS results can neither confirm nor exclude gaps of the size seen at baseline (mean r = 0.083).
Multiple tests and split variability. Each split involves six primary Mann–Whitney tests (twelve including the protected-column runs), without multiplicity correction. The 30 splits overlap, so the middle-95% ranges describe sensitivity to the split and are not confidence intervals for a population effect.
Who is denied changes with the method. Mitigation changes the set on which recourse is measured. On Adult, however, 98.7% of Reweighing’s denied observations and 98.4% of the penalty’s were denied by both. The rank-effect difference remained 0.287 on that shared set, compared with 0.288 on the separate denied sets (Section 5.2). This limits a composition-based explanation here, but it does not trace any individual’s feasible path to approval.
Linear models and the cost measure. Only linear classifiers are used so that the margin is exact; deployed systems are often nonlinear and would need an approximate recourse measure that might show a different pattern. The cost treats every feature as equally easy to change, includes features that cannot change, and treats one-hot indicators as continuous after standardization (COMPAS has 401 input columns after one-hot encoding, many of them rare charge descriptions). Cost-weighted recourse measures exist and are not implemented.
Scope. Two datasets, two mitigation methods, one binary protected attribute per dataset (Adult: sex; COMPAS: race, binarized as Caucasian versus all others), no intersectional analysis, and one toolkit’s default preprocessing.

7. Conclusion

We tested whether improvements in conventional group-fairness measures were accompanied by similar changes in a geometric proxy for recourse. On Adult, Reweighing and covariance-penalized logistic regression reached closely matched SPD and AOD but produced different rank-based distance gaps, including when evaluated on the same denied individuals. With sex removed, Reweighing’s r moved only from 0.311 to 0.293 and the penalty’s sign change disappeared (r = 0.040). After penalization, the privileged-minus-unprivileged distance gap was −0.126 at q10 and −0.160 at q25, then +0.083 at the median and +0.725 at q90; positive gaps mean denied men were farther from the boundary in the upper tail. COMPAS was exploratory (λ was selected on its reported split), with too few denied privileged observations to support similarly strong conclusions about modest effects. These results favour reporting recourse-related distributions alongside outcome-based fairness measures, while recognizing that distance to a linear boundary is not a feasible action plan. Future work should examine nonlinear models and recourse measures that incorporate actionable changes, costs and causal constraints.

Author Contributions

Aryan Bhusal: lead conceptualization, methodology, investigation, formal analysis, software, validation, project administration, and original manuscript draft. Bishal Neupane: software, validation, reproducibility checks, and manuscript review and editing. Rita Neupane: formal analysis, interpretation of results, visualization, and manuscript review and editing.

Data and Code Availability

Code, outputs and a dated research log are in the project repository (https://github.com/Aryan-infinite/recourse-fairness): the notebook, multiseed_results.csv (360 fits), lambda_sweep.csv (140 fits), requirements.txt and the figures. The diagnostics/ directory contains diag_common_denied_by_split.csv and diag_common_denied_summary.csv (Table 7), diag_mechanism_fit.csv and diag_mechanism_observations.csv (Table 8), and diag_denied_quantiles_by_split.csv and diag_denied_quantiles_summary.csv (Table 9). The diagnostic re-check covered 160 Adult fits (90 primary and 70 sweep) and passed comparison with the original CSVs at float tolerance 10−4, with exact counts. The experiments ran in Google Colab with aif360 0.6.1, pandas 2.2.3, numpy 2.1.3, scikit-learn 1.6.1, scipy 1.16.3 and matplotlib 3.10.0. A separate run in a different software environment (numpy 2.5.4, scikit-learn 1.9.1, scipy 1.18.1) reproduced SPD, AOD and accuracy exactly on all 360 fits and the recourse gap r to within 0.0002. Every fit converged.

Acknowledgments

Claude (Anthropic) was used to assist with code and with the editing and formatting of the manuscript. The authors reviewed the work and take responsibility for the final content.

References

  1. Angwin, J.; Larson, J.; Mattu, S.; Kirchner, L. Machine bias. ProPublica 2016. [Google Scholar] [CrossRef]
  2. Bellamy, R. K. E.; Dey, K.; Hind, M.; Hoffman, S. C.; Houde, S.; Kannan, K.; Lohia, P.; Martino, J.; Mehta, S.; Mojsilović, A.; Nagar, S.; Ramamurthy, K. N.; Richards, J.; Saha, D.; Sattigeri, P.; Singh, M.; Varshney, K. R.; Zhang, Y. AI Fairness 360: An extensible toolkit for detecting, understanding, and mitigating unwanted algorithmic bias. arXiv 2018, arXiv:1810.01943. [Google Scholar]
  3. Friedler, S. A.; Scheidegger, C.; Venkatasubramanian, S.; Choudhary, S.; Hamilton, E. P.; Roth, D. A comparative study of fairness-enhancing interventions in machine learning. Proceedings of FAT* 2019, 329–338. [Google Scholar] [CrossRef]
  4. Guldogan, O.; Zeng, Y.; Sohn, J.; Pedarsani, R.; Lee, K. Equal improvability: A new fairness notion considering the long-term impact. International Conference on Learning Representations (ICLR) arXiv:2210.06732.
  5. Gupta, V.; Nokhiz, P.; Roy, C. D.; Venkatasubramanian, S. Equalizing recourse across groups. arXiv 2019, arXiv:1909.03166. [Google Scholar]
  6. Haldar, A.; Cunningham, T.; Ferhatosmanoglu, H. RAGUEL: Recourse-aware group unfairness elimination. ACM International Conference on Information and Knowledge Management (CIKM) 2022, arXiv:2208.14175. [Google Scholar]
  7. Hardt, M.; Price, E.; Srebro, N. Equality of opportunity in supervised learning. Advances in Neural Information Processing Systems (NeurIPS) 2016. [Google Scholar] [CrossRef]
  8. Kamiran, F.; Calders, T. Data preprocessing techniques for classification without discrimination. Knowl. Inf. Syst. 2012, 33(1), 1–33. [Google Scholar] [CrossRef]
  9. Karimi, A.-H.; Schölkopf, B.; Valera, I. Algorithmic recourse: From counterfactual explanations to interventions. Proceedings of FAccT 2021 2021, 353–362. [Google Scholar] [CrossRef]
  10. Kavouras, L.; Tsopelas, K.; Giannopoulos, G.; Sacharidis, D.; Psaroudaki, E.; Theologitis, N.; Rontogiannis, D.; Fotakis, D.; Emiris, I. Fairness aware counterfactuals for subgroups. Advances in Neural Information Processing Systems 36 (NeurIPS 2023) 2023. [Google Scholar] [CrossRef]
  11. Sharma, S.; Gee, A. H.; Paydarfar, D.; Ghosh, J. FaiR-N: Fair and robust neural networks for structured data. Proceedings of the AAAI/ACM Conference on AI, Ethics, and Society (AIES 2021) 2021, 946–955. [Google Scholar] [CrossRef]
  12. Ustun, B.; Spangher, A.; Liu, Y. Actionable recourse in linear classification. In Proceedings of the Conference on Fairness, Accountability, and Transparency (FAT* 2019); 2019; pp. 10–19. [Google Scholar] [CrossRef]
  13. von Kügelgen, J.; Karimi, A.-H.; Bhatt, U.; Valera, I.; Weller, A.; Schölkopf, B. On the fairness of causal algorithmic recourse. AAAI Conference on Artificial Intelligence, 2022. [Google Scholar]
  14. Zafar, M. B.; Valera, I.; Gomez-Rodriguez, M.; Gummadi, K. P. Fairness constraints: Mechanisms for fair classification. International Conference on Artificial Intelligence and Statistics (AISTATS), 2017. [Google Scholar]
Figure 1. Recourse gap (rank-biserial r) over 30 random splits. Top row: the audited attribute is a model input (Section 4.1 and Section 4.2). Bottom row: it is removed from the model’s inputs (Section 4.4). Dots are splits, the vertical line is the middle 95%, the horizontal bar is the mean, and the diamond is the single split (seed 42) used during development. Covariance-penalized LR denotes the penalized logistic regression method. Positive r means the unprivileged group is farther from the decision boundary.
Figure 1. Recourse gap (rank-biserial r) over 30 random splits. Top row: the audited attribute is a model input (Section 4.1 and Section 4.2). Bottom row: it is removed from the model’s inputs (Section 4.4). Dots are splits, the vertical line is the middle 95%, the horizontal bar is the mean, and the diamond is the single split (seed 42) used during development. Covariance-penalized LR denotes the penalized logistic regression method. Positive r means the unprivileged group is farther from the decision boundary.
Preprints 242126 g001
Figure 2. Covariance-penalized logistic regression with penalty strength λ from 0 to 50 (mean of the first 10 splits; bars are standard deviations across those splits). The audited attribute is a model input. At λ = 5, mean r over these 10 splits was −0.085 on Adult and 0.075 on COMPAS, versus −0.083 and 0.059 over all 30 splits in Table 2 and Table 4; the two sets of estimates should not be conflated.
Figure 2. Covariance-penalized logistic regression with penalty strength λ from 0 to 50 (mean of the first 10 splits; bars are standard deviations across those splits). The audited attribute is a model input. At λ = 5, mean r over these 10 splits was −0.085 on Adult and 0.075 on COMPAS, versus −0.083 and 0.059 over all 30 splits in Table 2 and Table 4; the two sets of estimates should not be conflated.
Preprints 242126 g002
Table 7. Shared-denied-population comparison (mean over 30 Adult splits). The shared sample contains people denied by both mitigation models; each model retains its own measured distances.
Table 7. Shared-denied-population comparison (mean over 30 Adult splits). The shared sample contains people denied by both mitigation models; each model retains its own measured distances.
Measure Value
Shared denied: privileged / unprivileged 4,710 / 2,528
Share of Reweighing / penalized denied included 98.7% / 98.4%
Reweighing r: own / shared denied 0.205 / 0.205
Penalty r: own / shared denied −0.083 / −0.082
Paired r difference: own / shared 0.288 / 0.287
Positive paired difference 30 / 30 splits
Table 8. Descriptive association between the privileged-minus-unprivileged mean signed-margin gap (x) and the mean denied-distance gap (y); fitted form y = intercept + slope × x. Repeated splits and penalty strengths are not independent experimental conditions.
Table 8. Descriptive association between the privileged-minus-unprivileged mean signed-margin gap (x) and the mean denied-distance gap (y); fitted form y = intercept + slope × x. Repeated splits and penalty strengths are not independent experimental conditions.
Fit Points Intercept Slope R2 Zero-gap x
Sweep, all 7 penalty strengths × 10 splits 70 0.232 −0.909 0.998 0.255
Sweep, penalty ≥ 1 only 60 0.227 −0.787 0.940 0.289
Primary, 3 methods × 30 splits 90 0.192 −0.928 0.965 0.207
Table 9. Adult denied-distance gap by distributional summary (privileged minus unprivileged; means of within-split gaps). Positive values indicate a larger measured distance for privileged denied individuals. Parentheses give the number of splits (of 30) with a positive group gap.
Table 9. Adult denied-distance gap by distributional summary (privileged minus unprivileged; means of within-split gaps). Positive values indicate a larger measured distance for privileged denied individuals. Parentheses give the number of splits (of 30) with a positive group gap.
Summary Baseline Reweighing Penalty λ = 5
mean −0.491 (0/30) −0.183 (0/30) +0.206 (30/30)
q10 −0.391 (0/30) −0.213 (0/30) −0.126 (0/30)
q25 −0.604 (0/30) −0.306 (0/30) −0.160 (0/30)
q50 −0.631 (0/30) −0.310 (0/30) +0.083 (30/30)
q75 −0.478 (0/30) −0.114 (0/30) +0.528 (30/30)
q90 −0.341 (0/30) +0.049 (28/30) +0.725 (30/30)
q95 −0.309 (0/30) +0.094 (30/30) +0.825 (30/30)
q99 −0.303 (0/30) +0.101 (25/30) +0.951 (30/30)
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.