Tutorials › Statistical Genetics › Standardizing Score Performance to a Target Population

Selection and Bias in Prediction · Tutorial 792 of 989

Standardizing Score Performance to a Target Population

Use target stratum proportions to estimate calibration and discrimination in the population of interest, while distinguishing within-stratum performance from the target population’s overall AUC.

Advanced 10 min read

What You'll Learn

  • Define target-standardized performance using stratum-specific estimates and target-population proportions
  • State the assumptions needed to transport performance estimates from recruited participants
  • Calculate a target calibration gap and compare it with the recruited-cohort gap
  • Standardize a Brier score and interpret its scale
  • Calculate a target AUC using stratum-specific case and control weights
  • Explain why averaging within-stratum AUCs need not equal the target population AUC

Why Standardize Score Performance?

A polygenic score can be evaluated in a recruited cohort whose composition differs from the population where the score is intended to be used. For example, participation may be more common in one age group, ancestry group, or geographic stratum than another. If prediction performance differs across those strata, a summary calculated directly in the recruited cohort describes that cohort’s mixture—not necessarily the target population’s mixture.

Standardization addresses this compositional difference by combining stratum-specific performance estimates using the target population’s stratum proportions. It does not, by itself, remove bias within a stratum or establish that the recruited participants represent all target individuals within that stratum. Those conditions must be considered separately.

Definition: Let \(Z\) denote an observed recruitment stratum, with categories \(z=1,\ldots,K\). Let \(q_z=P_T(Z=z)\) be the proportion in stratum \(z\) in the target population, and let \(r_z=P_R(Z=z)\) be its proportion in the recruited evaluation cohort. For a performance quantity with stratum-specific value \(\theta_z\), its target-standardized value is \(\theta_T=\sum_{z=1}^{K}q_z\theta_z\), provided the stratum-specific estimates transport to the target population.

The recruited-cohort summary instead uses the recruited proportions: \(\theta_R=\sum_z r_z\theta_z\), when the quantity is an average of individual-level stratum values. If \(q_z\) and \(r_z\) differ, these summaries can differ even when performance within every stratum is estimated correctly. The target proportions may come from a population register, census, or other suitable external information; they should not be substituted with recruited proportions simply because those are easier to calculate.

What Standardization Requires

For each stratum with positive target proportion, the evaluation data need to provide information about performance in that stratum. A central transport assumption is that, conditional on the observed strata used for standardization, the relevant outcome and score distributions in recruited participants represent those in the target population. The assumption concerns the quantities being estimated: for example, the distribution of outcomes and predictions within a stratum for calibration, and the distributions among cases and controls for discrimination.

This assumption can fail if participation is associated with score or outcome even among people in the same recorded stratum. Standardizing on a broad category may also leave important compositional differences unaddressed. The target and evaluation data must use compatible score definitions, outcome definitions, follow-up periods, and measurement procedures. Finally, every stratum with \(q_z>0\) must be represented in the evaluation data; otherwise its performance cannot be estimated from those data without additional assumptions.

$$ E_T[g]=\sum_{z=1}^{K}q_zE_T[g\mid Z=z] $$

This identity gives the basic justification: the target-population mean of a quantity \(g\) is the sum of its stratum-specific means, weighted by target stratum proportions. If the recruited data estimate each target stratum-specific mean, replacing \(E_T[g\mid Z=z]\) with its estimate gives a direct standardization estimator. For an average metric such as a mean prediction error or Brier score, this is the required calculation.

Worked Example: Standardizing a Calibration Gap

Suppose a hypothetical evaluation cohort contains 200 urban and 300 rural participants. The target population is 70% urban and 30% rural. Within the urban stratum, the observed outcome prevalence is 0.20 and the mean predicted risk is 0.15. Within the rural stratum, those quantities are 0.50 and 0.40. Assume the recruited participants represent their corresponding target strata.

Define the risk-scale calibration gap as the observed outcome proportion minus the mean predicted risk. A positive gap means average predicted risk is lower than observed risk. The cohort shares are \(r_U=200/500=0.40\) and \(r_R=300/500=0.60\); the target shares are \(q_U=0.70\) and \(q_R=0.30\).

In the recruited cohort, the observed outcome proportion is \(0.40(0.20)+0.60(0.50)=0.38\), and the mean predicted risk is \(0.40(0.15)+0.60(0.40)=0.30\). Thus its calibration gap is \(0.38-0.30=0.080\), or 8.0 percentage points.

In the target population, the standardized observed outcome proportion is \(0.70(0.20)+0.30(0.50)=0.29\). The standardized mean predicted risk is \(0.70(0.15)+0.30(0.40)=0.225\). The target calibration gap is therefore \(0.29-0.225=0.065\), or 6.5 percentage points. Under the stated assumptions, predicted risk is lower than observed risk on average in the target population by 6.5 percentage points. This is a risk-scale mean calibration summary, not a guarantee of good calibration at every predicted-risk level.

A mean calibration gap is useful but limited: positive and negative errors at different risk levels can cancel. Calibration can also be summarized by comparing observed and predicted risks across risk groups or by fitting a calibration model. Whatever summary is chosen, target standardization must use the appropriate target-weighted stratum-specific quantity; weighting an already-combined recruited-cohort statistic cannot generally recover the target result.

Standardizing an Average Prediction Error

The Brier score for a binary outcome is the mean squared difference between the outcome \(Y\), coded 0 or 1, and the predicted risk \(\hat p\). Smaller values indicate predictions closer to the observed outcomes on average, though the score reflects both calibration and discrimination. Because it is an average of individual squared errors, it can be standardized by weighting stratum-specific Brier scores by target stratum proportions.

$$ \operatorname{BS}_T=\sum_{z=1}^{K}q_z\operatorname{BS}_z,\qquad \operatorname{BS}_z=E[(Y-\hat p)^2\mid Z=z] $$

Worked Example: Standardizing the Brier Score

Consider a hypothetical evaluation with two strata, A and B. The target population is 25% stratum A and 75% stratum B, whereas the recruited cohort is 75% A and 25% B. In stratum A, four outcome-prediction pairs are \((1,0.8),(0,0.2),(1,0.4),(0,0.6)\). Their squared errors are \(0.04,0.04,0.36,0.36\), so \(\operatorname{BS}_A=(0.04+0.04+0.36+0.36)/4=0.20\).

In stratum B, the four pairs are \((1,0.6),(0,0.4),(0,0.4),(0,0.4)\). Each squared error is \(0.16\), giving \(\operatorname{BS}_B=(0.16+0.16+0.16+0.16)/4=0.16\).

The recruited-cohort Brier score is \(0.75(0.20)+0.25(0.16)=0.19\). The target-standardized Brier score is \(0.25(0.20)+0.75(0.16)=0.17\). Thus the standardized mean squared prediction error is 0.17 in the target mixture, compared with 0.19 in the recruited mixture. This calculation assumes the four pairs in each stratum provide suitable estimates of the corresponding target stratum’s Brier score.

Target-Population 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 half credit for a tie. A target-population AUC compares cases and controls drawn from the target population. Its stratum weights are therefore not generally just the target population proportions: cases and controls can have different stratum distributions when outcome prevalence varies across strata.

Definition: Let \(\pi_z=P_T(Y=1\mid Z=z)\). The target proportions of cases and controls from stratum \(z\) are \(c_z=q_z\pi_z/\sum_jq_j\pi_j\) and \(d_z=q_z(1-\pi_z)/\sum_jq_j(1-\pi_j)\), respectively. Let \(A_{zk}\) be the probability that a case from stratum \(z\) has a higher score than a control from stratum \(k\), with half credit for a tie. Then the target-population AUC is \(\operatorname{AUC}_T=\sum_z\sum_k c_zd_kA_{zk}\).

The double sum includes comparisons between cases and controls from different strata. The within-stratum AUC \(A_{zz}\) measures ranking when both members of a case-control pair come from stratum \(z\). A target-weighted average of these within-stratum AUCs describes a different quantity from the target-population AUC unless cross-stratum comparisons are also accounted for or special conditions make them equivalent.

$$ \operatorname{AUC}_T =\sum_z c_zd_zA_{zz} +\sum_{z\ne k}c_zd_kA_{zk} $$

Worked Example: Target AUC With Different Stratum Prevalences

Suppose a hypothetical target population is 40% urban and 60% rural. Outcome prevalence is 0.02 in urban residents and 0.50 in rural residents. The score is binary, high or low. Among urban cases, 90% have a high score; among urban controls, 40% do. Among rural cases, 60% have a high score; among rural controls, 10% do. Assume these conditional score distributions and prevalences represent the target strata.

For a binary score, if the case high-score proportion is \(a\) and the control high-score proportion is \(b\), the AUC is \(a(1-b)+\frac{1}{2}\{ab+(1-a)(1-b)\}=\frac{1}{2}+\frac{1}{2}(a-b)\). Thus both within-stratum AUCs are \(0.5+0.5(0.9-0.4)=0.75\) in urban residents and \(0.5+0.5(0.6-0.1)=0.75\) in rural residents.

Target case masses before normalization are \(0.40(0.02)=0.008\) urban and \(0.60(0.50)=0.30\) rural. Hence \(c_U=0.008/0.308=2/77\) and \(c_R=75/77\). Target control masses are \(0.40(0.98)=0.392\) urban and \(0.60(0.50)=0.30\) rural, so \(d_U=0.392/0.692=98/173\) and \(d_R=75/173\).

The target case high-score proportion, after combining strata, is \((2/77)(0.90)+(75/77)(0.60)=46.8/77\approx0.6078\). The target control high-score proportion is \((98/173)(0.40)+(75/173)(0.10)=46.7/173\approx0.2699\). Applying the binary-score AUC formula gives \(\operatorname{AUC}_T=0.5+0.5(0.6078-0.2699)\approx0.6689\). Despite a within-stratum AUC of 0.75 in each stratum, the target population AUC is about 0.669 because it also includes cross-stratum case-control comparisons.

For comparison, suppose the recruited cohort is 80% urban and 20% rural but has the same within-stratum prevalences and score distributions. Its case weights are \(c_U=0.8(0.02)/[0.8(0.02)+0.2(0.50)]=4/29\) and \(c_R=25/29\). Its control weights are \(d_U=0.8(0.98)/[0.8(0.98)+0.2(0.50)]=196/221\) and \(d_R=25/221\). The recruited case high-score proportion is \((4/29)(0.90)+(25/29)(0.60)=18.6/29\approx0.6414\); the recruited control high-score proportion is \((196/221)(0.40)+(25/221)(0.10)=80.9/221\approx0.3661\). Its AUC is \(0.5+0.5(0.6414-0.3661)\approx0.6377\). The target and recruited AUCs differ because their case and control mixtures differ, even though conditional performance is the same.

Practical Interpretation and a Common Pitfall

Standardization changes the population mixture used to summarize performance; it does not alter a person’s score or the conditional performance estimates. A target-standardized result answers a population-specific predictive question. It is not evidence that the score causes the outcome, and it does not show that performance will transport to unmeasured or unsupported strata.

A frequent mistake is to calculate the target AUC as \(\sum_zq_zA_{zz}\) and assume this is the target-population AUC. That calculation averages within-stratum ranking performance, but it omits cross-stratum case-control pairs and uses population rather than case and control stratum weights. In the worked example it gives \(0.40(0.75)+0.60(0.75)=0.75\), not the target AUC of approximately 0.669. The correction is to define the target AUC as a case-control comparison in the target population, calculate \(c_z\) and \(d_z\), and include every \(A_{zk}\) term. If the intended estimand is instead a weighted average of within-stratum AUCs, label it as such rather than calling it the overall target-population AUC.

1
Specify the target.
Define the target population, outcome, score, strata, and target proportions \(q_z\).
2
Estimate within-stratum quantities.
Calculate each stratum’s calibration summary, average error, or case-control score distributions from the evaluation data.
3
Apply the right weights.
For average quantities, weight stratum means by \(q_z\). For target AUC, derive case and control weights from \(q_z\) and \(\pi_z\), then combine within- and cross-stratum comparisons.
4
Check transport and support.
Assess whether recruited data represent target members within strata and whether every target stratum is observed.

Uncertainty in standardized estimates reflects uncertainty in the stratum-specific performance estimates and, when estimated rather than known, the target proportions and prevalences. An interval calculation should preserve the dependence among observations and all estimated components, for example by resampling participants within the relevant sampling strata or using an appropriate design-based method. Reporting only a point estimate can obscure substantial uncertainty, especially when some strata contain few cases or controls.

Key takeaway: Target-standardized performance is determined by the estimand and the target population’s composition. Average calibration and error summaries use target stratum proportions; an overall target AUC requires target case and control weights and includes cross-stratum comparisons.

Check Your Understanding

Try these questions using the definitions and formulas above.

  1. A recruited cohort is 70% urban and 30% rural, but the target population is 40% urban and 60% rural. What weights should be used to standardize an average stratum-specific prediction error?
  2. Why can the target case weights differ from the target population stratum proportions when outcome prevalence varies across strata?
  3. What assumption about recruited participants is needed to use their within-stratum Brier scores for target standardization?
  4. In a two-stratum evaluation, what pairwise comparisons are omitted by a weighted average of within-stratum AUCs?
  5. Can a target-standardized mean calibration gap establish that predictions are calibrated at every risk level? Explain.
Clinical Biostats