generated weather sequence with a multinomial model
computation of the transition matrix for the markov model