In the case of ties in the original values, this formula should not be used; instead, the Pearson correlation coefficient should be calculated on the ranks (where ties are given ranks, as described above).
This formula should not be used. This was in the case of ties in the original values. The Pearson correlation coefficient should be calculated on the ranks (where ties are given ranks, as described above). This was instead.