Skip to content

Convergence statistic in get_rstat() may not match Gelman–Rubin R̂ #82

Description

@fcotizelati

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions