Learn R Programming

LaMa (version 2.0.3)

stationary_cont: Compute the stationary distribution of a continuous-time Markov chain

Description

A well-behaved continuous-time Markov chain converges to a unique stationary distribution, here called \(\pi\). This distribution satisfies $$\pi Q = 0,$$ subject to \(\sum_{j=1}^N \pi_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.

Usage

stationary_cont(Q)

Value

stationary distribution of the continuous-time Markov chain with given generator matrix

Arguments

Q

infinitesimal generator matrix of dimension c(N,N)

See Also

generator to create a generator matrix

Other stationary distribution functions: stationary(), stationary_p()

Examples

Run this code
Q = generator(c(-2,-2))
Pi = stationary_cont(Q)

Run the code above in your browser using DataLab