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

 Respuesta aceptada

Ameer Hamza
Ameer Hamza el 8 de Oct. de 2020
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 comentarios

saja mk
saja mk el 8 de Oct. de 2020
Editada: saja mk el 8 de Oct. de 2020
Thank you for your reply , but what the action of the code??
Ameer Hamza
Ameer Hamza el 8 de Oct. de 2020
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 el 8 de Oct. de 2020
thanks alot
Ameer Hamza
Ameer Hamza el 8 de Oct. de 2020
I am glad to be of help!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Physics en Centro de ayuda y File Exchange.

Preguntada:

el 8 de Oct. de 2020

Comentada:

el 8 de Oct. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by