- Introduced by
- Stuart Geman & Donald Geman (Gibbs sampler, 1984); robustness extensions developed through 1990s Bayesian literature
- Year
- 1984–1993
- Type
- Robust MCMC sampler
- Family
- Bayesian / computational
What does it do?
Robust Gibbs sampling is a Markov chain Monte Carlo approach that applies the Gibbs sampler to a heavy-tailed, Student-t error model instead of a Normal one.
Through a scale-mixture representation, each observation receives a latent weight, which reduces the influence of extreme observations on posterior inference. Its robustness depends on the model specification and on outliers being the main departure from the assumed errors.
The intuition behind the method
Standard Gibbs sampling under a Normal likelihood can be pulled far from the bulk of the data by one large outlier. Robust Gibbs sampling gives each observation a latent scale variable, drawn from a Gamma distribution. Observations that deviate strongly from the model receive small weights, which reduces their pull on the regression coefficients and the variance. The sampler cycles through the parameters and the weights in the usual Gibbs fashion. Because each conditional is a standard distribution in the core linear case, no accept/reject step is needed for those blocks.
History
Geman and Geman (1984) introduced the Gibbs sampler, in an image-restoration setting. Geweke (1993) applied a Student-t linear model with independent disturbances, using the equivalence to a scale mixture of normals and a Gibbs sampler to carry out the computations, with an application to macroeconomic time series. The robust Gibbs sampler on this page follows that construction.
When to use it
Use robust Gibbs sampling when the data contain suspected outliers, or when the error distribution is known or believed to be heavier-tailed than the Normal, and you want the down-weighting to be learned by the model rather than by deleting cases. It suits continuous responses modelled with a linear-Gaussian structure, where the full conditionals stay available. Do not use it as a default replacement for standard Gibbs sampling when outliers are not a concern, because the latent weights add parameters and can slow convergence. It is also a poor fit when the extreme values reflect a different data-generating process, such as a distinct subpopulation, in which case a mixture model is the more natural choice.
Limitations and considerations
- Adding latent weights lambda_i per observation increases model dimension and typically slows mixing relative to a Normal Gibbs sampler.
- The Student-t parameterisation assumes a symmetric, unimodal error distribution; asymmetric outlier patterns may require skewed-t or mixture alternatives.
- Estimating nu alongside other parameters can lead to identifiability issues in small samples.
- When the data contain structured non-outlier heavy-tailedness (e.g., heteroscedasticity), robust Gibbs sampling treats it as outliers and may yield biased estimates.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Down-weights outlying observations through per-observation latent scale variables, so no manual case deletion is needed.
- Keeps full Bayesian uncertainty quantification: posterior distributions, credible intervals, and posterior predictive draws.
- In the linear-Gaussian case, the augmentation makes every full conditional a standard distribution, so no Metropolis accept/reject step is needed for those blocks.
- Estimating the degrees-of-freedom parameter nu lets the level of robustness be set by the data rather than fixed in advance.
- Each latent weight is an ordinary Gibbs block, so the extension adds to a standard Gibbs sweep rather than replacing it with a different algorithm.
Applications
- Bayesian linear and multilevel regression with suspected outliers in social science or economic data.
- Financial return modelling, where heavy-tailed error distributions such as the Student-t are a common choice.
- Clinical and biomedical studies where measurement anomalies or extreme lab values are common.
- Robust state-space modelling and signal extraction where innovations may occasionally be extreme.
- Continuous ecological measurements with extreme observations driven by rare events.
How it works
How it works
Replace the Gaussian likelihood with a Student-t likelihood parameterised by location, scale, and degrees-of-freedom nu. The t-distribution has heavier tails than the Normal, so an extreme observation receives a small but positive probability under the model, rather than the near-zero probability the Normal assigns.
Formula
y_i \sim t_{\nu}(\mu_i, \sigma^2)Use the Gaussian scale-mixture representation: a t_nu observation can be written as a Normal with variance sigma-squared divided by a Gamma(nu/2, nu/2) latent weight lambda_i. This converts the non-conjugate t-likelihood into a conditionally Normal hierarchy, in which the parameters have standard full conditionals.
Formula
y_i \mid \lambda_i \sim \mathcal{N}(\mu_i,\, \sigma^2 / \lambda_i),\quad \lambda_i \sim \mathrm{Gamma}(\nu/2,\, \nu/2)Derive the full conditional distributions for the regression coefficients, the scale parameter, and each latent weight lambda_i, given all other unknowns and the data. Under the augmentation, the coefficients have a Normal conditional and the scale parameter has an Inverse-Gamma conditional, both given the weights. Each latent weight has a Gamma conditional whose shape depends on nu and whose rate depends on that observation's squared standardised residual. These can be sampled directly. The conditional for nu does not take a standard form, so it needs a separate Metropolis-Hastings or grid-based step, in line with the general Metropolis-Hastings framework described by Chib and Greenberg (1995).
Formula
p(\theta_j \mid \theta_{-j}, \boldsymbol{\lambda}, \mathbf{y})Execute a Gibbs sweep: cycle through each unknown in turn, drawing a fresh sample from its full conditional. The latent weights lambda_i are drawn alongside the model parameters, so the effective influence of outlying cases is re-evaluated at every iteration.
Run multiple chains, monitor R-hat and effective sample size, and inspect trace plots to check mixing and stationarity. Robust models often mix more slowly than their Normal counterparts, especially when nu is estimated, so longer warm-up and more post-warm-up draws may be needed.
Common pitfalls
- Fixing nu at a very small value (e.g., 1–2) imposes extreme heaviness regardless of the data and can over-down-weight legitimate observations.
- Skipping convergence diagnostics after adding latent variables; R-hat alone may miss slow mixing in high-dimensional augmented spaces.
- Conflating robustness with accuracy: a robust model that fits outliers poorly still returns a posterior — inspect posterior predictive checks to verify fit.
- Using robust Gibbs sampling for non-outlier heavy-tailedness (heteroscedasticity, skewness) and misinterpreting the latent weights as outlier indicators.
Frequently asked questions
How does robust Gibbs sampling differ from standard Gibbs sampling?
Standard Gibbs sampling typically operates under Normal likelihoods, which makes the posterior sensitive to outliers. Robust Gibbs sampling replaces the Normal with a Student-t likelihood, implemented through per-observation latent Gamma scale weights. Each sweep samples these weights alongside the model parameters, which reduces the influence of extreme observations without any other change to the algorithm.
How do I choose the degrees-of-freedom parameter nu?
Placing a prior on nu and estimating it from the data gives a data-adaptive level of robustness, and is preferred when the sample size allows. Fixed values such as nu = 4 or nu = 7 are conventional choices rather than optimal ones. They impose one level of tail heaviness regardless of the data, so check how sensitive the posterior is to the chosen value.
Can I identify which observations are outliers from the latent weights?
The latent weights lambda_i describe how strongly the model down-weights each observation: a smaller posterior weight means a larger reduction in that observation's influence. They are a down-weighting scale, not a classification, so they do not give a probability that an observation is an outlier. Judge the fit with posterior predictive checks, and use the weights as a guide to which cases drive the inference.
Is robust Gibbs sampling the same as a robust Metropolis-Hastings algorithm?
No. Both combine robustness with MCMC, but Gibbs sampling draws each block from its full conditional, whereas Metropolis-Hastings proposes moves that are accepted or rejected. Chib and Greenberg (1995) show that Gibbs sampling can be treated as a special case of Metropolis-Hastings with block-at-a-time scans. Under a t-likelihood with data augmentation, the linear-Gaussian blocks have closed-form conditionals, so no acceptance step is needed for them. When full conditionals are not available, robust Metropolis-Hastings or Hamiltonian Monte Carlo variants are used instead.
Does robust Gibbs sampling work for generalised linear models (GLMs)?
The tractable data augmentation applies directly to linear-Gaussian models. For GLMs such as logistic or Poisson regression, the likelihood is non-Gaussian and the full conditionals are not closed-form even after augmentation. A Metropolis step, or Polya-Gamma augmentation for binary outcomes, is then typically added, so the resulting sampler is a hybrid rather than a pure Gibbs sampler.
Related methods
Sources
Geweke, J. (1993). Bayesian treatment of the independent Student-t linear model. Journal of Applied Econometrics, 8(S1), S19–S40.
Open DOI referenceChib, S. & Greenberg, E. (1995). Understanding the Metropolis-Hastings algorithm. The American Statistician, 49(4), 327–335.
Open DOI reference