how to simulate markov chain

Hello;
Could you please help me about simulating a Markov Chain? I have a transition probability matrix 5x5 and I'd like to simulate with the initial state as 4.

回答 (1 件)

Roger Stafford
Roger Stafford 2014 年 12 月 23 日

0 投票

If T is the 5 x 5 transition probability matrix, to find the n-th state, do this:
xn = T^n*[0;0;0;1;0];

カテゴリ

ヘルプ センター および File ExchangePhysics についてさらに検索

質問済み:

2014 年 12 月 23 日

回答済み:

2014 年 12 月 23 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by