Manuscript Offprint
arXiv:2608.30568Collapsibility of Performance Metrics in Clinical Predictive AI
Abstract
Background: Population level assessments of predictive artificial intelligence (AI) can conceal performance disparities across subgroups. Fairness evaluations commonly rely on performance analyses across subgroups. However, some performance metrics are non-collapsible, meaning that the overall population performance value does not equal the weighted average of subgroup specific values. This can mislead fairness evaluation.
Objective: To examine the collapsibility properties of commonly reported performance metrics in predictive AI, with a focus on the area under the receiver operating characteristic curve (AUC, also known as c-statistic).
Methods: We investigate the collapsibility of fifteen performance metrics, either by expressing each metric as a linear combination of its stratum specific values or, where non-collapsible, by providing a counterexample inspired by Simpson's paradox as a formal disproof. We focus particularly on the AUC, a commonly reported metric of model discrimination, and formally characterise its expression under mixtures of subpopulations.
Results: Five performance metrics (AUC, calibration intercept, calibration slope, expected calibration error, and Nagelkerke ) are shown to be non-collapsible, and ten (O:E ratio, logloss, Brier score, accuracy, F1-score, true positive rate, true negative rate, positive predictive value, negative predictive value, and net benefit) are shown to be collapsible. The AUC is shown to be non-collapsible because it decomposes into within- and cross-group AUC terms when subpopulations coexist, such that its overall value may fall outside the range of subgroup specific AUCs.
Conclusions: Non-collapsibility of performance metrics has important consequences for reporting, model appraisal, and fairness evaluation. It can generate spurious differences between subgroup and overall performance, which may mislead fairness evaluations. Explicitly acknowledging and reporting the collapsibility properties of performance metrics improves both the interpretability and transparency of fairness assessments.
- joao.matos@ndorms.ox.ac.uk, Centre for Statistics in Medicine, University of Oxford
Box 1: Glossary of key terms used throughout the manuscript
AUC: area under the receiver operating characteristic curve, also known as c-statistic [1].
Calibration: the extent of the agreement between the probability estimates and the observed event proportions [2].
Collapsibility: a metric is said to be collapsible over a stratifying variable (e.g., sex) if its marginal value equals the weighted average of the stratum specific values (e.g., male, female), with weights depending on the marginal distribution of [3].
Cross-group discrimination: , probability that an individual with the event from subgroup is ranked higher than an individual without the event from subgroup [4].
Discrimination: extent to which the model gives higher probability estimates for individuals with the event compared to those without the event, quantified by the area under the receiver operating characteristic curve (AUC) [5].
Fairness evaluation: assessing the nature and magnitude of any potential differential model performance across individuals or subgroups defined by a sensitive attribute. It can be conducted in different ways, including disaggregated performance evaluation; stratification of visual tools such as calibration plots; computation of fairness metrics.
Fairness metric: a metric that quantifies the extent to which a model's output does not discriminate (in the societal sense, based on a given notion of fairness) against individuals or subgroups defined by a sensitive attribute [6].
Jensen's Gap: difference between the two sides of Jensen's inequality, i.e., the deviation of the overall metric from the linear interpolation of subgroup values [7].
Outcome prevalence (): proportion of individuals experiencing an outcome of interest.
Simpson's Paradox: phenomenon in which a trend observed within multiple subgroups reverses or disappears when subgroups are combined [8].
Subgroup proportion (): proportion of individuals belonging to subgroup within the population.
Within-group discrimination (AUC): probability that an individual with the event from subgroup is ranked higher than an individual without the event from subgroup [4].
Such patterns reflect a key mathematical property of the metric itself: collapsibility. A metric is collapsible over a variable g (e.g., sex) if its marginal value equals the weighted average of the subgroup specific values, with weights determined by the marginal distribution of g (e.g., male, female). When collapsibility holds, this aggregation artefact cannot occur. The phenomenon is closely related to, though not identical to Simpson's paradox [8, 10], whereby associations observed within subgroups disappear or reverse when data is aggregated [11]. In extreme cases, marginal and conditional association metrics may have opposite directions, a pattern also referred to as the reversal paradox [12], aggregation bias, or the amalgamation paradox [13].
In the context of performance metrics, collapsibility means that the overall value can be expressed as an appropriate weighted average of the subgroup specific values. If a metric is collapsible, the overall value is therefore directly linked to the subgroup values . By contrast, when a metric is non-collapsible, this relationship breaks down, making it more difficult to interpret subgroup and overall performance jointly, and potentially distorting fairness evaluations.
This motivates a broader examination of collapsibility in the context of fairness, extending beyond the AUC example provided above. Most fairness metrics are parity based, defined as differences in subgroup specific values of model performance [6]. Applying such metrics without understanding and accounting for collapsibility can lead to misleading conclusions about subgroup and overall performance. A deeper understanding of collapsibility is therefore essential for fairness evaluation.
The aim of this paper is to examine the collapsibility properties of 15 commonly reported performance metrics for predictive artificial intelligence (AI) models with binary outcomes, with a particular focus on the AUC.
2 Collapsibility of Performance Metrics
2.1 Definition
Let denote samples with a binary outcome and a sensitive attribute (e.g., ). Let denote the model estimated probabilities for each sample. A performance metric is collapsible [3] over an attribute if
where denote the weights used to recover the overall performance value (i.e., metric specific weights). These weights are determined by the specific metric under consideration and by the way it decomposes across subgroups; for example, they may correspond to subgroup proportions or subgroup specific outcome prevalences.
A metric is collapsible over a variable g if it can be written as a linear combination of its subgroup specific components. By definition, such a metric satisfies the following condition:
meaning that overall metric values are bounded by subgroup specific values.
If no metric specific weights exist, consistent with the decomposition of M, for which equation 1 holds, then M is non-collapsible with respect to g. In such cases, a Simpson’s paradox type aggregation artefact may occur, although this is neither necessary nor sufficient for non-collapsibility. When this artefact occurs, condition 2 is violated.
Because even collapsible metrics, such as the arithmetic mean, can exhibit Simpson’s paradox when subgroup comparisons are stratified by a confounding variable [11], we refer to the aforementioned phenomenon here as an “aggregation artefact”. The term refers to situations in which the overall value lies outside the range spanned by the subgroup values , such that the relationship observed within subgroups is reversed or distorted after aggregation.
For non-collapsible metrics, the discrepancy between and the weighted combination of subgroup values is captured by Jensen's gap. If no metric specific weights make the overall value equal to the weighted average of the subgroup values, then the aggregation relationship is non-linear, and may be convex or concave. For , this discrepancy can be written as
where is the weight that would recover from and , and .
Figure 1 illustrates this contrast, with for collapsible metrics (left), and for non-collapsible metrics (right).
Collapsible metric
Non-collapsible metric


Figure 1: Collapsible vs non-collapsible metrics as functions of a weight . Left: collapsible metric, can be recovered from linear combination of group-specific values and . Right: non-collapsible metric, curved black line ( ) deviates from the linear interpolation ( ). This could be concave (black) or convex (grey). The vertical red arrow denotes Jensen's gap for the concave case.
Whilst a metric can be shown to be collapsible if Equation 1 holds, non-collapsibility can be established by counterexample: if one can find a case in which Equation 2 is violated, then the metric is not collapsible.
2.2 Collapsible and non-collapsible metrics
We examined the collapsibility of performance metrics that are considered “recommended” [5, 6], together with metrics that are widely used but not necessarily fit for purpose, such as the F1-score. These metrics are summarised in Table 1, and Table 2 summarises their collapsibility properties, with full proofs provided in the Appendix.
Collapsibility varies across metrics depending on how their weights are computed, a property that is critical to preventing aggregation artifacts. We distinguish between strict collapsibility, where weights depend exclusively on subgroup properties, such as the number of events per subgroup, and general collapsibility, where the marginal value equals the weighted average based on any identifiable weight, such as the number of true positives according to the model.
Metrics satisfying strict collapsibility include logloss, the Brier score, accuracy, recall, specificity, and net benefit. These aggregate as linear weighted averages based on subgroup outcome prevalence () or subgroup proportion ().
Metrics satisfying general collapsibility include the O:E ratio, F1-score, PPV, and NPV, which remain collapsible when weighted by the model-dependent terms (e.g., true positives).
The AUC, calibration intercept, calibration slope, expected calibration error (ECE), and Nagelkerke's are non-collapsible; their overall value cannot be expressed as a weighted average of the subgroup values.
Table 1: Performance metrics for evaluating prediction models with binary outcomes [5].
| Measure | Description |
|---|---|
| Discrimination | |
| AUC / c-statistic | Probability that an individual with the event has a higher estimated probability than an individual without the event. |
| Calibration | |
| O:E ratio | Ratio of the number of individuals with an event to the expected number of individuals with an event according to the model. |
| Calibration intercept | Indicates whether probabilities are on average underestimated (intercept >0), overestimated (<0), or correct (0). |
| Calibration slope | Indicates whether probabilities are too extreme (slope >1), too modest (<1), or perfect (1). |
| Expected Calibration Error (ECE) | Weighted mean absolute difference between average probability and observed proportion from risk groups. |
| Overall Performance | |
| Logloss / Cross-entropy | Negative loglikelihood. |
| Brier score | Average squared difference between outcome labels and estimated probabilities. |
| Nagelkerke R-squared | Cox-Snell R-squared scaled (loglikelihood-based R-squared) to the value for a perfect model. |
| Classification (Summary Measures) | |
| Classification accuracy | Proportion of correctly classified individuals. |
| F1-score | Harmonic mean of precision and sensitivity. |
| Classification (Partial Measures) | |
| Sensitivity / Recall / TPR | Proportion of individuals with an event that are correctly classified. |
| Specificity / TNR | Proportion of individuals without an event that are correctly classified. |
| PPV / Precision | Proportion of high-risk individuals that have an event. |
| NPV | Proportion of low-risk individuals that do not have an event. |
| Clinical Utility | |
| Net Benefit | Net proportion of true positives, equivalent to sensitivity in the absence of false positives. |
Table 2: Collapsibility properties of common performance measures.
| Measure | Collapsibility | Intuition | Weights, |
|---|---|---|---|
| Discrimination | |||
| AUC | Non-collapsible | Depends on both within- and cross-group pairings, which cannot be expressed as a convex combination of subgroup AUCs. | - |
| Calibration | |||
| O:E ratio | Collapsible (model-dependent) | Ratio of sums; expected counts decompose linearly. | |
| Cal. Intercept | Non-collapsible | Regression coefficient, estimated globally, not an average of subgroup intercepts. | - |
| Cal. Slope | Non-collapsible | Regression coefficient, estimated globally, not an average of subgroup slopes. | - |
| ECE | Non-collapsible | Absolute deviations inside bins prevent linear aggregation across groups. | - |
| Overall Performance | |||
| Logloss | Collapsible | Log-likelihood contributions add over individuals. | |
| Brier score | Collapsible | Squared errors add over individuals. | |
| Nagelkerke | Non-collapsible | Nonlinear rescaling of likelihood ratio; not decomposable into group averages. | - |
| Classification (Summary Measures) | |||
| Accuracy | Collapsible | Correct classifications add linearly across individuals. | |
| F1-score | Collapsible (model-dependent) | Ratio of sums with group-specific denominators; can be written as weighted sum of subgroup F1. | |
| Classification (Partial Measures) | |||
| TPR | Collapsible | Denominator is number of positives, which decomposes via subgroup prevalences. | |
| TNR | Collapsible | Denominator is number of negatives, which decomposes via subgroup negative prevalences. | |
| PPV | Collapsible (model-dependent) | Denominator is number of predicted positives, which decomposes linearly. | |
| NPV | Collapsible (model-dependent) | Denominator is number of predicted negatives, which decomposes linearly. | |
| Clinical Utility | |||
| Net Benefit | Collapsible | Defined directly in terms of collapsible counts (TP, FP). | |
is the subgroup proportion; is the subgroup specific prevalence of the outcome, with overall; is the subgroup specific predicted positive rate, with ; is the expected number of events in subgroup ; are subgroup specific confusion matrix counts.
3 AUC mixture decomposition and non-collapsibility
The AUC is a commonly reported prediction model performance metric [5, 14], quantifying how well a model ranks individuals who experience the event above those who do not [1]. Because it evaluates all event and non-event pairs, it includes pairs that span different subgroups in fairness sensitive settings, a property previously examined through the notion of cross-AUC (xAUC) [4]. The xAUC represents the probability that an individual with the event from subgroup i is ranked higher than an individual without the event from subgroup j [4]. Both within-group and cross-group AUC are expected to influence the overall AUC. Given the central role of AUC in evaluating discrimination, we derive its decomposition under mixtures of subpopulations and formally prove that it is non-collapsible.
3.1 Problem setting and notation
Consider a dataset of i.i.d. samples , where denotes the predictor vector, is the subgroup indicator taking one of possible values in (sensitive attribute), and is the binary outcome. Let
and define the subgroup outcome prevalence
By the law of total probability,
A prediction model
produces estimated probabilities .
For a decision threshold , group- and class-conditional cumulative distributions can be defined as:
and true positive rate (TPR) and false positive rate (FPR) functions can be defined as follows (and as illustrated in Figure 2):
Evaluating across all subgroups, as typically done when evaluating performance at population level, yields the overall model estimated probability distributions
The AUC is then defined as [15]:
3.2 Mixture decomposition of overall AUC and non-collapsibility
The overall AUC can also be expressed as the probability that the prediction model assigns a higher estimated probability to a randomly selected individual with the event than to a randomly selected individual without the event [16]:


Figure 2: Conditional estimated probability densities and shaded error-rates for 2 groups. For both Group A and for Group B, the solid line denotes the distribution (individuals without the event) and the dashed line, the distribution (individuals with the event). At a common threshold (set to 0.4 in this example), the red-hatched area shows and the black-hatched area shows [1]
where and denote the estimated probabilities for independent draws from the event and non-event individuals, respectively.
Conditioning on subgroup membership, let denote the estimated probability for an individual with the event from subgroup , and let denote the estimated probability for an individual without the event from subgroup , where . Assuming independence between sampled pairs, we obtain
(7)
This decomposition can be represented as
where is a matrix of within- and cross-group AUCs with entries . The diagonal entries correspond to within-group AUCs, while the off-diagonal terms capture cross-group rankings.
For two groups A and B, the decomposition reduces to
with
In the special case where , i.e., each subgroup has the same outcome prevalence, the decomposition in (7) simplifies further. Substituting , , , and , we obtain , which yields
and, noting that ,
Thus, when subgroups have equal outcome prevalence, the overall AUC reduces to an average of within-group and cross-group AUC terms weighed by the subgroup proportions .
This mixture decomposition highlights that the overall AUC depends not only on within-group AUCs but also on cross-group terms (xAUC, of equation 9), subgroup proportions ( ), and subgroup specific outcome prevalences ( ) [17]. Consequently, the overall AUC may lie outside the convex bounds of the subgroup AUCs, violating the collapsibility condition 2. This property has direct implications for fairness evaluation, as discussed in Section 4.
3.3 AUC collapsibility special cases
Despite non-collapsibility being observed in general for the AUC, there are specific scenarios when collapsibility may occur. A collapsible form of the AUC would depend solely on within-group AUC terms. Transitioning from equation 7 to equation 1 requires an appropriate combination of subgroup AUC and cross-group xAUC terms, such as the ones that we suggest and explore below.
Scenario (i): .
Let the cross-group AUC equal the within-group AUC for each subgroup g:
Applying equation 9 for two groups A and B, without loss of generality, it can be shown that:
Thus, if cross-group AUC values equal the within-group AUC values, i.e., individuals without the event are identically distributed across subgroups, then can be written as a linear combination, achieved with (1).
Scenario (ii): and .
In addition to the cross-group AUCs equalling the within-group AUCs, suppose that the subgroup outcome prevalences also match (i.e., ). Then, can be expressed as:
These special cases are presented here as theoretical exceptions, and in practice the AUC should generally be treated as non-collapsible in the population of interest. In Section 4, we explore scenarios in which , and examine how these may lead to counter-intuitive fairness evaluations. This raises deeper questions about the AUC itself, particularly its sensitivity to case-mix differences and its relationship to performance metrics beyond discrimination, such as calibration.
3.4 AUC estimation under normal assumptions
To support the forthcoming examples, we derive the closed-form expression for the AUC when the overall distribution arises from a mixture of subpopulations (equation 7), under normality assumptions.
There are multiple ways of estimating the AUC, including the Mann–Whitney statistic, kernel smoothing, normal assumptions, and empirical transformations to normality [16, 18]. Here, for illustrative purposes, we derive a closed-form expression for the overall AUC as defined by equation 7, under a truncated normal approximation. Without loss of generality, suppose that within each group , the estimated probabilities for those with and without the event are approximately truncated normal on [0, 1]:


Figure 3: Group-conditional densities for those without the event , solid) and those with the event , dashed). Nearby text labels indicate the corresponding mean and standard deviation , .
Then for any pair the component AUC admits the closed-form:
where a is the separation coefficient and b the symmetry coefficient,
By the mixture decomposition 7, the overall AUC becomes
Although assuming that the model’s estimated probabilities follow a normal distribution may not accurately reflect real-world scenarios, we adopt this assumption in what follows for illustration and interpretability.
4 AUC non-collapsibility and fairness implications
Non-collapsibility can be a practical concern for fairness assessments. A collapsible metric always remains within the range defined by the subgroup minimum and maximum (equation 2); in contrast, a non-collapsible metric, such as the AUC, can breach these bounds, manifesting as an aggregation artefact (examples in Figure 5). Collapsible metrics also permit straightforward reasoning from subgroup to overall level. For the AUC in particular, the overall value entangles within-group and cross-group pairwise comparisons, which complicates interpretation and communication among statisticians, clinicians, and policymakers. This section examines specific ways in which AUC non-collapsibility can affect fairness evaluation.
4.1 Counter-intuitive fairness scenarios
Jensen’s gap, , arises from the non-collapsibility of the AUC and quantifies the deviation of the overall metric from the linear combination of subgroup metrics. Here we use to illustrate and examine two counter-intuitive, yet plausible, fairness scenarios (Figure 4).
(a) Subgroup parity satisfied, but overall AUC is lower:

(b) and match, but is higher:

Figure 4: Two scenarios illustrating relationships between subgroup AUCs and the overall AUC.
Scenario (i): .
Figure 5a shows that subgroup parity may hold ( and ) while the overall AUC is substantially lower ( ). This apparent paradox is explained by the cross-group AUC terms: is disproportionately low (0.36), whereas is very high (0.99), leading to an overall AUC that is lower than both subgroups' (similar) performance. Mathematically, when subgroup parity is satisfied, i.e., :
(17)
Scenario (ii): .
Figure 5b illustrates a setting in which one subgroup’s AUC ( ) is similar to the overall AUC ( ) but the other subgroup AUC ( ) is markedly higher. Once again, the difference arises from the cross-group AUC terms, which are further weighted by subgroup proportions and subgroup outcome prevalence differences. Formally, when one subgroup metric equals the overall metric, i.e., :
These examples illustrate that the counter-intuitive behaviours are directly tied to the non-collapsibility of the AUC, as captured by . The resulting differences are not artefacts of estimation but rather consequences of the decomposition in equation 7. Examining the distribution of the estimated probabilities generated by the model in both scenarios reveals substantial differences between groups A and B that account for the observed AUC values. The following section investigates these distributions, why may be non-zero, and explores how its magnitude reflects the interaction between case-mix differences and other dimensions of model performance.


(a) Simulated scenario in which subgroup parity is satisfied ( ) but overall AUC is lower than both subgroup AUC values. Estimated probability distributions follow , , , and .


(b) Simulated scenario in which , but falls outside the range. Estimated probability distributions follow , , , and .
Figure 5: Illustrative cases comparing subgroup and overall AUC relationships. On the left panel, AUC component values are shown in the form of a matrix, , with for the pooled sample in the centre. On the right panel, the distributions of the estimated probability by outcome and subgroup are shown. Within each subgroup the estimated probabilities for non-events and events are drawn from truncated normal distributions on , using 100,000 samples in total. For both scenarios, , , and the estimated probabilities follow for all strata. The parameters defined here are common to both scenarios but , , , are specific to each scenario above.
An interactive web application for exploring the proposed concepts and the mentioned scenarios is available at https://collapsibility.streamlit.app/. The corresponding Python code, used to implement the app and produce all demonstrations presented in this work, is available at https://github.com/joamats/collapsibility.
4.2 Drivers of non-collapsible behaviour
To understand why the AUC may fail to be collapsible, and how this leads to the counter-intuitive scenarios above, we examine how differences in the distributions of the estimated model probabilities across subgroups influence both the within-group AUC and the cross-group xAUC terms.
For illustration, suppose that there are two groups, A and B, defined by a sensitive attribute g, and assume normality (truncated to , by definition) of the estimated probabilities with equal standard deviations across all subgroup-outcome strata [19]:
Under this assumption the symmetry coefficient appearing in equation 15 becomes . The component AUC therefore simplifies to
where denotes the common standard deviation.
As noted in subsection 3.3, collapsibility can be achieved via equality between certain within-group and cross-group AUC terms, such as . Under the simplified expression above, this condition becomes
Alternatively, if collapsibility were to arise through , then
Hence deviations from collapsibility can be attributable to differences in the mean estimated probabilities across subgroups, specifically to contrasts of the form and . The quantity has been referred to in the literature as “balance for the positive class” and as “balance for the negative class” [20].
This raises the question of why the means of the estimated probabilities should differ between subgroups at all. Several mechanisms may lead to such differences: two that are common in a fairness evaluation are highlighted below.
Driver (i): Differences in subgroup outcome prevalence under fair mean calibration
Assume the prediction model is well-calibrated within each subgroup in the sense of calibration-in-the-large, meaning the average estimated probability matches the outcome prevalence [2]. When within-group discrimination is identical, differences in subgroup outcome prevalence and will induce corresponding differences in the mean estimated probabilities, since a group with a higher outcome prevalence will, on average, have higher estimated probabilities. These shifts in and propagate into the xAUC terms, potentially creating cross-group asymmetries even when the within-group AUCs remain comparable. Under fairness evaluation involving two or more heterogeneous subpopulations, such xAUC differences may have counter-intuitive effects on the overall AUC.
Driver (ii): Differences in subgroup calibration under equal subgroup outcome prevalence
Now suppose the subgroups share a common outcome prevalence but differ in their mean calibration. For instance, systematic over- or underestimation in one subgroup would shift either or relative to the proportion of observed outcomes. Such differences again alter even when the within-group discrimination remains similar.
These two mechanisms motivate a closer examination of how case-mix differences and miscalibration differences respectively contribute to AUC behaviour, as detailed below.
4.2.1 The role of case-mix differences toward naturally occurring subgroup differences
Differences in AUC across subgroups do not necessarily stem from shortcomings in the model's ability to discriminate, nor do they necessarily imply a lack of fairness. They may instead reflect differences in the underlying case-mix [21], a phenomenon broadly referred to as spectrum bias [22], whereby the performance of a prediction model varies when applied to populations with differing distributions of patient characteristics.
Here we focus on two quantities that can vary across subgroups defined by a sensitive attribute and affect the mixture decomposition of the overall AUC: subgroup proportions and subgroup specific outcome prevalences. Subgroup proportions reflect population composition, whereas differences in outcome prevalence may arise from underlying case-mix differences in baseline characteristics. Both influence the mixture decomposition of the overall AUC and thereby the magnitude of non-collapsibility effects.
Let denote the proportion of individuals in subgroup g, and the outcome prevalence within that subgroup. Differences in these quantities influence the mixture decomposition of the overall AUC and thereby contribute to the magnitude of non-collapsibility effects.
(i) Different subgroup proportions:
Subgroup proportions do not affect the AUC or xAUC terms, but they do determine the relative influence of these components in the overall mixture expression (equation 16). Consequently, even if a model behaves identically across subgroups, different proportions of the subgroups can impact on the overall AUC.
(ii) Different subgroup specific outcome prevalences:
Although the AUC is invariant to outcome prevalence in a homogeneous population, differences in across subgroups influence the mixture decomposition in two important ways. First, as discussed in Section 3.3, varying affects the means of the estimated probability distributions – potentially to different extents, depending on how much subgroup specific calibration-in-the-large follows such differences or not. These mean shifts alter the relative positions of the subgroup estimated probability distributions and therefore modify the xAUC terms, even when the within-group discrimination remains unchanged. Second, subgroup outcome prevalences determine the mixture weights and , which govern the contribution of each subgroup-outcome stratum to the overall AUC. Differences in therefore amplify or attenuate the influence of particular strata on the mixture.
Case-mix differences impact on the AUC

Figure 6: Overall AUC of a single model applied to subgroups A and B as the sample proportion varies from 0 to 1. Curves show different prevalences in A, , with fixed . There are 20,000 samples in total for each scenario. For each subgroup estimated probabilities for non-events and events were drawn from truncated Normal([0, 1]) with means and , and fixed . Endpoints , 1 recover AUC_B and AUC_A, respectively.
Figure 6 illustrates these effects, showing how variations in subgroup proportions and subgroup specific prevalences jointly influence the overall AUC under a fixed underlying model. These observations highlight that case-mix differences, including variations in subgroup proportions and subgroup specific outcome prevalences, can produce non-collapsible behaviour that may inflate “fairness gaps” that do not necessarily translate to unfairness in the model. Rather, such differences may reflect population heterogeneity and should be interpreted with care in fairness evaluations.
This perspective aligns closely with earlier work by van Klaveren and colleagues, who proposed a concordance based metric designed to disentangle the contribution of case-mix heterogeneity from true differences in discriminative ability [23]. It is also consistent with propensity based standardisation approaches, which aim to disentangle differences in discrimination due to case-mix from differences due to model generalisability across samples [24]. Furthermore, Vergouwe and colleagues demonstrate that shifts in the distribution of patient characteristics can affect model performance, even when the underlying model remains unchanged [21]. Notably, they also document a scenario in which more severe case-mix changes induce systematic miscalibration, which naturally raises the question of how calibration and discrimination interact. We therefore now examine the role of miscalibration differences in shaping observed AUC behaviour.
4.2.2 The role of miscalibration differences
The AUC is a rank based metric, invariant to any strictly monotone transformation of the estimated probabilities, and is therefore generally, considered independent of calibration [25]. This interpretation warrants some clarification. Pencina and colleagues have noted that miscalibration can affect the empirical AUC in practice [26]. More recently, Sadatsafavi and colleagues introduced a “model-based ROC curve”, which separates the effects of case-mix heterogeneity and miscalibration [27]. These contributions motivate a closer examination of how miscalibration interacts with case-mix to affect discrimination, particularly in fairness contexts where subgroup differences are of key interest.
In heterogeneous populations, the overall AUC reflects not only within-group discrimination but also cross-group estimated probability comparisons. Consequently, even equal within-group AUCs can yield a higher, or lower, overall AUC if groups differ in mean calibration or outcome prevalence. This conflation complicates fairness evaluations, since variations in overall AUC may arise from calibration discrepancies across subgroups, rather than genuine differences in discrimination. The form of calibration relevant here corresponds to calibration at the level of covariate patterns, whereby estimated probabilities match observed event rates for each subgroup specific covariate pattern. As discussed by Van Calster and colleagues [2], this “strong calibration” is rarely achievable, yet systematic differences in estimated probabilities propagate directly into the AUC decomposition. These considerations further underscore the importance of evaluating discrimination and calibration jointly [5], including subgroup performance alongside overall performance.
4.3 Clinical illustration: EuroSCORE II
Here, we use the European System for Cardiac Operative Risk Evaluation (EuroSCORE) II, a clinical prediction model for in-hospital mortality after cardiac surgery [28], as the setting for three hypothetical fairness evaluations stratified by sex. The numerical values are illustrative and are not derived from an empirical analysis of EuroSCORE II. Box 2 illustrates how differences in overall, subgroup, and cross-group AUCs may arise without necessarily indicating model unfairness.
Box 2: Illustrative fairness evaluation scenarios using EuroSCORE II
Apparent subgroup disparity: Assume that EuroSCORE II has higher discrimination among male patients than among female patients ( versus ), while . The cross-group discrimination values are also asymmetric, with and . Here, indicates that a male patient who dies is “ranked” above a female patient who survives only 67% of the time, whereas indicates that a female patient who dies is “ranked” above a male patient who survives 92% of the time. These within- and cross-group differences identify potential fairness concerns that warrant further investigation, but they do not by themselves establish that the model is unfair.
Improved subgroup performance but lower overall AUC: Discrimination among female patients increases to , while discrimination among male patients remains . Nevertheless, the overall AUC decreases from 0.85 to 0.84. The corresponding cross-group values are and . While indicates almost perfect ranking of female patients who die above male patients who survive, indicates that male patients who die are ranked above female survivors less often than expected by chance. The lower overall AUC should therefore not be interpreted as evidence that the model has become worse overall, as it reflects changes in cross-group rankings rather than within-group performance alone.
Subgroup parity without improvement in overall AUC:
Within-group discrimination is equalised ( ), while remains 0.84. However, the cross-group AUCs remain markedly different, with and , despite identical subgroup AUCs. Specifically, indicates that male patients who die are only slightly more likely than chance to be “ranked” above female survivors, whereas indicates near-perfect ranking of female patients who die above male survivors. Equality of subgroup AUCs therefore does not imply equality across all dimensions of discrimination fairness.
5 Discussion
5.1 Key finding: Non-collapsibility matters for fairness checks
When a metric is non-collapsible, several interpretation complications arise. The relationship between subgroup and overall performance can become obscured, as overall metrics can fail to reflect subgroup behaviour faithfully or to act as a linear combination of their constituent parts. This mismatch can create natural inconsistencies between subgroup level and population level results, potentially undermining confidence in fairness evaluations.
In some settings, non-collapsibility can also introduce spurious disparities between subgroups and overall estimates, generating differences driven by subgroup proportions or subgroup outcome prevalence, rather than by genuine model behaviour. It can also lead to counter-intuitive consequences for fairness interventions, since improvements in subgroup metrics do not necessarily translate into, and may even diminish, overall performance. Finally, because the overall AUC includes both within-group and cross-group pairwise comparisons, it may conflate discrimination with calibration differences across subgroups, further complicating interpretation in heterogeneous populations.
5.2 Recommendations
The findings presented in this paper suggest several recommendations for researchers and practitioners evaluating clinical prediction models, particularly in fairness contexts (Box 3). First, before conducting subgroup analyses, it is important to establish whether the metrics of interest are collapsible. When a metric is non-collapsible, discrepancies between subgroup level and overall performance may arise naturally, even when the model behaves consistently across groups, due to case-mix differences. Second, metric estimates should always be interpreted in relation to subgroup proportions, subgroup outcome prevalences, and complementary performance domains, such as calibration performance when examining the AUC, and vice-versa. Third, transparent reporting of subgroup composition and outcome distributions is therefore essential for evaluating both model performance and fairness, and adherence to TRIPOD+AI remains fundamental [14]. Finally, sufficient sample size is essential for subgroup analyses [29, 30, 31], as even collapsible metrics are subject to sampling variability and small samples can lead to chance differences between subgroup and overall performance that are difficult to interpret.
Box 3: Key considerations and recommendations
Collapsibility properties of performance metrics should be considered when conducting subgroup analyses of performance of predictive AI.
The AUC, calibration intercept, the calibration slope, ECE, and Nagelkerke are non-collapsible metrics, whereas the O:E ratio, logloss, Brier score, accuracy, F1-score, TPR, TNR, PPV, NPV, and net benefit are collapsible.
The AUC is a non-collapsible metric because under mixtures of subpopulations it decomposes into within- and cross-group AUC components. Its overall value cannot always be recovered as a weighted average of within-group AUCs. This may lead to counter-intuitive scenarios such as each subgroup AUC being smaller than the overall AUC.
AUC collapsibility holds when the distribution of estimated probabilities among individuals without the event are identical across subgroups. Non-collapsibility is therefore driven by distributional variations in estimated probabilities, arising from case-mix variation or miscalibration differences across subgroups.
Fairness evaluations based on differences between subgroups and overall performance, or across subgroups, are complex, as these quantities are not necessarily directly comparable, and differences may arise naturally.
Transparent reporting is therefore essential. In the context of non-collapsible metrics, we underscore the importance of reporting population characteristics, outcome distributions, and fairness-related design choices. Adherence to TRIPOD+AI promotes transparency and reproducibility in fairness evaluations .
Acknowledgements
JM is funded by a Clarendon Fund Scholarship at the University of Oxford. GSC and RDR are supported by the National Institute for Health and Care Research (NIHR) Biomedical Research Centre: Birmingham at University Hospitals Birmingham NHS Foundation Trust and the University of Birmingham. GSC and RDR are NIHR Senior Investigators. BVC is supported by Research Foundation – Flanders (FWO) grant G097322N, Kom Op Tegen Kanker grant 13583, and KU Leuven Internal Funds grant C24M/20/064. The funders of the study had no role in study design, data collection, data analysis, interpretation of data, writing of the report, or decision to submit the article for publication. The views expressed are those of the authors and not necessarily represent the views of the funding agencies.
References
[1] Janssens ACJ, Martens FK. Reflection on modern methods: Revisiting the area under the ROC Curve. International journal of epidemiology. 2020;49(4):1397-403.
[2] Van Calster B, Nieboer D, Vergouwe Y, De Cock B, Pencina MJ, Steyerberg EW. A calibration hierarchy for risk models was defined: from utopia to empirical data. Journal of clinical epidemiology. 2016;74:167-76.
[3] Huitfeldt A, Stensrud MJ, Suzuki E. On the collapsibility of measures of effect in the counterfactual causal framework. Emerging themes in epidemiology. 2019;16(1):1.
[4] Kallus N, Zhou A. The fairness of risk scores beyond classification: Bipartite ranking and the xauc metric. Advances in neural information processing systems. 2019;32.
[5] Van Calster B, Collins GS, Vickers AJ, Wynants L, Kerr KF, Barreñada L, et al. Evaluation of performance measures in predictive artificial intelligence models to support medical decisions: overview and guidance. The Lancet Digital Health. 2025.
[6] Matos J, Van Calster B, Celi LA, Dhiman P, Gichoya JW, Riley RD, et al. Critical Appraisal of Fairness Metrics in Clinical Predictive AI. The Lancet Digital Health. 2026.
[7] Denny M. The fallacy of the average: on the ubiquity, utility and continuing novelty of Jensen's inequality. Journal of Experimental Biology. 2017;220(2):139-46.
[8] Blyth CR. On Simpson’s paradox and the sure-thing principle. Journal of the American Statistical Association. 1972;67(338):364-6.
[9] van der Meijden SL, Wang Y, Ng MY, Arbous SM, Geerts BF, Steyerberg EW, et al. Navigating fairness in artificial intelligence-based prediction models: theoretical constructs and practical applications. The Lancet Digital Health. 2026.
[10] Hernán MA, Clayton D, Keiding N. The Simpson’s paradox unraveled. International journal of epidemiology. 2011;40(3):780-5.
[11] Simpson EH. The interpretation of interaction in contingency tables. Journal of the Royal Statistical Society: Series B (Methodological). 1951;13(2):238-41.
[12] Messick DM, Van de Geer JP. A reversal paradox. Psychological Bulletin. 1981;90(3):582.
[13] Good IJ, Mittal Y. The amalgamation and geometry of two-by-two contingency tables. The Annals of Statistics. 1987:694-711.
[14] Collins GS, Moons KG, Dhiman P, Riley RD, Beam AL, Van Calster B, et al. TRIPOD+ AI statement: updated guidance for reporting clinical prediction models that use regression or machine learning methods. bmj. 2024;385:e078378.
[15] Gonçalves L, Subtil A, Oliveira MR, de Zea Bermudez P. ROC curve estimation: An overview. REVSTAT-Statistical journal. 2014;12(1):1-20.
[16] Faraggi D, Reiser B. Estimation of the area under the ROC curve. Stat Med. 2002 Oct;21(20):3093-106.
[17] Sudjianto A, Liu AJ. Decomposing Global AUC into Cluster-Level Contributions for Localized Model Diagnostics. arXiv preprint arXiv:250807495. 2025.
[18] Zhou XH, McClish DK, Obuchowski NA. Statistical Methods in Diagnostic Medicine. Wiley Series in Probability and Statistics. Wiley; 2009. Available from: https://books.google.com/books?id=ijN_Dlx7wmoC.
[19] Austin PC, Steyerberg EW. Interpreting the concordance statistic of a logistic regression model: relation to the variance and odds ratio of a continuous explanatory variable. BMC medical research methodology. 2012;12(1):82.
[20] Kleinberg J, Mullainathan S, Raghavan M. Inherent trade-offs in the fair determination of risk scores. arXiv preprint arXiv:160905807. 2016.
[21] Vergouwe Y, Moons KG, Steyerberg EW. External validity of risk models: use of benchmark values to disentangle a case-mix effect from incorrect coefficients. American journal of epidemiology. 2010;172(8):971-80.
[22] Tseng AS, Shelly-Cohen M, Attia IZ, Noseworthy PA, Friedman PA, Oh JK, et al. Spectrum bias in algorithms derived by artificial intelligence: a case study in detecting aortic stenosis using electrocardiograms. European Heart Journal-Digital Health. 2021;2(4):561-7.
[23] van Klaveren D, Gönen M, Steyerberg EW, Vergouwe Y. A new concordance measure for risk prediction models in external validation settings. Statistics in medicine. 2016;35(23):4136-52.
[24] de Jong VM, Hoogland J, Moons KG, Riley RD, Nguyen TL, Debray TP. Propensity-based standardization to enhance the validation and interpretation of prediction model discrimination for a target population. Statistics in Medicine. 2023;42(19):3508-28.
[25] Martens FK, Tonk EC, Kers JG, Janssens ACJ. Small improvement in the area under the receiver operating characteristic curve indicated small changes in predicted risks. Journal of clinical epidemiology. 2016;79:159-64.
[26] Pencina MJ, Fine JP, D'Agostino Sr RB. Discrimination slope and integrated discrimination improvement—properties, relationships and impact of calibration. Statistics in Medicine. 2017;36(28):4482-90.
[27] Sadatsafavi M, Saha-Chaudhuri P, Petkau J. Model-based ROC curve: examining the effect of case mix and model calibration on the ROC plot. Medical Decision Making. 2022;42(4):487-99.
[28] Nashef SA, Roques F, Sharples LD, Nilsson J, Smith C, Goldstone AR, et al. Euroscore ii. European journal of cardio-thoracic surgery. 2012;41(4):734-45.
[29] Riley RD, Collins GS, Whittle R, Archer L, Snell KI, Dhiman P, et al. A decomposition of Fisher's information to inform sample size for developing or updating fair and precise clinical prediction models for individual risk—part 1: binary outcomes. Diagnostic and prognostic research. 2025;9(1):14.
[30] Riley RD, Collins GS, Archer L, Whittle R, Legha A, Kirton L, et al. A decomposition of Fisher's information to inform sample size for developing or updating fair and precise clinical prediction models—part 2: time-to-event outcomes. Diagnostic and Prognostic Research. 2025;9(1):33.
[31] Whittle R, Riley RD, Archer L, Collins GS, Legha A, Snell KI, et al. A decomposition of Fisher's information to inform sample size for developing or updating fair and precise clinical prediction models—part 3: continuous outcomes. Diagnostic and Prognostic Research. 2026;10(1):11.
A Appendix
A.1 Collapsibility Proofs
We investigate the performance measures summarised in Table 1.
A.1.1 O:E Ratio
The observed-to-expected ratio (O:E) compares the number of observed outcomes to the expected number of outcomes under the model.
with
Substituting group-wise counts:
Thus the O:E ratio satisfies 1 with weights
Therefore, O:E is collapsible with weights proportional to the group-expected counts under the model.
A.1.2 Calibration Intercept
Calibration intercept is usually defined in terms of:
Let groups have sizes and weights with . For observations with , define
The calibration intercept solves
For the pooled sample one can define
and
Lemma 1 (estimating equation). The pooled calibration intercept is the unique solution of
Proof. The log-likelihood is
and the score, the derivative of the log-likelihood with respect to , is
since . The maximum likelihood estimator satisfies the score equation , that is
Uniqueness follows because is strictly concave in and admits a unique maximiser, equivalently a unique root of .
Lemma 2 (monotonicity). Each is continuous and strictly increasing; hence f is continuous and strictly increasing.
Proof. . Linearity gives the result for .
Proposition (convex bounds). Let and . Then the overall intercept satisfies
Proof. Assume, without loss of generality, that . Then
since is increasing and . Similarly,
since is increasing and . By Lemma 2 and the intermediate value theorem, there is a unique with . Hence, , and for every we have .
Remark. The only property established is the bounding relation . With this, we are not claiming that the calibration intercept is necessarily collapsible: in general, is not expected to be expressed as a convex or linear combination of and .
A.1.3 Calibration Slope
The calibration slope is estimated from the regression
with ideal calibration corresponding to .
The calibration slope is estimated as a regression coefficient from a logistic regression model fitted to the entire dataset. Logistic regression coefficients are generally non-collapsible, meaning that the coefficient estimated from the pooled data is not, in general, a weighted average of coefficients estimated within subgroups. Consequently, the calibration slope is also expected to be non-collapsible.
A.1.4 Expected Calibration Error (ECE)
The expected calibration error measures the average absolute deviation between predicted and observed outcome rates over bins of estimated probability.
Although ECE is an average across bins, the absolute value inside the bin definition prevents linear aggregation across groups:
Thus ECE is expected to be non-collapsible.
A.1.5 Logloss / Cross-Entropy
Logloss (cross-entropy) is the empirical average of the per-instance negative log-likelihood; it is collapsible.
and
Partitioning by groups:
Thus Logloss satisfies 1 with weights .
A.1.6 Brier Score
The Brier score is the average squared error; it is collapsible.
Partitioning by groups:
Thus the Brier score satisfies 1 with weights .
A.1.7 Nagelkerke
Nagelkerke's (for binary outcomes) rescales Cox–Snell's to [0, 1]:
Here denotes the log-likelihood of the fitted model with parameter , and the log-likelihood of the null model (intercept-only, with parameter ). The term is the model-estimated probability of observing outcome given covariates under parameter . Group-wise versions are then:
In general,
Because the mapping applies nonlinear exponentials with different normalisations to sums of log-likelihoods, the overall index is not a convex combination of group indices except under potentially restrictive special cases. Therefore, Nagelkerke does not satisfy 1 in general and is expected to be non-collapsible. If an amalgamation paradox is observed to occur, the measure is proven to be non-collapsible.
A.1.8 Classification accuracy
Classification accuracy is collapsible with weights given by the group sizes.
and
Substituting group-wise counts:
Thus accuracy satisfies 1 with weights .
A.1.9 F1-score
F1-score is the harmonic mean of sensitivity and precision, which can also be defined as:
Substituting group-wise counts and writing the overall F1 as a ratio of linear sums:
Thus F1 satisfies 1 with weights .
A.1.10 Sensitivity / Recall / TPR
Sensitivity (TPR) is collapsible with weights proportional to the group-specific prevalence of the outcome.
and
Substituting group-wise counts:
Thus TPR satisfies 1 with weights
where , and .
A.1.11 Specificity / TNR
Specificity (TNR) is collapsible with weights proportional to the group-specific rate of actual negatives.
and
Substituting group-wise counts:
Thus TNR satisfies 1 with weights
A.1.12 PPV / Precision
PPV is collapsible with weights proportional to the group-specific rate of predicted positives.
and
Substituting group-wise counts:
Thus PPV satisfies 1 with weights
where is the group-specific predicted positive rate, and .
A.1.13 NPV
NPV is collapsible with weights proportional to the group-specific rate of predicted negatives.
and
Substituting group-wise counts:
Thus NPV satisfies 1 with weights
where and .
A.1.14 Net Benefit
Net Benefit (NB) is often used in decision curve analysis as a summary of clinical usefulness. It combines true positives and false positives into a single measure, weighted by the relative harms of false positives at a given threshold, t. Here we show that NB is a collapsible measure.
and
Substituting group-wise counts into the definition:
Thus NB satisfies 1 with weights , proving that NB is collapsible.
A.2 Non-collapsibility Counterexamples
A.2.1 Calibration Slope
We here present a counterexample showing that the calibration slope is not a collapsible measure with respect to a grouping variable. We use two subpopulations of equal size (n = 1,000 in each subgroup). For subgroup A a single predictor is drawn from a standard normal distribution,
and the event probability is defined by a logistic model,
Binary outcomes are then sampled from this Bernoulli model. For subgroup the same logistic relationship is used but the predictor distribution is shifted,
and binary outcomes are drawn accordingly.
Pooling the two groups changes the distribution of the linear predictor and the outcome in a nonlinear way, producing a overall calibration slope that is not a weighted average of the subgroup-specific slopes.
Table 3: Toy example, calibration slope computed separately by subgroup and for the pooled sample.
| Subgroup | Calibration slope | |
|---|---|---|
| A | 1,000 | 0.934 |
| B | 1,000 | 0.963 |
| Population | 2,000 | 0.979 |
If the calibration slope were collapsible then the overall slope would equal a simple weighted average of the subgroup slopes, where the weights depend only on quantities such as sample size or outcome prevalence. Table 3 shows that this is not the case: the overall slope (0.979) exceeds both subgroup values (0.934 and 0.963), so it cannot be written as a linear combination of them.

A.2.2 Nagelkerke
We now show by counterexample that Nagelkerke's is not a collapsible measure. Data are generated similarly as in the calibration slope example. When the two groups are pooled, this heterogeneity in affects the null model likelihood and the fitted model likelihood in a nonlinear way, which leads to a overall Nagelkerke that is not a weighted average of the subgroup values.
Table 4: Toy example, Nagelkerke computed separately by subgroup and for the pooled sample.
| Subgroup | ||
|---|---|---|
| A | 1,000 | 0.481 |
| B | 1,000 | 0.440 |
| Population | 2,000 | 0.623 |
If Nagelkerke were collapsible with respect to the grouping variable then the overall would be a simple weighted average of the subgroup values (weights depending only on sample sizes or outcome prevalences). Table 4 shows this is not true for the toy data: the overall (0.623) is larger than both subgroup values (0.481 and 0.440).

A.2.3 Expected Calibration Error (ECE)
We present a toy example showing how calibration assessed by the ECE can differ between subgroups and the population. We use two subpopulations of equal size ( in each subgroup). For subgroup a single predictor is drawn from a normal distribution,
and the event probability is defined by a logistic model,
Binary outcomes are then sampled from this Bernoulli model. For subgroup the same logistic relationship is used but the predictor distribution is shifted,
and binary outcomes are drawn accordingly. Estimated probabilities are given by the model logistic probabilities and ECE is computed using quantile (equal-sized) bins with 10 bins.
Pooling the two groups changes the empirical relationship between estimated probabilities and observed outcomes in a nonlinear way.
Table 5: Toy example, ECE computed separately by subgroup and for the pooled sample.
| Subgroup | ECE | |
|---|---|---|
| A | 1,000 | 0.0378 |
| B | 1,000 | 0.0379 |
| Population | 2,000 | 0.0297 |
If the ECE were collapsible then the overall ECE would equal a simple weighted average of the subgroup ECEs with weights depending only on quantities such as sample size or outcome prevalence. Table 5 shows that this is not the case: the overall ECE (0.0297) differs from the subgroup values (0.0378 and 0.0379), so it cannot be written as a simple linear combination of them.
□