Why Random-Effect Predictions Are Easy to Misread
A fitted random effect is a model-based summary of information about a group, not a direct measurement of that group’s underlying deviation. Confusing an estimate with a known truth can make uncertainty disappear from an interpretation. Another common error is to read the random effect as though it were an outcome, such as a probability or rate. In a generalized linear mixed model (GLMM), the random effect generally shifts the linear predictor; the response mean is obtained only after applying the inverse link.
The distinction matters especially when groups have few observations, when the response distribution is binary or otherwise non-Gaussian, and when predictions are requested for a group that has not contributed data. The same fitted number can be useful for describing a group’s estimated deviation while still being uncertain, scale-specific, and inappropriate as a direct response prediction.
For the usual Gaussian random-effects model, \(b_j\sim N(0,D)\). The zero mean describes the model’s group-level distribution, while \(D\) describes its variability and any correlations among components. The conditional mode depends on the observations from group \(j\), the model, and the fitted parameters. The fitted-parameter qualification matters: uncertainty in \(\hat b_j\) conditional on parameters is not the whole story if the parameters themselves are uncertain.
Mistake 1: Treating a Conditional Mode as an Observed Truth
The mode \(\hat b_j\) is a point estimate. Even when it is the most supported single value under the conditional distribution, other values may also be plausible. It is therefore incorrect to write that the group’s true random effect “is” \(\hat b_j\), or to treat the estimate as if it were measured without error. The earlier material on posterior uncertainty for group effects and intervals for latent effects provides the relevant uncertainty perspective: a point prediction should not replace the conditional distribution or an interval when uncertainty is the question.
Worked Example: A Shrunk Estimate Is Not the Group’s Known Effect
Suppose, hypothetically, a Gaussian random-intercept model has group effects \(b_j\sim N(0,1)\), residual variance \(4\), and four observations in a group. The group’s observed mean residual from the fixed-effects part of the model is \(2\). For this calculation, treat the model parameters as known.
In this Gaussian setting, the conditional distribution of \(b_j\) is normal, so its mode equals its conditional mean. The estimate is the weighted average of the group’s mean residual and the prior mean of zero:
Here \(\tau^2=1\), \(\sigma^2=4\), and \(n_j=4\). Thus the fitted group effect is \(1\), not the raw group residual mean \(2\). The conditional variance is
This variance shows that the estimate is not known exactly, even under the simplifying assumption that all model parameters are known. The value \(1\) is a model-based estimate of the group’s latent deviation; it is not evidence that the unobserved true deviation equals exactly \(1\).
In non-Gaussian GLMMs, the conditional distribution of \(b_j\) need not be symmetric or normal. Its mode and mean can differ, and the mode alone does not describe its spread or shape. A reported point estimate can still be useful, but its interpretation should remain “estimated conditional mode” (or another explicitly named prediction), not “observed group effect.”
Mistake 2: Ignoring Shrinkage
Random-effects predictions are typically pulled toward the population-level value of zero compared with the corresponding unpooled group estimate. This is called shrinkage or partial pooling. It occurs because the model combines group-specific evidence with the random-effects distribution. When a group has little information, the distribution contributes relatively more; when a group has more informative data, its estimate can move further from zero.
Shrinkage is not an arbitrary correction and does not imply that groups truly have identical effects. It reflects uncertainty: extreme estimates based on limited data are less strongly supported than extreme estimates based on substantial data. In the Gaussian example, the factor multiplying the raw mean residual was \(1/2\). With the same variance assumptions but \(n_j=16\), that factor would be \(1/(1+4/16)=0.8\), so the group data would receive greater weight.
A practical warning sign is comparing group estimates from a mixed model with unpooled estimates and concluding that the model has “biased” groups toward zero. The estimates are intentionally pooled under the stated model. A different concern arises if the random-effects distribution, link, or other model assumptions poorly represent the data; shrinkage does not make model misspecification harmless.
Mistake 3: Reading a Random Effect as a Response Prediction
A random effect is on the linear-predictor scale. Its units and interpretation depend on the link and on which component of \(b_j\) is being considered. For a random intercept in a logistic model, \(b_j\) is a shift in log odds, not a probability. Exponentiating that shift gives an odds multiplier, but still does not give the group’s event probability. A response-scale prediction also requires the fixed-effects contribution and any relevant covariates.
Worked Example: A Log-Odds Shift Is Not an Event Probability
Suppose, hypothetically, a binary-outcome model has a fixed-effects linear predictor of \(-1\) for a particular covariate pattern and a group-specific random-intercept conditional mode of \(0.8\). The fitted linear predictor for that group and pattern is
The group effect \(0.8\) is a shift of \(0.8\) log-odds units relative to the fixed-effects predictor. Its corresponding odds multiplier is
The plug-in conditional probability for this group and covariate pattern is instead
Thus \(0.8\) is neither the probability nor an 80% event rate. It is a group-specific contribution to the linear predictor. The value \(0.4502\) is a plug-in response-scale prediction using the conditional mode; it does not, by itself, account for uncertainty in that mode.
There is also a distinction between applying the inverse link to a point estimate and averaging predictions over uncertainty. For a known group, a plug-in prediction uses \(g^{-1}(x^{\mathsf T}\hat\beta+z^{\mathsf T}\hat b_j)\). A prediction that averages over the conditional distribution of \(b_j\) instead uses an expectation of \(g^{-1}(x^{\mathsf T}\beta+z^{\mathsf T}b_j)\). With a nonlinear inverse link, these are generally not equal. The choice depends on the prediction target; neither expression should be silently described as the other.
Mistake 4: Assigning a Data-Informed Estimate to an Unseen Group
For an unseen group, there are no group-specific observations to update the random-effects distribution. It is therefore misleading to present a group-specific estimate as though it were learned from that group’s data. Under a symmetric zero-mean Gaussian random-effects distribution, the distribution’s mode is zero. That value can serve as a central or typical latent effect under the model, but it is not a data-informed estimate of the unseen group’s actual effect.
Prediction for a new group depends on the target. A response prediction conditional on a specified hypothetical random effect uses that effect explicitly. A prediction for a randomly drawn new group instead averages over the random-effects distribution. These targets differ, and with a nonlinear link, setting \(b=0\) and averaging over \(b\) generally produce different response means.
Worked Example: New-Group Probability Requires the Target to Be Stated
Suppose, hypothetically, a logistic random-intercept model has fixed-effects predictor \(x^{\mathsf T}\beta=1\), and new-group intercepts satisfy \(b_{\mathrm{new}}\sim N(0,1)\). The plug-in prediction at the central value \(b_{\mathrm{new}}=0\) is
This is a prediction for the central random-effect value, not the average event probability across new groups. For a randomly selected new group, the model-averaged probability is
The integral can be evaluated numerically; a five-point Gauss-Hermite approximation gives approximately \(0.697\). It is smaller than \(0.7311\) because averaging the inverse-logit over random intercepts is not the same as evaluating it at the average intercept. Neither number is an estimate based on observations from a particular new group. The first conditions on \(b_{\mathrm{new}}=0\); the second targets the average response probability for a group drawn from the specified random-effects distribution.
Checks, Alternatives, and Limitations
Before interpreting a random-effect prediction, check what quantity was computed, which data informed it, and what scale it uses. In particular, verify whether it is a conditional mode, a conditional mean, or a response-scale prediction; whether the group contributed observations; and whether the prediction conditions on a point estimate or averages over latent-effect uncertainty. For binary or count outcomes, also check that a probability or rate has not been confused with a log-odds or log-rate effect.
There are several legitimate alternatives, each answering a different question. An unpooled group summary describes observed data without the same model-based shrinkage. A conditional mode gives a point estimate for a group with observed data. A conditional distribution or interval communicates uncertainty about its latent effect. A response-scale plug-in prediction translates fitted values for a specified group and covariate pattern, while integration over the random-effects distribution targets an average over possible groups. For a genuinely unseen group, the model’s random-effects distribution—not a group-specific data update—supplies the group-level uncertainty.
None of these alternatives automatically resolves model limitations. A point prediction omits uncertainty unless it is explicitly incorporated; estimates may also be affected by limited information, an inadequate random-effects distribution, or uncertain fitted parameters. Predictions for unseen groups depend on the assumed distribution of group effects and should not be interpreted as identifying the particular effect that a new group will have.
State whether the quantity concerns a latent effect, a response for a specified group, or an average response across groups.
For a GLMM, distinguish the random-effect contribution on the linear-predictor scale from the response mean after applying the inverse link.
Determine whether the group supplied data, whether shrinkage is relevant, and whether a point estimate is being mistaken for a known value.
Check Your Understanding
Answer each question, then compare your reasoning with the brief solutions.
- A group’s conditional mode is \(-0.4\) in a logistic random-intercept model. Is its event probability \(-0.4\)? Explain.
- Why can a group with few observations have a random-effect prediction closer to zero than its raw group deviation?
- For a new group under a zero-mean Gaussian random-effects model, is the prior mode a data-informed estimate of that group’s latent effect?
- Why need not the average response across randomly drawn groups equal the response prediction evaluated at random effect zero?
Solutions. (1) No. The value \(-0.4\) is a log-odds shift; a probability also requires the fixed-effects predictor and inverse-logit transformation. (2) The model combines group-specific evidence with the random-effects distribution, so limited group information allows greater shrinkage toward zero. (3) No. It is the prior mode under the model and uses no observations from that group. (4) The inverse link is nonlinear, so in general \(E[g^{-1}(\eta+Z)]\ne g^{-1}(\eta+E[Z])\); the average over groups and the prediction at \(Z=0\) are different targets.