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
  • Loading branch information
aglebov committed Jun 23, 2024
1 parent 39eddd6 commit e3b1e13
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 e3b1e13

Please sign in to comment.