Simple matching coefficient (source code)

= Simple matching coefficient
{title2=$S_1(x,y)=\#\{j:x_j=y_j\}/p$}

For binary vectors, this similarity counts agreements on both presences and absences. Its complement is the <normalized Hamming distance>. Whether joint absences should count as similarity depends on the application; rare-presence data may call for a different coefficient.