| where: | n is the number of elements of the matrices, that is, n = (N2−N)/2 |
| N is the number of common organisms | |
| Riare the elements of the first distance matrix | |
| Si is the corresponding value for the second matrix | |
| and are the mean values of Ri and Sirespectively. |