Why Subject Trajectories Are Shrunk
A longitudinal model separates a population-level biomarker pattern from subject-to-subject departures around that pattern. A subject with observations that appear unusually high or unusually steep may nevertheless receive a predicted subject effect closer to zero than the corresponding raw estimate. This is shrinkage: the prediction combines the subject’s data with the model’s estimate of how much subjects typically vary.
Shrinkage is not a correction that should be applied to every observed value, nor does it mean that subjects truly differ less than the data suggest. It is a feature of predicting a subject effect when the observations contain noise. The amount depends on how informative that subject’s observations are relative to the assumed between-subject and residual variation.
The Model and the Source of Shrinkage
For subject \(i\), write the longitudinal model as
Here \(\mathbf{y}_i\) is the vector of biomarker measurements, \(\mathbf{X}_i\boldsymbol{\beta}\) is the population-level mean at the subject’s observation times, and \(\mathbf{Z}_i\mathbf{b}_i\) represents the subject’s random deviation. The random effects and residual errors are independent, and residual errors are independent across subjects. The covariance matrix \(\mathbf{D}\) describes between-subject variation; \(\mathbf{R}_i\) describes within-subject residual variation. For the standard BLUP formula below, these covariance parameters are treated as known. In practice, fitted variance components are substituted.
Let \(\mathbf{r}_i=\mathbf{y}_i-\mathbf{X}_i\boldsymbol{\beta}\) be the subject’s observed outcomes after subtracting the population mean at each observation time. Under this model, the BLUP of the subject effect is
This formula makes the balance visible. The subject’s residual pattern \(\mathbf{r}_i\) provides information about their deviation, while \(\mathbf{D}\) and \(\mathbf{R}_i\) determine how much weight that information receives. If the observations are noisy or sparse, the subject-specific pattern is uncertain and the prediction leans more heavily on the assumed random-effects distribution, which is centered at zero.
A Scalar Derivation: Shrinkage of a Subject Mean
Consider the random-intercept model \(y_{ij}=\mu+b_i+\varepsilon_{ij}\), with \(b_i\sim N(0,\tau^2)\), independent errors \(\varepsilon_{ij}\sim N(0,\sigma^2)\), and \(n_i\) measurements for subject \(i\). Assume \(\mu,\tau^2,\sigma^2\) are known for this derivation. The subject’s raw mean is \(\bar{y}_i\), and its deviation from the population mean is \(\bar{y}_i-\mu\). The likelihood variance of this deviation is \(\sigma^2/n_i\), while the prior variance of \(b_i\) is \(\tau^2\).
The conditional density of \(b_i\) given the observations is proportional to the product of the normal prior density and the normal density of the subject mean. Keeping only terms involving \(b_i\), its log density is
Collecting the quadratic and linear terms in \(b_i\) gives conditional variance \(V_i=(1/\tau^2+n_i/\sigma^2)^{-1}\) and conditional mean \(V_i(n_i/\sigma^2)(\bar{y}_i-\mu)\). Therefore,
The multiplier is between zero and one when both variances are positive. The raw mean’s deviation is shrunk toward zero; equivalently, the predicted subject level \(\mu+\widehat{b}_i\) is pulled toward the population level \(\mu\). More observations reduce \(\sigma^2/n_i\), so the multiplier moves closer to one. Larger residual noise reduces it, while larger between-subject variance increases it.
Worked Example: A Noisy Subject Mean
Suppose a hypothetical biomarker study fits a random-intercept model with population mean \(\mu=8\) units, between-subject variance \(\tau^2=4\) square units, and residual variance \(\sigma^2=9\) square units. One subject has four measurements: 9, 10, 11, and 10 units. Under the model assumptions, find the raw mean and predicted subject level.
The subject’s raw mean is \(\bar{y}_i=(9+10+11+10)/4=10\) units, so the raw deviation from the population mean is \(10-8=2\) units. The shrinkage multiplier is
Thus the predicted random intercept is \(\widehat{b}_i=0.640(2)=1.28\) units, and the predicted subject level is \(8+1.28=9.28\) units. The raw mean is 2 units above the population mean; the model-based prediction is 1.28 units above it. The prediction is closer to the population mean because four noisy measurements do not establish the subject’s underlying level with certainty.
The calculation assumes that the observations share the same subject level, have independent residual errors with variance 9, and come from the stated Gaussian random-intercept model. If residual errors were serially correlated, the variance of the mean would not generally be \(9/4\), and this multiplier would not apply unchanged.
Why Raw Means Can Miss a Trajectory
A raw subject mean collapses measurements across time into one number. It can describe an average level over the observed visits, but it does not say whether the biomarker rose, fell, or remained stable. It can also be affected by which times were observed: a mean based mostly on early visits may not be comparable with one based mostly on late visits when the population trajectory changes over time.
With random intercepts and slopes, a common model is
The population trajectory is \(\beta_0+\beta_1t\). The subject’s predicted trajectory adds \(\widehat{b}_{0i}+\widehat{b}_{1i}t\). A raw slope calculated from one subject’s observations need not equal the predicted random slope: the latter is informed by both that subject’s data and the fitted distribution of random effects. The following example isolates the slope calculation by centering time and assuming independent random intercept and slope effects.
Worked Example: Two Trajectories With the Same Raw Mean
Consider hypothetical measurements at centered times \(t=-1,0,1\). Suppose the population trajectory is \(20+2t\) units, residual errors are independent with variance \(\sigma^2=4\), and the random intercept and random slope are independent with variances 9 and 1, respectively. Subject A has measurements 15, 20, and 25 units; subject B has 23, 20, and 17 units. Both raw means equal 20 units.
For these balanced, centered times, the raw slope is \(\sum_j t_j y_{ij}/\sum_j t_j^2\). Since \(\sum_j t_j=0\), the raw slope for A is \(((-1)(15)+0(20)+1(25))/(1+0+1)=10/2=5\) units per time unit. For B it is \(((-1)(23)+0(20)+1(17))/2=-6/2=-3\) units per time unit. The raw means are identical, but the observed rates of change differ sharply.
Subtract the population values \(18,20,22\) at the three times. The residual patterns are \((-3,0,3)\) for A and \((5,0,-5)\) for B. With centered times, the slope contrast is separate from the intercept contrast in this example. The slope-effect BLUP multiplier is
The raw slope deviations from the population slope of 2 are \(5-2=3\) for A and \(-3-2=-5\) for B. Their predicted random slopes are therefore \(\widehat{b}_{1A}=3/3=1\) and \(\widehat{b}_{1B}=-5/3=-1.667\) units per time unit. The predicted total slopes are \(2+1=3\) for A and \(2-1.667=0.333\) units per time unit for B. Both predicted slopes are closer to the population slope of 2 than their raw slopes are.
This calculation assumes the stated random-slope model, independent random intercept and slope, centered observation times, and independent residual errors with common variance. The equal raw means do not imply equal trajectories: the means discard the ordering of measurements over time. Conversely, the predicted slopes are not the raw observed slopes; they are model-based predictions that account for the assumed variation and measurement noise.
Reading the Prediction and Checking Its Reliability
A predicted subject trajectory should be read as a model-based estimate of that subject’s deviation from the population trajectory, not as a smoothed copy of the measurements or a directly observed biological path. The population trajectory and the subject effects must be interpreted together. For example, a positive predicted random slope means a steeper trajectory than the population slope, not necessarily an increasing biomarker: if the population slope is sufficiently negative, the subject’s total slope can remain negative.
The amount of shrinkage is a model consequence, not a direct diagnostic of whether the model fits. Before interpreting individual trajectories, check whether the assumptions that drive the prediction are plausible. Useful questions include:
- Do residuals show patterns over time that suggest the assumed residual covariance is inadequate?
- Do observed subject patterns appear to vary in ways the chosen random-effects structure cannot represent, such as substantial curvature when only random slopes are included?
- Are some subjects observed at very few times, or only within a narrow time range? Their individual slopes may be weakly informed and strongly shrunk.
- Do a small number of extreme observations dominate a subject’s apparent level or change? A Gaussian model may be sensitive to such observations.
- Are fitted variance components plausible and estimable? If between-subject slope variation is estimated near zero, slope predictions will be close to zero for all subjects.
These checks do not establish that a particular prediction is correct. They can reveal that the assumptions used to calculate it are questionable. In particular, if observation times or follow-up depend on a subject’s unobserved biomarker process, the usual mixed-model account may not adequately represent the observation process. Informative visit schedules require attention to that process rather than an assumption that shrinkage resolves it.
What Shrinkage Is—and Is Not
| Quantity or approach | What it represents | Important limitation |
|---|---|---|
| Raw subject mean or slope | A direct summary calculated from that subject’s observed measurements | Can be noisy; a mean loses timing and a slope may be unstable with few visits. |
| BLUP of a subject effect | A model-based prediction combining the subject’s data with the random-effects distribution | Depends on the fixed-effects and covariance assumptions; it is not an observed subject parameter. |
| Population-level trajectory | The fixed-effects mean pattern across the population | Does not describe how any one subject departs from that pattern. |
The raw summary is not “wrong”; it answers a different question and does not borrow information through the random-effects distribution. The BLUP can be more stable for predicting random effects under a correctly specified model, especially when a subject has few or noisy observations. But it can also conceal genuine extreme heterogeneity if the assumed random-effects distribution or covariance structure is inappropriate. Shrinkage is not a guarantee of better description in every setting.
A BLUP is a point prediction. It does not, by itself, communicate how uncertain the subject-specific estimate is. In the Gaussian model with known parameters, the conditional covariance of the random effects is
when \(\mathbf{D}\) is invertible. Sparse data generally leave more conditional uncertainty than dense, informative measurements. A plotted predicted line without uncertainty can therefore give a false impression of precision, particularly for subjects with few visits or little time spread.
Common Mistakes
- Calling shrinkage bias in the calculation. A BLUP intentionally combines the subject’s evidence with the random-effects distribution. It is a predictor under the model, not an unshrunk estimate of an independently fixed subject parameter.
- Interpreting the random effect as the total trajectory. The random intercept and slope are departures from the fixed-effects trajectory. The total predicted trajectory combines fixed and random parts.
- Using a raw mean to infer change. Subjects with equal means can have very different time patterns, as the worked example shows.
- Assuming every subject is shrunk by the same amount. The amount depends on the subject’s design and the variance structure; with multiple random effects, correlations and observation times also matter.
- Treating a shrunk line as certain. A point prediction does not show its uncertainty, and strong shrinkage can signal weak subject-specific information rather than proof of a typical trajectory.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- In a random-intercept model, what happens to the shrinkage multiplier as the number of measurements increases, holding the variance components fixed?
- A subject’s raw mean equals the population mean. What is the random-intercept BLUP under the scalar model, and what does this say about that subject’s trajectory?
- Why can two subjects with the same raw biomarker mean have different predicted trajectories?
- What is one reason a random-slope prediction may be strongly shrunk even when the subject’s raw slope is extreme?
Solutions. (1) The multiplier \(\tau^2/(\tau^2+\sigma^2/n_i)\) increases toward 1 as \(n_i\) increases, so a given raw deviation would be shrunk less. (2) The raw deviation is zero, so \(\widehat{b}_i=\{\tau^2/(\tau^2+\sigma^2/n_i)\}(0)=0\). This says the predicted random-intercept deviation is zero; it does not establish that the subject has no slope deviation if the model includes random slopes. (3) A mean discards the ordering of measurements over time. Different patterns of rise and fall can average to the same value, while the model uses the time-specific observations to predict subject deviations. (4) Few observations, little spread in observation times, high residual noise, or a small fitted between-subject slope variance can make the individual slope weakly informed relative to the random-effects distribution.