how to solve if the summation of each row in transition probability matrix in markov chain not equal to one?

 採用された回答

Ameer Hamza
Ameer Hamza 2020 年 10 月 8 日

0 投票

If you just want to make each row sum to one, then you can try this
M % matrix
M_new = M./sum(M,2)
I am not sure if this is the theoretically correct way to solve this problem.

4 件のコメント

saja mk
saja mk 2020 年 10 月 8 日
編集済み: saja mk 2020 年 10 月 8 日
Thank you for your reply , but what the action of the code??
Ameer Hamza
Ameer Hamza 2020 年 10 月 8 日
It will divide the row elements with the sum of that row. The new matrix will have a sum of 1 for each row.
saja mk
saja mk 2020 年 10 月 8 日
thanks alot
Ameer Hamza
Ameer Hamza 2020 年 10 月 8 日
I am glad to be of help!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

質問済み:

2020 年 10 月 8 日

コメント済み:

2020 年 10 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by