How To Find Transition Probability Matrix