Compute the stationary distribution of a continuous-time Markov chain
Compute the stationary distribution of a continuous-time Markov chain
A well-behaved continuous-time Markov chain converges to a unique stationary distribution, here called π. This distribution satisfies [REMOVE_ME]πQ=0,[REMOVEME2] subject to ∑j=1Nπj=1, where Q is the infinitesimal generator of the Markov chain. This function solves the linear system of equations above for a given generator matrix.
stationary_cont(Q)
Arguments
Q: infinitesimal generator matrix of dimension c(N,N)
Returns
stationary distribution of the continuous-time Markov chain with given generator matrix
Description
A well-behaved continuous-time Markov chain converges to a unique stationary distribution, here called π. This distribution satisfies
πQ=0,
subject to ∑j=1Nπj=1, where Q is the infinitesimal generator of the Markov chain. This function solves the linear system of equations above for a given generator matrix.
Examples
Q = generator(c(-2,-2))Pi = stationary_cont(Q)
See Also
generator to create a generator matrix
Other stationary distribution functions: stationary(), stationary_p()