betaFeedback

WorksMathematics

Technical Report: Causal ANOVA Applied to COMPAS

Abstract

This report applies Causal ANOVA to the COMPAS recidivism prediction dataset to study how demographic variables contribute to variation in two-year recidivism outcomes. Using a directed acyclic graph (DAG) to encode causal assumptions, we estimate counterfactual explainability scores for Race, Sex, and Age Category. We then examine whether the explanatory roles of Race and Sex change after conditioning on age group. The results suggest that Age Category explains the largest share of variation in the full causal model. After conditioning on age, Sex explainability is highest among younger defendants and declines with age, while Race explainability increases with age and is most pronounced among older defendants. As a complementary analysis, we use logistic regression models to interpret the demographic patterns suggested by the Causal ANOVA results. We provide a Python package of Causal ANOVA at https://github.com/devonxiong/causal-anova.

Dataset and Causal Framework

The COMPAS Dataset

The COMPAS (Correctional Offender Management Profiling for Alternative Sanctions) dataset contains criminal justice records used to predict the likelihood of recidivism. The dataset includes demographic attributes such as Race, Sex, and Age Category, as well as criminal history variables such as Priors Count and Charge Degree. The outcome variable is Two-Year Recidivism, which records whether a defendant reoffended within two years.

In this report, we focus on the explanatory role of three demographic variables: Race, Sex, and Age Category. These variables are treated as root nodes in the causal graph. Priors Count and Charge Degree are treated as mediator variables because they may transmit part of the association between demographic attributes and the final recidivism outcome.

Causal DAG

To encode the causal assumptions formally, we construct a directed acyclic graph in which Race, Sex, and Age Category are treated as root nodes. These demographic variables are assumed to influence Priors Count and Charge Degree, which serve as mediator variables in the causal graph. The outcome node, Two-Year Recidivism, is then affected by the demographic root nodes and by the mediator nodes.

This structure allows demographic variables to affect the outcome in two ways. First, they may have direct paths to the outcome. Second, they may affect the outcome indirectly through Priors Count and Charge Degree. The purpose of this DAG is not to claim that the graph captures every possible social or legal mechanism, but to provide a formal structure for estimating counterfactual explainability scores.

Overall Counterfactual Explainability

Counterfactual Explainability Method

To estimate counterfactual explainability, we use a Pick-Freeze simulation procedure of [7]. First, we generate a factual world by sampling independent noise variables for each node in the DAG. Then, for a target subset of variables, we replace the noise terms for those variables with an independent set of noise values while keeping the remaining variables fixed. This produces a counterfactual version of the outcome. Finally, we compare the variance between the factual and counterfactual outcomes to the variance between two fully independent outcome simulations. The explainability score is computed as

ξG(⋁k∈SVk⇒Y)=Var⁡(f(V∗)−f(VS∗,V−S∗))2Var⁡(f(V∗)).\xi_G\left(\bigvee_{k\in S} V_k \Rightarrow Y\right) = \frac{\operatorname{Var}\left(f(V^*) - f(V_S^*, V_{-S}^*)\right)}{2\operatorname{Var}\left(f(V^*)\right)}.

where SS is the subset of variables being explained, f(V∗)f(V^*) is the factual simulated outcome, f(VS∗,V−S∗)f(V_S^*, V_{-S}^*) is the counterfactual outcome after replacing the noise for variables in SS, and V∗′V^{*\prime} is an independent draw of all noise variables. Intuitively, a larger value of ξG(⋁k∈SVk⇒Y)\xi_G\left(\bigvee_{k\in S} V_k \Rightarrow Y\right) means that changing the variables in SS produces a larger change in the simulated outcome. Therefore, ξG(⋁k∈SVk⇒Y)\xi_G\left(\bigvee_{k\in S} V_k \Rightarrow Y\right) measures how much explanatory power the subset SS has under the assumed causal structure.

Estimation

The explainability scores are estimated as follows. Root nodes (Sex, Race, and Age Category) in the full DAG are sampled directly from their empirical distributions. For non-root nodes, we estimate conditional quantile functions Qk(⋅∣Vpa⁡(k))Q_k(\cdot\mid V_{\operatorname{pa}(k)}) by gradient boosting with quantile loss on a grid {0.01,0.03,…,0.99}\{0.01, 0.03, \ldots, 0.99\}, apply isotonic rearrangement to enforce monotonicity, and recover values by piecewise-linear interpolation between grid points with clamping outside the grid. To construct the Pick-Freeze estimator, we draw independent uniform noise E=(E1,…,EK+1)E = (E_1, \ldots, E_{K+1}) and an independent copy E′E', then generate outcomes sequentially via Vk=Qk(Ek∣Vpa⁡(k))V_k = Q_k(E_k \mid V_{\operatorname{pa}(k)}), yielding a factual outcome f(E)f(E), a counterfactual outcome f(ES′,E−S)f(E'_S, E_{-S}) in which the noise of subset SS is resampled while E−SE_{-S} is frozen, and an independent outcome f(E′)f(E'). The total explainability ξG(⋁k∈SVk⇒Y)\xi_G(\bigvee_{k\in S} V_k \Rightarrow Y) is then estimated as the ratio of sample variances Var⁡(f(E)−f(ES′,E−S))\operatorname{Var}(f(E) - f(E'_S, E_{-S})) over Var⁡(f(E)−f(E′))\operatorname{Var}(f(E) - f(E')). Within each repetition, the same draws EE and E′E' are shared across all subsets SS via common random numbers (CRN), so the contrasts entering the inclusion-exclusion formula are coupled; this coupling keeps interaction terms non-negative and ensures that higher-order interactions remain below their constituent lower-order terms. We use N=10,000N = 10{,}000 Monte Carlo samples per repetition, average over R=8R = 8 repetitions, and report the mean and standard error. Interaction terms ξG(⋀k∈SVk⇒Y)\xi_G(\bigwedge_{k\in S} V_k \Rightarrow Y) and all other clauses in E(V)\mathcal{E}(V) are obtained from the total explainabilities via inclusion-exclusion.

Total Counterfactual Explainability

Table 1 presents the counterfactual explainability score ξ\xi for all subsets of the demographic root nodes under the full DAG in Figure 1. The explainability score quantifies how much variation in the outcome is explained by a given set of variables under the assumed causal structure.

DAG for COMPAS causal explainability analysis

Figure 1. DAG for COMPAS causal explainability analysis.

Variablesξ\xiVariablesξ\xi
Sex0.0336Sex, Race, Age Category0.1659
Race0.0497Sex ∧\wedge Race0.0114
Age Category0.1283Sex ∧\wedge Age Category0.0166
Sex, Race0.0719Race ∧\wedge Age Category0.0229
Sex, Age Category0.1453Sex ∧\wedge Race ∧\wedge Age Category0.0053
Race, Age Category0.1551

Table 1. Counterfactual explainability of COMPAS root nodes.

Among the three individual root nodes, Age Category has the highest explainability score (ξ=0.1283\xi= 0.1283), followed by Race (ξ=0.0497\xi= 0.0497) and Sex (ξ=0.0336\xi= 0.0336). This suggests that age-related variation explains the largest share of variation in two-year recidivism under the full causal model. The joint effect of all three variables reaches ξ=0.1659\xi= 0.1659, which indicates that the demographic root nodes together explain a larger portion of the outcome variation than any single demographic variable alone.

Explainability Interaction

The interaction terms provide additional information beyond the marginal explainability scores. A positive interaction score means that the joint explanatory contribution of two or more variables is not fully captured by their separate marginal contributions. In this analysis, the Sex ∧\wedge Race interaction score is ξ=0.0114\xi= 0.0114, suggesting that Sex and Race do not contribute to outcome variation in a purely additive way. The three-way interaction among Sex, Race, and Age Category has a score of ξ=0.0053\xi= 0.0053, which is smaller than each of the two-way interactions, consistent with the hierarchy that higher-order interactions capture progressively smaller shares of the outcome variation.

This interaction pattern motivates the age-conditioned analysis in the next section. A non-zero three-way interaction means that the joint explanatory relationship between Sex and Race varies across age groups. We therefore condition on age group to examine how the explanatory roles of Sex and Race, and their interaction, change across age strata.

Logistic Regression as a Complementary Interpretation

As a complementary analysis, we run a logistic regression model predicting two-year recidivism from Sex, Race, Age Category, and all two-way and three-way interaction terms among them. This model is fit on the real COMPAS dataset. It is not meant to replace the Causal ANOVA framework; rather, it provides a coefficient-based interpretation of the direction and relative magnitude of demographic effects suggested by the explainability scores. Consistent with the recommendation in [7], we exclude mediator variables such as Priors Count and Charge Degree from this regression, because conditioning on a descendant would block causal pathways such as Race →\to Priors Count →\to Two-Year Recidivism and would therefore understate the total explanatory role of the root nodes.

To identify the most informative reference category, we fit the saturated logistic regression under all 24 possible combinations of reference categories for Sex, Race, and Age Category, and selected the combination yielding the largest number of statistically significant coefficients. The optimal reference group is Male, African-American, and 25–45 years of age, yielding 8 significant coefficients and reflecting the highest recidivism subgroup in the data. Table 2 presents the results under this reference category.

PredictorCoef.Std. Err.zzpp-value
Main Effects
Intercept0.13250.0472.8040.005
Sex: Female−0.6124-0.61240.114−5.380-5.380<0.001<0.001
Race: Caucasian−0.3993-0.39930.079−5.033-5.033<0.001<0.001
Race: Hispanic−0.6433-0.64330.128−5.044-5.044<0.001<0.001
Race: Other−0.7876-0.78760.158−4.990-4.990<0.001<0.001
Age: Greater than 45−0.4344-0.43440.103−4.236-4.236<0.001<0.001
Age: Less than 250.46820.0905.216<0.001<0.001
Two-Way Interactions
Female ×\times Caucasian0.57260.1743.2910.001
Female ×\times Hispanic0.14250.3210.4450.657
Female ×\times Other0.29810.4010.7430.458
Female ×\times Age >45>45−0.3095-0.30950.293−1.056-1.0560.291
Female ×\times Age <25<25−0.1901-0.19010.207−0.920-0.9200.357
Caucasian ×\times Age >45>45−0.1984-0.19840.151−1.309-1.3090.190
Hispanic ×\times Age >45>45−0.3400-0.34000.271−1.253-1.2530.210
Other ×\times Age >45>450.16450.3060.5370.591
Caucasian ×\times Age <25<25−0.0360-0.03600.159−0.226-0.2260.821
Hispanic ×\times Age <25<250.18840.2420.7780.437
Other ×\times Age <25<250.42180.2891.4610.144
Three-Way Interactions
Female ×\times Caucasian ×\times Age >45>450.09490.3790.2500.802
Female ×\times Hispanic ×\times Age >45>450.49610.6900.7190.472
Female ×\times Other ×\times Age >45>450.59320.7560.7850.433
Female ×\times Caucasian ×\times Age <25<25−0.7339-0.73390.356−2.060-2.0600.039
Female ×\times Hispanic ×\times Age <25<25−0.1299-0.12990.638−0.204-0.2040.839
Female ×\times Other ×\times Age <25<25−1.1167-1.11670.812−1.374-1.3740.169

Table 2. Note: Reference categories are Male, African-American, and Age 25–45. Asian and Native American pooled into Other.

The regression results are broadly consistent with the Causal ANOVA findings. Being female is negatively and significantly associated with recidivism (β=−0.6124\beta= -0.6124, p<0.001p < 0.001), confirming that Sex carries meaningful explanatory power. All three non-African-American race categories show significant negative coefficients relative to the African-American reference group (Caucasian: β=−0.3993\beta= -0.3993, p<0.001p < 0.001; Hispanic: β=−0.6433\beta= -0.6433, p<0.001p < 0.001; Other: β=−0.7876\beta= -0.7876, p<0.001p < 0.001), indicating that African-American defendants have the highest recidivism rate among all racial groups. Both age effects are significant: defendants older than 45 have substantially lower recidivism (β=−0.4344\beta= -0.4344, p<0.001p < 0.001), while defendants younger than 25 have higher recidivism (β=0.4682\beta= 0.4682, p<0.001p < 0.001) relative to the 25–45 reference group. These patterns are consistent with the large Age Category explainability score (ξ=0.1283\xi= 0.1283) in the Causal ANOVA.

The interaction terms provide directional evidence for the non-additivity identified by the Causal ANOVA. The Female ×\times Caucasian coefficient is positive and significant (β=0.5726\beta= 0.5726, p=0.001p = 0.001), indicating that the female recidivism discount is smaller among Caucasian defendants than among African-American defendants. This is consistent with the positive Sex ∧\wedge Race interaction score (ξ=0.0114\xi= 0.0114), which shows that Sex and Race jointly explain more variation than their marginal scores alone would predict. The significant Female ×\times Caucasian ×\times Age Less than

25 three-way interaction (β=−0.7339\beta= -0.7339, p=0.039p = 0.039) further corroborates the three-way Causal ANOVA interaction (ξ=0.0053\xi= 0.0053), suggesting that the Sex–Race relationship is additionally modulated by age group among younger defendants.

Age-Conditioned Explainability and Interaction

Motivation for Conditioning on Age

Since Age Category has the largest individual explainability score in the full DAG, we further condition on age group to examine how the explanatory roles of Sex and Race, and their interaction, change across age strata. This step is important because a large age effect may obscure heterogeneous demographic patterns within younger, middle-aged, and older defendants. Conditioning on age allows the analysis to ask whether Sex and Race carry the same explanatory meaning across age groups, or whether their roles are strongest in particular subpopulations.

This section repeats the main logic of the overall counterfactual explainability analysis, but now within each age group. Within each age group, Age Category is fixed, so the DAG is refit using Sex and Race as the demographic root nodes. Priors Count and Charge Degree remain mediator variables, and Two-Year Recidivism remains the outcome variable.

Explainability Scores Within Age Groups

To investigate whether the explanatory power of Sex and Race varies across age strata, we conduct a subgroup analysis stratified by the three age categories in the dataset: younger than 25, between 25 and 45, and older than 45.

Table 3 shows that the explanatory roles of Sex and Race behave differently across age groups.

Explanatory Variables<25< 252525–4545>45> 45
Sex0.10290.01890.0258
Race0.03530.04900.0999
Sex ∧\wedge Race0.02340.00860.0141

Table 3. Age-Conditioned Explainability of Sex and Race. Explainability Score (ξ\xi) by Age Group

The Sex explainability score decreases from ξ=0.1029\xi= 0.1029 among defendants younger than 25 to ξ=0.0189\xi= 0.0189 in the 25–45 group, then slightly recovers to ξ=0.0258\xi= 0.0258 among defendants older than 45. In contrast, the Race explainability score increases monotonically with age (ξ=0.0353\xi= 0.0353, 0.0490, and 0.0999, respectively), showing that Race becomes a stronger explanatory factor among older defendants.

The interaction score Sex ∧\wedge Race is strongest among defendants younger than 25 (ξ=0.0234\xi= 0.0234) and smaller in the two older groups (ξ=0.0086\xi= 0.0086 and 0.0141). Taken together, these results suggest that demographic explainability is not constant across age groups: the explanatory power of Sex is concentrated among younger defendants, while the explanatory power of Race grows with age, being particularly pronounced among defendants older than 45 [2] [13, 11].

Heterogeneous explainability of Sex, Race, and their interaction across age groups

Figure 2. Heterogeneous explainability of Sex, Race, and their interaction across age groups.

Age-Stratified Logistic Regression

To provide a directional complement to the age-conditioned Causal ANOVA results, we fit a separate logistic regression within each age group using Sex, Race, and their interaction as predictors.

Excluding mediator variables is again appropriate here, for the same reason as in § 2.5: conditioning on Priors Count or Charge Degree would block causal paths from the root nodes and understate their total explanatory role.

The logistic model results from the pooled regression (Table 2) already contain the relevant age interactions. For the youngest group (Age <25< 25), the Female ×\times African-American ×\times Age Less than 25 coefficient is positive and significant (β=0.7339\beta= 0.7339, p=0.039p = 0.039). This means that among defendants younger than 25, the female recidivism discount is smaller among African-American defendants than among Caucasian defendants, consistent with the finding that the Sex ∧\wedge Race interaction score is largest in the youngest age group (ξ=0.0234\xi= 0.0234) and declines with age.

For older defendants (Age >45> 45), the main Age effect is large and negative (β=−0.6327\beta= -0.6327, p<0.001p < 0.001), consistent with the well-established age–crime decline, and neither the Female ×\times Age interaction nor the three-way interactions reach significance, suggesting that demographic interactions are less pronounced in this group. However, the Causal ANOVA results show that Race explainability increases substantially among older defendants (ξ=0.0999\xi= 0.0999), suggesting that while Sex–Race interactions diminish with age, the independent explanatory role of Race grows.

For the middle age group, the Female ×\times African-American interaction (β=−0.5726\beta= -0.5726, p=0.001p = 0.001) dominates, indicating that the female recidivism discount is substantially larger among African-American defendants relative to Caucasian defendants.

Taken together, the Causal ANOVA and regression results reveal a heterogeneous pattern: Sex explainability is highest among younger defendants and declines with age, while Race explainability increases with age, being most pronounced among defendants older than 45 [12, 13].

Discussion

The analysis provides three main inferential conclusions. First, Age Category is the strongest individual demographic explanatory factor in the full Causal ANOVA model (ξ=0.1283\xi= 0.1283), suggesting that age-related variation accounts for a larger share of outcome variation than either Race (ξ=0.0497\xi= 0.0497) or Sex (ξ=0.0336\xi= 0.0336) alone. Second, the interaction scores indicate that demographic variables do not operate independently. In particular, the joint contribution of Sex and Race (ξ=0.0114\xi= 0.0114) exceeds what their separate marginal scores would imply, and the three-way interaction among all three demographic variables (ξ=0.0053\xi= 0.0053) confirms that demographic explainability is intersectional, consistent with the framework of [4]. Third, after conditioning on Age Category, the explanatory role of Sex is strongest among defendants younger than 25 and declines with age, while Race explainability increases with age and is most pronounced among defendants older than 45.

The logistic regression results complement these findings by providing directional evidence. The regression confirms that being male is positively associated with recidivism, that the magnitude of this association varies by race (being attenuated for Caucasian defendants and modulated differently among younger defendants), and that the age effect is large, negative, and significant. These directional patterns align with the Causal ANOVA interaction structure and give the explainability scores interpretive grounding. The goal of the regression is not to introduce an additional conditioning step, since the causal conditioning is already handled in the Causal ANOVA framework. Rather, its purpose is to provide information about the sign and relative magnitude of effects, so that the explainability results can be interpreted not only in terms of how much variation is explained, but also in terms of which direction the demographic differences run.

Several additional inference methods could be used to extend or robustify these conclusions. Propensity score matching could create balanced comparison groups and assess whether racial and gender differences remain after covariate adjustment at the individual level [10]. Bayesian inference would replace point estimates and pp-values with posterior distributions over explainability scores, allowing direct probability statements about the magnitude of demographic effects [9]. Bootstrapping the Causal ANOVA procedure itself would provide a robustness check on whether the estimated interaction structure is stable across resampled datasets [6]. Each of these methods addresses a different dimension of inferential uncertainty and could strengthen the conclusions drawn from the current analysis.

Literature and Background

This appendix provides additional background for interpreting the demographic patterns observed in the main analysis. Prior research on COMPAS and criminal justice prediction has emphasized the roles of race, age, prior records, sex, and their interactions. These studies motivate the variables and interaction terms used in this report. However, the main contribution of this report is inferential: estimating how demographic variables explain variation under the Causal ANOVA framework. We organize the relevant literature into three themes.

The first theme concerns racial bias in algorithmic risk assessment. [1], in Machine Bias, found that Black defendants were more likely to be mislabeled as high-risk, which motivates the baseline racial comparison in our regression model. Building on this line of work, [5] argued that recidivism prediction can rely heavily on age and prior records, which supports treating Age Category as a root variable and Priors Count as a mediator in the causal DAG.

The second theme concerns sex, race, and their intersection. [4] introduced intersectionality as a framework for understanding how race and sex may operate jointly rather than separately, motivating the Sex ×\times Race interaction terms. [12] studied how race, gender, and age jointly shape criminal-justice outcomes–in particular the compounded disadvantage of being young, Black, and male–which motivates the age-conditioned explainability analysis.

The third theme concerns how sex differences in criminal-justice outcomes vary with age. [2] discussed how offending patterns differ by sex and age, and [11] found that the leniency historically extended to female defendants is not uniform across contexts. More recently, [13] examined race and gender differences in the age–sentencing relationship directly, showing that the association between age and criminal-justice outcomes itself depends on sex and race. Together, these studies support our finding that the explainability of Sex and Race is not constant but varies across age strata: Sex explainability is strongest among younger defendants, while Race explainability grows with age and is most pronounced among older defendants.

Node Collapse Sensitivity Analysis

To assess the robustness of the explainability estimates to structural assumptions in the DAG, we conduct node collapse sensitivity analyses by systematically removing mediator nodes. Four DAG configurations are compared: the original full DAG, a DAG without internal mediator nodes, a DAG without Charge Degree, and a DAG without Priors Count.

DAG Without Internal Nodes

In this specification, both Priors Count and Charge Degree are removed. The root nodes connect directly to the outcome, collapsing all mediated pathways into direct effects.

DAG showing Race, Sex, and Age Category directly connected to Two-Year Recidivism

Figure 3. Node collapse sensitivity analysis without internal nodes.

Explanatory VariablesExplainability Score (ξ\xi)
Sex0.0319
Race0.0564
Age Category0.0896
Sex, Race0.0754
Sex, Age Category0.1049
Race, Age Category0.1155
Sex, Race, Age Category0.1233
Sex ∧\wedge Race0.0130
Sex ∧\wedge Age Category0.0166
Race ∧\wedge Age Category0.0306
Sex ∧\wedge Race ∧\wedge Age Category0.0055

Table 4. Node Collapse Sensitivity Analysis Without Internal Nodes

Removing mediators decreases the individual score for Age Category from ξ=0.1283\xi= 0.1283 in the full DAG to ξ=0.0896\xi= 0.0896 in the collapsed DAG, suggesting that a meaningful portion of age-related explanatory structure passes through the mediator nodes. The Race ∧\land Age Category interaction increases to ξ=0.0306\xi= 0.0306, and the three-way interaction remains at ξ=0.0055\xi= 0.0055, indicating that the interaction structure is partially mediated.

DAG Without Charge Degree

In this specification, Charge Degree is removed while Priors Count is retained as a mediator.

DAG showing Race, Sex, Age Category, Priors Count, and Two-Year Recidivism

Figure 4. Node collapse sensitivity analysis without Charge Degree.

Explanatory VariablesExplainability Score (ξ\xi)
Sex0.0359
Race0.0499
Age Category0.1316
Sex, Race0.0761
Sex, Age Category0.1486
Race, Age Category0.1578
Sex, Race, Age Category0.1696
Sex ∧\land Race0.0097
Sex ∧\land Age Category0.0188
Race ∧\land Age Category0.0237
Sex ∧\land Race ∧\land Age Category0.0045

Table 5. Node Collapse Sensitivity Analysis Without Charge Degree

Removing Charge Degree while retaining Priors Count produces results relatively close to the full DAG. The total joint score for all three variables is ξ=0.1696\xi= 0.1696, compared with ξ=0.1659\xi= 0.1659 in the full model. The interaction structure is largely preserved, suggesting that Priors Count carries more mediating weight than Charge Degree in this causal specification.

DAG Without Priors Count

In this specification, Priors Count is removed while Charge Degree is retained as a mediator.

DAG showing Race, Sex, Age Category, Charge Degree, and Two-Year Recidivism

Figure 5. Node collapse sensitivity analysis without Priors Count.

Explanatory VariablesExplainability Score (ξ\xi)
Sex0.0306
Race0.0609
Age Category0.0787
Sex, Race0.0769
Sex, Age Category0.0945
Race, Age Category0.1151
Sex, Race, Age Category0.1232
Sex ∧\wedge Race0.0146
Sex ∧\wedge Age Category0.0148
Race ∧\wedge Age Category0.0245
Sex ∧\wedge Race ∧\wedge Age Category0.0069

Table 6. Node Collapse Sensitivity Analysis Without Priors Count

Compared with the full DAG, removing Priors Count shifts the interaction structure more substantially than removing Charge Degree. The Sex ∧\wedge Age Category interaction decreases from ξ=0.0166\xi= 0.0166 in the full DAG to ξ=0.0148\xi= 0.0148 when Priors Count is removed. The overall joint score (ξ=0.1232\xi= 0.1232) is lower than in the full DAG, consistent with the pattern that Priors Count plays an important mediating role in the causal structure.

Summary of Sensitivity Analysis

VariablesOriginal DAGNo Internal NodesNo Charge DegreeNo Priors Count
Sex0.03360.03190.03590.0306
Race0.04970.05640.04990.0609
Age Category0.12830.08960.13160.0787
Sex, Race0.07190.07540.07610.0769
Sex, Age Category0.14530.10490.14860.0945
Race, Age Category0.15510.11550.15780.1151
Sex, Race, Age Category0.16590.12330.16960.1232
Sex ∧\wedge Race0.01140.01300.00970.0146
Sex ∧\wedge Age Category0.01660.01660.01880.0148
Race ∧\wedge Age Category0.02290.03060.02370.0245
Sex ∧\wedge Race ∧\wedge Age Category0.00530.00550.00450.0069

Table 7. Comparison of Explainability Scores Across DAG Specifications

Node collapse sensitivity analysis on COMPAS Dataset

Figure 6. Node collapse sensitivity analysis across four DAG specifications.

Across all four specifications, Age Category remains the largest individual explanatory factor in the full DAG and No Charge Degree specifications, while Race becomes more prominent when mediators are removed. The interaction terms are more sensitive to the DAG structure than the main scores. The key finding that Race explainability grows with age, while Sex explainability is strongest among younger defendants, is robust across all four configurations.

Causal ANOVA on Real COMPAS Data (Linear Learner)

This appendix reports the Causal ANOVA results estimated on the real COMPAS dataset using the linear quantile regression learner, as a sensitivity check on the main results reported in Table 1. The DAG structure is identical to the one we used in the main analysis (Figure 1). The ranking of explainability scores is preserved across both specifications: Age Category remains the strongest individual explanatory factor, followed by Race and Sex, consistent with the XGBoost results in the main analysis.

Explanatory VariablesExplainability Score (ξ\xi)
Total Explainability
Sex0.0026
Race0.0040
Age Category0.0339
Sex, Race0.0064
Sex, Age Category0.0362
Race, Age Category0.0378
Sex, Race, Age Category0.0399
Interaction Terms
Sex ∧\wedge Race0.0001
Sex ∧\wedge Age Category0.0003
Race ∧\wedge Age Category0.0001
Sex ∧\wedge Race ∧\wedge Age Category0.0000

Table 8. Causal ANOVA on Real COMPAS Data (Linear Learner)

Note: Results estimated on the real COMPAS dataset (n=7,214n = 7{,}214) using linear quantile regression. Reference: [7].

Explainability Venn Diagram: Real COMPAS Data (Linear Learner)

Figure 7. Explainability Venn Diagram: Real COMPAS Data (Linear Learner). Circle sizes reflect the total explainability score ξ\xi for each demographic variable. The overlapping regions represent pairwise interaction terms. Age Category dominates the decomposition, consistent with the main analysis.

References

  1. [1]Julia Angwin, Jeff Larson, Surya Mattu, and Lauren Kirchner. Machine bias: There’s software used across the country to predict future criminals. and it’s biased against blacks. ProPublica, 2016.
  2. [2]Elizabeth Cauffman. Understanding the female offender. The Future of Children, 18(2):119–142, 2008.pubmed.ncbi.nlm.nih.gov/21338000

Paper details

vlnc:W_a4t6mfa8
Version
v1 · latest
Published
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents