Graph
Thinning

🎯Thinning

NEW

Selecting every k-th draw from a correlated sample sequence to reduce autocorrelation and storage demands.

DESCRIPTION

Thinning keeps every k-th sample from an MCMC chain to lower autocorrelation and disk usage. While historically common, modern practice often discourages thinning because it discards information. Analysts assess effective sample size and autocorrelation to decide if thinning is beneficial. Proper diagnostics include trace plots and autocorrelation functions. Alternatives include running longer chains, better proposals, or reparameterization. In many cases, improved mixing is preferable to thinning.

ALTERNATIVE DEFINITIONS

Stan Reference Manual

Thinning refers to saving only every nth iteration of a Markov chain.

Defines thinning in MCMC context and cautions on its necessity.

Source

MRC Biostatistics Unit (BUGS)

Thinning is the process of keeping only one iteration in every k to reduce autocorrelation and storage.

Explains purpose and implementation in BUGS ecosystems.

Source

PyMC Documentation

Thinning discards intermediate draws, retaining every k-th sample; it is usually unnecessary when using modern samplers.

Notes modern guidance against thinning in most scenarios.

Source

Markov Chain Monte Carlo Autocorrelation Effective Sample Size Burn-in Gibbs Sampling Metropolis-Hastings Chain Mixing Thompson Sampling

COMPETING TERMS

Subsampling Decimation

KNOWLEDGE AREAS

Mathematics Data Science AI Testing & Validation

TARGET AUDIENCE

Data Scientist AI Engineer MLOps Engineer Data Analyst

EXTERNAL SOURCES

TOP QUESTIONS

When is Thinning useful in MCMC?

Primarily to reduce storage or I/O costs, not for statistical efficiency. Improve mixing instead when possible.

Category: Requirements

What is a common misunderstanding about Thinning?

That thinning always improves effective sample size. It often discards information without reducing bias.

Category: Misunderstanding

How should you choose the k for Thinning?

Base it on autocorrelation and storage constraints. Prefer minimal thinning unless storage is limiting.

Category: Example

What are alternatives to Thinning?

Use better samplers, tune step sizes, reparameterize models, or run longer chains to improve mixing.

Category: Alternatives

How does Thinning affect diagnostics?

It can obscure autocorrelation patterns and mislead diagnostics. Inspect full chains before thinning.

Category: Risks

Usually not. Modern samplers already reduce autocorrelation; thinning wastes samples.

Category: Opinion

What is currently a hot topic around Thinning?

Using rank-normalized R-hat and ESS for robust convergence checks without thinning.

Category: Topic

How do you manage storage without Thinning?

Compress chains, store summaries, or downsample post-hoc for visualization while keeping full samples for analysis.

Category: Management

Does Thinning reduce bias?

No, thinning does not address model or sampler bias; it only changes sample frequency.

Category: Misunderstanding