Tutorials › Population Pharmacokinetics › Deriving Normalized Prediction Distribution Errors

Predictive Checks · Tutorial 385 of 599

Deriving Normalized Prediction Distribution Errors

Learn how simulated predictive distributions become marginal normal scores and how decorrelation produces normalized prediction distribution errors for concentration profiles.

Intermediate 10 min read

What You'll Learn

  • Define a prediction discrepancy from the rank of an observed concentration among model-simulated predictions.
  • Transform empirical predictive percentiles to standard-normal scores using the inverse normal CDF.
  • Explain why scores from repeated measurements on one individual are generally correlated.
  • Derive the covariance-whitening step used to obtain NPDEs.
  • Calculate marginal scores and decorrelated NPDEs for hypothetical concentration data.
  • Identify assumptions, finite-simulation caveats, and common interpretation errors.

From Predictive Simulations to NPDEs

A visual predictive check compares observed and simulated summaries, such as concentration quantiles within time bins. A normalized prediction distribution error (NPDE) instead assigns a standardized discrepancy to an observed concentration profile using its simulated predictive distribution. The transformation has two parts: first, determine where the observation falls in the simulated distribution; second, for a repeated-measures profile, remove the correlation among the resulting normal scores.

The second part matters because concentrations measured repeatedly in one individual are not independent. A profile that is generally high relative to simulations may produce several high marginal scores together. Treating those scores as independent would misrepresent the joint predictive behavior. NPDEs are intended to put profile-level predictive discrepancies on a comparable, decorrelated scale; they do not replace examination of the observed data, model assumptions, or predictive simulations.

Definition: For one individual and one observation time, a prediction discrepancy is the predictive percentile of the observed concentration under the model. Its marginal normal score is the inverse standard-normal CDF of that percentile. For a profile with multiple observations, the normalized prediction distribution errors (NPDEs) are the decorrelated marginal normal scores, with the decorrelation defined using the predictive covariance of the score vector.

The intended predictive distribution is the model distribution for a new profile under the relevant design: the individual’s recorded dose history, observation times, and covariates are held to their observed values, while the model simulates the sources of variation included in the prediction. For a population prediction, these typically include between-individual variability and residual error. Simulated profiles and the observed profile must be compared on the same scale and under the same prediction target.

For a scalar concentration \(y\), let \(F(y)\) denote its predictive cumulative distribution function. If the predictive distribution is continuous and correctly specifies the data-generating distribution, then \(F(Y)\) is uniformly distributed on \((0,1)\). Applying the standard-normal quantile function \(\Phi^{-1}\) therefore gives a standard-normal score. In practice, \(F\) is approximated from a finite number of simulated concentrations.

Empirical Ranks and Normal Scores

Suppose \(N\) simulated concentrations are available at one observation time, and \(b\) of them are strictly less than the observed concentration \(y\). One useful finite-simulation plotting-position convention is

$$ \widehat{F}(y)=\frac{b+0.5}{N+1}, \qquad z=\Phi^{-1}\!\left(\widehat{F}(y)\right). $$

This convention keeps the estimated percentile strictly between zero and one, so the inverse normal quantile is finite. It also makes the calculation explicit when the observed value is not tied with a simulated value. Other implementations may use a different rank convention; the convention should be specified and used consistently. With tied or rounded concentrations, a tie rule is needed, such as assigning midranks or using randomized ranks. The continuous-distribution argument does not make tied ranks exactly uniform.

A low percentile produces a negative normal score, while a high percentile produces a positive score. A normal score near zero corresponds to a percentile near 0.5. A positive score does not mean that the observed concentration is absolutely high; it means that the observation is high relative to its model-predicted distribution at that design point.

Worked Example: Converting One Concentration Rank to a Normal Score

Consider a hypothetical concentration observation of \(4.8\) mg/L at one scheduled time. The model produces \(N=19\) simulated concentrations under the same dosing history and sampling time. Suppose \(b=15\) simulated values are below \(4.8\) mg/L, with no tie.

Using the stated plotting position,

$$ \widehat{F}(4.8)=\frac{15+0.5}{19+1} =\frac{15.5}{20} =0.775. $$

The marginal normal score is

$$ z=\Phi^{-1}(0.775)\approx 0.7554. $$

Thus, this observation lies above the center of its simulated predictive distribution, at an estimated percentile of 77.5%. The score is dimensionless; the concentration used to form the rank was measured in mg/L. This score alone is not yet a decorrelated profile NPDE if other concentrations from the same individual are being assessed.

Why Profiles Need Decorrelation

For an individual with \(m\) observed concentrations, calculate one empirical predictive percentile and one normal score for each observation. Collect the scores in the vector \(\mathbf{z}\). Even if every component has approximately a standard-normal marginal distribution, the components need not be independent. Shared individual effects, residual structure, and the pharmacokinetic trajectory can make scores at different times correlated.

Let \(\mathbf{R}\) be the covariance matrix of the marginal normal-score vector under the predictive model. Ideally, the marginal variances are one, so \(\mathbf{R}\) is also a correlation matrix. Estimate this matrix from simulated profiles processed by the same rank and normal-score procedure. If \(\mathbf{R}\) is positive definite, take a Cholesky factorization \(\mathbf{R}=\mathbf{L}\mathbf{L}^{T}\), where \(\mathbf{L}\) is lower triangular. The decorrelated vector is

$$ \mathbf{e}=\mathbf{L}^{-1}\mathbf{z}. $$

The justification is direct. Under the model, if the score vector has mean zero and covariance \(\mathbf{R}\), then

$$ \operatorname{Cov}(\mathbf{e}) =\operatorname{Cov}(\mathbf{L}^{-1}\mathbf{z}) =\mathbf{L}^{-1}\mathbf{R}(\mathbf{L}^{-1})^{T} =\mathbf{L}^{-1}\mathbf{L}\mathbf{L}^{T}(\mathbf{L}^{-1})^{T} =\mathbf{I}. $$

The transformation therefore removes the modeled linear covariance and gives unit variances. Under a multivariate normal predictive distribution, it also produces independent standard-normal components. With empirical ranks, estimated covariance, and finite simulations, the result is approximate rather than exact. NPDEs are consequently model-based predictive residuals, not a guarantee that the observed errors are normal or independent.

Worked Example: Decorrelation for a Two-Time Concentration Profile

Suppose a hypothetical individual has two observed concentrations. At the first time, \(N=999\) simulated values include \(b_1=840\) values below the observation. At the second time, \(b_2=308\) of the \(999\) simulated values are below its observation. Assume no ties.

The two estimated percentiles are

$$ \widehat{F}_1=\frac{840+0.5}{1000}=0.8405, \qquad \widehat{F}_2=\frac{308+0.5}{1000}=0.3085. $$

Their marginal normal scores are

$$ z_1=\Phi^{-1}(0.8405)\approx 0.996515, \qquad z_2=\Phi^{-1}(0.3085)\approx -0.5001. $$

For illustration, suppose many simulated profiles, processed in the same way, give the estimated score correlation matrix

$$ \mathbf{R}= \begin{pmatrix} 1 & 0.6\\ 0.6 & 1 \end{pmatrix}. $$

Its Cholesky factor is \(\mathbf{L}=\begin{pmatrix}1&0\\0.6&0.8\end{pmatrix}\), since \(0.6^2+0.8^2=1\). Solving \(\mathbf{L}\mathbf{e}=\mathbf{z}\) gives

$$ e_1=z_1\approx 0.996515, \qquad e_2=\frac{z_2-0.6z_1}{0.8} =\frac{-0.5001-(0.6)(0.996515)}{0.8} \approx -1.373. $$

The first NPDE equals the first marginal score because the first row of this lower-triangular factor does not mix in later times. The second NPDE adjusts its marginal score for the positive correlation with the first. Both NPDEs are dimensionless; their signs describe discrepancies relative to the simulated predictive distributions after the specified decorrelation.

Practical Calculation and Checks

A defensible calculation follows a fixed sequence. Simulate complete concentration profiles at the observed design points, calculate the empirical percentile for each observed concentration, transform the percentiles with \(\Phi^{-1}\), estimate the covariance of the resulting simulated score vectors, and apply the corresponding inverse Cholesky factor to each observed score vector. The same ordering of observation times must be used for the observed and simulated vectors and for the covariance matrix.

1
Define the prediction target.
Specify the observed times, dosing history, covariates, and sources of variability represented in simulated concentrations.
2
Obtain marginal percentiles.
At each time, compare the observation with its simulated predictive values and apply a stated rank and tie convention.
3
Transform and decorrelate.
Apply \(\Phi^{-1}\) to each percentile, estimate predictive score covariance from simulated profiles, and solve the Cholesky system.
4
Check the calculation.
Confirm that percentiles are in \((0,1)\), the covariance is valid, and the simulated transformed profiles have approximately the intended covariance behavior.

The simulated profiles used to estimate covariance should reflect the same predictive setup as the observations. A correlation matrix borrowed from a different design, a different set of time points, or a different prediction target can produce inappropriate NPDEs. Check that the matrix is symmetric and positive definite and that its time ordering is correct. An estimated matrix that is singular or nearly singular may indicate too few simulated profiles relative to the number of observations, redundant measurements, or numerical problems; its inverse factor can then amplify small errors.

Very extreme percentiles also warrant attention. A finite simulation cannot resolve tail probabilities more finely than its rank resolution, and a plotting-position adjustment does not create information beyond the simulations. More simulations may improve resolution. This is distinct from a model discrepancy: a concentration near the edge of a finite simulated sample can reflect limited Monte Carlo resolution, model behavior, or both.

Comparison, Limits, and a Common Pitfall

A VPC emphasizes how observed and simulated distributions compare across time or strata, often through quantiles and reference envelopes. NPDEs instead produce pointwise, profile-based standardized discrepancies that can be summarized or plotted against time and covariates. Neither is universally superior: VPC summaries retain concentration-scale interpretation and show distributional features, while NPDEs facilitate a common standardized scale and account for modeled within-profile correlation. The introductory material on predictive checks and VPCs provides the context for interpreting simulated-versus-observed summaries; NPDEs are a complementary representation, not a substitute for those checks.

A common mistake is to transform each observed concentration to a normal score and then call those scores NPDEs, without addressing correlation. For example, two correlated scores of \(1\) and \(1\) do not provide the same joint evidence as two independent scores of \(1\) and \(1\). The correction is to estimate the predictive covariance of score profiles and decorrelate using a specified transformation. Another error is to reverse the percentile direction: counting simulations greater than the observation estimates an upper-tail probability, whereas the CDF percentile counts values at or below the observation. Mixing these conventions reverses score signs.

NPDEs also depend on the predictive model and the simulation design. They do not identify which model component caused a discrepancy, and an apparently well-behaved NPDE distribution does not prove that all aspects of the model are adequate. Rank discreteness, ties, covariance estimation, and limited tail resolution matter, particularly with few simulations or many observations per profile.

Key takeaway: An NPDE begins with an observed value’s percentile in its simulated predictive distribution, transforms that percentile by \(\Phi^{-1}\), and decorrelates the profile-level normal scores using predictive score covariance. State the rank convention, prediction target, and observation ordering when reporting the calculation.

Worked Example: A Low Rank at One Sampling Time

In a hypothetical check, the observed concentration at one time is below all but one of \(N=99\) simulated concentrations: exactly \(b=1\) simulated value is lower. There is no tie. The plotting position is

$$ \widehat{F}(y)=\frac{1+0.5}{99+1}=0.015. $$

Thus \(z=\Phi^{-1}(0.015)\approx -2.170\). The negative sign correctly indicates that the observation is low relative to its predictive distribution. This single marginal score is not evidence by itself of a formal rejection or a quantified probability that the model is wrong; it is a discrepancy to interpret alongside simulation precision, the rest of the profile, and other predictive diagnostics.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions below.

  1. For \(N=49\) simulations with \(b=24\) values below an observed concentration, calculate the plotting-position percentile and describe the sign of its normal score.
  2. Why does the probability integral transform lead to a standard-normal score when the continuous predictive distribution is correct?
  3. For two observations, let \(\mathbf{R}=\begin{pmatrix}1&0.3\\0.3&1\end{pmatrix}\) and \(\mathbf{z}=(0.5,0.2)^T\). Find the Cholesky factor and the decorrelated score vector.
  4. What is the error in calling a vector of inverse-normal percentile scores an NPDE vector without further checking?
  5. If \(b=0\) among \(N=99\) simulated values, does the stated plotting position give an infinite normal score? Explain.

Solutions. (1) \(\widehat{F}=(24+0.5)/(49+1)=24.5/50=0.49\). Since this is below 0.5, \(\Phi^{-1}(0.49)\) is slightly negative, approximately \(-0.0251\). (2) For a continuous correct predictive CDF \(F\), \(F(Y)\) is Uniform\((0,1)\); applying \(\Phi^{-1}\) to a uniform variable gives a standard-normal variable. (3) A Cholesky factor is \(\mathbf{L}=\begin{pmatrix}1&0\\0.3&\sqrt{0.91}\end{pmatrix}\), with \(\sqrt{0.91}\approx0.95394\). Solving \(\mathbf{L}\mathbf{e}=\mathbf{z}\) gives \(e_1=0.5\) and \(e_2=(0.2-0.3(0.5))/0.95394=0.0524\), approximately. (4) The scores may remain correlated across repeated observations; NPDE calculation requires decorrelation using the predictive covariance of score profiles. (5) No. The plotting position is \((0+0.5)/(99+1)=0.005\), strictly between zero and one, so the score is finite: \(\Phi^{-1}(0.005)\approx-2.576\).

Clinical Biostats