Skip to content

Commit

Permalink
v0.2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
yh202109 committed Jun 30, 2024
1 parent 5df5edf commit 3a1a5b3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/statlab_corr_tau.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,12 @@ Under independent sample assumption, we know that
From :eq:`eq_tau2`, we can see that :math:`\tau` is a rank correlation coefficient.

If there are ties, the maximum value of :eq:`eq_tau1` becomes less then 1.
Consider the scenario that there are :math:`n_{t1}` ties in :math:`\{Y_{i1}\}`,
and there are :math:`n_{t2}` ties in :math:`\{Y_{i2}\}`.

Consider the scenario that there are :math:`n_{t1}` groups of ties in :math:`\{Y_{i1}\}`,
and there are :math:`n_{t2}` groups of ties in :math:`\{Y_{i2}\}`.
Let :math:`n_{t1,k}` be the number of ties within the :math:`k` th group of ties in :math:`\{Y_{i1}\}`,
and :math:`n_{t2,k}` be the number of ties within the :math:`k` th group of ties in :math:`\{Y_{i2}\}`
The adjusted :math:`\tau` is calculated by replacing :math:`t` with
:math:`t^* = \sqrt{\frac{1}{2}n(n-1)-\sum_{k=1}^{n_{t1}} \frac{1}{2}n_{t1,k}(n_{t1,k}-1)}\sqrt{\frac{1}{2}n(n-1)-\sum_{k=1}^{n_{t2}} \frac{1}{2}n_{t2,k}(n_{t2,k}-1)}`

*************
Example - Group-1
Expand Down

0 comments on commit 3a1a5b3

Please sign in to comment.