comparing transition matrices using chi square test