Why Read Parameter Traces?
An SAEM run produces a sequence of parameter estimates, not just a final estimate. Looking at that sequence helps reveal whether estimates appear to settle, continue moving, alternate between values, or change abruptly. This matters because a plausible-looking final estimate can conceal an unstable path, while ordinary iteration-to-iteration variation does not by itself show that the algorithm has failed.
A trace is a plot or ordered list of an estimated quantity against SAEM iteration. For interpretation, know which quantity is plotted, its units and parameterization, whether each point is recorded before or after the M-step, and where the gain schedule changes. Traces are most informative when the model, data, estimation settings, and iteration definitions remain consistent throughout the run.
For example, if \(\beta\) is a fixed effect and \(\omega^2\) is a random-effect variance, their traces are not interchangeable with traces of the standard deviation \(\omega\). Since \(\omega=\sqrt{\omega^2}\), equal changes on the two scales have different meanings. Always read the axis label and estimation output before interpreting the shape.
What a Settling Trace Does—and Does Not—Show
A trace that moves substantially early and then fluctuates within a comparatively narrow band is often described as settling or stabilizing. A trace with a persistent direction of movement may indicate drift; repeated swings between high and low values may indicate oscillation. A sharp step is an abrupt change. These are descriptions of the displayed sequence, not formal diagnoses of the cause.
SAEM updates are stochastic: latent-effect simulation contributes randomness to the sequence of estimates. Therefore, a parameter trace need not move monotonically, even when the run is behaving reasonably. Conversely, a nearly flat trace is not sufficient evidence that the estimates are accurate, that the desired solution has been reached, or that the model is appropriate. Interpret trace shape in context and alongside other run information.
Comparing Changes on a Meaningful Scale
The visual impression of movement depends on units and axis limits. A change of 0.1 may be large for a parameter typically near 0.05 and small for one typically near 100. A simple numerical companion to the plot is the iteration-to-iteration change,
When a parameter has a meaningful nonzero reference scale \(s_j\), a scaled change can be reported as \(\Delta_{j,k}/s_j\). The reference scale must be stated; it might be a scientifically relevant scale or a typical magnitude chosen for comparing changes. A relative change \(\Delta_{j,k}/|\theta_{j,k-1}|\) is inappropriate when the previous value is zero or close to zero, and can exaggerate movement in that situation.
This comparison has a simple justification. If a parameter sequence converges to a finite limit \(\theta_j^*\), then both \(\theta_{j,k}\) and \(\theta_{j,k-1}\) approach \(\theta_j^*\), so their difference approaches zero:
This is a necessary implication for a convergent sequence, not a sufficient test: small increments can occur temporarily during drift, or because the display hides changes. A trace should therefore be inspected over a sufficiently long range, with readable axes and units, rather than judged from a few final iterations alone.
Fixed Effects, Variance Components, and Objective Quantities
Fixed-effect traces show estimates of population-level model parameters, such as a typical clearance or an effect of a covariate. Interpret each in its natural units and in the model’s parameterization. A fixed effect on a log scale, for instance, is not a direct change in the original measurement scale.
Variance-component traces require extra care. Variances are nonnegative, and an estimate near zero may be on a boundary of the parameter space. A variance trace can appear compressed near zero on a broad linear axis. If the software displays a log variance or log standard deviation instead, the trace can move by equal amounts on a multiplicative rather than additive scale. State which quantity is plotted; do not infer a variance from a standard-deviation trace without squaring it.
An objective-related trace might show an observed-data log-likelihood estimate or another reported objective quantity. In an NLME model, the observed-data log-likelihood involves integrating over the latent random effects. If the displayed values are estimated using simulation, they can vary because of that estimation as well as because the parameter estimates change. SAEM’s stochastic updates also mean that one should not presume that every iteration must improve a displayed objective. Check what the software reports and how it computes the quantity before comparing values.
Parameter and objective traces answer related but different questions. Parameter traces show which estimates are changing; objective-related traces show how a reported fit criterion behaves. A relatively flat objective trace can coexist with movement in parameters, particularly when different parameter combinations give similar fit. A changing objective trace does not by itself identify which parameter caused the change.
Worked Example: A Fixed-Effect Trace That Appears to Settle
Suppose a hypothetical SAEM run estimates a population typical clearance, \(\beta_{\mathrm{CL}}\), in litres per hour. At iterations 96 through 100, the reported estimates are 5.10, 5.04, 5.08, 5.06, and 5.07 L/h. The estimates are recorded after each complete iteration, and no model or run setting changes in this interval.
The successive changes are:
The values move in both directions, and the last four estimates lie between 5.04 and 5.08 L/h, a range of 0.04 L/h. That is a narrow band relative to the approximately 5 L/h estimate, so this short segment is consistent with apparent settling. It is not proof of convergence: five values cover a limited interval, and the trace could move again later. The appropriate conclusion is that the displayed segment shows small, nonmonotone changes, not that the estimate is known to be final or correct.
Worked Example: Distinguishing Drift From Oscillation
In a hypothetical run, a random-effect standard deviation \(\omega_{\mathrm{CL}}\), measured in L/h, has the following values at iterations 41 through 45: 0.18, 0.22, 0.26, 0.30, and 0.34 L/h. A second parameter’s values over the same iterations are 1.20, 1.30, 1.20, 1.30, and 1.20, in its model’s stated units.
For \(\omega_{\mathrm{CL}}\), each of the four successive changes is \(0.04\) L/h. The total increase is \(0.34-0.18=0.16\) L/h. The pattern is consistently upward across this interval, so it is evidence of drift in the displayed segment, not stabilization. The segment alone does not tell us whether this movement will continue.
For the second parameter, the changes are \(+0.10,-0.10,+0.10,-0.10\) in its stated units. The alternating signs and repeated values indicate oscillation over these iterations. Its range is \(1.30-1.20=0.10\). A small range does not erase the alternating pattern; whether the amplitude is material depends on the parameter’s scale and scientific interpretation. Both traces merit inspection over a longer interval before drawing conclusions about the run.
Recognizing Abrupt Changes and Using Complementary Evidence
An abrupt change is a sharp movement relative to the trace immediately before and after it. Possible explanations include a change in the algorithm’s operating phase, a boundary-related update, an unstable numerical step, an unexpected change in inputs, or an error in how estimates were recorded. The plot identifies when the change occurred; it does not identify its cause. Check the iteration log, parameter constraints, gain schedule, software messages, and saved estimates around that iteration.
The following hypothetical example shows why a parameter trace and an objective trace should be read together, without assuming that either settles the diagnosis.
Worked Example: A Sudden Parameter and Objective Change
A hypothetical run reports a random-effect variance \(\omega^2\) in units of (L/h)\(^2\), followed by an observed-data log-likelihood estimate. At iterations 70, 71, and 72, the pairs are (0.040, \(-218.4\)), (0.042, \(-218.1\)), and (0.090, \(-224.7\)). At iteration 72 the variance changes by \(0.090-0.042=0.048\) (L/h)\(^2\), more than doubling from its preceding value: \(0.090/0.042\approx2.14\). The reported log-likelihood estimate changes by \(-224.7-(-218.1)=-6.6\).
The coincident jump is a reason to investigate iteration 72, not proof that the variance update caused the objective change. First verify that the values refer to the same data, model, parameterization, and objective calculation, and inspect the iteration record for warnings or a change of phase. If the objective is simulation-estimated, its change also needs to be interpreted in light of how that estimate was obtained. The conclusion supported by these three points is limited: both reported quantities changed sharply at the same iteration.
Trace plots are a quick visual diagnostic, but they have limitations. Axis truncation can make small changes look dramatic, while a wide axis can hide them. A long trace can compress early behavior; a short window can make a transient look persistent. Plot related parameters in separate, clearly labelled panels when their units differ, and record whether variance components are shown as variances, standard deviations, or transformed values.
Parameter traces complement rather than replace other evidence. A reported objective can add information about fit, while the trace of a particular parameter shows how that estimate moved. Neither should be confused with the sequence of quantities used internally by the stochastic approximation. If a parameter trace remains puzzling, inspect the run records and other model diagnostics rather than trying to resolve every question from its plot alone.
Common Mistakes
- Calling a flat segment proof of convergence. Small changes over a short window can occur during a pause or temporary plateau. Describe what is visible and inspect the broader run.
- Expecting every SAEM update to improve the objective. Stochastic updates and simulation-based objective estimates can fluctuate. First establish exactly which objective quantity is plotted and how it was evaluated.
- Comparing unlike parameter scales. A change of 0.01 has no universal interpretation. State units and use a meaningful scale when comparing movement.
- Confusing variance with standard deviation. If the trace is \(\omega\), it is not a trace of \(\omega^2\). Read the label and transform only when appropriate.
- Explaining a jump from the plot alone. A trace reveals the timing and size of a change, not its cause. Check run records and computation settings around the jump.
Check Your Understanding
Answer each question using the trace principles in this tutorial.
- A fixed effect has estimates 2.0, 2.1, 2.0, 2.1 over four successive iterations. What pattern is visible, and what can you conclude?
- A variance trace changes from 0.010 to 0.020. What is the absolute change, and what is the ratio of the new estimate to the old estimate?
- An objective trace is flat, but a fixed-effect trace continues to move. Does the flat objective prove that all parameters have stabilized?
- A parameter and reported objective both jump at one iteration. What is a defensible conclusion, and what should be checked next?
Solutions. (1) The successive changes are \(+0.1,-0.1,+0.1\), so the segment shows oscillation. It does not establish whether the pattern continues or whether its magnitude is important on that parameter’s scale. (2) The absolute change is \(0.020-0.010=0.010\); the ratio is \(0.020/0.010=2\), so the estimate doubled. (3) No. A flat objective trace can coexist with parameter movement and is not proof of parameter stabilization or convergence. (4) The two reported quantities changed abruptly at the same iteration; the plot alone does not establish cause. Check the iteration log, parameterization, constraints, run settings, and objective calculation around that iteration.