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개)

카테고리

질문:

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