Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

サンプリングの妥当性検証

R^\hat R(R-hat, Gelman–Rubin統計量)

R-hatは複数チェーン間の分散と各チェーン内の分散の比によって定義される。

R^=チェーン間の分散チェーン内の分散\hat{R} = \sqrt{\frac{チェーン間の分散}{チェーン内の分散}}

直感的には「チェーン同士が同じ分布を見ているか」。

R^1.01\hat R \le 1.01 であれば収束しているとみなされる

古典的 R^\hat R の問題点として、

  1. 非対称分布・重い裾に弱い

  2. 平均と分散しか見ていない

があった。

そこで

  1. rank-normalization: サンプルを順位変換 → 正規スケール

  2. folding: 中心からの距離を使い、裾の混合を検出

  3. split chains: 各チェーンを前半・後半に分割し mm を倍増

といった改良がされている(Stan/PyMCなど今のライブラリはこちらを使っている)

[1903.08008] Rank-normalization, folding, and localization: An improved R^\widehat{R} for assessing convergence of MCMC