Prediction Targets in External Evaluation
An external prediction must specify whose outcome is being predicted and what information is available when the prediction is made. A prediction for a new subject using only baseline covariates and a planned dosing history is not the same as a forecast for a subject whose earlier concentration measurements are already available. The first uses no subject-specific outcome data; the second can use those permitted observations to update the subject’s random effects.
In either case, the external model is treated as frozen: its structural form, population parameter estimates, random-effect distribution, and residual model are not re-estimated from the external outcomes. Baseline covariates, dosing, and observation times must be supplied in the model’s defined units and form. For a forecast, only observations available before the forecast time may inform the subject-specific update.
These terms refer to different calculations. Setting random effects to zero gives a useful typical-subject curve, but in a nonlinear model it generally does not equal the population average. Likewise, an individual forecast is not simply a population prediction with an estimated random effect plugged in: uncertainty about that random effect can affect the forecast, particularly when the outcome is transformed, as with concentrations modeled on the log scale.
Model and Prediction Assumptions
Write a general NLME model for subject \(i\) as
Here \(Y_{ij}\) is the modeled response at time \(t_{ij}\), \(D_i\) denotes the dosing history, \(X_i\) denotes baseline covariates, \(\theta\) contains population parameters, and \(\eta_i\) is the subject’s vector of random effects with covariance matrix \(\Omega\). The residual error \(\varepsilon_{ij}\) follows the model’s specified residual distribution, conditionally on the subject effects and design information. The function \(f\) may be nonlinear in time, dose, covariates, or random effects.
For external prediction, the model and its parameter estimates are held fixed. A new subject’s random effects are drawn from the model’s population distribution; for an individual forecast, their distribution is updated using that subject’s prior observations. The calculations assume that the structural and error models are appropriate for the prediction target, that the dosing and covariate inputs have been harmonized correctly, and that the observations used for updating are genuinely available before the forecast. They also rely on the model’s random-effects distribution being a reasonable description of the subjects to whom predictions are applied.
Typical and Population-Marginal Predictions
For a typical-subject prediction, set \(\eta_i=0\) in the structural model:
This is a plug-in prediction at the center of the random-effects distribution. For a population-marginal prediction of the latent response, integrate the structural prediction over that distribution:
The integral is generally not equal to \(f(t,D_i,X_i;\widehat{\theta},0)\), because a nonlinear function of a random variable does not usually have expectation equal to the function evaluated at that variable’s expectation. If the target is a future measured response rather than the latent structural response, the residual distribution must also be included in the predictive expectation or distribution.
Worked Example: Typical Versus Population-Marginal Concentration
Suppose, hypothetically, that a one-compartment concentration model for an external subject with specified baseline covariates and dose is \(C_i(t)=12.0\exp(-0.150t+\eta_i)\) mg/L, where time is in hours and \(\eta_i\sim N(0,0.250)\). Treat the parameter values as fixed. Calculate the typical concentration and the population arithmetic mean at 4.00 h. The model is lognormal in concentration because the random effect enters the exponent.
Typical subject. Setting \(\eta_i=0\) gives
Population arithmetic mean. If \(Z\sim N(\mu,\sigma^2)\), then \(E[\exp(Z)]=\exp(\mu+\sigma^2/2)\). Here the random part of log concentration has mean \(-0.600\) and variance \(0.250\), so
Thus the typical-subject prediction is 6.586 mg/L, while the population arithmetic mean is 7.463 mg/L. The difference is due to averaging the exponentiated random effect, not a change in dose or population parameters. The typical value is also the population median in this particular lognormal model, but that equivalence need not hold for other model forms or targets.
Empirical-Bayes Forecasts From Prior Observations
For an individual forecast, let \(d_i\) denote the subject’s permitted prior observations together with their times and relevant design information. The posterior random-effects density is proportional to the likelihood of those data conditional on the random effects, multiplied by the population random-effects density:
An empirical-Bayes point estimate, often the posterior mode or posterior mean, summarizes this distribution. A forecast for a future latent response should, when the target is its conditional expectation, average over the full posterior distribution:
For a future measured response, the residual-error model is included as well. In general, substituting the posterior mean of \(\eta_i\) into \(f\) produces a plug-in prediction, not necessarily the conditional expectation in this equation. For nonlinear functions, these quantities can differ.
Deriving the Gaussian Update
A simple log-concentration model shows how prior observations update an individual random effect. Suppose \[ \log C_i(t)=\log(12.0)-0.150t+\eta_i, \qquad \eta_i\sim N(0,0.250), \] and observed log concentrations satisfy \[ z_{ij}=\log C_i(t_{ij})+\varepsilon_{ij}, \qquad \varepsilon_{ij}\sim N(0,0.090), \] independently conditional on \(\eta_i\). Define each log-scale residual relative to the population prediction as \(r_{ij}=z_{ij}-[\log(12.0)-0.150t_{ij}]\). Then \(r_{ij}=\eta_i+\varepsilon_{ij}\).
The prior density contributes a quadratic term \(\eta_i^2/0.250\) to the negative twice log density, and the observation likelihood contributes \(\sum_j(r_{ij}-\eta_i)^2/0.090\). Collecting the coefficients of \(\eta_i^2\) and \(\eta_i\) gives a normal posterior with variance \(v_i\) and mean \(m_i\):
The posterior variance is smaller than the prior variance when observations provide information, and the posterior mean is pulled toward the observed residuals. This derivation assumes the stated Gaussian prior and independent Gaussian residuals with the specified variance. Different residual models or nonlinear observation models generally require different posterior calculations.
Worked Example: Forecasting After One Prior Concentration
For the hypothetical model above, suppose one permitted concentration observation is available at 2.00 h, and its log-scale residual from the population prediction is \(r_1=0.300\). Calculate the posterior distribution of \(\eta_i\), then forecast the latent concentration at 8.00 h. The observation is prior to the forecast time, and the model assumes the specified independent Gaussian errors.
With one observation, the posterior variance and mean are
Thus \(\eta_i\mid d_i\) is approximately \(N(0.2206,0.06618)\). At 8.00 h the population log concentration before the random effect is \(\log(12.0)-1.200\). The conditional median latent concentration is the exponential of the conditional mean log concentration:
Because the posterior random effect is normal, the conditional arithmetic mean includes half its posterior variance:
These are forecasts of latent concentration. If the future measured log concentration has an independent residual variance of 0.090, its conditional arithmetic mean is \(4.658\exp(0.090/2)=4.872\) mg/L. The residual factor is included for a measured-response target, but not for the latent concentration target.
Worked Example: Forecasting After Two Prior Observations
Now suppose the same hypothetical subject has two permitted prior observations, with log-scale residuals \(r_1=0.300\) and \(r_2=-0.200\). Both occur before 6.00 h. Find the posterior distribution and the latent concentration forecast at 6.00 h. Conditional independence and the same residual variance are assumed.
The residuals sum to 0.100, and the posterior variance and mean are
The baseline concentration at 6.00 h, with \(\eta_i=0\), is \(12.0\exp(-0.150\times6.00)=4.879\) mg/L. The posterior median and arithmetic-mean forecasts are
The two residuals pull in opposite directions, so their net contribution is modest. The forecast nevertheless differs from the baseline-only population prediction because the observations change the posterior distribution of this subject’s random effect. The posterior variance also contributes to the difference between the conditional median and arithmetic mean.
Choosing and Checking the Prediction
The appropriate calculation depends on the prediction target and the information set, not on which calculation gives a more favorable result. A typical-subject curve is useful for describing the model at zero random effect. A population-marginal prediction is appropriate when the target is an average over new subjects with the supplied covariates and regimen. An empirical-Bayes forecast is appropriate when the target is a particular subject and prior outcomes are explicitly available at the forecast time.
Before generating predictions, verify the following:
- Information timing: Confirm that every outcome used for an individual update precedes the forecast time. A later concentration cannot be used to forecast itself or an earlier concentration.
- Prediction scale: State whether the target is latent concentration, a conditional median, an arithmetic mean, or a future measured concentration. These can differ under lognormal models.
- Inputs and model: Check units, dose history, covariates, time origin, and the frozen parameter values. A unit mismatch can produce a plausible-looking but invalid curve.
- Random-effects assumptions: Check whether the assumed distribution and covariance are plausible for the prediction population. Posterior calculations may be misleading if those assumptions are poor.
- Numerical behavior: For models without a closed-form integral, compare numerical integration or simulation results for stability and check that predictions remain finite over the requested times.
Empirical-Bayes estimates are often shrunk toward the population mean, especially when a subject has few or noisy observations. Shrinkage is an implication of combining the observations with the population prior; it is not evidence that the individual truly has an average parameter value. Conversely, using a subject’s observed outcomes to update random effects is not the same as refitting the population model. The former is individual conditioning; the latter changes the model estimates and can compromise an external evaluation if it uses validation outcomes.
Alternatives and Limitations
A plug-in forecast evaluates the structural model at a point estimate such as the posterior mode or mean of \(\eta_i\). It is straightforward and can be useful as a point summary, but for nonlinear models it need not equal the posterior predictive mean and does not itself represent the remaining uncertainty. Integrating over the posterior random-effects distribution is more directly aligned with an expected-outcome target. Simulation from that posterior can approximate the integral when it is not available analytically, provided the simulation is adequately precise.
Baseline-only population predictions avoid individual outcome updating and are therefore suitable for a new subject before any postbaseline measurements are available. They cannot use subject-specific response information. Empirical-Bayes forecasts can be more individualized, but depend on the adequacy of the population prior and observation model; with sparse data, the forecast may remain close to the population prediction. Neither approach repairs model misspecification, poor external covariate support, incorrect dosing records, or an inappropriate residual model. Generating predictions is not itself evidence that they are accurate; comparison with external outcomes is a separate evaluation task.
Check Your Understanding
Answer each question before reading the short solutions.
- What information distinguishes a baseline-only population prediction from an individual empirical-Bayes forecast?
- In the model \(C_i(t)=12.0\exp(-0.150t+\eta_i)\), with \(\eta_i\sim N(0,0.250)\), why is the population arithmetic mean not the typical-subject concentration?
- Using the one-observation example, give the posterior variance and mean of \(\eta_i\) when the prior variance is 0.250, residual variance is 0.090, and \(r_1=0.300\).
- Why must an observation obtained after a forecast time be excluded from that forecast’s random-effects update?
- For a lognormal concentration model, what additional term distinguishes the posterior arithmetic-mean forecast from the posterior median forecast?
Solutions. (1) A baseline-only prediction uses baseline covariates and design information but no subject-specific postbaseline outcomes; an individual empirical-Bayes forecast also conditions on permitted prior outcomes. (2) The exponential is nonlinear, so averaging \(\exp(\eta_i)\) gives \(\exp(0.250/2)\), not \(\exp(E[\eta_i])=1\). (3) \(v_i=(1/0.250+1/0.090)^{-1}=0.06618\), and \(m_i=v_i(0.300/0.090)=0.2206\). (4) Using it would introduce information unavailable at the stated forecast time and would make the prediction leak future outcome information. (5) The arithmetic mean includes half the posterior log-scale variance in its exponent; the median does not.