Calculate the M2 statistic for DCMs
