Tutorials › Population Pharmacokinetics › Cholesky Parameterization Of Random-Effect Covariance in Population PK

Random-Effect Structure and Error Models · Tutorial 134 of 599

Cholesky Parameterization Of Random-Effect Covariance in Population PK

Learn how a Cholesky factor encodes random-effect variances and covariances, and why its structure is useful when estimating population PK models.

Intermediate 10 min read

What You'll Learn

  • State the conditions for a positive-diagonal Cholesky factorization.
  • Multiply a lower-triangular factor by its transpose to recover the covariance matrix.
  • Interpret diagonal and off-diagonal factor elements in terms of variances and covariances.
  • Recover a two-effect Cholesky factor from a covariance matrix.
  • Explain how the factor can constrain an estimated covariance matrix to be positive definite.
  • Recognize numerical and interpretation pitfalls in covariance estimation.

Why Parameterize a Random-Effect Covariance Matrix?

A population PK model may assign a vector of subject-level random effects to each individual. For example, effects on log clearance and log volume can be represented by \(\eta_i=(\eta_{CL,i},\eta_{V,i})^T\), with mean zero and covariance matrix \(\Omega\). The diagonal entries of \(\Omega\) are the random-effect variances; its off-diagonal entries are covariances. The earlier material on interpreting the clearance–volume random-effect correlation explains how covariance and correlation describe the association between two effects.

During model estimation, the elements of \(\Omega\) must vary while still defining a valid covariance matrix. A Cholesky parameterization expresses \(\Omega\) as the product of a lower-triangular matrix and its transpose. The factor's entries are not, in general, themselves the variances or covariances. Instead, multiplying the factor out shows exactly how they combine to produce those quantities.

Definition: For a positive-definite covariance matrix \(\Omega\), its Cholesky factorization is \(\Omega=LL^T\), where \(L\) is lower triangular with strictly positive diagonal elements. A positive-semidefinite but singular covariance matrix does not have a factor with all diagonal elements strictly positive; a suitable lower-triangular factorization can instead have zero diagonal elements.

The distinction in the definition matters. A covariance matrix must be positive semidefinite, but it need not be positive definite: a zero variance, for example, is possible. The standard parameterization with strictly positive Cholesky diagonal elements specifically represents positive-definite matrices. Many estimation implementations use that parameterization because it provides a convenient way to maintain a positive-definite \(\Omega\) while estimating its elements. A singular covariance matrix is a limiting or separately handled case, not a matrix represented by a strictly positive-diagonal factor.

How the Factor Maps to Variances and Covariances

For two random effects, write the lower-triangular factor as \(L\). Multiplication gives the covariance matrix directly:

$$ L= \begin{pmatrix} l_{11} & 0\\ l_{21} & l_{22} \end{pmatrix}, \qquad \Omega=LL^T= \begin{pmatrix} l_{11}^2 & l_{11}l_{21}\\ l_{11}l_{21} & l_{21}^2+l_{22}^2 \end{pmatrix}, \qquad l_{11}>0,\ l_{22}>0. $$

Thus \(\Omega_{11}=l_{11}^2\) and \(\Omega_{22}=l_{21}^2+l_{22}^2\) are the two variances, while \(\Omega_{12}=\Omega_{21}=l_{11}l_{21}\) is the covariance. The second variance depends on two factor elements; it is not just \(l_{22}^2\). This is a frequent source of misreading.

For \(q\) random effects, let \(L=(l_{ij})\) be a \(q\times q\) lower-triangular matrix, so \(l_{ij}=0\) when \(j>i\). Entry-by-entry multiplication gives

$$ \Omega_{ij}=\sum_{k=1}^{\min(i,j)} l_{ik}l_{jk}. $$

For a diagonal entry, this becomes \(\Omega_{ii}=\sum_{k=1}^{i}l_{ik}^2\). For an off-diagonal entry, it is a sum of products of the factor elements in the two relevant rows. Therefore, changing one factor element can affect more than one entry of \(\Omega\).

Worked Example: Reading a Two-Effect Factor

Suppose random effects on log clearance and log volume have the hypothetical factor

$$ L= \begin{pmatrix} 0.30 & 0\\ 0.12 & 0.16 \end{pmatrix}. $$

The factor diagonal is strictly positive, so it defines a positive-definite covariance matrix. Multiply \(L\) by its transpose:

$$ \Omega= \begin{pmatrix} 0.30^2 & 0.30(0.12)\\ 0.30(0.12) & 0.12^2+0.16^2 \end{pmatrix} = \begin{pmatrix} 0.0900 & 0.0360\\ 0.0360 & 0.0400 \end{pmatrix}. $$

The log-clearance random-effect variance is \(0.0900\), the log-volume random-effect variance is \(0.0400\), and their covariance is \(0.0360\). These quantities are dimensionless squared or dimensionless because the random effects are on log scales. The factor element \(0.16\) alone is not the standard deviation of the log-volume effect; the variance of that effect is \(0.12^2+0.16^2=0.0400\).

Recovering the Factor From a Covariance Matrix

For a two-effect positive-definite covariance matrix, the same equations can be solved in the other direction. Write its entries as \(\Omega_{11}\), \(\Omega_{12}\), and \(\Omega_{22}\). From the first variance and covariance equations, \(l_{11}=\sqrt{\Omega_{11}}\) and \(l_{21}=\Omega_{12}/l_{11}\). The remaining diagonal element follows from the second variance equation:

$$ l_{22}=\sqrt{\Omega_{22}-l_{21}^2} =\sqrt{\Omega_{22}-\frac{\Omega_{12}^2}{\Omega_{11}}}. $$

The positive square roots are used for the positive-diagonal factor. The quantity under the final square root must be positive for this two-dimensional positive-definite case. This calculation follows by matching the entries in \(LL^T\); it is not an additional model assumption.

Worked Example: Recovering a Factor From Estimated Covariances

Suppose a hypothetical estimation result gives the covariance matrix for two log-scale random effects as

$$ \Omega= \begin{pmatrix} 0.0900 & 0.0360\\ 0.0360 & 0.0400 \end{pmatrix}. $$

First, \(l_{11}=\sqrt{0.0900}=0.3000\). Next, \(l_{21}=0.0360/0.3000=0.1200\). Finally,

$$ l_{22}=\sqrt{0.0400-(0.1200)^2} =\sqrt{0.0256} =0.1600. $$

Thus the factor is \(L=\begin{pmatrix}0.3000&0\\0.1200&0.1600\end{pmatrix}\). Checking by multiplication recovers the original matrix: the second variance is \(0.1200^2+0.1600^2=0.0400\), and the covariance is \(0.3000(0.1200)=0.0360\). As an additional check, the determinant is \(0.0900(0.0400)-(0.0360)^2=0.002304>0\), consistent with this example's positive-definite two-effect matrix.

More Than Two Random Effects

With three or more effects, each covariance is still a row-wise sum of products. The triangular structure makes the calculation systematic: the first row contributes to the first variance, the next row adds its own diagonal-square term to its variance, and subsequent rows follow the same pattern. The following example shows both diagonal and off-diagonal entries, including a negative covariance.

Worked Example: Multiplying a Three-Effect Factor

Consider this hypothetical factor for random effects on three log-scale PK parameters:

$$ L= \begin{pmatrix} 0.20 & 0 & 0\\ 0.05 & 0.15 & 0\\ -0.04 & 0.03 & 0.10 \end{pmatrix}. $$

Applying \(\Omega_{ij}=\sum_{k=1}^{\min(i,j)}l_{ik}l_{jk}\), the first variance is \(0.20^2=0.0400\). The covariance for effects 1 and 2 is \(0.20(0.05)=0.0100\), and that for effects 1 and 3 is \(0.20(-0.04)=-0.00800\). The second variance is \(0.05^2+0.15^2=0.0250\), and the covariance for effects 2 and 3 is \(0.05(-0.04)+0.15(0.03)=-0.00200+0.00450=0.00250\). The third variance is \((-0.04)^2+0.03^2+0.10^2=0.0125\). Therefore,

$$ \Omega= \begin{pmatrix} 0.0400 & 0.0100 & -0.00800\\ 0.0100 & 0.0250 & 0.00250\\ -0.00800 & 0.00250 & 0.0125 \end{pmatrix}. $$

The symmetry of \(\Omega\) is visible in the repeated off-diagonal entries. The negative value \(l_{31}=-0.04\) contributes a negative term to the covariance between effects 1 and 3; it does not imply a negative variance. All three variances are sums of squares.

Using the Factor During Estimation

A covariance matrix for \(q\) random effects has \(q(q+1)/2\) distinct entries: \(q\) variances and \(q(q-1)/2\) covariances. A lower-triangular factor has the same number of free elements. A common estimation strategy is to estimate the entries of \(L\) and form \(\Omega=LL^T\) at each parameter evaluation. If the diagonal elements are constrained to be strictly positive, each resulting \(\Omega\) is positive definite. Some implementations achieve this by estimating an unconstrained parameter \(a_i\) and setting \(l_{ii}=\exp(a_i)\); this is a computational choice, not part of the definition of the Cholesky factorization.

The factor entries are computational parameters, whereas model interpretation generally uses the variances, standard deviations, covariances, and correlations derived from \(\Omega\). For a pair of effects \(i\) and \(j\), the correlation is \(\Omega_{ij}/\sqrt{\Omega_{ii}\Omega_{jj}}\). It should be calculated from the reconstructed covariance matrix, not inferred from a single off-diagonal element of \(L\).

1
Specify the random-effect order.
Fix the order of effects in \(\eta\) and use that same order for the rows and columns of \(\Omega\) and \(L\).
2
Estimate factor elements.
Estimate the lower-triangular entries subject to the chosen diagonal constraints. The entries above the diagonal are zero by construction.
3
Reconstruct and interpret \(\Omega\).
Compute \(LL^T\), then report the implied variances, covariances, and, where useful, correlations on the scale of the random effects.
4
Check the fitted model.
Inspect estimates and uncertainty, confirm that the reconstructed matrix matches reported quantities, and assess whether the random-effect structure is supported by the data.

The Cholesky approach is one way to estimate a full covariance structure. A diagonal structure instead sets all off-diagonal covariances to zero, and a block-diagonal structure allows covariance within specified groups but fixes covariances between groups at zero. Those choices reduce the number of covariance parameters and may be preferable when the data cannot support a full structure. Directly estimating covariance-matrix entries is another possible approach, but it requires constraints to ensure that the result remains a valid covariance matrix. A Cholesky factor encodes that constraint through its construction when its diagonal entries are strictly positive.

Diagnostics, Limitations, and Common Mistakes

A valid factorization does not guarantee that the random-effect structure is well supported or that the model has estimated it reliably. Check that the factor is lower triangular, that the diagonal convention used by the estimation method is clear, and that multiplying the reported factor by its transpose reproduces the reported \(\Omega\). If reported covariance or correlation summaries disagree with that reconstruction, first check the ordering of the random effects and the software's reporting convention.

Very small diagonal factor estimates, large uncertainty, or unstable changes across model runs can indicate that the data provide weak information about some random-effect directions. A factor may still produce a mathematically valid covariance matrix in that situation, but the estimates can be imprecise and sensitive to the model or data. Examine standard errors, parameter correlations, convergence information, and whether simplifying to a diagonal or block-diagonal structure is scientifically defensible. The factorization itself cannot resolve weak identifiability, sparse observations, or misspecification of the structural PK model.

  • Mistake: treating factor elements as covariance entries. In two dimensions, \(l_{21}\) is not the covariance; the covariance is \(l_{11}l_{21}\). Reconstruct \(\Omega\) before interpreting its entries.
  • Mistake: reading the second variance as \(l_{22}^2\). The correct expression is \(l_{21}^2+l_{22}^2\), as follows directly from multiplying the second row of \(L\) by itself.
  • Mistake: assuming every covariance matrix has a strictly positive-diagonal factor. That statement holds for positive-definite \(\Omega\). A singular positive-semidefinite covariance matrix may require a factor with a zero diagonal element.
  • Mistake: believing a valid factor proves the covariance structure is appropriate. Cholesky parameterization helps maintain a valid matrix; it does not establish that a full covariance structure is estimable or scientifically warranted.

The main practical limitation is that the elements of \(L\) can be less directly interpretable than those of \(\Omega\). In addition, changing the ordering of random effects changes the displayed factor, even though the covariance structure can be expressed in the reordered coordinates. Report the ordering and interpret the reconstructed covariance matrix in the model's stated effect order.

Check Your Understanding

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

  1. For \(L=\begin{pmatrix}0.4&0\\0.1&0.2\end{pmatrix}\), calculate the two variances and their covariance.
  2. A two-effect covariance matrix has \(\Omega_{11}=0.25\), \(\Omega_{12}=0.05\), and \(\Omega_{22}=0.04\). Find the positive-diagonal Cholesky factor.
  3. Why is a positive-semidefinite singular covariance matrix not represented by a factor with all diagonal elements strictly positive?
  4. In a three-effect model, what formula gives \(\Omega_{23}\) from the entries of a lower-triangular \(L\)?

Solutions. (1) The first variance is \(0.4^2=0.16\), the covariance is \(0.4(0.1)=0.04\), and the second variance is \(0.1^2+0.2^2=0.05\). (2) \(l_{11}=\sqrt{0.25}=0.5\), \(l_{21}=0.05/0.5=0.1\), and \(l_{22}=\sqrt{0.04-0.1^2}=\sqrt{0.03}\approx0.1732\). Thus \(L\approx\begin{pmatrix}0.5&0\\0.1&0.1732\end{pmatrix}\). (3) A factor with strictly positive diagonal produces a positive-definite matrix; a singular covariance matrix is not positive definite and can require a zero diagonal element in a lower-triangular factor. (4) \(\Omega_{23}=l_{21}l_{31}+l_{22}l_{32}\), obtained by summing the products across the first two columns shared by rows 2 and 3.

Clinical Biostats