In mind_the_gaps/gpmodelling.py, the get_rstat() method is presented as a Gelman–Rubin–style convergence diagnostic. However, the current calculation appears to use a ratio of within-chain variance to the variance of all pooled samples. This differs from the standard Gelman–Rubin R̂ definition, which is based on a combination of within-chain variance and between-chain variance computed from the chain means.
Because of this, the values returned by get_rstat() may not reliably reflect the usual interpretation of R̂ (i.e. "close to 1 indicates convergence"). Updating the implementation to follow the standard R̂ formula would make the convergence assessment clearer.
In
mind_the_gaps/gpmodelling.py, theget_rstat()method is presented as a Gelman–Rubin–style convergence diagnostic. However, the current calculation appears to use a ratio of within-chain variance to the variance of all pooled samples. This differs from the standard Gelman–Rubin R̂ definition, which is based on a combination of within-chain variance and between-chain variance computed from the chain means.Because of this, the values returned by
get_rstat()may not reliably reflect the usual interpretation of R̂ (i.e. "close to 1 indicates convergence"). Updating the implementation to follow the standard R̂ formula would make the convergence assessment clearer.