結果 : how to calculate the state transition matrix