Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > String Manipulation > Sequence Alignment & Comparison > Distance and Similarity Measures >
Mathematica > Data Manipulation > Numerical Data > Exploratory Data Analysis > Distance and Similarity Measures >
Mathematica > Data Manipulation > Statistics > Exploratory Data Analysis > Distance and Similarity Measures >

SokalSneathDissimilarity

SokalSneathDissimilarity[u, v]
gives the Sokal-Sneath dissimilarity between Boolean vectors u and v.
  • SokalSneathDissimilarity[u, v] is equivalent to 2(n_(10)+n_(01))/(n_(11)+2(n_(10)+n_(01))), where n_(ij) is the number of corresponding pairs of elements in u and v respectively equal to i and j.
Sokal-Sneath dissimilarity between two Boolean vectors:
The elements can also be True and False:
Sokal-Sneath dissimilarity between two Boolean vectors:
In[1]:=
Click for copyable input
Out[1]=
 
The elements can also be True and False:
In[1]:=
Click for copyable input
Out[1]=
Compute dissimilarity between any 0,1 vectors of equal length:
Compute dissimilarity between any True, False vectors of equal length:
Cluster 0,1 data using Sokal-Sneath dissimilarity:
Cluster True, False data using Sokal-Sneath dissimilarity:
Sokal-Sneath dissimilarity is bounded by 0 and 1:
SokalSneathDissimilarity is greater than or equal to JaccardDissimilarity:
SokalSneathDissimilarity is greater than or equal to DiceDissimilarity:
SokalSneathDissimilarity is greater than or equal to MatchingDissimilarity:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team