From: Ranked Adjusted Rand: integrating distance and partition information in a measure of clustering agreement
C'
C' 1
C' 2
...
C' K'
C marginal totals
C
C 1
ct 1,1
ct 1,2
ct 1,K'
n 1
C 2
ct 2,1
ct 2,2
ct 2,K'
n 2
C K
ct k,1
ct k,2
ct K,K'
n K
C' marginal totals
n' 1
n' 2
n' K'
n