diff --git a/hyppo/independence/friedman_rafsky.py b/hyppo/independence/friedman_rafsky.py index c9d491c37..0ad6be08d 100644 --- a/hyppo/independence/friedman_rafsky.py +++ b/hyppo/independence/friedman_rafsky.py @@ -69,7 +69,7 @@ def _num_runs(self, labels, MST_connections): def statistic(self, x, y): r""" - Helper function that calculates the Friedman Rafksy test statistic. + Helper function that calculates the Friedman Rafksy test statistic. Parameters ---------- @@ -83,7 +83,7 @@ def statistic(self, x, y): Returns ------- stat : float - The computed Friedman Rafsky statistic. + The computed Friedman Rafsky statistic. A value between ``2`` and ``n``. """ x = np.transpose(x) labels = np.transpose(y) @@ -102,7 +102,7 @@ def test( random_state=None, ): r""" - Calculates the Friedman Rafsky test statistic and p-value. + Calculates the Friedman Rafsky test statistic and p-value. Parameters ---------- diff --git a/tutorials/independence.py b/tutorials/independence.py index ac5e245c5..1cd8c3eee 100644 --- a/tutorials/independence.py +++ b/tutorials/independence.py @@ -374,4 +374,6 @@ # multivariate features. Lastly, labels for X and Y need not be 0 and 1, they just need be consistent across samples. # These tests runs like :ref:`any other test`. # +# Test statistic range: :math:`[2, m+n]` +# # .. _[1]: https://link.springer.com/article/10.1007/s10182-020-00378-1