Tutorials › Statistical Genetics › Prediction Targets and Validation Populations

Prediction Models and Validation · Tutorial 716 of 989

Prediction Targets and Validation Populations

A prediction score can only be evaluated against a clearly specified target: who is being predicted for, what is predicted, and when.

Advanced 10 min read

What You'll Learn

  • Specify an outcome and prediction time using information available when a prediction would be made.
  • Distinguish a prediction horizon from the outcome’s measurement schedule.
  • Define the target population and unit of prediction precisely.
  • Match validation observations to the target population, outcome, horizon, and unit.
  • Express performance as an estimand over the target population’s distribution.
  • Recognize when sample composition or repeated observations change the performance being estimated.

Why a Prediction Target Must Be Specified

A polygenic score is not a prediction target by itself. It is an input to a prediction rule. To evaluate that rule, one must first decide exactly what outcome is predicted, when the prediction is made, which individuals the prediction is intended to describe, and what counts as one prediction. These choices determine what data can validate the rule and what a reported performance summary means.

For example, a score might be used to predict whether an adult without a previous diagnosis will develop a condition within five years. That is a different task from predicting whether a newborn will receive the diagnosis by age five, or estimating a quantitative trait value at a routine visit. The underlying score could be identical, but the eligible individuals, outcome records, time window, and relevant population would differ.

Definition: A prediction target is the fully specified quantity a prediction rule is intended to predict. It includes (1) the outcome and its definition, (2) the prediction time and information available then, (3) the time horizon or outcome measurement time, (4) the target population, and (5) the unit of prediction. A validation population is the population represented by the observations used to evaluate predictions. A performance estimand is the population quantity that summarizes prediction performance for the stated target.

Outcome, Prediction Time, and Horizon

The outcome must be defined in a way that supports consistent measurement. It may be a binary diagnosis, a quantitative measurement, or another specified endpoint. A definition should make clear how the outcome is ascertained, which events count, and how missing or ambiguous records are handled. Different phenotype definitions can produce different prediction targets even when they use the same broad disease label.

The prediction time is the point at which the prediction would be issued. Predictors must be available by that time. For a prospective prediction, the outcome window generally begins after the prediction time; information recorded later cannot be treated as a predictor available at prediction time. The time horizon says how far ahead the outcome is assessed. For instance, “diagnosis within five years after enrollment” specifies a horizon, whereas “diagnosis by age 50” uses age as the endpoint.

For a time-indexed outcome, write \(Y_i(\tau)\) for the outcome defined for individual \(i\) at horizon \(\tau\), and \(X_i(t_0)\) for information available at prediction time \(t_0\). A prediction rule \(f\) maps that information to a prediction, \(f\{X_i(t_0)\}\). The notation emphasizes that changing \(t_0\), \(\tau\), or the outcome definition changes the task. For a binary five-year endpoint, for example, \(Y_i(5)=1\) might mean that an eligible individual develops the defined condition within five years after \(t_0\).

Worked Example: Defining a Five-Year Incident-Disease Target

Hypothetical scenario. A research group plans to use a polygenic score to predict a first diagnosis of a specified condition. It proposes to recruit adults aged 40–60 who have no prior diagnosis at enrollment and to predict diagnosis within the next five years.

Outcome and prediction time. The outcome is a first qualifying diagnosis after enrollment, identified using the study’s stated clinical-record definition. Enrollment is \(t_0\), and only predictors available by enrollment can be used. A diagnosis before enrollment makes a person ineligible for this incident-disease target; it is not a five-year event.

Horizon and eligible population. The horizon is five years after enrollment. The target population is adults aged 40–60, without a prior diagnosis at enrollment, who meet the stated recruitment and eligibility criteria. The unit is one eligible adult, with one prediction per adult at enrollment.

A validation sample for this task therefore needs eligible adults with predictors measured at enrollment and outcome ascertainment over the specified five-year period. A sample of previously diagnosed patients does not answer the same question, nor does a sample with only one year of follow-up. If follow-up is incomplete, the observed absence of a recorded diagnosis cannot automatically be treated as evidence of no diagnosis through five years.

Target Population, Unit, and Performance Estimand

The target population is the group for whom the prediction rule is intended to be used. It should be defined by eligibility, setting, time period, and other features relevant to intended use. In genetic prediction, population characteristics that affect genotype distributions, outcome frequencies, or predictor-outcome relationships can matter. A broad label alone may not fully describe the intended population.

The unit of prediction specifies what receives one prediction and therefore what receives weight in a performance summary. Often it is one individual. It might instead be a pregnancy, family, clinical visit, or another unit, depending on the intended use. Repeated observations from one person do not automatically represent multiple independent people or multiple equally important prediction targets.

For a prediction rule \(f\), a general performance estimand can be written as the target-population expectation of a loss:

$$ \Psi = E_{\text{target}}\left[L\left\{Y, f(X)\right\}\right]. $$

Here \(Y\) is the target outcome, \(X\) is the information available at the specified prediction time, and \(L\) measures the discrepancy between the outcome and prediction. The expectation is taken over the target population and its distribution of outcomes and predictors. The particular loss must suit the prediction task. For a binary outcome, one possible loss is squared error between the outcome coded 0 or 1 and a predicted probability. This expression is a general framework, not a claim that one metric is appropriate for every task.

The validation sample can estimate \(\Psi\) directly when its observations represent the target population and the outcome and prediction definitions match. To see why, suppose \(n\) validation units are independently sampled from the target population and their losses are \(L_1,\ldots,L_n\). The sample mean loss is

$$ \bar{L} = \frac{1}{n}\sum_{i=1}^{n} L_i. $$

Because each \(L_i\) has expectation \(\Psi\), linearity of expectation gives

$$ E(\bar{L}) = \frac{1}{n}\sum_{i=1}^{n} E(L_i) = \frac{1}{n}\sum_{i=1}^{n}\Psi = \Psi. $$

Thus the sample mean loss targets the stated population mean under this sampling condition. If the validation sample has a different composition, its unweighted mean generally describes that sample’s population instead. A different sampling design may require a corresponding analysis to target the intended population; it does not make the two populations interchangeable.

Worked Example: The Unit of Prediction Changes the Average

Hypothetical scenario. A model predicts a quantitative outcome at each scheduled visit, but the intended use is one prediction per person at a defined follow-up visit. In a small illustration, person A has three recorded visit-level squared errors of 1, 4, and 9 outcome-units squared, while person B has one recorded visit-level squared error of 0 outcome-units squared.

If the target were a randomly selected recorded visit, the visit-weighted mean squared error would be

$$ \frac{1+4+9+0}{4} = \frac{14}{4} = 3.5 \quad \text{outcome-units squared}. $$

But the stated target is one prediction per person at a defined follow-up visit. The three visits from person A cannot simply count as three target people. If, for this illustration only, person A’s target-person loss is defined as the mean of those three visit losses, then A’s loss is \((1+4+9)/3=14/3\), and B’s is 0. The person-weighted mean is therefore

$$ \frac{(14/3)+0}{2} = \frac{7}{3} \approx 2.333 \quad \text{outcome-units squared}. $$

These are different quantities because they weight observations differently. In an actual study, the person-level outcome and the relevant follow-up visit must be specified rather than chosen after seeing which summary is convenient. A validation sample with one record per person at the intended visit would align more directly with that target.

Matching the Validation Population to the Target

A validation sample is suitable only relative to a stated prediction target. At a minimum, check that sample members are eligible for the target use, that predictors are available at the correct prediction time, that outcomes are measured with the intended definition and horizon, and that the sampling structure corresponds to the prediction unit. Then ask whether the sample’s distribution represents the population for which performance is being claimed.

If the sample differs from the target population, a performance estimate can still be useful, but its interpretation must be limited to the population it represents unless a justified method connects it to the target. For example, an estimate from a specialty clinic may describe performance among clinic attendees rather than all people eligible for population screening. A sample with a different mixture of age groups or sites may likewise produce an overall average that does not apply to the intended mixture.

The difference is visible even when group-specific performance is measured consistently. Suppose a hypothetical validation sample has 20 people in each of two groups. The sum of individual squared-error losses is 1.6 in group A and 6.4 in group B. The group mean losses are \(1.6/20=0.08\) and \(6.4/20=0.32\), respectively. The sample gives the groups equal weight, so its overall mean loss is

$$ 0.50(0.08)+0.50(0.32)=0.20. $$

Now suppose the intended target population is 75% group A and 25% group B, and the group-specific mean losses are applicable within those groups. The target-weighted mean loss is

$$ 0.75(0.08)+0.25(0.32)=0.14. $$

The values 0.20 and 0.14 are not contradictory: they average the same group-specific quantities using different group proportions. This calculation would be justified only if the group definitions and loss are the same in both settings, and the validation group means can reasonably represent the corresponding target groups.

Worked Example: A Different Horizon Is a Different Target

Hypothetical scenario. A model produces a predicted probability of 0.30 for an eligible participant. The intended endpoint is first diagnosis within two years after enrollment. A validation record shows no diagnosis in the first year, followed by a qualifying diagnosis in month 18.

For the specified two-year outcome, \(Y(2)=1\). If squared error for a predicted probability is used, this participant’s loss is

$$ \{Y(2)-0.30\}^2 = (1-0.30)^2 = 0.49. $$

For a one-year target, the same record has \(Y(1)=0\), giving

$$ \{Y(1)-0.30\}^2 = (0-0.30)^2 = 0.09. $$

The arithmetic is simple, but the two losses evaluate different outcomes. A validation sample that records only one-year status cannot establish the two-year target outcome for everyone. Likewise, a prediction rule intended for a two-year horizon should not be described as validated for a one-year horizon merely because some one-year data are available.

A Practical Specification Sequence

Before collecting or analyzing validation data, write a concise target specification. The following sequence exposes decisions that otherwise remain hidden.

1
Name the outcome.
State the phenotype or measurement, how it is ascertained, and what values count as each outcome.
2
Fix prediction time and horizon.
State when a prediction is issued, which information is available then, and when or over what period the outcome is defined.
3
Define population and unit.
Specify who is eligible, the setting and relevant period, and whether one unit is a person, visit, family, or another entity.
4
State the performance estimand.
Choose a task-appropriate performance quantity and say explicitly which target-population distribution and unit it averages over.
5
Check validation alignment.
Confirm that the validation records have matching eligibility, predictors, outcome ascertainment, horizon, unit, and a defensible relationship to the target population.

Common Mistakes and Why the Specification Matters

  • Calling a broad disease label the outcome definition. Two studies may use different diagnostic rules or ascertainment windows. State the operational definition and the time period rather than relying only on a disease name.
  • Leaving the prediction time implicit. A predictor measured after the point when a real prediction would be made cannot support that intended use. Identify what is available at the stated prediction time.
  • Treating follow-up length as interchangeable. No diagnosis by one year does not establish no diagnosis by five years. The horizon determines which outcome is being predicted.
  • Reporting sample performance as universal. A statistic from a selected clinical sample describes the population represented by that sample unless further assumptions and methods support broader transport.
  • Counting repeated records as independent target units by default. Several visits from one person can change the weighting and the estimand. Decide whether the target is a person, visit, or another unit before averaging.

These specifications are especially important for genetic prediction because a score can be fixed while its intended use changes across settings, ages, outcome definitions, and prediction horizons. “How well does this score predict?” is incomplete until the outcome, timing, population, and unit are named. A precisely defined target makes both the validation sample and the resulting performance claim interpretable.

Check Your Understanding

For each question, identify the target-specification choice that matters most and explain its consequence.

  1. A study predicts a first diagnosis within three years among adults free of disease at enrollment. Which individuals are eligible, and what information must be available at prediction time?
  2. Why is a sample with one year of outcome records insufficient by itself to evaluate a prediction target defined over five years?
  3. A validation data set contains five visits for some people and one visit for others. What must be specified before calculating an overall average loss?
  4. A validation sample is 50% group A and 50% group B, while the intended population is 80% group A and 20% group B. Why might the unweighted sample mean not estimate target-population mean loss?
  5. Give one reason why predicting a diagnosis by age 50 is not necessarily the same prediction task as predicting diagnosis within five years of enrollment.
Clinical Biostats