On the statistical analysis of grouped Markov chains