simulate a markov chain including the absorbing state "death"

조회 수: 4 (최근 30일)
Sehrish Usman
Sehrish Usman 2021년 1월 25일
댓글: Sehrish Usman 2021년 1월 25일
I am simulating a Markov chain process with the transition probability matrix:
P = [0.9044 0.0099 0 0 0.0857;...
0 0.7287 0.1057 0.0799 0.0857;...
0 0.0699 0.8183 0 0.1118; ...
0 0.376 0 0.6199 0.0041; ...
0 0 0 0 1]
where I have five states = single, marriage, divorce, widow and death
When I run the simulations, I always end up with state 5 (which is death).
Should I not include the abosrbing state?

채택된 답변

John D'Errico
John D'Errico 2021년 1월 25일
편집: John D'Errico 2021년 1월 25일
You won't always eventually die? While there are ways for that to not happen eventually, usually they are the plot of some movie. And if you DO know some way to avoid that particular absorbing state, you might consider selling the formula. my guess is there would be a few buyers at any cost.
Seriously, all states eventually allow transition into the absorbing state with some non-zero probability, so the long time state of the system would have you always in the absoring state. This is just an expected behavior for such a process.
  댓글 수: 5
John D'Errico
John D'Errico 2021년 1월 25일
I'm not sure what you are asking. Are you saying that you do not know how to generate a viable transition matrix from data, say from marriage, and death statistics? Or are you talking about a formulation of such a process in the form of a system of ordinary differential equations, where now you would have a death rate, marriage rate, etc., each of which would depend on the state you are currently in.
Sehrish Usman
Sehrish Usman 2021년 1월 25일
Yes the second case you mentioned. I have a transition rate matrix for four states (nonmarried, married, divorced, widow) and each element of this matrix shows the marriage rate, divorce rate, mortality rate etc. depending on age and current state.
I want to simulate the markov model but I need to calculate the transition probability matrix. I was not sure if I can use directly these rates to calculate probability?
I cannot use simple Probability = expm(Q) ........ as the transitons states are more than two for each node.
any idea? I would really appreciate if you have any suggestion.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Markov Chain Models에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by