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 >

MatchingDissimilarity

MatchingDissimilarity[u, v]
gives the matching dissimilarity between Boolean vectors u and v.
  • MatchingDissimilarity[u, v] is equivalent to (n10+n01)/Length[x], where nij is the number of corresponding pairs of elements in u and v respectively equal to i and j.
Matching dissimilarity between two Boolean vectors:
The elements can also be True and False:
Matching 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 matching dissimilarity:
Cluster True, False data using matching dissimilarity:
Matching dissimilarity is bounded by 0 and 1:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team