Tutorials › Multiple Imputation by Chained Equations (MICE) › Randomized Ordering as a Robustness Check

Fully Conditional Specification · Tutorial 141 of 497

Randomized Ordering as a Robustness Check

Compare fixed-order and randomized-order FCS runs to assess sensitivity to the sweep sequence without mistaking Monte Carlo variation for substantive disagreement.

Intermediate 11 min read

What You'll Learn

  • Define fixed-order and randomized-order FCS sweeps.
  • Explain why compatible full conditional models have an order-invariant target distribution.
  • Compare chain summaries across update schedules using Monte Carlo error.
  • Distinguish schedule sensitivity from ordinary simulation noise.
  • Identify what agreement and disagreement between schedules can and cannot establish.
  • Design a reproducible randomized-order robustness check.

Why Randomize the Update Order?

In fully conditional specification (FCS), each incomplete variable is updated from a model conditional on the other variables. A sweep consists of updating each variable once. The sequence of those updates can affect the state of the chain during a sweep: a variable updated later uses the values produced by earlier updates in that same sweep. A fixed schedule always uses the same sequence, while a randomized schedule varies the sequence.

Comparing these schedules is a sensitivity check. If important summaries from well-run fixed-order and randomized-order chains are similar relative to their Monte Carlo error, the conclusions appear less dependent on the particular sweep sequence. If they differ materially, the schedule may be interacting with the conditional models or the chain may not have explored its relevant distribution adequately. Neither outcome alone proves that the imputation models are valid or invalid.

Definition: Let \(X_1,\ldots,X_p\) denote the variables updated by FCS. A fixed-order sweep updates them in the same order, such as \(X_1,X_2,\ldots,X_p\), at every iteration. A randomized-order sweep draws a permutation \(\pi_t\) of \(1,\ldots,p\) at sweep \(t\), then updates \(X_{\pi_t(1)},\ldots,X_{\pi_t(p)}\). In either scheme, an update for \(X_j\) uses its specified conditional model given the current values of the other variables and any included fully observed predictors.

“Randomized order” should be stated precisely in an analysis plan. One option is to draw a new permutation independently at every sweep. Another is to select one random permutation at the beginning and keep it fixed for the entire run. The first varies the order within a chain; the second is simply a fixed-order run with a randomly selected schedule. They answer related but different questions. This tutorial focuses on a new random permutation at each sweep.

For a fair comparison, keep the imputation models, predictors, parameter-draw procedure, number of chains, burn-in, and iteration budget the same. Use independent random-number streams for the runs. If only the schedule changes, observed differences are easier to interpret as schedule sensitivity rather than as consequences of other design changes.

When Is Order Theoretically Irrelevant?

There is a useful benchmark. Suppose all the conditional models are the full conditionals of one coherent joint distribution for the unknown quantities being updated, conditional on the observed data. The state should include any unknown model parameters that are updated as part of the procedure. Updating one component from its full conditional leaves that joint distribution invariant. Therefore, a fixed sequence of such updates also leaves it invariant, and a mixture over possible update sequences does too.

This statement concerns invariance, not identical finite-run behaviour. Different schedules can have different autocorrelation and transient behaviour even when they share the same invariant distribution. In ordinary FCS, the specified conditional models need not be compatible with a single joint distribution. In that case, there may be no common target distribution whose invariance explains both schedules. Comparing orders is consequently informative as a diagnostic, but it is not a test of compatibility.

Key result: If every component update is a valid full-conditional update for the same joint distribution, each update kernel preserves that distribution. A composition of invariant update kernels preserves it, and a random mixture of such compositions preserves it as well. When the FCS conditionals do not arise from a common joint distribution, this conclusion is not guaranteed.

The justification is short. Write \(\pi(x)\) for the joint distribution and \(K_j(x,dx')\) for an update that changes component \(j\) using its full conditional while leaving the others fixed. Full-conditional sampling gives \(\int \pi(dx)K_j(x,dx')=\pi(dx')\). Thus \(\pi\) is invariant under each \(K_j\). For a fixed order \(\pi_0\), the sweep kernel is a composition \(K_{\pi_0(1)}\cdots K_{\pi_0(p)}\); applying invariant kernels successively leaves \(\pi\) unchanged. If the order is random with probabilities \(w_{\pi_0}\), the sweep kernel is a weighted mixture of these composition kernels, so \(\sum_{\pi_0}w_{\pi_0}\pi=\pi\). The argument establishes a shared invariant distribution under the stated compatibility and full-conditional assumptions; it does not establish that an actual finite chain has reached it.

Worked Example: Interpreting a Difference Relative to Monte Carlo Error

Consider a hypothetical imputation analysis of systolic blood pressure, measured in mmHg. Across retained iterations, the fixed-order run estimates a mean imputed value of 128.40 mmHg with Monte Carlo standard error (MCSE) 0.008 mmHg. The randomized-order run estimates 128.43 mmHg with MCSE 0.009 mmHg. For illustration, compare the difference with the MCSE of the difference, treating the two run summaries as independent.

The estimated difference, randomized minus fixed, is \(128.43-128.40=0.030\) mmHg. Under independent simulation errors, its MCSE is

$$ SE_{\mathrm{MC}}(\widehat{\Delta}) =\sqrt{0.008^2+0.009^2} =\sqrt{0.000064+0.000081} =\sqrt{0.000145} \approx 0.01204\ \text{mmHg}. $$

The descriptive ratio is therefore

$$ D=\frac{0.030}{\sqrt{0.008^2+0.009^2}} \approx \frac{0.030}{0.0120416} \approx 2.49. $$

The difference is about 2.49 estimated MCSEs. This is a signal to inspect the runs more closely; it is not a formal hypothesis test, a universal cutoff, or evidence by itself that the imputation models are wrong. In particular, the ratio should be calculated from the unrounded MCSEs, not from an intermediate denominator rounded to 0.0120.

What to Compare Across Runs

Compare summaries tied to the intended use of the imputations, not only the average of all imputed cells. Useful quantities include means or proportions of imputed values by variable, summaries within clinically relevant subgroups, and estimates and standard errors from the planned substantive analysis after pooling across imputations. For each summary, retain the run-specific estimate and an appropriate MCSE. Compare the difference with its simulation uncertainty, while also considering whether the difference matters substantively in the units of the analysis.

A simple descriptive comparison for two independent runs is \(D=|\hat{\theta}_{R}-\hat{\theta}_{F}|/\sqrt{MCSE_R^2+MCSE_F^2}\), where \(F\) and \(R\) identify fixed and randomized schedules. This calculation presumes that the run summaries are independent and that their MCSEs estimate their simulation uncertainty adequately. It is a scale for judging Monte Carlo variation, not a calibrated decision rule. With dependent runs, the covariance of the estimates must also be considered; using independent streams avoids that complication in a basic comparison.

Do not substitute the standard error of the substantive estimate for the MCSE. The standard error describes sampling uncertainty under the analysis, whereas the MCSE describes numerical uncertainty from using a finite simulation to approximate a quantity. They answer different questions.

Worked Example: Comparing a Substantive Estimate

A hypothetical study uses FCS to impute missing predictors for a linear regression of symptom score on treatment dose. The coefficient is measured in symptom-score points per 10 mg of dose. The fixed-order run gives a pooled coefficient of \(-0.184\) with MCSE 0.006; the randomized-order run gives \(-0.179\) with MCSE 0.005. Assume the run summaries are independent.

The estimated difference is \(-0.179-(-0.184)=0.005\) symptom-score points per 10 mg. Its MCSE is

$$ \sqrt{0.006^2+0.005^2} =\sqrt{0.000036+0.000025} =\sqrt{0.000061} \approx 0.00781. $$

The difference in MCSE units is \(0.005/0.00781\approx0.640\). Here, the estimated schedule difference is smaller than one MCSE. The two runs provide no clear indication of schedule sensitivity for this coefficient at the simulation precision shown. This is not proof of equivalence: a small MCSE, a sufficiently long run, and other diagnostics are still needed, and the result applies only to the summary examined.

Designing and Diagnosing the Check

A randomized-order comparison is most useful when the schedule is the principal feature changed. Run multiple independent chains under each schedule when feasible, use comparable initialization strategies, and apply the same burn-in and retained-iteration rules. Record the random seed and, for randomized runs, the realized order at each sweep. The random schedule is part of the algorithm and should be reproducible.

A practical comparison can proceed in stages:

1
Choose summaries in advance.
Specify imputation summaries and substantive estimates that matter for the analysis, along with units and subgroup definitions where relevant.
2
Hold the modeling choices constant.
Keep conditional models, predictors, parameter draws, missing-data handling, iteration counts, and analysis procedures the same across schedules.
3
Run and document both schemes.
Use separate random-number streams, retain enough information to calculate MCSEs, and save the fixed order or randomized sweep permutations.
4
Compare both uncertainty and meaning.
Assess differences relative to MCSE and judge whether their size could alter the scientific interpretation or reported conclusions.
5
Investigate disagreements.
Check implementation, chain summaries, order records, and model behaviour before deciding whether the finding reflects Monte Carlo noise or substantive schedule sensitivity.

Inspect trace plots and chain summaries alongside numerical contrasts. If a randomized run has a larger MCSE, a trace with persistent trends, or summaries that depend strongly on the initial state, the comparison is not yet a clean assessment of schedule robustness. A changing schedule can itself alter the chain's short-term behaviour. Agreement between estimated means alone can conceal disagreement in tails, subgroup patterns, or other quantities relevant to the analysis.

Worked Example: Checking That Randomization Was Implemented as Intended

Suppose a hypothetical FCS analysis updates three incomplete variables, \(X_1,X_2,X_3\), and uses a new uniformly selected permutation at each sweep. There are \(3!=6\) possible orders. In 24 recorded sweeps, the orders occur with counts 4, 3, 5, 4, 4, and 4, respectively.

The counts sum to \(4+3+5+4+4+4=24\), so every sweep is accounted for. Under uniform randomization, each order has probability \(1/6\), and its expected count over 24 sweeps is \(24/6=4\). The observed counts are close to that expectation and show that all six orders occurred. This check can reveal a coding error such as accidentally repeating one permutation. It does not prove that the random-number generator is ideal or that 24 sweeps are enough to evaluate the chain; order counts diagnose the schedule, not convergence or model adequacy.

How to Interpret Agreement and Disagreement

Substantial agreement across fixed and randomized schedules is reassuring in a limited sense: the chosen summaries do not appear highly sensitive to these schedule changes at the precision of the runs. It does not establish compatibility of the conditional models, correct specification, convergence, or validity of the missing-data assumptions. Different defective models can produce similar outputs, and both runs can share the same failure.

A difference large relative to MCSE is a reason to investigate, not an automatic reason to prefer one schedule. Check whether the difference is practically important, whether more iterations reduce the MCSE, and whether independent chains give consistent evidence. If the discrepancy persists after simulation error is reduced, report the schedule dependence and examine the conditional models and implementation. Randomizing order is not a guaranteed remedy: it can reveal sensitivity, but it cannot repair incompatible or misspecified conditional models.

FindingWhat it supportsWhat it does not establish
Similar summaries and small differences relative to MCSELimited robustness to the tested schedules for the selected summariesCompatibility, convergence, or validity of the imputation models
Differences comparable to MCSEMore simulation precision may be needed before judging schedule sensitivityThat the schedules are substantively equivalent
Persistent differences large relative to MCSEEvidence that outputs depend on schedule or that a run/implementation needs investigationWhich schedule is correct, or that randomization solves the problem

Common Mistakes and Limitations

  • Treating randomized order as a cure. Random order changes the update schedule; it does not make incompatible conditional models compatible or correct a misspecified model.
  • Calling a difference a formal significance test. A difference-to-MCSE ratio is descriptive unless a formal testing framework and its assumptions have been specified. It has no universal threshold for declaring robustness.
  • Comparing only point estimates. Differences must be interpreted alongside MCSE, relevant units, and the substantive impact of the change.
  • Changing several settings at once. If models, initialization, chain length, and order all change, a discrepancy cannot be attributed to ordering alone.
  • Assuming agreement proves convergence. Two runs can agree because both have not explored important regions, or because the compared summary is insensitive to a problem elsewhere.

The principal alternative is to compare several fixed permutations, rather than randomizing anew each sweep. This can identify whether one particular fixed schedule is unusual, but it requires separate runs for each selected order. A per-sweep randomized schedule samples among orders within a chain, but adds schedule variation and must be documented. Neither strategy replaces chain diagnostics, independent runs, or checks of the conditional models.

Key takeaway: Use randomized update ordering as a controlled robustness check: compare prespecified summaries from otherwise comparable runs, quantify simulation uncertainty, and interpret differences in context. Agreement is limited reassurance; persistent disagreement is a diagnostic signal, not a verdict.

Check Your Understanding

Answer the questions, then compare your reasoning with the solutions.

  1. What changes between a fixed-order and a per-sweep randomized-order FCS run?
  2. Under what condition does a fixed sequence of component updates preserve a common target distribution?
  3. Two independent runs estimate a summary as 5.20 and 5.16. Their MCSEs are 0.010 and 0.015. Calculate the difference-to-MCSE ratio using the absolute difference.
  4. Both schedules produce similar pooled estimates. Name one conclusion this supports and one conclusion it does not support.
  5. What should be held constant to make a schedule comparison interpretable?

Solutions. 1. A fixed-order run uses the same variable sequence in every sweep; a per-sweep randomized run selects a new permutation for each sweep. 2. Each component update must be a valid full-conditional update for the same joint distribution; then each update preserves that distribution, as do compositions of the updates. 3. The absolute difference is \(|5.20-5.16|=0.04\). The MCSE of the difference is \(\sqrt{0.010^2+0.015^2}=\sqrt{0.000325}\approx0.01803\), so the ratio is \(0.04/0.01803\approx2.22\). This is a descriptive signal, not a formal test. 4. Agreement supports limited robustness of the selected summaries to the schedules at the available precision; it does not prove compatibility, convergence, or model validity. 5. Keep the conditional models, predictors, parameter-draw procedure, chain settings, burn-in and retained-iteration rules, initialization strategy, and substantive analysis comparable, changing the schedule as the principal planned difference.

Clinical Biostats