| Form Similarity Matrix |
| See Also |
Similarity Measures
Jaccard is appropriate for dichotomous variables, simple matching for qualitative variables and the other settings give different ways for handling quantitative variables. The form of contribution to the similarity is as follows:
| Type | Contribution | Weight |
| Jaccard | if xi = xj = 1, then 1 | 1 |
| if xi = xj = 0, then 0 | 0 | |
| if xi /= xj, then 0 | 1 | |
| Simple Matching | if xi = xj, then 1 | 1 |
| if xi /= xj, then 0 | 1 | |
| Dice | if xi = xj = 1, then 1 | 1 |
| if xi = xj = 0, then 0 | 0 | |
| if xi /= xj, then 0 | 0.5 | |
| Sneath and Sokal | if xi = xj, then 1 | 1 |
| if xi /= xj, then 0 | 0.5 | |
| Russell and Rao | if xi = xj, then 1 | 1 |
| if xi = 0 or xj = 0, then 0 | 1 | |
| Antidice | if xi = xj = 1, then 1 | 1 |
| if xi = xj = 0, then 0 | 0 | |
| if xi /= xj, then 0 | 2 | |
| Rogers and Tanimoto | if xi = xj, then 1 | 1 |
| if xi /= xj, then 0 | 2 | |
| Cityblock | 1 - |xi - xj| / range | 1 |
| Manhattan | synonymous with cityblock | |
| Ecological | 1 - |xi - xj| / range | 1 |
| unless xi = xj = 0 | 0 | |
| Euclidean | 1 - {(xi - xj) / range}2 | 1 |
| Pythagorean | synonymous with Euclidean | |
| Divergence | 1 - {(xi - xj) / (xi + xj)}2 | 1 |
| Canberra | 1 - |xi - xj| / (|xi| + |xj|) | 1/p |
| Bray and Curtis | 1 - |xi - xj| | xi + xj |
| Soergel | 1 - |xi - xj| | max(xi, xj) |