Learn R Programming

LaMa (version 2.0.3)

stationary: Compute the stationary distribution of a homogeneous Markov chain

Description

A homogeneous, finite state Markov chain that is irreducible and aperiodic converges to a unique stationary distribution, here called \(\delta\). As it is stationary, this distribution satisfies $$\delta \Gamma = \delta,$$ subject to \(\sum_{j=1}^N \delta_j = 1\), where \(\Gamma\) is the transition probability matrix. This function solves the linear system of equations above.

Usage

stationary(Gamma)

Value

stationary distribution of the Markov chain with the given transition probability matrix

Arguments

Gamma

transition probability matrix of dimension c(N,N)

See Also

tpm to create a transition probabilty matrix using the multinomial logistic link (softmax)

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

Examples

Run this code
Gamma = tpm(c(rep(-2,3), rep(-3,3)))
delta = stationary(Gamma)

Run the code above in your browser using DataLab