Why Add a Residual Draw?
Regression predictions can preserve the relationship between an outcome and its predictors, but a prediction is a conditional average, not an individual outcome. If every missing outcome is replaced by its predicted average, all residual variation among those outcomes disappears. Adding a random residual draw can restore that part of the spread, provided the regression and residual model describe the data adequately.
The focus here is the variance of the completed outcome. The key comparison is between deterministic regression imputation, which fills in the fitted prediction, and stochastic regression imputation, which adds a draw representing the outcome's residual variation. This comparison concerns residual spread; it does not imply that one random completed dataset captures all uncertainty about missing values or fitted model parameters.
Variance Under the Idealized Model
First consider an idealized setting in which the conditional mean \(m(X)\) and residual variance \(\sigma^2(X)=\operatorname{Var}(Y\mid X)\) are known. Let \(R=1\) indicate that \(Y\) is observed and \(R=0\) that it is missing. Define \(q(X)=P(R=1\mid X)\), the probability of observation at a given predictor value. Assume missingness is conditionally independent of \(Y\) given \(X\), the MAR condition for this setup, and that \(q(X)>0\) in the predictor ranges of interest.
For stochastic imputation to restore the intended spread, the residual draw must represent the correct conditional residual distribution. For example, under a homoscedastic normal regression model, one could draw \(\varepsilon^*\sim N(0,\sigma^2)\) independently for each missing case, conditional on its predictors. If the residual variance changes with \(X\), the draw must reflect that changing variance rather than use one common variance without justification.
For a missing case, deterministic imputation puts all its completed values at \(m(X)\). Among cases with the same \(X\), only the observed fraction \(q(X)\) retains residual variation. Stochastic imputation instead gives missing cases residual variation as well. The law of total variance makes the comparison precise.
For either method, the conditional mean is \(m(X)\). With deterministic imputation, the conditional variance is \(q(X)\sigma^2(X)\): observed cases retain their residual variation, while missing cases contribute none. With correctly drawn residuals, the conditional variance is \(\sigma^2(X)\), since both observed and imputed cases have the modeled residual distribution. Thus the idealized marginal variances are
Subtracting the first expression from the second gives the marginal variance difference attributable to restoring residual spread:
The difference is nonnegative. It is larger where missingness is more common and where the conditional residual variance is greater. Under these ideal assumptions, the stochastic completed outcome has the same marginal variance as the full-data outcome, while the deterministic completed outcome is short by the residual variance removed among missing cases. The result is about the population distribution under the model; finite samples and estimated regressions need not reproduce it exactly.
Worked Variance Comparisons
Worked Example: A Constant Missing Fraction and Residual Variance
Suppose a hypothetical outcome has \(\operatorname{Var}\{m(X)\}=100\) units squared and a constant conditional residual variance of \(25\) units squared. Assume 40% of outcomes are missing at every value of \(X\), so \(q(X)=0.60\). The model is correctly specified, and missingness is conditionally independent of the outcome given \(X\).
The stochastic-imputation variance is the variance in the fitted means plus the full residual variance:
For deterministic imputation, only the observed fraction retains residual variation:
The difference is \(125-115=10\text{ units}^2\), also calculated as \((1-0.60)(25)=10\text{ units}^2\). In this idealized example, adding residual draws restores the 10 units squared of marginal variance lost when the missing 40% were replaced by predictions alone.
Worked Example: Different Missingness and Residual Variance Across Groups
Consider a hypothetical population with two predictor groups, each making up half the population. Their fitted means are 10 and 20 units, and their conditional residual variances are 4 and 16 units squared. The observation probabilities are 0.75 in the first group and 0.25 in the second. Assume the regression means and residual variances are correct, and that within each group missingness is conditionally independent of the outcome.
The variance of the fitted means is
For stochastic imputation, the average residual variance is
so the marginal variance is \(25+10=35\text{ units}^2\). For deterministic imputation, the retained residual contribution is
The deterministic marginal variance is therefore \(25+3.5=28.5\text{ units}^2\). The gap is \(35-28.5=6.5\text{ units}^2\), matching the missing-case calculation:
The second group contributes most of the variance gap because it combines a high missing fraction with a high residual variance. A single overall missing percentage would not show that pattern.
What One Random Draw Looks Like in Data
The variance result describes a distribution under specified assumptions. In a finite dataset, a particular set of residual draws can make the completed sample variance larger or smaller than the deterministic sample variance. Random imputation restores residual variability in expectation under the model; it does not force every completed dataset to have the exact full-data variance.
Worked Example: A Finite Completed Dataset
In a hypothetical dataset, four observed outcomes are 8, 12, 18, and 22 units. Their regression predictions are 10, 10, 20, and 20 units, giving observed residuals \(-2, 2, -2,\) and \(2\) units. Two outcomes are missing, with predictions of 10 and 20 units. Compare deterministic imputation with a stochastic draw that assigns residuals \(-2\) and \(+2\) units to those two missing cases.
Deterministic imputation gives the completed values \(8, 12, 18, 22, 10, 20\). Their mean is \(90/6=15\) units. The sum of squared deviations from 15 is
The sample variance is \(166/(6-1)=33.2\text{ units}^2\). With the stated residual draws, the imputed values are 8 and 22 units, so the completed values are \(8, 12, 18, 22, 8, 22\). Their mean is also 15 units, and the sum of squared deviations is
The stochastic completed sample variance is \(214/5=42.8\text{ units}^2\). This draw increased the sample variance by \(42.8-33.2=9.6\text{ units}^2\). A different valid draw could produce a smaller increase or even a decrease. The calculation illustrates a single realization, not a guarantee about every imputed sample.
Assumptions, Diagnostics, and Limits
The variance restoration argument depends on the conditional model, not merely on adding random numbers. In practice, regression parameters and residual variance are estimated from observed cases, so the ideal formulas are a reference rather than an exact description of every dataset. Before interpreting a stochastic imputation as restoring spread, check the following:
- Conditional mean: the regression should represent the relationship between the outcome and relevant predictors. Residual patterns against fitted values or predictors can reveal curvature, omitted structure, or unequal variance.
- Residual distribution: the draw method should reflect the residual distribution, including heteroscedasticity if present. A normal draw with a single variance can be inappropriate when residual spread changes across predictor values.
- Missingness and support: the conditional independence assumption and adequate observed cases across the predictor range matter. If some predictor patterns have no observed outcomes, their residual behavior cannot be learned directly from those data.
- Draw implementation: every missing outcome needs a residual draw with the intended variability. Replacing draws by zero, or adding noise with a variance chosen without regard to the residual model, does not have the stated justification.
A common mistake is to conclude that because residual draws restore some marginal spread, stochastic regression imputation has solved the uncertainty problem. It has not: this calculation restores residual variation under a specified model. If regression coefficients are treated as fixed, the procedure does not also draw alternative plausible coefficients. Nor does random variation alone correct a misspecified conditional mean, a poor residual distribution, or unsupported predictor patterns. A single random completed dataset can therefore have an imperfect variance and cannot represent all uncertainty about the missing values.
| Approach | What is inserted for a missing outcome? | Implication for residual spread |
|---|---|---|
| Deterministic regression | The fitted mean \(m(X)\) | Missing cases have no residual variation around their predictions. |
| Stochastic regression with residual draws | \(m(X)+\varepsilon^*\) | Can restore residual spread when the conditional model and draws are appropriate. |
| Mean imputation | A common overall mean | Does not preserve case-specific regression predictions and removes variation among imputed values. |
The comparison is about marginal variance, not a guarantee that every other feature of the completed data is correct. Stochastic residual draws can address the particular loss of conditional residual spread caused by deterministic predictions, but the model and missingness assumptions still require scrutiny.
Check Your Understanding
Answer each question, then compare your reasoning with the solution provided.
-
A hypothetical model has \(\operatorname{Var}\{m(X)\}=40\text{ units}^2\), constant residual variance \(9\text{ units}^2\), and observation probability \(q=0.80\). What are the idealized stochastic and deterministic marginal variances, and what is their difference?
Solution: Stochastic variance is \(40+9=49\text{ units}^2\). Deterministic variance is \(40+(0.80)(9)=47.2\text{ units}^2\). Their difference is \(49-47.2=(1-0.80)(9)=1.8\text{ units}^2\). -
If \(q(X)=1\) for every \(X\), what does the variance-difference formula imply?
Solution: Substituting \(q(X)=1\) gives \(E\{[1-1]\sigma^2(X)\}=0\). There are no missing outcomes to lose residual variation through deterministic imputation. -
Why can one stochastic completed dataset have a lower sample variance than its deterministic counterpart?
Solution: Residual draws vary randomly. A particular set may place imputed outcomes closer to the completed-sample mean, reducing the sample variance. The restoration result concerns the model-based distribution, not a fixed direction of change for every realized dataset. -
In the two-group example, why did the second group contribute more to the variance gap?
Solution: Its contribution was \((0.5)(1-0.25)(16)=6\text{ units}^2\), compared with \((0.5)(1-0.75)(4)=0.5\text{ units}^2\) for the first group. The second group had both more missingness and greater residual variance.