Skip to content

Commit

Permalink
Fix typo in docstring for rhat: take square root of ratio of variance…
Browse files Browse the repository at this point in the history
… estimates (#2355)
  • Loading branch information
aglebov authored Jun 24, 2024
1 parent 288a629 commit 979687c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arviz/stats/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def rhat(data, *, var_names=None, method="rank", dask_kwargs=None):
-----
The diagnostic is computed by:
.. math:: \hat{R} = \frac{\hat{V}}{W}
.. math:: \hat{R} = \sqrt{\frac{\hat{V}}{W}}
where :math:`W` is the within-chain variance and :math:`\hat{V}` is the posterior variance
estimate for the pooled rank-traces. This is the potential scale reduction factor, which
Expand Down

0 comments on commit 979687c

Please sign in to comment.