A Decomposition for a Stochastic Matrix with an application to MANOVA