Why Add Uncertainty to a Diagnostic Comparison?
A difference between an observed-data summary and a summary of imputed values is not self-interpreting. It may reflect a substantial discrepancy, ordinary sampling variability, or variation in the stochastic imputations. An uncertainty display helps show how much precision the plotted summaries have, but only if the display matches the source of uncertainty and the quantity being summarized.
For a variable \(Y\), let \(O\) denote the records where \(Y\) is observed and \(M\) the records where it is missing. With \(m\) completed datasets, write \(T^{(l)}\) for a selected summary of the imputed values in \(M\) in completed dataset \(l\), for \(l=1,\ldots,m\). A summary of observed values, such as their mean, is calculated once from \(O\). The \(m\) values \(T^{(1)},\ldots,T^{(m)}\) show how that imputed-data summary varies across the imputations.
An uncertainty bar must therefore be labelled by what it represents. A confidence interval for the observed mean is not an interval for the imputed mean. The spread of \(T^{(1)},\ldots,T^{(m)}\) is not, by itself, a confidence interval for a population quantity. A diagnostic plot can display both, but should not make them appear to have the same interpretation.
Across-Imputation Variation for a Selected Summary
For any chosen summary \(T\), calculate \(T^{(l)}\) separately in each completed dataset using the same definition and the same set of records. The average and sample standard deviation across the \(m\) values are
Here, \(\bar{T}_{\mathrm{imp}}\) is the average displayed summary across imputations, and \(s_{\mathrm{imp}}\) describes their spread. This spread can be shown as a standard-deviation bar, or the individual \(T^{(l)}\) values can be shown as points. A range or quantile band can also be shown, although extreme quantiles are unstable when \(m\) is small.
The formula uses the sample standard deviation because the \(m\) values are used to describe a distribution of possible imputed summaries. It does not make the completed datasets \(m\) independent samples of people. In particular, \(s_{\mathrm{imp}}/\sqrt{m}\) would describe precision of an average over independent draws only under appropriate independence assumptions. It is not a general-purpose standard error for the diagnostic summary. Stored imputations may also be dependent across iterations in a chain.
Worked Example: Displaying an Observed Mean and Imputed Means
Suppose, hypothetically, that a continuous measurement is observed for 25 records. Its observed mean is 10.0 units and its sample standard deviation is 4.0 units. The corresponding values among the missing records have means of 12.0, 11.0, 13.0, 12.0, and 10.0 units across five imputations. For a simple observed-mean interval, assume the observed records are independent and representative of the sampling population, with a sufficiently well-behaved distribution for a \(t\) interval to be reasonable.
The observed mean has standard error \(s/\sqrt{n}=4.0/\sqrt{25}=0.80\) units. With \(df=24\), the 95% \(t\) interval is
This interval describes uncertainty in the observed mean under the stated sampling assumptions. It does not estimate the mean among records with missing values.
For the imputed summaries, their mean is \((12+11+13+12+10)/5=11.6\) units. Their across-imputation standard deviation is
A useful display would show the observed mean of 10.0 with its \(t\) interval and the five imputed means as points, optionally with a bar showing their standard deviation. It would label those elements separately. The observed interval and the imputed spread answer different questions; their overlap or non-overlap is not a test of whether the observed and missing records have equal means.
Choosing an Uncertainty Method
The method depends on the diagnostic target. If the aim is to show precision of a summary calculated from observed records, an analytic interval or a bootstrap of observed records may be appropriate under its assumptions. If the aim is to show how a selected summary of missing values changes over stochastic imputations, display the distribution of its \(m\) values. If the aim is to quantify sampling uncertainty in a comparison involving the imputation procedure, resample the original records and rerun the imputation procedure in each resample.
Specify the statistic, which records contribute to it, and whether the goal is sampling uncertainty, across-imputation variation, or both.
Use an analytic interval or suitable bootstrap for sampling uncertainty; calculate the statistic in each imputation for across-imputation variation; use a full-pipeline bootstrap for sampling uncertainty in an imputation-based comparison.
State what each bar or band represents, check the assumptions behind it, and avoid interpreting a diagnostic display as a formal hypothesis test unless a test was specifically designed for that purpose.
For a bootstrap of observed records alone, resample those records with replacement and recalculate the observed-data statistic in each resample. This estimates sampling variability for that observed-data statistic under the bootstrap's sampling assumptions. It does not account for uncertainty in imputed values or remove possible differences between the observed and missing records.
For a bootstrap comparison that includes imputations, resample the original records as sampling units, retain each record's observed/missing pattern, rerun MICE in each bootstrap sample, and recalculate the comparison. This repeats the analysis pipeline so that the resulting distribution can reflect sampling variation and stochastic imputation, subject to the validity of the bootstrap design and imputation procedure. Resampling individual cells independently would generally break the record structure and missingness pattern.
Worked Example: Uncertainty for an Observed Proportion
In a hypothetical dataset, a binary outcome is observed for 80 records; 24 observed outcomes are successes. Assume these records are independent observations from the population relevant to the observed-data summary. The observed proportion is \(\hat{p}=24/80=0.300\). A Wilson interval is preferable to relying automatically on a symmetric normal interval, particularly when proportions are near zero or one.
For a 95% Wilson interval, use \(z=1.96\). Its center and half-width are
The interval is \(0.3092\pm0.0985=[0.211,\ 0.408]\). In context, this is a 95% confidence interval for the population proportion corresponding to the observed-data sampling process, under the stated assumptions. It is not automatically an interval for the proportion among records whose outcomes were missing.
Suppose the imputed proportions among the missing records in five hypothetical completed datasets are 0.40, 0.35, 0.45, 0.375, and 0.425. These are five summaries of missing records, not five independent samples of 80 people. Displaying them as points, along with their mean and spread, communicates across-imputation variation. The Wilson interval for the observed proportion should remain visually distinct and be labelled as an observed-data interval.
A Full-Pipeline Bootstrap for a Comparison
Sometimes the diagnostic target is a comparison statistic itself, such as the difference between an observed-data mean and an imputed-data mean. A bootstrap can be used to show how that comparison varies under repeated sampling, but it must reproduce the relevant sampling and imputation steps. The resampling unit, design, and statistic must match the data and target. If records are clustered or sampled with unequal probabilities, an ordinary record-level bootstrap may be inappropriate.
Worked Example: Bootstrapping an Observed-Imputed Mean Difference
Suppose a hypothetical diagnostic defines \(D\) as the observed mean minus the mean of imputed values among missing records. Assume the original records are independent sampling units and a record-level bootstrap is appropriate. In each bootstrap replicate, resample original records with replacement, preserve their missingness pattern, rerun MICE, and calculate \(D^*\) using the same definition. The observed-data comparison is \(D=0.70\) units. For a compact arithmetic illustration only, six bootstrap replicates produce \(-1.0,\ 0.0,\ 0.5,\ 1.0,\ 1.5,\ 2.0\) units.
Their average is \(\bar{D}^*=( -1+0+0.5+1+1.5+2)/6=0.667\) units. The bootstrap standard error, computed as the sample standard deviation of these replicates, is
This reports an illustrative bootstrap standard error of 1.08 units for the comparison procedure. Six replicates are far too few for a dependable bootstrap interval; in practice, many more replicates would be used, and a percentile or other justified interval would be calculated from their distribution. Even with many replicates, the resulting uncertainty display is not a test that \(D=0\), nor does it diagnose whether the imputation model is substantively appropriate.
Why Completed Datasets Are Not Independent Samples
Each completed dataset contains the same observed records and uses imputations for the same missing entries. The datasets are alternative completed versions of one incomplete dataset, not new samples of people. The shared observed data alone make it wrong to combine all \(m\) completed datasets into one large dataset and calculate a conventional standard error as if its records were independent. Imputed values can also be dependent across stored iterations of a chain.
The quantity \(s_{\mathrm{imp}}\) describes the spread of a selected summary across imputations. It is not the standard error of a pooled analysis estimate and should not be presented as a confidence interval without a separate justification. Conversely, a confidence interval for an observed-data summary does not show how uncertain the imputed values are. These distinctions matter even when the uncertainty bars look similar in length.
For a stable display, use enough imputations to represent the across-imputation distribution adequately, and inspect whether stored values are sufficiently separated and stable for the intended summary. If imputations are highly autocorrelated, the apparent number of stored datasets overstates the amount of independent information about that distribution. When an interval is too unstable to estimate, showing individual imputation summaries and describing their limited number is more transparent than implying precision with narrow quantile bars.
Diagnostics, Limitations, and Common Pitfalls
Before interpreting a display, check that each statistic is calculated on the intended records and scale. The observed summary and each imputed summary may refer to different subsets, so make that distinction explicit in axis labels or a caption. Check whether an analytic interval's sampling and distributional assumptions are reasonable; with sparse outcomes or strongly skewed data, a simple normal interval may behave poorly. For a bootstrap, check that the resampling unit and design are appropriate and that MICE converges and produces usable imputations in the resamples.
- Pitfall: treating \(m\) completed datasets as \(m\) independent samples. This inflates the apparent sample size and gives invalid standard errors. Calculate the chosen summary within each imputation; do not stack all completed datasets as independent observations.
- Pitfall: calling the across-imputation standard deviation a 95% confidence interval. It is a spread measure, not a confidence interval. Label it as across-imputation variation or display the imputation-specific points.
- Pitfall: using overlap of bars as a significance test. Overlap or non-overlap of intervals for different targets does not, by itself, provide a calibrated test of their difference. If inference on a difference is needed, define that target and use an appropriate inferential procedure.
- Pitfall: assuming uncertainty bars repair a poor model. A precise-looking display cannot establish that the imputation model is adequate or that the missingness process is ignorable. Uncertainty describes variation under the chosen procedure; it does not cover every model failure.
Uncertainty displays are most useful as complements to distribution comparisons and standardized distribution gaps: they prevent a visual difference from being read without regard to precision. They have limits. Sampling intervals for observed records do not directly resolve differences between observed and missing cases, and variation across imputations is conditional on the data and imputation procedure. The display should therefore support diagnosis, not replace substantive checks of the model and its assumptions.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- Five imputed means are 4, 5, 5, 6, and 5 units. What does their mean represent, and what does their standard deviation represent?
- Why is it incorrect to treat five completed datasets as five independent samples when estimating a standard error?
- An observed-data proportion is 0.20 with a confidence interval from 0.12 to 0.31. Does this interval automatically describe the proportion among records whose values were imputed?
- What essential steps should a bootstrap include if its goal is sampling uncertainty for an observed-imputed comparison?
Solutions. (1) Their mean is \(5.0\) units, the average of the selected summary over the five imputations. Their sample standard deviation is \(\sqrt{[( -1)^2+0^2+0^2+1^2+0^2]/4}=\sqrt{0.5}=0.707\) units, describing across-imputation spread, not a confidence interval. (2) The completed datasets share the same observed records and represent alternative completions of one dataset; they are not independent samples of people. (3) No. The interval concerns the observed-data proportion under its sampling assumptions, not automatically the missing-record proportion. (4) Resample original sampling units using a design-appropriate method, preserve each resampled record's missingness pattern, rerun MICE, and recalculate the same comparison in every replicate.