simulate a markov chain including the absorbing state "death"

4 次查看(过去 30 天)
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