Skip to content

Methods · Bayesian statistics · MCMC diagnostics

Heidelberger-Welch Stationarity and Half-Width Diagnostic

The Heidelberger-Welch diagnostic checks whether an MCMC chain looks stationary and whether it is long enough. It tests the cumulative sum of the chain against a Brownian bridge, discarding growing portions of the start until the test passes, and then checks whether the mean of the retained draws is estimated precisely relative to its size.

하이델버거-웰치 진단은 MCMC 사슬이 정상 상태에 이르렀는지와 길이가 충분한지를 봅니다. 사슬의 누적합을 브라운 다리와 비교하는 검정을 앞부분을 조금씩 버려 가며 통과할 때까지 하고, 남은 추출값의 평균이 그 크기에 비해 충분히 정밀한지 확인합니다.

Has my sampler settled down, how much of the start should I discard, and is the chain long enough to estimate the posterior mean accurately?

표집기가 안정되었는지, 앞부분을 얼마나 버려야 하는지, 사후 평균을 정확히 추정할 만큼 사슬이 긴지 알고 싶습니다.

For each parameter and chain you get whether the stationarity test passed, the iteration from which the chain looks stationary, the p-value, the mean of the retained draws, its half-width and whether the relative half-width is below the target.

When to use Heidelberger-Welch Stationarity and Half-Width Diagnostic

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

The Heidelberger-Welch diagnostic passed for [value] of [value] parameters (smallest p = [value]); all relative half-widths were below [value].

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with SciPy and statsmodels at a stated tolerance of 1e-6.

    독립 계산. SciPy·statsmodels 대조 참조 시험 1건 통과(허용오차 1e-6).

Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.

허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.

Run Heidelberger-Welch Stationarity and Half-Width Diagnostic on Quorant

Data you need
a table (CSV or Excel) with item columns (e.g. questionnaire items)
Price
250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 credits.
Checking
Compared with independent computations
Before you pay
A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.

Method ID Q15114 · Reviewed 2026-10-25