Tutorials › High-Dimensional Genomic Data Analysis › Evaluating Score Performance Across Subgroups

Polygenic Risk Scores · Tutorial 585 of 795

Evaluating Score Performance Across Subgroups

Learn to compare subgroup-specific PRS performance while separating observed differences from the uncertainty caused by finite validation samples.

Advanced 10 min read

What You'll Learn

  • Distinguish subgroup differences in score distributions from differences in predictive performance.
  • Define discrimination and calibration within subgroups for a binary outcome.
  • Compare subgroup AUC estimates while accounting for the uncertainty and covariance of their difference.
  • Interpret calibration intercepts and slopes in context, including their sampling uncertainty.
  • Choose subgroup-resampling strategies that match the performance metric and study design.
  • Recognize small-sample, multiple-comparison, and interpretation pitfalls in subgroup analyses.

Why Evaluate Performance Within Subgroups?

An overall performance estimate can conceal meaningful variation across the people for whom a polygenic risk score (PRS) may be used. A score may rank cases above controls well in one clinical subgroup and less well in another; predicted risks may also systematically differ from observed risks in a subgroup. These are distinct questions. Differences in the distribution of scores are not, by themselves, evidence that prediction performs differently.

The aim is to estimate performance within clearly defined demographic or clinical subgroups and to quantify uncertainty in comparisons. Such comparisons are descriptive unless a design and analysis support stronger conclusions. They do not establish that subgroup membership causes a performance difference, and they do not identify its mechanism.

Definition: A subgroup-specific performance measure is a measure such as discrimination or calibration calculated using the individuals in one specified subgroup. A subgroup contrast is a difference between the corresponding measures, such as \(\mathrm{AUC}_A-\mathrm{AUC}_B\). The contrast, not whether one subgroup estimate is statistically significant and the other is not, is the direct measure of a difference.

Set Up the Comparison Carefully

Suppose a fixed PRS produces a predicted risk or score for each person, and the outcome \(Y\) is binary. Before comparing groups, specify the subgroup definitions, outcome definition, time horizon if relevant, score scale, and performance measures. Apply the same outcome and evaluation rules in every subgroup. A validation set not used to choose or tune the score is needed for an honest assessment; otherwise, performance can be optimistic.

For discrimination, the area under the receiver operating characteristic curve (AUC) is the probability that a randomly selected case has a higher score than a randomly selected control, with ties counted as one-half. It concerns ranking, not the accuracy of the predicted risk values. For calibration, compare predicted risks with observed outcome frequencies: among people assigned a given risk, the event frequency should correspond to that risk. When the model's linear predictor is the logit of its predicted risk, a calibration model can be written as

$$ \operatorname{logit}\{P(Y=1\mid \eta,g)\}=a_g+b_g\eta, $$

where \(\eta\) is the model's predicted log-odds and \(g\) indexes subgroup. Ideal calibration has \(a_g=0\) and \(b_g=1\). A nonzero intercept indicates systematic risk under- or overprediction on the log-odds scale; a slope below 1 often indicates predictions that are too extreme, while a slope above 1 indicates predictions that are insufficiently dispersed. These interpretations assume the stated logit-linear calibration model is adequate.

Score distributions answer a separate question: how are the score values themselves distributed in each group? A mean or standard deviation can describe location and spread, but neither directly measures ranking or calibration. If scores are standardized using the full validation sample, report that scale; standardizing each subgroup separately would force subgroup means and standard deviations to match by construction and hide distributional differences.

Quantifying Uncertainty in Subgroup Contrasts

Finite validation samples make subgroup estimates variable. For two independent subgroups and a fixed score, an approximate standard error for the difference between estimates is the square root of the sum of their variances. More generally, if estimates are dependent, the covariance must be included:

$$ SE(\widehat{\theta}_A-\widehat{\theta}_B) = \sqrt{SE(\widehat{\theta}_A)^2+SE(\widehat{\theta}_B)^2 -2\operatorname{Cov}(\widehat{\theta}_A,\widehat{\theta}_B)}. $$

The independence formula is appropriate when estimates are based on disjoint validation individuals and the score is treated as fixed. If the same individuals contribute to both estimates, or uncertainty in a shared training and tuning process is part of the target, independence should not be assumed. A paired or full-pipeline resampling procedure may be needed.

A short justification follows from the variance identity. For random estimates \(U\) and \(V\),

$$ \operatorname{Var}(U-V) =\operatorname{Var}(U)+\operatorname{Var}(V)-2\operatorname{Cov}(U,V). $$

Taking square roots gives the standard error of the contrast. Under approximate normality, an approximate 95% confidence interval is the estimate of the contrast plus or minus \(1.96\) standard errors. It describes uncertainty under the sampling model; it is not a probability statement about a fixed parameter.

For AUC, standard errors can be obtained with methods such as DeLong's estimator or bootstrap resampling. For calibration and score summaries, bootstrap resampling of individuals within each subgroup can provide uncertainty intervals. The resampling unit and scheme must reflect the design: for example, when estimating calibration in a subgroup, resample individuals rather than separately fixing the number of cases and controls, since the observed event fraction is part of calibration. For AUC uncertainty conditional on case and control counts, resampling cases and controls separately is a common option. If subgroups overlap or observations are clustered, resampling must preserve that structure.

Worked Example: Comparing Subgroup AUCs

Suppose a hypothetical external validation sample contains two disjoint clinical subgroups. A locked PRS has estimated AUC \(0.780\) in subgroup A with standard error \(0.040\), and AUC \(0.700\) in subgroup B with standard error \(0.050\). Assume the estimates are approximately normal and independent conditional on the fixed score.

The estimated contrast is \(0.780-0.700=0.080\). Its standard error is

$$ SE(\widehat{\mathrm{AUC}}_A-\widehat{\mathrm{AUC}}_B) =\sqrt{0.040^2+0.050^2} =\sqrt{0.0016+0.0025} =\sqrt{0.0041} \approx 0.0640. $$

An approximate 95% interval is

$$ 0.080\pm1.96(0.0640) =0.080\pm0.1254 \approx(-0.045,\,0.205). $$

The validation estimates differ by 0.080 AUC units in favor of subgroup A, but the interval includes zero and also allows differences in either direction. The data therefore do not provide a precise estimate of the AUC contrast. This does not prove that the subgroup AUCs are equal. The result is conditional on the assumed standard errors, independence, and approximate normality.

Calibration Contrasts and Their Uncertainty

Calibration should be examined separately in each subgroup, since a good overall calibration summary can mask systematic errors within groups. Calibration plots are useful for revealing departures from the specified model, while estimated intercepts and slopes provide concise summaries. Estimates can be unstable when a subgroup has few events, few non-events, or a narrow range of predicted risks. In such settings, a slope may be especially imprecise.

Worked Example: Comparing Calibration Intercepts

Consider two hypothetical subgroups, each with 100 people. In subgroup A, every person receives a predicted risk of \(0.15\), and 20 people experience the outcome. In subgroup B, every person receives a predicted risk of \(0.10\), and 12 people experience the outcome. With a constant predicted risk within each subgroup, the calibration slope is not estimable from variation in \(\eta\); instead, the calibration intercept is the difference between the logit of the observed event fraction and the logit of the predicted risk.

For subgroup A, the observed fraction is \(20/100=0.20\). Thus,

$$ \widehat{a}_A =\log(0.20/0.80)-\log(0.15/0.85) =-1.3863-(-1.7346) \approx 0.3483. $$

For subgroup B, the observed fraction is \(12/100=0.12\), giving

$$ \widehat{a}_B =\log(0.12/0.88)-\log(0.10/0.90) =-1.9924-(-2.1972) \approx 0.2048. $$

The estimated intercept contrast is \(0.3483-0.2048=0.1435\) log-odds units. Its magnitude should not be read without uncertainty. Treating each predicted risk as fixed, the approximate standard error of a logit event fraction is \(1/\sqrt{n\hat p(1-\hat p)}\). The two standard errors are

$$ SE(\widehat{a}_A)\approx\frac{1}{\sqrt{100(0.20)(0.80)}}=0.2500, \qquad SE(\widehat{a}_B)\approx\frac{1}{\sqrt{100(0.12)(0.88)}}\approx0.3078. $$

Assuming independent subgroups, the contrast standard error is \(\sqrt{0.2500^2+0.3078^2}\approx0.3965\), and the approximate 95% interval is \(0.1435\pm1.96(0.3965)\), or approximately \((-0.634,\,0.921)\) log-odds units. This wide interval illustrates how little precision 100 observations per group may provide. The approximation also treats predicted risks as known; uncertainty from estimating the prediction model would require additional accounting.

Score Distributions Are Not Performance Metrics

Subgroup score distributions can differ because of how scores are scaled, differences in measured characteristics, or other features of the sampled groups. Such a difference may matter for interpretation and downstream decisions, but it does not establish that the PRS discriminates or calibrates differently. Conversely, similar score means do not guarantee similar discrimination: AUC depends on the relative ordering of cases and controls within a subgroup.

Worked Example: Comparing Score Means

Suppose a hypothetical validation set reports score means and standard deviations on one common score scale. Subgroup A has \(n_A=100\), \(\bar{x}_A=0.30\), and \(s_A=1.00\); subgroup B has \(n_B=144\), \(\bar{x}_B=-0.20\), and \(s_B=1.20\). Treat individuals as independent samples and use the usual large-sample normal approximation for the mean contrast.

The estimated difference in mean scores is \(0.30-(-0.20)=0.50\) score units. The standard error is

$$ SE(\bar{x}_A-\bar{x}_B) =\sqrt{\frac{1.00^2}{100}+\frac{1.20^2}{144}} =\sqrt{0.0100+0.0100} =\sqrt{0.0200} \approx0.1414. $$

The approximate 95% interval is \(0.50\pm1.96(0.1414)=0.50\pm0.2771\), or \((0.223,\,0.777)\) score units. The estimated mean score is higher in A on this common scale. This interval concerns a difference in score means, not a difference in AUC or calibration. If the subgroup samples were dependent or the score scale had been standardized separately within groups, this calculation or its interpretation would not apply as stated.

Diagnostics, Alternatives, and Limitations

A subgroup analysis is more credible when estimates are accompanied by uncertainty intervals and the underlying data support the chosen metric. Inspect subgroup sample sizes and event counts; a large total sample can still yield very small numbers of cases or controls in a particular group. For AUC, check that both cases and controls are present and that the score has useful variation. For calibration, inspect predicted-risk coverage and event counts rather than relying only on one intercept or slope. For score distributions, check for outliers, skew, and differences in scale or measurement.

Separate subgroup estimates are easy to interpret, but can be noisy. An alternative is a pooled model with subgroup indicators and interaction terms, such as a subgroup-by-score interaction for a calibration slope. The pooled approach can directly test a specified contrast and may use data more efficiently, but its interpretation depends on model form and adequate overlap in predictor values. It does not remove the need to report subgroup-specific quantities. For discrimination, direct comparison of subgroup AUCs or an appropriate paired/independent AUC method is generally more directly interpretable than inferring a difference from separate tests against chance.

When many subgroups or metrics are examined, some apparently large contrasts can occur by chance. Prespecify a limited set of comparisons where possible, report all examined contrasts, and avoid selecting only the most striking results. Confidence intervals quantify sampling uncertainty under a model; they do not account automatically for selective reporting, subgroup misclassification, or poor study design. Results from small or unrepresentative validation samples may not transport to other settings.

  • Mistake: comparing significance labels. One subgroup's AUC may have a confidence interval excluding 0.5 while another's does not. This does not establish an AUC difference; estimate the contrast and its uncertainty directly.
  • Mistake: treating different score means as different predictive performance. A mean contrast describes score location. Compare discrimination and calibration separately to assess prediction.
  • Mistake: treating a wide interval that contains zero as proof of equality. It means the estimate is uncertain at the stated level; equivalence requires a prespecified margin and a suitable analysis.
  • Mistake: interpreting calibration without event prevalence. Calibration depends on the relationship between predicted risks and observed outcomes in the evaluated population. Report the event count and prevalence alongside calibration summaries.
Key takeaway: Define the subgroup contrast, estimate it directly, and report an uncertainty interval. Keep score distribution, discrimination, and calibration conceptually separate; each describes a different aspect of subgroup performance.

Check Your Understanding

Work through each question, then compare with the solutions below.

  1. Two independent subgroups have AUC estimates \(0.74\) and \(0.69\), with standard errors \(0.03\) and \(0.04\). Calculate the contrast, its standard error, and an approximate 95% interval.
  2. In a subgroup, 18 of 120 people experience the outcome, while all received predicted risk \(0.10\). Calculate the intercept-only calibration intercept.
  3. A subgroup has a higher mean PRS than another, but their AUCs are similar. What can and cannot be concluded from these results?
  4. Why is “AUC is significant in subgroup A but not in subgroup B” insufficient evidence that the AUCs differ?

Solutions. (1) The contrast is \(0.74-0.69=0.05\). Its standard error is \(\sqrt{0.03^2+0.04^2}=\sqrt{0.0025}=0.0500\). The interval is \(0.05\pm1.96(0.0500)=(-0.048,\,0.148)\), so the contrast is imprecise. (2) The observed fraction is \(18/120=0.15\). The intercept is \(\log(0.15/0.85)-\log(0.10/0.90)=-1.7346-(-2.1972)\approx0.4626\) log-odds units, indicating observed risk exceeds the constant predicted risk on this intercept scale. (3) The score location differs, while the reported AUCs suggest similar ranking performance; neither result alone determines calibration or proves that the population AUCs are equal. (4) Significance against 0.5 tests each AUC separately, not their difference. The difference needs its own standard error or confidence interval, accounting for covariance where appropriate.

Clinical Biostats