Text this: Products of stochastic matrices and applications