Tutorials › Multiple Imputation by Chained Equations (MICE) › Monte Carlo Error in FCS Chain Summaries

Fully Conditional Specification · Tutorial 135 of 497

Monte Carlo Error in FCS Chain Summaries

Estimate how much an FCS chain summary may vary because of finite simulation, and separate that numerical error from uncertainty due to the missing data.

Intermediate 10 min read

What You'll Learn

  • Define Monte Carlo error for a scalar summary of an FCS chain.
  • Estimate the standard error of a chain average using effective sample size or long-run variance.
  • Calculate Monte Carlo error from concrete chain summaries and autocorrelation.
  • Combine Monte Carlo errors from independent chains under stated assumptions.
  • Distinguish simulation noise from uncertainty about missing values.
  • Recognize common calculation errors and signs that an estimate may be unreliable.

Why Monte Carlo Error Matters

An FCS run produces a finite sequence of completed-data states. A statistic calculated at each iteration—such as the mean of an imputed variable or a regression coefficient—will usually fluctuate. Some fluctuation reflects the variation represented by the FCS procedure; some reflects the fact that we have simulated only finitely many iterations. Monte Carlo error quantifies the latter: how imprecisely the finite chain estimates its long-run summary because of simulation noise.

This is a numerical-accuracy question, not a question about whether the missing values are known. Even if the chain is sampling appropriately, its estimated average can change slightly when the random simulation is repeated. Conversely, a small Monte Carlo error does not establish that the conditional models are appropriate, that the chain has explored its target adequately, or that the resulting imputations represent missing-data uncertainty well.

Definition: Let \(S_t\) be a scalar summary calculated from the FCS state at iteration \(t\), for \(t=1,\ldots,n\). The chain average is \(\bar{S}=n^{-1}\sum_{t=1}^n S_t\). Its Monte Carlo standard error (MCSE) estimates the standard deviation of \(\bar{S}\) across repeated simulations from the same target, conditional on the analysis setup. It measures simulation error in estimating the long-run mean of \(S_t\).

The phrase “same target” is important. The interpretation assumes that the chain is sampling from a stable target distribution and that the summary has a finite variance. In practice, an MCSE calculation also relies on the retained sequence being representative of that target, and on the dependence in the chain being estimated adequately. These conditions cannot be guaranteed by the MCSE formula itself.

Estimating the Error of a Chain Average

Iterations of an FCS chain are generally dependent. If adjacent summaries are positively autocorrelated, a sequence of \(n\) iterations contains less information about its long-run average than \(n\) independent draws would. Let \(\gamma_k\) denote the lag-\(k\) autocovariance of a stationary sequence \(S_t\), with \(\gamma_0=\operatorname{Var}(S_t)\). The variance of the chain average is

$$ \operatorname{Var}(\bar{S}) = \frac{1}{n}\left[ \gamma_0+ 2\sum_{k=1}^{n-1} \left(1-\frac{k}{n}\right)\gamma_k \right]. $$

This expression follows by expanding the variance of the sum. There are \(n\) variance terms, each equal to \(\gamma_0\), and for each lag \(k\), there are \(n-k\) pairs of observations separated by that lag. The covariance terms occur twice, once for each order of a pair. Thus

$$ \operatorname{Var}(\bar{S}) = \frac{1}{n^2}\left[n\gamma_0+ 2\sum_{k=1}^{n-1}(n-k)\gamma_k\right], $$

which is the stated formula after factoring out \(1/n\). For a sufficiently long stationary chain with summable autocovariances, the finite-sample weights approach 1 at each fixed lag. The resulting long-run variance is \(\gamma_0+2\sum_{k=1}^{\infty}\gamma_k\).

In practice, the autocovariances must be estimated from the finite chain. A common approach estimates the long-run variance directly, using a suitable truncation or smoothing rule for the autocovariance sequence. Another uses the effective sample size from FCS iterations. In the usual mean-summary setting, if \(s_S\) is the sample standard deviation of the \(S_t\) values and \(ESS\) is the effective sample size, then the corresponding MCSE estimate is \(s_S/\sqrt{ESS}\). This uses the effective sample size to account for autocorrelation; it is not generally correct to substitute the raw iteration count for \(ESS\).

Key formula: For a chain average, an estimate of the Monte Carlo standard error is $$ \widehat{MCSE}(\bar{S})=\frac{s_S}{\sqrt{ESS}}. $$ Equivalently, using an estimate \(\hat{\tau}\) of the integrated autocorrelation time, \(\widehat{MCSE}(\bar{S})=s_S\sqrt{\hat{\tau}/n}\), where \(ESS\) is approximately \(n/\hat{\tau}\).

These formulas are for the error of an average. They do not automatically give the MCSE of every possible chain summary. For example, an estimated quantile is not a chain average of the original summary values. Its MCSE requires a method appropriate to quantiles, such as a quantile-specific variance estimate or a carefully designed batch method. The target statistic and the MCSE method must match.

Worked Example: MCSE From an Effective Sample Size

Suppose a retained FCS chain has \(n=400\) iterations. At each iteration, \(S_t\) is the mean of a particular imputed measurement, in milligrams per litre. The chain average is \(2.31\) mg/L, the sample standard deviation of the \(S_t\) values is \(0.24\) mg/L, and the effective sample size is estimated as 64. Find and interpret the MCSE.

The assumptions for using the calculation are that this is a scalar chain summary whose long-run mean is the target, the retained chain is reasonably representative of a stable target, and the effective sample size adequately reflects its dependence. Using the effective-sample-size formula,

$$ \widehat{MCSE}(\bar{S}) = \frac{s_S}{\sqrt{ESS}} = \frac{0.24\text{ mg/L}}{\sqrt{64}} = \frac{0.24}{8}\text{ mg/L} = 0.030\text{ mg/L}. $$

Thus, the finite-chain estimate of the long-run mean has an estimated simulation standard error of \(0.030\) mg/L. If the same simulation setup were repeatedly run, the chain-average estimates would typically vary on roughly this scale, subject to the assumptions and the accuracy of the MCSE estimate. This is not a confidence interval for a scientific population mean, and it is not an estimate of how uncertain the missing measurements are.

If one incorrectly treated all 400 iterations as independent, the calculation would instead be \(0.24/\sqrt{400}=0.012\) mg/L. That is substantially smaller because the effective sample size is only 64, not 400.

Several Independent Chains

When independent chains are available and each targets the same long-run distribution, their chain averages can be combined. If \(K\) chains have estimates \(\bar{S}_j\) and estimated MCSEs \(e_j\), the equal-weight average is \(\bar{S}_{\text{all}}=K^{-1}\sum_{j=1}^K\bar{S}_j\). If the chain-average errors are independent, its estimated MCSE is \(\sqrt{\sum_{j=1}^K e_j^2}/K\). This calculation describes simulation precision only. It does not establish that the chains reached the same target or explored it adequately; noticeable disagreement among chain averages deserves investigation rather than being hidden by pooling.

Worked Example: Combining MCSEs Across Independent Chains

Three independent FCS chains summarize an imputed outcome mean in score points. Their chain averages are \(4.02\), \(4.08\), and \(3.99\) points. Their estimated MCSEs are \(0.04\), \(0.05\), and \(0.03\) points. Assuming the chains are independent and target the same distribution, calculate the equal-weight combined average and its MCSE.

The combined estimate is

$$ \bar{S}_{\text{all}} = \frac{4.02+4.08+3.99}{3} = \frac{12.09}{3} = 4.03\text{ points}. $$

Under independence, the variance of a sum is the sum of its variances. Therefore, the variance of the average is \((0.04^2+0.05^2+0.03^2)/3^2\), giving

$$ \widehat{MCSE}(\bar{S}_{\text{all}}) = \frac{\sqrt{0.04^2+0.05^2+0.03^2}}{3} = \frac{\sqrt{0.0050}}{3} \approx 0.0236\text{ points}. $$

The combined estimate has an estimated MCSE of about \(0.024\) score points. The three chain averages are relatively close, but this calculation alone does not verify that they explored the same target. It also does not incorporate any additional uncertainty suggested by a failure of the chains to agree.

Autocorrelation and the Size of Simulation Error

An equivalent way to understand the adjustment for dependence is through the integrated autocorrelation time, \(\tau=1+2\sum_{k=1}^{\infty}\rho_k\), where \(\rho_k\) is the lag-\(k\) autocorrelation of \(S_t\), when the sum is well-defined. For a long chain, \(ESS\) is approximately \(n/\tau\). Positive autocorrelation makes \(\tau\) larger than 1 and the effective sample size smaller than \(n\). The uncertainty in a chain average is therefore larger than the independent-draw calculation would suggest.

Worked Example: MCSE Using Integrated Autocorrelation Time

For a chain summary measuring the mean of an imputed biomarker, suppose \(n=500\), the sample standard deviation of the iteration summaries is \(2.4\) micromoles per litre, and the estimated integrated autocorrelation time is \(\hat{\tau}=6\). Assume a stable, representative chain and a reliable estimate of \(\hat{\tau}\). Calculate the approximate MCSE.

First, the approximate effective sample size is \(500/6\approx83.3\). Directly using the autocorrelation-time formula gives

$$ \widehat{MCSE} = s_S\sqrt{\frac{\hat{\tau}}{n}} = 2.4\sqrt{\frac{6}{500}}\text{ micromoles/L} = 2.4\sqrt{0.012}\text{ micromoles/L} \approx 0.263\text{ micromoles/L}. $$

If the 500 summaries were incorrectly treated as independent, the estimate would be \(2.4/\sqrt{500}\approx0.107\) micromoles/L. The larger dependence-adjusted value reflects that 500 correlated iterations contain information comparable to only about 83 independent observations for estimating this average.

Monte Carlo Error Is Not Missing-Data Uncertainty

In multiple imputation, variation among completed-data estimates can reflect uncertainty about the unobserved values. Monte Carlo error is different: it describes how much finite simulation perturbs an estimate of a chain’s long-run summary. A useful way to keep the concepts separate is to ask two questions:

  • Missing-data uncertainty: How much would the inferential estimate vary because different plausible values for the missing data are represented?
  • Monte Carlo error: How much would the estimated summary vary because this particular FCS simulation used a finite, dependent sequence?

A chain can have substantial variation in imputed values and still estimate its long-run average precisely if it has enough effective information. A chain can also have little apparent variation while estimating the average imprecisely—for example, if summaries move slowly and are highly autocorrelated. These quantities answer different questions and should not be substituted for one another.

Diagnostics, Alternatives, and Limitations

An MCSE is only as trustworthy as the chain and the dependence estimate from which it is calculated. Check that the summary being monitored is the one whose average you intend to report, that it has no obvious unresolved drift, and that the autocorrelation estimate is based on enough information to be stable. Comparing independent chains can reveal discrepancies that a single-chain MCSE does not show. A small computed MCSE cannot repair a chain that has not adequately represented its target.

Different estimators of Monte Carlo error have different practical strengths. The \(s_S/\sqrt{ESS}\) calculation is compact and interpretable when an appropriate effective sample size is available for a chain average. Direct long-run-variance estimators use the observed autocovariance structure but can be sensitive to how that structure is truncated or smoothed. Batch-means methods divide a chain into batches and estimate variance from the batch summaries; they can be useful when the chain is long enough for the batches to capture dependence, but poor choices of batch size can make the estimate unstable. None of these methods removes the need to inspect the underlying chain summaries.

Common pitfall: It is wrong to divide the chain’s standard deviation by \(\sqrt{n}\) merely because there are \(n\) iterations. That formula assumes independent observations. For dependent FCS iterations, use an autocorrelation-adjusted estimate such as \(s_S/\sqrt{ESS}\), and interpret it as simulation error in the chain summary—not as uncertainty in the missing values or the scientific parameter.

The MCSE is an estimate, not a guarantee of accuracy. In short chains, autocorrelation estimates can be noisy; slow movement or other unrepresentative exploration can make the estimated effective sample size misleading. The usual standard-error interpretation is also most direct for averages under conditions that support a central limit approximation. For nonlinear summaries, use a method designed for that summary rather than applying the mean formula mechanically.

Check Your Understanding

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

  1. A chain has \(n=900\), summary standard deviation \(0.60\), and \(ESS=100\). What is the MCSE of its chain average?
  2. Why is the MCSE of a chain average not an estimate of uncertainty about the missing values?
  3. A researcher reports \(s_S/\sqrt{n}\) as the MCSE despite strong positive autocorrelation. What is the problem, and what should be used instead?
  4. Two independent chains target the same distribution and have MCSEs \(0.06\) and \(0.08\). What is the MCSE of their equal-weight average?

Solutions. (1) \(\widehat{MCSE}=0.60/\sqrt{100}=0.060\), in the units of the summary. (2) MCSE measures finite-simulation error in estimating a chain’s long-run summary; uncertainty about missing values concerns the variation represented by plausible imputations. They are distinct sources of uncertainty. (3) The calculation treats dependent iterations as independent and will generally understate error when autocorrelation is positive. Use an autocorrelation-adjusted estimate, such as \(s_S/\sqrt{ESS}\) or a long-run-variance estimate. (4) Independence gives \(\sqrt{0.06^2+0.08^2}/2=\sqrt{0.0100}/2=0.050\), in the summary’s units.

Clinical Biostats