I am trying to simulate a jump Markov process as follows. I define the process $N_j = N_{j-1} + 1$ with probability 1/2 or $N_j = N_{j-1} - 1$ with probability $1/2,$ with $N_j = 0$ as an absorbing state. I tried
p = DiscreteMarkovProcess[{0, 1}, {{1/2, 1/2}, {1/2, 1/2}}];
data = RandomFunction[p, {0, 50}]
ListPlot[data, Filling -> Axis, Ticks -> {Automatic, {0, 1, 2}}]
but I am not getting any results that are in the absorbing state. Could someone help clarify this? I feel I am not understanding this...
{{0, 1, 0}, {1/2, 0, 1/2}, {0, 1, 0}}
. But then you do not have any absorbing states. This (very similar) matrix has an absorbing state:{{0, 1, 0}, {1/2, 0, 1/2}, {0, 0, 1}}
. $\endgroup$