Bayesian Model Averaging with Measurement Error

Statistics
Introduced by
Hoeting, Madigan, Raftery, Volinsky (BMA); Carroll, Stefanski and colleagues (ME correction)
Year
1999–2006
Type
Bayesian ensemble model with covariate error correction
Family
Bayesian / computational

What does it do?

Bayesian model averaging with measurement error (BMA-ME) averages predictions across competing regression models, each weighted by its posterior probability, while treating one or more predictors as noisy proxies of latent true values rather than exact measurements.

Its posterior therefore carries both model uncertainty and covariate measurement error into inference and prediction. It extends standard Bayesian model averaging by adding a measurement-error layer to every candidate model.

The intuition behind the method

Standard BMA weights each candidate model by how well it fits the data, so predictions do not rest on one chosen model. If a predictor is only a noisy proxy for the quantity of interest, the data used to weight the models are themselves distorted: the observed slope is pulled toward zero (attenuation) and the evidence for each predictor is misstated. BMA-ME treats the true predictor as an unobserved quantity and estimates it jointly with the model weights and parameters. This can reduce attenuation. When the error variance is uncertain or weakly identified, however, the corrected slope inherits that uncertainty and can be as sensitive to the variance prior as to the data, so the resulting uncertainty bands are only as credible as the error model.

History

BMA-ME combines two established strands. Model averaging over competing regression models, with each model weighted by its posterior probability, is set out in the 1999 Statistical Science tutorial by Hoeting, Madigan, Raftery and Volinsky. Correction for measurement error in regression is treated in the monograph by Carroll, Ruppert, Stefanski and Crainiceanu, now in its second edition (2006). Its title refers to nonlinear models, and the latent-predictor approach used here follows the error-correction principles it sets out. Assembling these components into a single model-averaging scheme is not credited to one originator.

When to use it

Choose BMA-ME when several predictor subsets are plausible and at least one predictor is a proxy, such as a self-report or an assay with known error, so that its observed values differ from the quantity the research question concerns. The error variance should be estimable from a validation sub-sample, repeated measures, a reliability study or a defensible prior. Do not use it when the predictors are measured precisely, because standard BMA is then sufficient. Do not use it when one model clearly dominates, since the added latent-variable layer then adds computation without changing conclusions. It is also unsuitable when the model space is too large for MCMC model search, or when the error structure cannot be specified, because an incorrect error model can add more distortion than it removes.

Limitations and considerations

  • Needs a full error model (distribution and variance) for every noisy predictor; the additive Normal form is an assumption, and the variance is rarely known precisely.
  • The error variance is often not identified from outcome data alone, so corrected estimates depend on external information or on the chosen prior.
  • Summing over the model space while integrating over latent true predictors requires MCMC or approximate methods; cost rises quickly with the number of candidate predictors, which is why stochastic model search replaces full enumeration for large sets.
  • Results rest on the classical additive error assumption, W = X + U with U independent of X and of the outcome given X; the method does not correct errors that depend on the true value or on the outcome.
  • Berkson-type error, in which the true value scatters around the assigned or observed value (X = Z + U), needs a different error model and is not handled by this specification.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Can reduce attenuation of slope estimates for predictors observed with classical additive error, rather than inheriting the bias that standard BMA carries.
  • Model uncertainty and measurement uncertainty enter the same posterior predictive distribution, so credible intervals reflect both sources.
  • Posterior inclusion probabilities are computed from the error-corrected marginal likelihood, not from the noisy observed predictors.
  • External error information (from a validation sub-sample, repeated measures or a reliability study) can be placed directly in the error model.
  • Averages over predictor subsets, so it does not require choosing one error-corrected predictor set in advance.

Applications

  • Dietary-intake regressions in which self-reported intake is the noisy predictor, several covariate sets are plausible, and a validation sub-sample supplies the reporting error variance.
  • Clinical prediction from biomarker assays with documented laboratory variability, where several candidate predictor sets compete.
  • Exposure regressions that combine monitoring data with model-based estimates, provided the error variance of each source can be stated.

How it works

How it works

1

Each candidate model receives a prior probability before the data are considered. The model space is usually the set of predictor subsets in a linear or generalised linear model. A uniform prior treats all subsets equally, whereas a complexity-penalising prior gives less weight to larger models.

Formula
p(M_k) \text{ assigned over model space } \mathcal{M} = \{M_1, \ldots, M_K\}
2

The observed predictor W is modelled as the true predictor X plus additive error U. The error is usually taken as Normal, with a variance that is known, estimated from validation data or repeated measures, or set from an assumed reliability ratio. Without such external information the error variance is weakly identified and must be given a prior.

Formula
W_i = X_i + U_i, \quad U_i \sim \mathcal{N}(0, \Sigma_u)
3

For each candidate model, the latent true predictors and that model's own parameters are integrated out, giving the probability of the outcome Y given the observed predictors W. Integrating out the latent predictors needs a prior on the true values as well as the error model, because their distribution given W is formed from both. The integral has no closed form in general, so it is handled by MCMC or variational inference.

Formula
p(Y \mid W, M_k) = \int p(Y \mid X, \theta_k, M_k)\, p(X \mid W)\, p(\theta_k \mid M_k)\, dX\, d\theta_k
4

Bayes' rule updates each model's prior probability with its marginal likelihood, giving posterior model probabilities. Models that fit the error-corrected data better receive higher weight.

Formula
p(M_k \mid Y, W) \propto p(Y \mid W, M_k)\, p(M_k)
5

Predictions are formed by averaging each model's predictive distribution, weighted by its posterior model probability. Posterior means, credible intervals and inclusion probabilities for each predictor then reflect both model uncertainty and covariate noise.

Formula
p(\tilde{y} \mid Y, W) = \sum_{k=1}^{K} p(\tilde{y} \mid Y, W, M_k)\, p(M_k \mid Y, W)

Common pitfalls

  • Fixing the error variance at a single value and reporting the resulting intervals as if the variance were known, which understates total uncertainty.
  • Applying the classical additive error model to differential error, where the error depends on the true value or on the outcome; the corrected estimates are then not valid.
  • Reading posterior inclusion probabilities as definitive when the error model or the candidate predictor set is misspecified.
  • Omitting a sensitivity analysis across plausible error variances, even though the corrected coefficients may move substantially across that range.
  • Using the method when predictors are measured precisely or one model clearly dominates, where the extra computation buys little.

Frequently asked questions

How is the measurement error variance set when no validation data exist?

Without a validation sub-sample or repeated measures, the error variance is generally not identified from outcome data alone. Two options are common: set it through a reliability ratio taken from prior studies, or give it a prior and let the posterior reflect that uncertainty. Either way, a sensitivity analysis across a range of plausible variances is needed, because the corrected estimates depend on this choice.

What is attenuation bias and why does BMA-ME help?

Classical measurement error in a predictor biases its regression coefficient toward zero. Standard BMA ignores this and inherits the bias in its averaged estimates. BMA-ME replaces each observed predictor with a latent true value and models the error, which can reduce the bias, though the reduction depends on the error variance being credibly specified.

Is BMA-ME the same as errors-in-variables regression?

Errors-in-variables regression corrects for measurement error within a single fixed model. BMA-ME applies the same kind of correction to each model in a set and then averages over those models, so it adds a model-averaging layer.

How many models does BMA-ME typically explore?

With a moderate number of predictors, the full set of 2^p candidate models can be explored by Markov chain Monte Carlo model composition (MC3), which samples models rather than enumerating them. For larger model spaces, stochastic search variable selection or spike-and-slab priors focus computation on high-probability models.

What software implements BMA-ME?

No package implements the combined method directly. Stan (via rstan or cmdstanr) is the most flexible option, because the joint model for the measurement error and the outcome must be written out by hand. Standard model averaging over predictor subsets can be carried out with the R packages BAS and BMA, within the framework described by Hoeting et al. (1999); neither package is documented as modelling measurement error, so the error model has to be added separately. The simex and mecor packages provide measurement error correction for single regression models; using them inside a model-averaging workflow requires a custom implementation.

Related methods

Sources

  1. Hoeting, J. A., Madigan, D., Raftery, A. E., & Volinsky, C. T. (1999). Bayesian model averaging: A tutorial. Statistical Science, 14(4), 382-417.

    Open publication reference
  2. Carroll, R. J., Ruppert, D., Stefanski, L. A., & Crainiceanu, C. M. (2006). Measurement Error in Nonlinear Models: A Modern Perspective (2nd ed.). CRC Press.

    ISBN: 978-1584886334