Tutorials › Optimal Design and Model-Informed Dosing › Worked Example With Random Intercept and Slope

Population Design and the Population Fisher Matrix · Tutorial 103 of 497

Worked Example With Random Intercept and Slope

Learn to build the marginal covariance and its derivatives, calculate approximate Fisher information, and recognize which measurement patterns can distinguish random-intercept-and-slope covariance parameters.

Advanced 12 min read

What You'll Learn

  • Write the marginal covariance matrix for a linear random-intercept-and-slope model.
  • Derive covariance-parameter derivatives for a given set of observation times.
  • Calculate a Fisher information entry for the random-intercept–slope covariance.
  • Identify when observation patterns provide no separate information about slope variability or random-effect correlation.
  • Diagnose confounding among covariance parameters using derivative matrices and information rank.

Why Observation Times Matter

A random intercept allows subjects to differ in their baseline level. A random slope also allows their response to change differently over time or another design variable. The two random effects may be correlated: subjects with higher baselines might, for example, tend to have steeper or shallower slopes. A design therefore needs to do more than collect repeated measurements. Its observation times must make the variance and covariance components distinguishable.

The focus here is the approximate population Fisher information for a linear random-intercept-and-slope model. It is an expected, local measure of how much a design can inform the model parameters at specified nominal parameter values. In the Gaussian linear model below, the marginal distribution is exact; using that distribution for a more general nonlinear mixed model is the first-order approximation.

Model: For subject \(i\), measurement \(j\) at design value \(t_{ij}\) is \(Y_{ij}=\beta_0+\beta_1t_{ij}+b_{0i}+b_{1i}t_{ij}+\epsilon_{ij}\). The random effects satisfy \((b_{0i},b_{1i})^\mathsf{T}\sim N(\mathbf 0,\Omega)\), independently across subjects, with \(\Omega=\begin{pmatrix}\omega_{00}&\omega_{01}\\\omega_{01}&\omega_{11}\end{pmatrix}\). Residuals are independent of the random effects and of one another, with \(\epsilon_{ij}\sim N(0,\sigma^2)\). The matrix \(\Omega\) must be positive semidefinite; for positive variances this requires \(\omega_{00}\omega_{11}-\omega_{01}^2\geq 0\).

Here \(\omega_{00}\) is the random-intercept variance, \(\omega_{11}\) is the random-slope variance, and \(\omega_{01}\) is their covariance. If both variances are positive, their correlation is \(\rho=\omega_{01}/\sqrt{\omega_{00}\omega_{11}}\). The covariance parameterization is convenient for constructing the Fisher matrix; the correlation parameterization is a transformation of it.

Marginal Covariance and Its Derivatives

For one subject, collect the measurements in a vector \(Y_i\), and let \(Z_i\) have rows \((1,t_{ij})\). Let \(X_i\) have rows \((1,t_{ij})\) for the fixed linear mean. Then \(Y_i\) is marginally multivariate normal with mean \(X_i\beta\) and covariance \(V_i=Z_i\Omega Z_i^\mathsf{T}+\sigma^2 I\). In elementwise form,

$$ (V_i)_{jk}=\omega_{00}+\omega_{01}(t_{ij}+t_{ik})+ \omega_{11}t_{ij}t_{ik}+\sigma^2\mathbf 1(j=k). $$

This expression makes the role of time explicit. The random-intercept–slope covariance contributes in proportion to the sum of the two observation times. In particular, it contributes \(2\omega_{01}t_{ij}\) to the variance at time \(t_{ij}\), and \(\omega_{01}(t_{ij}+t_{ik})\) to the covariance between two distinct measurements.

For the parameter vector \(\theta=(\beta_0,\beta_1,\omega_{00},\omega_{01},\omega_{11},\sigma^2)\), the covariance derivatives are

$$ V_{\omega_{00}}=\mathbf 1\mathbf 1^\mathsf{T},\qquad (V_{\omega_{01}})_{jk}=t_{ij}+t_{ik},\qquad (V_{\omega_{11}})_{jk}=t_{ij}t_{ik},\qquad V_{\sigma^2}=I. $$

For a multivariate normal vector with mean \(X_i\beta\) and covariance \(V_i\), the expected Fisher information has a mean block \(X_i^\mathsf{T}V_i^{-1}X_i\) and a covariance block with entries \(\frac12\operatorname{tr}(V_i^{-1}V_{i,a}V_i^{-1}V_{i,b})\), where \(V_{i,a}\) denotes the derivative with respect to covariance parameter \(a\). The mean–covariance block is zero under this Gaussian model. Independent subjects contribute additively, so the population information is the sum of the per-subject matrices.

Key result: In a Gaussian linear random-intercept-and-slope model, expected information about covariance parameters depends on the design through \(V_i\) and its derivative matrices. It is not enough to count measurements: the derivatives must vary in distinguishable ways for the parameters to be separately informed.

Why the Covariance Information Formula Holds

For one subject, the part of the log likelihood involving covariance is \(-\frac12\log|V|-\frac12(Y-X\beta)^\mathsf{T}V^{-1}(Y-X\beta)\), up to a constant. Differentiating with respect to covariance parameter \(a\), and writing \(r=Y-X\beta\), gives the score

$$ S_a=-\frac12\operatorname{tr}(V^{-1}V_a) +\frac12r^\mathsf{T}V^{-1}V_aV^{-1}r. $$

Under the stated model, \(r\sim N(0,V)\). For symmetric matrices \(A\) and \(B\), the covariance of the quadratic forms \(r^\mathsf{T}Ar\) and \(r^\mathsf{T}Br\) is \(2\operatorname{tr}(AVBV)\). Applying this identity with \(A=V^{-1}V_aV^{-1}\) and \(B=V^{-1}V_bV^{-1}\) yields

$$ \mathcal I_{ab} =\operatorname{Cov}(S_a,S_b) =\frac12\operatorname{tr}(V^{-1}V_aV^{-1}V_b). $$

Thus the trace expression is the expected information, not an observed-data calculation using particular measured outcomes. It is evaluated at specified nominal parameter values. A nonsingular information matrix is necessary for local identification of all included parameters, although good numerical conditioning also matters.

Worked Example: Two Measurements at Opposite Times

Consider a hypothetical design with two observations per subject at \(t=-1\) and \(t=1\). Use the nominal values \(\omega_{00}=1\), \(\omega_{01}=0.4\), \(\omega_{11}=0.25\), and \(\sigma^2=1\). These values satisfy the covariance constraint because \(1(0.25)-0.4^2=0.09>0\). The marginal covariance is

$$ V= \begin{pmatrix} 1+0.25-0.8+1&1-0.25\\ 1-0.25&1+0.25+0.8+1 \end{pmatrix} = \begin{pmatrix}1.45&0.75\\0.75&3.05\end{pmatrix}. $$

Its determinant is \(1.45(3.05)-0.75^2=3.86\), so \(V^{-1}=\frac1{3.86}\begin{pmatrix}3.05&-0.75\\-0.75&1.45\end{pmatrix}\). For the random-intercept–slope covariance, the derivative is \(V_{\omega_{01}}=\begin{pmatrix}-2&0\\0&2\end{pmatrix}\). Therefore,

$$ \begin{aligned} \mathcal I_{\omega_{01},\omega_{01}} &=\frac12\operatorname{tr}(V^{-1}V_{\omega_{01}}V^{-1}V_{\omega_{01}})\\ &=\frac12\left[ \frac{4(3.05^2+1.45^2-2(0.75^2))}{3.86^2} \right]\\ &=\frac12\left(\frac{41.12}{14.8996}\right) \approx 1.3799. \end{aligned} $$

This is information per subject about \(\omega_{01}\), in the units implied by that covariance parameterization. The two times produce opposite diagonal effects of the covariance: \(-2\) at \(t=-1\) and \(2\) at \(t=1\). The derivative is therefore nonzero, and this pattern can carry information about the random-effect covariance. If instead the target is \(\rho\), with the variances held fixed, then \(\omega_{01}=\rho\sqrt{\omega_{00}\omega_{11}}=0.5\rho\). The chain rule gives \(\mathcal I_{\rho,\rho}=0.5^2\mathcal I_{\omega_{01},\omega_{01}}\approx0.3450\).

Patterns That Cannot Separate the Components

A design can be informative about some combinations of parameters while failing to distinguish the individual parameters. The derivative matrices give a direct way to see this. If two parameters have proportional covariance derivatives across all subjects, their effects on the marginal covariance cannot be separated by the covariance likelihood alone. More generally, linearly dependent derivatives imply a deficient covariance information block.

Worked Example: One Observation at the Reference Time

Suppose every hypothetical subject is measured once at \(t=0\), with \(\omega_{00}=1\), \(\omega_{01}=0.2\), \(\omega_{11}=0.25\), and \(\sigma^2=0.5\). The marginal variance is \(V=1+0+0+0.5=1.5\). The derivatives with respect to \(\omega_{00},\omega_{01},\omega_{11}\) are, respectively, \(1,0,0\). Thus the per-subject information for the intercept variance is

$$ \mathcal I_{\omega_{00},\omega_{00}} =\frac12(1.5^{-1})^2 =\frac1{4.5} \approx0.2222, \qquad \mathcal I_{\omega_{01},\omega_{01}} =\mathcal I_{\omega_{11},\omega_{11}}=0. $$

At the reference time, random slope variation does not affect the observation, and the intercept–slope covariance makes no contribution. Increasing the number of subjects at this same time multiplies the available intercept-variance information but cannot create information about the other two components.

Worked Example: A Single Shared Time Confounds Components

Now suppose every subject has just one measurement, always at \(t=1\), with \(\omega_{00}=1\), \(\omega_{01}=0.2\), \(\omega_{11}=0.25\), and \(\sigma^2=0.5\). The marginal variance is \(v=1+2(0.2)+0.25+0.5=2.15\). For the covariance parameters \((\omega_{00},\omega_{01},\omega_{11})\), the derivative vector is \(d=(1,2,1)^\mathsf{T}\). The scalar-normal information is

$$ \mathcal I=\frac{1}{2v^2}dd^\mathsf{T} =\frac1{9.245} \begin{pmatrix}1&2&1\\2&4&2\\1&2&1\end{pmatrix} \approx \begin{pmatrix} 0.1082&0.2163&0.1082\\ 0.2163&0.4327&0.2163\\ 0.1082&0.2163&0.1082 \end{pmatrix}. $$

The matrix has rank one: all three derivatives describe changes in the same single observed variance. The design can inform the combination \(\omega_{00}+2\omega_{01}+\omega_{11}\), but it cannot identify the three components separately. Replicating subjects at \(t=1\) increases information in that combination without removing the confounding.

Reading a Design for Correlation Information

The covariance parameter \(\omega_{01}\) enters through sums of paired times. For two distinct measurements, its derivative is \(t_{ij}+t_{ik}\); for a measurement's own variance, the derivative is \(2t_{ij}\). Consequently, a collection of observations at varied times can generate a covariance derivative matrix that is distinguishable from the intercept-variance and slope-variance derivatives. A single shared time generally cannot do so when those components are all unknown.

A centered design with observations at \(-a\) and \(a\) has zero covariance-parameter contribution to the off-diagonal element for that pair, because \((-a)+a=0\). This does not mean the covariance is wholly uninformative: the two diagonal derivatives are \(-2a\) and \(2a\). The full matrix, including its interaction with the other covariance derivatives and the residual variance, determines the information.

If \(\omega_{00}\) and \(\omega_{11}\) are positive, the correlation scale is often easier to interpret than the covariance scale. However, its information must be obtained with the appropriate parameter transformation. Near a zero variance, \(\rho\) may be poorly defined, and standard local approximations can be unreliable at the positive-semidefinite boundary. Do not interpret a nonzero diagonal entry for \(\omega_{01}\) as proof that correlation is separately estimable when the variance components are also unknown; inspect the full information matrix.

Assumptions, Diagnostics, and Alternatives

The calculations rely on the stated Gaussian model, independent subjects, a common covariance structure as specified, known design values, and residual variance \(\sigma^2 I\). The fixed mean is linear in the same design variable. For a nonlinear mixed-effects model, the same construction is an approximation only when the response is adequately represented by its local linearization at the nominal parameter values. If residuals are serially correlated, heteroscedastic, or otherwise misspecified, the residual covariance must be changed before the information is computed.

Useful warning signs include a zero or nearly zero eigenvalue in the covariance information block, very small information for \(\omega_{01}\), or near-proportional derivative matrices. Such findings indicate that parameter combinations are weakly distinguished by the proposed times. They are design diagnostics, not proof that the model is scientifically wrong. Conversely, an apparently positive information entry alone is not a sufficient identifiability check.

A random-intercept-only model is a simpler alternative when there is no scientifically justified subject-to-subject slope variation. It avoids estimating the slope variance and covariance but cannot represent individual trajectory differences. Another alternative is to measure at more varied times: that may separate the derivative patterns, but it does not guarantee stable estimation if the times are too close or the nominal variances are near a boundary. Adding repeated observations at one time can improve precision for existing combinations, while changing the time pattern is what can create new distinctions.

Common Pitfall

  • Wrong reasoning: “There are many subjects, so the random-intercept variance, slope variance, and correlation must all be estimable.”
  • Correction: Subjects observed in the same uninformative pattern repeat the same covariance derivative structure. In the one-time example, more subjects multiply a rank-one information matrix; they do not raise its rank. Assess the derivatives and the full information matrix, not just the sample size.
Key takeaway: In a random-intercept-and-slope model, time patterns determine whether the marginal covariance responds differently to intercept variance, slope variance, and their covariance. Information about correlation requires both suitable observations and enough variation in the derivative structure to distinguish it from nuisance covariance components.

Check Your Understanding

Answer each question using the model and conventions above. Solutions follow each prompt.

  1. At a single observation time \(t=2\), what is the derivative of the marginal variance with respect to \(\omega_{01}\)? Solution: It is \(2t=4\), since the diagonal covariance contribution is \(2\omega_{01}t\).
  2. Why does observing every subject only at \(t=0\) provide no information about \(\omega_{11}\)? Solution: The slope random effect is multiplied by \(t=0\), so \(t^2\omega_{11}=0\), and the derivative of the marginal variance with respect to \(\omega_{11}\) is \(t^2=0\).
  3. For two observations at times \(t_1=-2\) and \(t_2=2\), what is the derivative of their off-diagonal covariance with respect to \(\omega_{01}\)? Solution: It is \(t_1+t_2=-2+2=0\). This zero off-diagonal derivative does not by itself imply zero information from the full covariance matrix.
  4. In the one-observation-at-\(t=1\) example, what variance combination is observed? Solution: The marginal variance contains \(\omega_{00}+2\omega_{01}+\omega_{11}+\sigma^2\). If residual variance is known, the observation can inform the first three terms only through the combination \(\omega_{00}+2\omega_{01}+\omega_{11}\).
  5. If \(\omega_{00}=4\), \(\omega_{11}=1\), and \(\omega_{01}=1\), what is \(\rho\)? Solution: \(\rho=1/\sqrt{4(1)}=0.5\). The covariance matrix is admissible because \(4(1)-1^2=3>0\).
Clinical Biostats