Tutorials › Statistical Genetics › Propagating Uncertainty From Score to Risk

Individual Risk and Clinical Utility · Tutorial 763 of 989

Propagating Uncertainty From Score to Risk

Propagate uncertainty through absolute-risk models and distinguish a risk interval from the probability that an uncertain estimate lies above a threshold.

Advanced 11 min read

What You'll Learn

  • Propagate coefficient uncertainty through a logistic absolute-risk model.
  • Construct an approximate risk interval by working on the log-odds scale.
  • Quantify how uncertainty in baseline incidence affects individual risk.
  • Include covariance among estimated model coefficients in the calculation.
  • Estimate the share of plausible parameter draws that cross a risk threshold.
  • Distinguish uncertainty in an estimated risk from uncertainty in an individual outcome.

Why Uncertainty Must Travel With the Risk Estimate

An absolute-risk estimate combines several quantities: a baseline incidence, the estimated effect of a genetic score, and often clinical predictors and fitted model coefficients. Each may be uncertain. Reporting a single risk without considering that uncertainty can make a borderline estimate appear more definite than it is. This matters especially when a clinical rule uses a threshold: a small change in the estimated score effect or baseline incidence may move an individual from one side of the threshold to the other.

The goal here is to quantify uncertainty in the estimated risk, not to predict with certainty whether a particular person will develop disease. The two questions differ. A person with an estimated 10% risk still has an uncertain future outcome; meanwhile, the 10% estimate itself may also be uncertain because its model was fitted using finite data.

Definition: Uncertainty propagation is the process of carrying uncertainty in inputs or estimated model parameters through a function to quantify uncertainty in its output. In absolute-risk prediction, the output is an individual’s estimated probability of an event over a stated time horizon.

Risk Models and the Delta Method

For a binary outcome over a specified horizon, consider a logistic risk model for an individual with score \(S\) and clinical predictors \(Z\):

$$ \eta=\alpha+\beta S+\gamma^\mathsf{T}Z,\qquad p=\operatorname{expit}(\eta)=\frac{1}{1+\exp(-\eta)}. $$

Here \(\eta\) is the log odds, \(\alpha\) is the intercept, \(\beta\) is the score coefficient, \(\gamma\) is the vector of clinical coefficients, and \(p\) is the model-estimated absolute risk. The model must be appropriate for the target population and time horizon; in particular, its baseline incidence and calibration should be relevant to the setting in which the risk is reported. The earlier material on calibration and local baseline incidence addresses those requirements. Uncertainty calculations quantify imprecision in the fitted quantities; they do not repair a misspecified or poorly calibrated model.

Let \(\hat{\theta}\) collect the estimated model parameters, with estimated covariance matrix \(\widehat{\Sigma}\). If \(g(\theta)\) is a smooth function of those parameters, the delta method approximates its variance by multiplying the covariance matrix on both sides by the gradient of \(g\), evaluated at the estimates. For risk, the derivative of the expit function is \(p(1-p)\). Thus, if the linear predictor estimate has standard error \(SE(\hat{\eta})\),

$$ \widehat{\operatorname{Var}}(\hat{p}) \ \approx\ \{\hat{p}(1-\hat{p})\}^2\widehat{\operatorname{Var}}(\hat{\eta}), \qquad SE(\hat{p})\ \approx\ \hat{p}(1-\hat{p})SE(\hat{\eta}). $$

A normal interval formed directly as \(\hat{p}\pm1.96SE(\hat{p})\) can extend below 0 or above 1. A common alternative is to form the interval on the log-odds scale, then transform its endpoints. If the estimated linear predictor is approximately normal, an approximate 95% interval for risk is

$$ \left[ \operatorname{expit}\{\hat{\eta}-1.96SE(\hat{\eta})\}, \operatorname{expit}\{\hat{\eta}+1.96SE(\hat{\eta})\} \right]. $$

This transformed interval remains between 0 and 1 and is generally asymmetric around the point estimate. It describes uncertainty in the model-estimated risk under the stated approximation and fitted model. It is not a 95% probability that the person’s future outcome will match the estimated risk.

Worked Example: Propagating Intercept and Score-Effect Uncertainty

Suppose a hypothetical fitted model uses \(S=2.32\), with \(\hat{\alpha}=-2.20\) and \(\hat{\beta}=0.50\). The estimated covariance matrix for the intercept and score coefficient has variances \(0.0200\) and \(0.00250\), respectively, and covariance \(-0.0002276\). Assume the model form and target population are appropriate for this illustration.

The estimated linear predictor and risk are

$$ \hat{\eta}=-2.20+(0.50)(2.32)=-1.040, \qquad \hat{p}=\operatorname{expit}(-1.040)=0.2611. $$

Because \(S\) is treated as fixed for this individual, the variance of the linear predictor includes the intercept variance, the score-coefficient variance multiplied by \(S^2\), and twice their covariance multiplied by \(S\):

$$ \begin{aligned} \widehat{\operatorname{Var}}(\hat{\eta}) &=0.0200+(2.32)^2(0.00250)+2(2.32)(-0.0002276)\\ &=0.0200+0.013456-0.001056\\ &=0.03240, \qquad SE(\hat{\eta})=\sqrt{0.03240}=0.1800. \end{aligned} $$

The approximate 95% interval on the log-odds scale is

$$ -1.040\pm1.96(0.1800)=[-1.3928,\,-0.6872]. $$

Transforming the endpoints gives the approximate 95% interval for risk:

$$ [\operatorname{expit}(-1.3928),\operatorname{expit}(-0.6872)] \approx[0.1990,\,0.3347]. $$

Thus, the point estimate is 26.11%, with an approximate interval from 19.90% to 33.47%. The interval reflects uncertainty in the fitted intercept and score effect, including their covariance. It does not include uncertainty from model misspecification or from a future random disease outcome.

Uncertainty in Baseline Incidence

A genetic relative effect becomes an absolute risk only after it is anchored to baseline incidence. Consequently, uncertainty in that incidence contributes to uncertainty in an individual risk even if the genetic effect is treated as known. For example, if \(q\) is a baseline risk and an odds ratio \(r\) applies to the individual, the corresponding risk is

$$ p=\operatorname{expit}\{\operatorname{logit}(q)+\log(r)\}, \qquad \operatorname{logit}(q)=\log\left(\frac{q}{1-q}\right). $$

If \(q\) is estimated, its uncertainty passes through the logit transformation and then through the risk transformation. For a score model with \(\eta=\operatorname{logit}(q)+\beta S\), the derivative of \(\eta\) with respect to \(q\) is \(1/\{q(1-q)\}\). If the baseline estimate and score-effect estimate are independent, their contributions to the variance of \(\hat{\eta}\) add. If they are not independent, the covariance term must also be included.

Worked Example: Baseline Incidence With Sampling Uncertainty

In a hypothetical target population, suppose the estimated baseline risk over a fixed horizon is \(\hat{q}=0.0200\), with \(SE(\hat{q})=0.00200\). For an individual with score \(S=1.50\), suppose the score effect is treated as known, with \(\beta=\log(1.50)=0.4055\). Assume the baseline estimate is approximately normal in this range and independent of the fixed score effect.

The estimated individual log odds and risk are

$$ \hat{\eta}=\operatorname{logit}(0.0200)+(1.50)(0.4055) =-3.8918+0.6082=-3.2836, \qquad \hat{p}=\operatorname{expit}(-3.2836)\approx0.03613. $$

The derivative of the logit of baseline risk at \(q=0.0200\) is

$$ \frac{d\,\operatorname{logit}(q)}{dq} =\frac{1}{q(1-q)} =\frac{1}{(0.0200)(0.9800)} =51.02. $$

Therefore, the delta-method standard error for the estimated linear predictor is approximately

$$ SE(\hat{\eta})\approx51.02(0.00200)=0.1020. $$

A 95% interval on the log-odds scale is \(-3.2836\pm1.96(0.1020)=[-3.4836,-3.0836]\). Transforming these endpoints yields an approximate risk interval of \([0.02978,0.04379]\), or 2.978% to 4.379%. The estimated risk is 3.613%. These numbers show that uncertainty in a relatively low baseline incidence can still materially affect the absolute-risk interval. The calculation does not include uncertainty in the score effect; if that effect were estimated, its variance and any covariance with the baseline estimate would also be needed.

Multiple Coefficients, Correlations, and Score Uncertainty

With multiple predictors, it is important to propagate the full covariance matrix rather than treating each coefficient as independent by default. Write \(\eta=\alpha+\beta S+\gamma^\mathsf{T}Z\), and let \(x=(1,S,Z^\mathsf{T})^\mathsf{T}\) be the predictor vector matching the coefficient vector. Then \(\hat{\eta}=x^\mathsf{T}\hat{\theta}\), and its estimated variance is

$$ \widehat{\operatorname{Var}}(\hat{\eta}) =x^\mathsf{T}\widehat{\Sigma}x. $$

This expression includes all variances and covariances. For example, uncertainty in an intercept and a score effect may reinforce or partly offset one another depending on the sign of their covariance and the person’s score. Omitting covariance terms can therefore either overstate or understate uncertainty.

The score itself may also be uncertain. If a score is computed using estimated weights, uncertainty in those weights can contribute to uncertainty in the person’s score. In a first-order approximation, if \(S=w^\mathsf{T}G\), where \(G\) is the person’s fixed genotype vector and \(w\) is an estimated weight vector, then the score variance from weight estimation is approximately \(G^\mathsf{T}\widehat{\operatorname{Var}}(\hat{w})G\). Its contribution to the linear predictor variance is approximately \(\beta^2\) times that score variance, with additional covariance terms if the weight estimates and risk-model coefficients are dependent. This is different from variation in scores across people: a population score standard deviation is not, by itself, uncertainty about one person’s score.

Worked Example: Probability of Exceeding a Risk Threshold

Consider a hypothetical individual with score \(S=1.20\) and one clinical predictor \(Z=1\). Suppose the estimated coefficients are \(\hat{\alpha}=-2.00\), \(\hat{\beta}=0.45\), and \(\hat{\gamma}=0.30\). For a transparent calculation, assume their estimation errors are approximately independent, with standard errors \(0.15\), \(0.08\), and \(0.10\), respectively. These assumptions should be checked in an actual fitted model; if coefficients are correlated, their covariance terms must be included.

The estimated linear predictor and point risk are

$$ \hat{\eta}=-2.00+(0.45)(1.20)+(0.30)(1)=-1.160, \qquad \hat{p}=\operatorname{expit}(-1.160)\approx0.2386. $$

Using the stated independence assumption, the estimated variance and standard error of the linear predictor are

$$ \begin{aligned} \widehat{\operatorname{Var}}(\hat{\eta}) &=(0.15)^2+(1.20)^2(0.08)^2+(1)^2(0.10)^2\\ &=0.02250+0.009216+0.01000=0.04172,\\ SE(\hat{\eta})&=\sqrt{0.04172}=0.2042. \end{aligned} $$

Suppose the stated clinical threshold is 25% risk. Its log-odds value is \(\operatorname{logit}(0.25)=\log(0.25/0.75)=-1.0986\). Under an approximate normal distribution for the uncertain estimated linear predictor, the fraction of parameter draws with risk above 25% is

$$ P(\eta>\operatorname{logit}(0.25)) \approx 1-\Phi\left(\frac{-1.0986-(-1.160)}{0.2042}\right) =1-\Phi(0.3007) \approx0.382. $$

Thus, approximately 38.2% of draws from this coefficient-uncertainty approximation place the estimated risk above the threshold, although the point estimate is below it. This is a threshold-crossing probability under the stated parameter-uncertainty approximation. It is not the probability that the individual will experience the outcome, nor is it automatically a posterior probability that the person’s true risk exceeds 25%. A bootstrap or a specified Bayesian model could instead supply a distribution of plausible parameter values; the meaning of the resulting proportion depends on how that distribution was constructed.

Practical Workflow and Interpretation

A reliable analysis makes the source and meaning of uncertainty explicit. The following sequence applies whether uncertainty is propagated analytically or with simulation.

1
Specify the risk target.
State the outcome, time horizon, target population, and predictors used. The uncertainty calculation is only as relevant as this prediction target.
2
Identify uncertain inputs.
List which quantities are estimated, such as baseline incidence, score effects, clinical coefficients, and score weights. Distinguish these from fixed, known inputs.
3
Propagate jointly.
Use the full covariance matrix in a delta-method calculation, or draw jointly from an appropriate coefficient distribution and recompute risk for every draw.
4
Report the result in context.
Give the point risk, the uncertainty interval or distribution, its assumptions, and—if relevant—the share of draws above a specified threshold.

Simulation is useful when the model is nonlinear, several uncertainty sources must be combined, or the distribution of risk is noticeably asymmetric. Each simulation draw should preserve the fitted coefficients’ joint dependence, use a plausible draw for uncertain baseline incidence or score weights, and recalculate the risk. Quantiles of the resulting risk draws can then summarize an interval. Drawing every coefficient independently when the fitted coefficients are correlated does not reproduce the fitted model’s uncertainty.

Common Pitfall: Confusing Three Different Uncertainties

A frequent error is to treat a risk interval, a threshold-crossing probability, and the chance of a future event as interchangeable. They answer different questions. A risk interval describes uncertainty in an estimated conditional risk due to estimation, under its model and inferential assumptions. A threshold-crossing probability describes how often an uncertainty distribution for the estimate falls above a chosen cut point. The individual outcome remains a future random event whose probability is the person’s risk, conditional on the model and predictors.

For example, an estimated risk of 23.9% with a 38.2% threshold-crossing probability does not mean the person has a 38.2% chance of disease. Nor does it mean there is a 38.2% objective probability that the true risk exceeds the threshold unless a probability model with that interpretation has been specified. The correct interpretation is tied to how uncertainty was quantified.

Key takeaway: Carry uncertainty through the complete route from baseline incidence and score effects to absolute risk. Include coefficient covariance, state what sources were omitted, and interpret threshold-crossing calculations as uncertainty about an estimate—not as a prediction of an individual outcome.

Check Your Understanding

Answer these questions using the assumptions and distinctions developed above.

  1. Why can an interval formed on the log-odds scale and transformed to risk be preferable to \(\hat{p}\pm1.96SE(\hat{p})\)?
  2. In a model with intercept and score coefficient, which covariance term contributes to the variance of the linear predictor for a fixed score?
  3. If baseline incidence is estimated with uncertainty but the score effect is known, which transformation carries baseline uncertainty into the individual risk?
  4. What does a threshold-crossing proportion from coefficient draws describe, and what does it not describe?
  5. Why is variation in scores across a population not automatically uncertainty about one individual’s score?
Clinical Biostats