From a Population Distribution to a Subject-Specific Distribution
An NLME model does not treat each subject’s random effect as an independently estimated fixed parameter. Instead, it specifies a population distribution for the random effects and a model for how each subject’s observations depend on those effects. Once a subject’s data are observed, both pieces of information matter: the population distribution describes plausible effects before using that subject’s data, while the likelihood describes how compatible each possible effect is with the observed data.
The resulting subject-specific conditional distribution is the object that empirical Bayes estimates summarize. It is not the population distribution itself, and it is not simply a point estimate from fitting the subject in isolation. Its shape can contain important information that a single summary cannot show.
For a continuous random effect, Bayes’ rule gives the conditional density as
The likelihood \(p(y_i\mid\eta_i,x_i,d_i;\psi)\) describes the data model when the random effects are fixed at a candidate value. The prior \(p(\eta_i\mid x_i;\psi)\) describes the random-effects distribution implied by the population model for a subject with covariates \(x_i\). The denominator is the marginal probability density of the observed data under that model; it normalizes the numerator so the conditional density integrates to one.
A common specification is \(\eta_i\sim N(0,\Omega)\), with the covariates affecting the typical individual parameters through the fixed-effects model. More generally, the random-effects distribution may depend on covariates. In either case, the likelihood must be built from the specified observation model, including its residual error structure. The formula does not require observations within a subject to be independent; their dependence must simply be represented correctly in the likelihood.
Empirical Bayes Summaries
In practice, population parameters are estimated from the full dataset. Write their estimates collectively as \(\hat\psi\). An empirical Bayes calculation uses those estimates in place of the unknown population parameters, giving the plug-in conditional distribution \(p(\eta_i\mid y_i,x_i,d_i;\hat\psi)\). The term “empirical Bayes” reflects this combination: a population distribution estimated from data is used to form a subject-specific conditional distribution.
A point estimate can summarize that distribution in different ways. Its conditional mean averages over the distribution, whereas its conditional mode locates a value at which the density is largest. In NLME practice, “EBE” is often used for a conditional mode, but terminology and implementation can differ. A report should state which summary is being used rather than assume the label alone settles the matter.
The conditional distribution also has uncertainty and shape. A mean or mode does not report the distribution’s variance, asymmetry, or possible multiple peaks. Thus, when individual uncertainty matters, a point summary alone is incomplete.
Worked Example: Updating a Discrete Prior With One Subject’s Data
Hypothetical setup. Suppose one scalar random effect \(\eta_i\) can take values \(-1,0,1\), with prior probabilities \(0.25,0.50,0.25\). For the subject’s observed binary outcome \(y_i=1\), suppose the likelihood values \(P(y_i=1\mid\eta_i)\) are \(0.10,0.60,0.20\), respectively. These are illustrative model probabilities, not study results.
Multiply each prior probability by its corresponding likelihood. The unnormalized weights are \(0.25(0.10)=0.025\), \(0.50(0.60)=0.300\), and \(0.25(0.20)=0.050\). Their sum is \(0.375\), so the conditional probabilities are \(0.025/0.375=1/15\), \(0.300/0.375=4/5\), and \(0.050/0.375=2/15\).
The conditional mean is calculated using the exact probabilities:
The conditional mode is \(0\), because \(4/5\) is the largest conditional probability. The conditional second moment is \(1/15+2/15=1/5\), so the conditional variance is \(1/5-(1/15)^2=44/225\approx0.1956\). The data have changed the distribution from the prior probabilities, and neither the mean nor the mode gives all of its remaining uncertainty.
Why the Conditional Mean Is a Squared-Error Summary
The conditional mean is not just an arbitrary center. For a scalar random effect with a finite conditional second moment, it minimizes the conditional expected squared error among all point summaries. To see this, let \(a\) be any proposed estimate and let \(m=\mathrm{E}[\eta_i\mid y_i,x_i,d_i]\). Expand the squared error around \(m\):
The cross-term is zero because \(\mathrm{E}[\eta_i-m\mid y_i,x_i,d_i]=0\). Since \((m-a)^2\geq0\), the expected squared error is minimized at \(a=m\). This result explains one reason to use a conditional mean when squared error is the relevant loss; it does not imply that the mean is always the preferred summary for every purpose.
Worked Example: A Conditional Distribution on a Grid
Hypothetical setup. Suppose a numerical calculation evaluates four possible random-effect values, \(-1,0,1,2\). The prior probabilities on this grid are \(0.20,0.40,0.30,0.10\), and the relative likelihood values for the subject’s data are \(0.10,0.50,0.80,0.20\). Treat the likelihood values as proportional contributions to the conditional weights.
The unnormalized weights are \(0.020,0.200,0.240,0.020\); their sum is \(0.480\). The normalized conditional probabilities are therefore \(1/24, 5/12, 1/2, 1/24\). The conditional mean is \((-1)(1/24)+(0)(5/12)+(1)(1/2)+(2)(1/24)=13/24\approx0.5417\).
The mode on this grid is \(1\), since its conditional probability \(1/2\) is largest. The second moment is \(1/24+1/2+4/24=17/24\), giving variance \(17/24-(13/24)^2=239/576\approx0.4149\). This grid calculation is an approximation if the underlying random effect is continuous: its accuracy depends on how well the grid represents the relevant range and shape of the conditional distribution.
Covariates and Subject Data Both Matter
The prior distribution can vary with covariates if the model specifies such dependence. Even when the prior random-effects distribution is common across subjects, covariates can affect the likelihood through the typical parameter values and thereby affect the conditional distribution. Consequently, two subjects with similar observations need not have identical conditional distributions if their covariates, doses, sampling times, or other design features differ.
Worked Example: Different Covariate-Conditioned Priors
Hypothetical setup. Consider the same three candidate effects, \(-1,0,1\), and the same likelihood values \(0.10,0.50,0.80\) for an observed outcome. Suppose a covariate defines two groups with different prior probabilities. Group A has prior probabilities \(0.20,0.60,0.20\); Group B has \(0.60,0.30,0.10\). This example isolates the effect of the prior; real covariates may also change the likelihood.
For Group A, the unnormalized weights are \(0.020,0.300,0.160\), summing to \(0.480\). The conditional probabilities are \(1/24,5/8,1/3\), and the conditional mean is \((-1)(1/24)+(1)(1/3)=7/24\approx0.2917\).
For Group B, the weights are \(0.060,0.150,0.080\), summing to \(0.290\). The conditional probabilities are \(6/29,15/29,8/29\), and the conditional mean is \((-1)(6/29)+(1)(8/29)=2/29\approx0.0690\). The likelihood was held fixed, but the covariate-conditioned prior changed the conditional distributions and their means.
Assumptions, Diagnostics, and Alternatives
A conditional distribution is meaningful only relative to a specified model. Its calculation assumes that the prior random-effects distribution is appropriate for the subject’s covariates and that the likelihood correctly represents the observation process, including residual variability and any dependence among repeated observations. It also assumes that the fitted population parameters are adequate for the purpose of the plug-in calculation. The conditional distribution is not a model-free summary extracted from the subject’s data alone.
Useful checks include verifying that conditional probabilities or densities normalize correctly, comparing numerical calculations under finer integration grids or tighter tolerances, and examining whether the result changes materially under reasonable starting values. A sharply peaked, asymmetric, or multimodal conditional distribution deserves more attention than a single reported point can provide. Sparse or weakly informative observations may leave the conditional distribution broad and strongly influenced by the prior. Unexpected concentration at a parameter boundary, extreme sensitivity to one observation, or substantial disagreement between reasonable numerical methods can indicate model or computational problems; these signs are prompts for investigation, not automatic proof of a specific failure.
A subject-by-subject fit that ignores the population distribution is an alternative in the sense that it uses the subject’s likelihood to estimate individual parameters without this prior information. It can be unstable or poorly determined when an individual has limited data, and it answers a different estimation question. A fully Bayesian analysis instead assigns distributions to population parameters and propagates their uncertainty, rather than simply substituting \(\hat\psi\). That approach can be more comprehensive but requires additional modeling and computation. Empirical Bayes summaries are convenient, but they condition on the fitted population parameters as if those estimates were fixed; they do not automatically include uncertainty in \(\hat\psi\).
A common mistake is to call the population distribution the subject’s EBE distribution, or to interpret an EBE as the subject’s directly observed random effect. The correction is to distinguish the prior from the data-conditioned distribution, then state whether the reported EBE is its mean, mode, or another summary. A further limitation is that a good conditional summary cannot repair a misspecified population or observation model.
Check Your Understanding
Answer each question, then compare with the solutions below.
- In one sentence, distinguish \(p(\eta_i\mid x_i;\psi)\) from \(p(\eta_i\mid y_i,x_i,d_i;\psi)\).
- For a discrete random effect, the unnormalized conditional weights are \(0.10,0.30,0.10\) at values \(-1,0,1\). Find the normalized probabilities, conditional mean, and mode.
- Why can two subjects with the same observed outcome have different conditional distributions?
- What information is lost if only the conditional mode is reported?
Solutions. (1) The first is the population random-effects distribution before using the subject’s observations; the second is the distribution after incorporating the subject-specific likelihood. (2) The weights sum to \(0.50\), so the probabilities are \(0.20,0.60,0.20\). The mean is \((-1)(0.20)+(0)(0.60)+(1)(0.20)=0\), and the mode is \(0\). (3) Their covariates or design may differ, changing the prior, the likelihood, or both. (4) A mode alone does not show uncertainty, asymmetry, or additional peaks in the conditional distribution.