Tutorials › Nonlinear Mixed-Effects Models (NLME) › Centered and Noncentered Random-Effect Parameterizations

Bayesian NLME with MCMC · Tutorial 236 of 797

Centered and Noncentered Random-Effect Parameterizations

Learn how centered and noncentered random effects represent the same NLME model but can produce very different posterior geometry and sampling behavior.

Advanced 12 min read

What You'll Learn

  • Define centered and noncentered random-effect coordinates for scalar and vector NLME models.
  • Derive the change of variables that makes the two formulations posterior-equivalent.
  • Calculate how individual-level data information affects the conditional posterior of a random effect.
  • Explain why weakly informed random effects often favor noncentering and strongly informed effects may favor centering.
  • Recognize funnel geometry and identify practical signs that a parameterization is difficult to sample.
  • Distinguish reparameterization from changing the model or its prior.

Why the Choice of Coordinates Matters

In a Bayesian NLME model, an individual parameter is linked to a population distribution. The likelihood may contain little information about a particular individual’s parameter, even when the model has many observations overall. In that setting, the random effect is largely governed by its population distribution. How that distribution is expressed in the sampled coordinates can strongly affect posterior geometry and computational efficiency.

The centered and noncentered formulations describe the same hierarchical model. Centering samples an individual parameter, or its random effect, directly. Noncentering instead samples a standardized random effect and constructs the individual quantity from the population parameters. Neither is universally preferable: the useful choice depends on how informative the individual data are relative to the between-subject variability.

Definition: In a centered parameterization, the individual random effect \(\eta_i\) is represented directly with its population-distribution parameters, for example \(\eta_i\mid\tau\sim N(0,\tau^2)\). In a noncentered parameterization, it is written as \(\eta_i=\tau z_i\), where \(z_i\sim N(0,1)\) does not depend on \(\tau\). The likelihood is expressed using the corresponding individual parameter in either formulation.

For example, if the positive individual parameter \(\theta_i\) is modeled on the log scale, a centered formulation is \(\log(\theta_i)=\mu+\eta_i\), with \(\eta_i\mid\tau\sim N(0,\tau^2)\). The noncentered formulation is \(\log(\theta_i)=\mu+\tau z_i\), with \(z_i\sim N(0,1)\). Here \(\mu\) is the population mean on the log scale and \(\tau\) is the between-subject standard deviation on that scale. The observation model and the priors on population parameters are otherwise unchanged.

Equivalence and the Change of Variables

Consider a scalar random effect and fix \(\mu\) and \(\tau>0\). In centered coordinates, the conditional prior density of \(\eta_i\) is normal. Set \(z_i=\eta_i/\tau\), or equivalently \(\eta_i=\tau z_i\). The density transformation includes the Jacobian \(d\eta_i/dz_i=\tau\). This factor is essential: it shows why the standardized effect has a unit normal prior, and why merely substituting \(\tau z_i\) into a density without transforming the measure would be incorrect.

$$ p(\eta_i\mid\tau)=\frac{1}{\tau}\phi\left(\frac{\eta_i}{\tau}\right), \qquad p(z_i\mid\tau) =p(\tau z_i\mid\tau)\left|\frac{d\eta_i}{dz_i}\right| =\frac{1}{\tau}\phi(z_i)\tau =\phi(z_i). $$

Here \(\phi\) is the standard normal density. The data likelihood in the noncentered coordinates is evaluated at the same individual effect, \(\eta_i=\tau z_i\). The resulting joint posterior is therefore the same probability distribution expressed in different coordinates, provided that the Jacobian is handled correctly. Posterior summaries for quantities such as \(\theta_i\) are unchanged after transforming draws back to those quantities; the coordinates explored by a sampler, however, can have very different geometry.

Worked Example: Transforming a Positive Individual Parameter

Suppose a hypothetical clearance parameter is modeled as \(\log(\theta_i)=\mu+\eta_i\). Let \(\mu=\log(5)\), \(\tau=0.20\), and suppose the standardized effect is \(z_i=1.5\). Find the individual clearance under the noncentered representation and express the same value in centered coordinates.

Noncentered calculation. The random effect is \(\eta_i=\tau z_i=(0.20)(1.5)=0.30\). Thus \(\log(\theta_i)=\log(5)+0.30\), and \(\theta_i=5\exp(0.30)\approx 6.749\). If clearance is measured in liters per hour, this is approximately \(6.749\) L/h.

Centered calculation. The centered effect is \(\eta_i=0.30\), so the same equation gives \(\theta_i=\exp(\log(5)+0.30)\approx 6.749\) L/h. The two parameterizations have not produced different individual clearances; they have assigned different coordinates to the same value.

How Data Information Changes Posterior Geometry

The geometry is easiest to see in a simple normal observation model. Suppose an individual-level summary \(y_i\) has likelihood \(y_i\mid\eta_i\sim N(\mu+\eta_i,s_i^2)\), and the centered random effect has prior \(\eta_i\mid\tau\sim N(0,\tau^2)\). Treat \(\mu\), \(\tau\), and the observation standard deviation \(s_i\) as fixed for the moment. This conjugate example isolates the effect of the individual data; real NLME likelihoods may be nonlinear and need not be normal.

Completing the square gives a normal conditional posterior for \(\eta_i\). Its variance is determined by the sum of prior and likelihood precision, and its mean is the precision-weighted combination of the population mean and the observation.

$$ \eta_i\mid y_i,\mu,\tau \sim N\left( \frac{\tau^2}{\tau^2+s_i^2}(y_i-\mu), \frac{\tau^2s_i^2}{\tau^2+s_i^2} \right). $$

When \(s_i\) is large compared with \(\tau\), the likelihood is relatively imprecise. The posterior for \(\eta_i\) remains close to its population prior: its standard deviation is near \(\tau\), and its mean is close to zero. In centered coordinates, the width of the random-effect distribution changes with \(\tau\). If \(\tau\) can approach zero, the centered posterior can become very narrow in \(\eta_i\) for small \(\tau\), while remaining much wider for larger \(\tau\). This changing width is the characteristic funnel-like geometry of a weakly informed hierarchical effect.

In noncentered coordinates, \(z_i\) has a standard normal prior whose scale does not change with \(\tau\). When the likelihood contributes little information about an individual, it also contributes little constraint linking \(z_i\) to \(\tau\). This often makes the posterior easier to explore. When an individual is strongly informed by data, however, the likelihood may constrain \(\mu+\tau z_i\) tightly. Changes in \(\tau\) may then require coordinated changes in \(z_i\), producing posterior dependence in the noncentered coordinates. In this regime, the centered effect can be easier to sample.

Worked Example: Comparing Weak and Strong Individual Information

Take a hypothetical observation \(y_i=1.20\), population mean \(\mu=0\), and between-subject standard deviation \(\tau=0.50\). Compare the conditional posterior for \(\eta_i\) when the observation standard deviation is \(s_i=2.00\) with the posterior when \(s_i=0.10\). The model assumptions are the normal likelihood and normal random-effect prior just stated.

Weakly informative observation. With \(s_i=2.00\), the posterior variance is \((\tau^2s_i^2)/(\tau^2+s_i^2)=(0.25)(4)/(0.25+4)=1/4.25\approx0.2353\). Its standard deviation is approximately \(0.4851\). The posterior mean is \(\{\tau^2/(\tau^2+s_i^2)\}(y_i-\mu)=(0.25/4.25)(1.20)\approx0.07059\). Thus \(\eta_i\mid y_i\) is approximately \(N(0.07059,0.2353)\). The mean is pulled only slightly from the prior mean of zero, and the posterior standard deviation remains close to the prior value \(0.50\).

Strongly informative observation. With \(s_i=0.10\), the posterior variance is \((0.25)(0.01)/(0.25+0.01)=0.0025/0.26\approx0.009615\), with standard deviation approximately \(0.09806\). The posterior mean is \((0.25/0.26)(1.20)\approx1.154\). The posterior is approximately \(N(1.154,0.009615)\). The observation now dominates the prior and pins down the individual effect much more tightly.

In standardized coordinates, these posterior means correspond to \(z_i\) means of \(0.07059/0.50\approx0.1412\) and \(1.154/0.50\approx2.308\), respectively. Their standard deviations are approximately \(0.4851/0.50=0.9702\) and \(0.09806/0.50=0.1961\). The weak-data posterior for \(z_i\) is close to its standard normal prior; the strong-data likelihood sharply restricts \(z_i\) at the fixed \(\tau\).

Vector Random Effects and Practical Choice

For a vector random effect \(\eta_i\) with covariance matrix \(\Omega\), the centered form is \(\eta_i\sim N(0,\Omega)\). A noncentered form is \(\eta_i=A z_i\), where \(z_i\sim N(0,I)\) and \(A\) is any factor satisfying \(AA^\mathsf{T}=\Omega\). The population mean component is added in the same way as in the scalar case. The particular factorization is a computational and modeling implementation detail; the essential distinction is whether the sampled effect is expressed on the population scale or on a standardized scale.

A useful qualitative comparison is the relative scale of between-subject variation and individual-level information. In the normal example, \(\tau^2/s_i^2\) compares prior variance with observation variance. A small ratio means the data are weak relative to the population distribution and often favors noncentering. A large ratio means the data are informative about the individual effect and may favor centering. This is a diagnostic heuristic, not a universal threshold: in nonlinear models, local curvature, parameter transformations, and dependence among effects also matter.

Worked Example: A Relative-Information Heuristic

Suppose two hypothetical subjects share \(\tau=0.40\), but the estimated observation uncertainty is \(s_1=1.60\) for the first and \(s_2=0.10\) for the second. Compute \(\tau^2/s_i^2\) and use it only as a qualitative guide.

For subject 1, \(\tau^2/s_1^2=0.16/2.56=0.0625\). The individual observation is imprecise relative to the between-subject scale, so a noncentered coordinate is a reasonable starting point.

For subject 2, \(\tau^2/s_2^2=0.16/0.01=16\). The observation is precise relative to the between-subject scale, so a centered coordinate may be more efficient. These ratios do not prove that either parameterization will mix well: they motivate what to try, after which chain behavior and posterior geometry should be checked.

Diagnostics, Alternatives, and Limitations

A parameterization problem may appear as slow movement in traces, persistent dependence between a population scale and individual effects, or poor exploration across the range of plausible values for \(\tau\). In centered coordinates, inspect whether individual effects contract strongly toward zero as \(\tau\) becomes small, while having much wider conditional spread at larger \(\tau\). In noncentered coordinates, check whether the data force strong dependence between \(z_i\) and \(\tau\). These patterns are evidence about the geometry, not proof that the statistical model is wrong.

The main alternative to choosing one parameterization for all subjects is to use a partially noncentered formulation, which interpolates between centered and noncentered coordinates. Another alternative is to integrate out some or all random effects when constructing the target distribution, rather than sampling every individual effect directly. These approaches change the computational representation of the model and can be useful in different settings, but they do not remove the need to check that the likelihood, population distribution, and priors are specified appropriately.

A reparameterization cannot create information about poorly observed subjects, resolve a weakly identified population variance, or correct a misspecified likelihood. Nor does noncentering guarantee improved sampling: highly informative individual data can make it inefficient. If the random-effect distribution is not normal, the standardized construction must use the appropriate base distribution and transformation; the simple normal derivation above cannot be transferred unchanged. In every case, transformations must preserve the intended prior, including any required Jacobian.

Common pitfall: “Noncentering changes the random-effects prior, so it changes the model.” This is incorrect when the transformation and its density are handled properly. Centered and noncentered forms are equivalent descriptions of the same model; they differ in sampled coordinates. Conversely, omitting a necessary Jacobian or changing the prior on a population parameter can change the model rather than merely reparameterize it.
1
Assess relative information.
Ask whether individual data are weak or strong compared with the between-subject variation. Use model-specific information, not a universal cutoff.
2
Choose a candidate coordinate system.
Consider noncentering when individual effects are weakly informed and centering when they are strongly informed.
3
Check the resulting exploration.
Look for scale-effect dependence, changing conditional widths, and poor movement through plausible posterior regions. Compare alternatives if the geometry remains difficult.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. For a scalar effect with \(\eta_i\mid\tau\sim N(0,\tau^2)\), give the noncentered representation.
  2. In the normal observation example, what happens to the posterior mean of \(\eta_i\) when the observation becomes much less precise than the population distribution?
  3. Why can centered coordinates be difficult when individual data are weak and \(\tau\) varies over a broad range?
  4. Does replacing \(\eta_i\) by \(\tau z_i\) necessarily change the model? State the condition for equivalence.
  5. Why might noncentering be less effective for a subject whose data tightly determine the individual parameter?

Solutions. (1) Write \(\eta_i=\tau z_i\), with \(z_i\sim N(0,1)\). (2) The posterior mean is \(\{\tau^2/(\tau^2+s_i^2)\}(y_i-\mu)\), which approaches zero as \(s_i^2\) becomes large relative to \(\tau^2\). (3) The centered effect’s conditional scale follows \(\tau\), creating a narrow region at small \(\tau\) and a wider region at larger \(\tau\). (4) No: it is an equivalent reparameterization when the transformed density, including the Jacobian, represents the same prior and likelihood. (5) The likelihood can tightly constrain \(\mu+\tau z_i\), forcing coordinated movement of \(z_i\) and \(\tau\) and creating strong dependence in noncentered coordinates.