**Applied Mathematics**

Vol.08 No.09(2017), Article ID:79481,19 pages

10.4236/am.2017.89101

Inherent Numerical Instability in Computing Invariant Measures of Markov Chains

Hendrik Baumann, Thomas Hanschke^{ }

Clausthal University of Technology, Clausthal-Zellerfeld, Germany

Copyright © 2017 by authors and Scientific Research Publishing Inc.

This work is licensed under the Creative Commons Attribution International License (CC BY 4.0).

http://creativecommons.org/licenses/by/4.0/

Received: August 14, 2017; Accepted: September 27, 2017; Published: September 30, 2017

ABSTRACT

Invariant measures of Markov chains in discrete or continuous time with a countable set of states are characterized by its steady state recurrence relations. Exemplarily, we consider transition matrices and Q-matrices with upper bandwidth n and lower bandwidth 1 where the invariant measures satisfy an (n + 1)-order linear difference equation. Markov chains of this type arise from applications to queueing problems and population dynamics. It is the purpose of this paper to point out that the forward use of this difference equation is subject to some hitherto unobserved aspects. By means of the concept of generalized continued fractions (GCFs), we prove that each invariant measure is a dominated solution of the difference equation such that forward computation becomes numerically unstable. Furthermore, the GCF-based approach provides a decoupled recursion in which the phenomenon of numerical instability does not appear. The procedure results in an iteration scheme for successively computing approximants of the desired invariant measure depending on some truncation level N. Increasing N leads to the desired solution. A comparison study of forward computation and the GCF-based approach is given for Q-matrices with upper bandwidth 1 and 2.

**Keywords:**

Invariant Measures of Markov Chains, Inherent Numerical Instability of Linear Difference Equations, Generalized Continued Fractions, Convergence Criteria for Generalized Continued Fractions, Truncation Procedures for Infinite Matrices

1. Introduction

This paper is dedicated to discrete-time Markov chains $X={\left({X}_{k}\right)}_{k\ge 0}$ with a countably infinite set of states (labelled as $\mathrm{0,1,2,}\cdots $ ) and a stationary one-step transition matrix $P={\left({P}_{ik}\right)}_{0\le i,k<\infty}$ of the form

$P=\left[\begin{array}{ccccccccc}{P}_{00}& {P}_{01}& {P}_{02}& \dots & {P}_{0n}& O& O& \dots & \dots \\ {P}_{10}& {P}_{11}& {P}_{12}& \dots & {P}_{1n}& {P}_{1,n+1}& O& \dots & \dots \\ O& {P}_{21}& {P}_{22}& \dots & {P}_{2n}& {P}_{2,n+1}& {P}_{2,n+2}& O& \dots \\ O& O& {P}_{32}& \dots & {P}_{3n}& {P}_{3,n+1}& {P}_{3,n+2}& {P}_{3,n+3}& \\ \ddots & \ddots & \ddots & & \ddots & \ddots & \ddots & \ddots & \ddots \end{array}\right]$ (1)

with $n\ge 1$ and ${P}_{k\mathrm{,}k+n}\ne 0$ for at least one $k\in {\mathbb{N}}_{0}=\left\{\mathrm{0,1,2,}\cdots \right\}$ . In addition we assume that X is irreducible and recurrent. Notice that the irreducibility of X implies

${P}_{k,k-1}\ne 0\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{for}\text{\hspace{0.05em}}\text{\hspace{0.17em}}k=1,2,\cdots $ (2)

For a recurrent irreducible Markov chain, the system

$\{\begin{array}{l}{x}_{k}={\displaystyle \underset{i=0}{\overset{\infty}{\sum}}}\text{\hspace{0.05em}}\text{\hspace{0.05em}}{x}_{i}{P}_{ik}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\left(k=0,1,2,\cdots \right)\\ {x}_{0}=1,\text{\hspace{0.17em}}{x}_{k}\ge 0\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\left(k=1,2,\cdots \right)\end{array}$ (3)

has a unique solution which is strictly positive, see Karlin and Taylor ( [1] , chapter 11). Every constant positive multiple of $x=\left({x}_{0},{x}_{1},\cdots \right)$ is called an invariant measure of X.

Substituting (1) into (3) and rearranging yields the (n + 1)th-order homogeneous linear recurrence relation

${P}_{k+n+1,k+n}{x}_{k+n+1}+\left({P}_{k+n,k+n}-1\right){x}_{k+n}+\cdots +{P}_{k,k+n}{x}_{k}=0\text{\hspace{0.17em}}\text{\hspace{0.17em}}\left(k=0,1,2,\cdots \right)$ (4)

coupled to the side conditions

$\{\begin{array}{l}{P}_{00}{x}_{0}+{P}_{10}{x}_{1}={x}_{0}\\ {P}_{01}{x}_{0}+{P}_{11}{x}_{1}+{P}_{21}{x}_{2}={x}_{1}\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\vdots \\ {P}_{0,n-1}{x}_{0}+{P}_{1,n-1}{x}_{1}+\cdots +{P}_{n,n-1}{x}_{n}={x}_{n-1}\end{array}$ (5)

From the theory of linear difference equations (see Miller [2] ) it is known that there exist $n+1$ linearly independent functions ${x}^{\left(0\right)}\mathrm{,}\text{\hspace{0.17em}}{x}^{\left(1\right)}\mathrm{,}\cdots \mathrm{,}{x}^{\left(n\right)}$ defined on ${\mathbb{N}}_{0}$ which take on prescribed values at $k=0,1,\cdots ,n$ and satisfy the homogeneous recurrence relation (4) for all $k\ge 0$ .

Since ${P}_{k+n+\mathrm{1,}k+n}\ne 0$ for all k the desired solution ${\left({x}_{k}\right)}_{k=0}^{\infty}$ is uniquely determined by its initial values ${x}_{0}\mathrm{,}{x}_{1}\mathrm{,}\cdots \mathrm{,}{x}_{n}$ and (5). An application of the recurrence relation (4) then should directly lead to the desired solution x. But unfortunately forward computation of x by means of the homogeneous equation (4) is not a meaningful procedure. In the sequel it is shown that the solution space S of the recurrence relation (4) is the direct sum

$S={S}_{1}\oplus {S}_{2}$

of two subspaces ${S}_{1}$ and ${S}_{2}$ with the property, that every solution $y\in {S}_{2}$ dominates over every solution $x\in {S}_{1}$ , i.e.

$\underset{k\to \infty}{\mathrm{lim}}\frac{{x}_{k}}{{y}_{k}}=0.$

In addition, we have $\mathrm{dim}{S}_{1}=n,\text{\hspace{0.17em}}\mathrm{dim}{S}_{2}=1$ and $x\in {S}_{1}$ .

As pointed out by Cash [3] , Gautschi [4] [5] , Lozier [6] and Mattheij [7] , forward computation of a dominated solution becomes numerically unstable. To avoid numerical instability, it is therefore necessary to construct a decoupled recursion in which the dominant solution $y\in {S}_{2}$ does not appear. In the sequel, it is shown that with each transition matrix P of the form (1) one can associate a set of so-called generalized continued fractions (GCFs) being convergent if the underlying Markov chain is irreducible and recurrent. It turns out that the limits of these fractions coincide with the coefficients of the desired decoupled recursion.

The phenomenon of inherent instability has been first recognized in connection with the computation of higher transcendental functions such as Bessel and associated Legendre functions (see Gautschi [4] and Wimp [8] ). Our experience seems to indicate that also most of the recurrence relations arising from stochastic modelling are subject to numerical instability and require special attention. Transition matrices and Q-matrices with lower bandwidth n and upper bandwidth 1 have been discussed in [9] .

Remark. Most of our considerations concerning the computation of invariant measures of Markov chains may be extended to more general infinite systems of equations. In Section 3, we will point out the properties of invariant measures which we explicitly used.

2. Generalized Continued Fractions and Linear Difference Equations

This chapter deals with the computation of dominated solutions of homogeneous linear difference equations by means of generalized continued fractions (GCFs). The theory of GCFs was initiated by Jacobi [10] and Perron [11] [12] and played a leading role in different areas of mathematics, especially in number theory, ergodic theory, linear difference equations and Padé approximations.

Defintion 1. A generalized continued fraction (GCF) of dimension $n$ is an $\left(n+1\right)$ -tuple $\left({a}^{\left(1\right)}\mathrm{,}\cdots \mathrm{,}{a}^{\left(n\right)}\mathrm{,}b\right)$ of real-valued sequences and a convergence structure as follows. Let ${A}^{\left(1\right)}\mathrm{,}\cdots \mathrm{,}{A}^{\left(n\right)}\mathrm{,}B$ be the principal solutions of the corresponding homogeneous linear difference equation

${x}_{k+n+1}={b}_{k}{x}_{k+n}+{a}_{k}^{\left(n\right)}{x}_{k+n-1}+\cdots +{a}_{k}^{\left(1\right)}{x}_{k}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\left(k=0,1,2,\cdots \right)$ (6)

satisfying

$\{\begin{array}{l}{A}_{j}^{\left(i\right)}={\delta}_{i,j+1}=\{\begin{array}{l}1\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{for}\text{\hspace{0.05em}}\text{\hspace{0.17em}}i=j+1\\ 0\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{for}\text{\hspace{0.05em}}\text{\hspace{0.17em}}i\ne j+1\end{array}\text{\hspace{0.17em}}\left(i=1,\cdots ,n;j=0,\cdots ,n\right)\\ {B}_{j}=0\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{for}\text{\hspace{0.05em}}\text{\hspace{0.17em}}j=0,\cdots ,n-1\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{and}\text{\hspace{0.05em}}\text{\hspace{0.17em}}{B}_{n}=1.\end{array}$ (7)

The GCF is said to converge iff all the limits

${\xi}^{\left(i\right)}=\underset{k\to \infty}{\mathrm{lim}}{A}_{k}^{\left(i\right)}/{B}_{k}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\left(i=1,\cdots ,n\right)$ (8)

do exist.

Convergence of a GCF is indicated by the notation

$\left[\begin{array}{c}{\xi}^{\left(1\right)}\\ \vdots \\ {\xi}^{\left(n\right)}\end{array}\right]\stackrel{k}{=}\left[\begin{array}{cccc}{a}_{0}^{\left(1\right)}& {a}_{1}^{\left(1\right)}& {a}_{2}^{\left(1\right)}& \cdots \\ \vdots & \vdots & \vdots & \\ {a}_{0}^{\left(n\right)}& {a}_{1}^{\left(n\right)}& {a}_{2}^{\left(n\right)}& \cdots \\ {b}_{0}& {b}_{1}& {b}_{2}& \cdots \end{array}\right].$

Terminating a GCF after the N-th column we get the so-called N-th approximants

$\left[\begin{array}{c}\frac{{A}_{N+n+1}^{\left(1\right)}}{{B}_{N+n+1}}\\ \vdots \\ \frac{{A}_{N+n+1}^{\left(n\right)}}{{B}_{N+n+1}}\end{array}\right]=\left[\begin{array}{cccc}{a}_{0}^{\left(1\right)}& {a}_{1}^{\left(1\right)}& \cdots & {a}_{N}^{\left(1\right)}\\ \vdots & \vdots & \ddots & \vdots \\ {a}_{0}^{\left(n\right)}& {a}_{1}^{\left(n\right)}& \cdots & {a}_{N}^{\left(n\right)}\\ {b}_{0}& {b}_{1}& \cdots & {b}_{N}\end{array}\right]\mathrm{.}$

The term “GCF” becomes obvious if forward computation of the N-th approximant of a GCF is replaced by the equivalent backward algorithm. It is known that the recurrence relation (6) can be converted into a first order vector recursion of the form

${u}_{k+1}={W}_{k}{u}_{k}\text{\hspace{1em}}\left(k=0,1,2,\cdots \right)$ (9)

by putting

${u}_{k}=\left[\begin{array}{c}{x}_{k}\\ {x}_{k+1}\\ \vdots \\ {x}_{k+n-1}\\ {x}_{k+n}\end{array}\right]\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{and}\text{\hspace{0.05em}}\text{\hspace{0.17em}}{W}_{k}=\left[\begin{array}{cccccc}0& 1& 0& \cdots & 0& 0\\ 0& 0& 1& \cdots & 0& 0\\ \vdots & \vdots & \vdots & \ddots & \vdots & \vdots \\ 0& 0& \cdots & \cdots & 0& 1\\ {a}_{k}^{\left(1\right)}& {a}_{k}^{\left(2\right)}& \cdots & \cdots & {a}_{k}^{\left(n\right)}& {b}_{k}\end{array}\right]\text{\hspace{0.17em}}\text{\hspace{0.17em}}\left(k=0,1,2,\cdots \right).$

Comparing (6) and (9) it is seen, that the numerators ${A}_{N+n+1}^{\left(1\right)}\mathrm{,}\cdots \mathrm{,}{A}_{N+n+1}^{\left(n\right)}$ and the denominators ${B}_{N+n+1}$ of the GCF appear in the last row of the matrix

${W}_{N}{W}_{N-1}\cdots {W}_{0}.$

Consider now the backward recurrence scheme

${}_{\left(N\right)}v{}_{k}={}_{\left(N\right)}v{}_{k+1}{W}_{k}\text{\hspace{1em}}\left(k=N,N-1,\cdots ,0\right)$ (10)

with initial vector ${}_{\left(N\right)}v{}_{N+1}=\left(\mathrm{0,}\cdots \mathrm{,0,1}\right)$ . Then

${}_{\left(N\right)}v{}_{0}={}_{\left(N\right)}v{}_{N+1}{W}_{N}{W}_{N-1}\cdots {W}_{0}=\left({A}_{N+n+1}^{\left(1\right)},\cdots ,{A}_{N+n+1}^{\left(n\right)},{B}_{N+n+1}\right).$

Writing (10) in expanded form and inserting the structure of ${W}_{k}$ , we get

${}_{\left(N\right)}v{}_{k}^{\left(1\right)}={}_{\left(N\right)}v{}_{k+1}^{\left(n+1\right)}{a}_{k}^{\left(1\right)}\text{\hspace{1em}}\left(k=N,N-1,\cdots ,0\right),$

${}_{\left(N\right)}v{}_{k}^{\left(i\right)}={}_{\left(N\right)}v{}_{k+1}^{\left(i-1\right)}+{}_{\left(N\right)}v{}_{k+1}^{\left(n+1\right)}{a}_{k}^{\left(i\right)}\text{\hspace{1em}}\left(i=2,\cdots ,n,k=N,N-1,\cdots ,0\right),$

${}_{\left(N\right)}v{}_{k}^{\left(n+1\right)}={}_{\left(N\right)}v{}_{k+1}^{\left(n\right)}+{}_{\left(N\right)}v{}_{k+1}^{\left(n+1\right)}{b}_{k}\text{\hspace{1em}}\left(k=N,N-1,\cdots ,0\right)$

or, equivalently

$\{\begin{array}{l}{}_{\left(N\right)}r{}_{k}^{\left(1\right)}:=\frac{{}_{\left(N\right)}v{}_{k}^{\left(1\right)}}{{}_{\left(N\right)}v{}_{k}^{\left(n+1\right)}}=\frac{{a}_{k}^{\left(1\right)}}{{b}_{k}+{}_{\left(N\right)}r{}_{k+1}^{\left(n\right)}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\left(k=N,N-1,\cdots ,0\right)\\ {}_{\left(N\right)}r{}_{k}^{\left(i\right)}:=\frac{{}_{\left(N\right)}v{}_{k}^{\left(i\right)}}{{}_{\left(N\right)}v{}_{k}^{\left(n+1\right)}}=\frac{{a}_{k}^{\left(i\right)}+{}_{\left(N\right)}r{}_{k+1}^{\left(i-1\right)}}{{b}_{k}+{}_{\left(N\right)}r{}_{k+1}^{\left(n\right)}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\left(i=2,\cdots ,n;k=N,N-1,\cdots ,0\right)\end{array}$ (11)

with initial values ${}_{\left(N\right)}r{}_{N+1}^{\left(i\right)}=0$ for $i=1,\cdots ,n$ . Hence

$\frac{{A}_{N+n+1}^{\left(i\right)}}{{B}_{N+n+1}}={}_{\left(N\right)}r{}_{0}^{\left(i\right)}\text{\hspace{1em}}\left(i=1,\cdots ,n\right)$

and

${\xi}^{\left(i\right)}=\underset{N\to \infty}{\mathrm{lim}}{}_{\left(N\right)}r{}_{0}^{\left(i\right)}\text{\hspace{1em}}\left(i=1,\cdots ,n\right).$ (12)

Alternative procedures for computing GCFs are described in [13] .

The relations between GCFs and linear difference equations have been first recognized by Perron [14] . Perron’s results were generalized by Van der Cruyssen [13] , Hanschke [15] [16] and Levrie and Bultheel [17] . The following theorem is due to Van der Cruyssen [13] .

Theorem 1. A GCF $\left({a}^{\left(1\right)}\mathrm{,}\cdots \mathrm{,}{a}^{\left(n\right)}\mathrm{,}b\right)$ converges iff there are $n+1$ linearly independent solutions ${x}^{\left(1\right)}\mathrm{,}\cdots \mathrm{,}{x}^{\left(n\right)}\mathrm{,}y$ of the recurrence relation (6) satisfying

$\underset{k\to \infty}{\mathrm{lim}}\frac{{x}_{k}^{\left(i\right)}}{{y}_{k}}=0\text{\hspace{1em}}\left(i=1,\cdots ,n\right)$ (13)

and

$\left|\begin{array}{ccc}{x}_{0}^{\left(1\right)}& \cdots & {x}_{n-1}^{\left(1\right)}\\ \vdots & & \vdots \\ {x}_{0}^{\left(n\right)}& \cdots & {x}_{n-1}^{\left(n\right)}\end{array}\right|\ne 0.$ (14)

As pointed out by Gautschi [4] [5] and Van der Cruyssen [13] , forward computation of a solution $x\in \text{span}\left({x}^{\left(1\right)},\cdots ,{x}^{\left(n\right)}\right)$ is numerically unstable. Van der Cruyssen [13] establishes that if the limits

$\left[\begin{array}{c}{\xi}_{l}^{\left(1\right)}\\ \vdots \\ {\xi}_{l}^{\left(n\right)}\end{array}\right]=\left[\begin{array}{cccc}{a}_{l}^{\left(1\right)}& {a}_{l+1}^{\left(1\right)}& {a}_{l+2}^{\left(1\right)}& \cdots \\ \vdots & \vdots & \vdots & \\ {a}_{l}^{\left(n\right)}& {a}_{l+1}^{\left(n\right)}& {a}_{l+2}^{\left(n\right)}& \cdots \\ {b}_{l}& {b}_{l+1}& {b}_{l+2}& \cdots \end{array}\right]$ (15)

exist for all $l\ge 0$ , then $x\in \text{span}\left({x}^{\left(1\right)},\cdots ,{x}^{\left(n\right)}\right)$ iff

${x}_{l+n}=-{\xi}_{l}^{\left(n\right)}{x}_{l+n-1}-\cdots -{\xi}_{l}^{\left(1\right)}\text{\hspace{0.17em}}{x}_{l}\text{\hspace{1em}}\left(l=0,1,2,\cdots \right).$ (16)

Combining (11), (12) and (16), one obtains an efficient algorithm (which we will refer to as Van der Cruyssen’s algorithm) for approximating the first $L+1$ components ${x}_{0}\mathrm{,}\cdots \mathrm{,}{x}_{L}$ of an element $x\in \text{span}\left({x}^{\left(1\right)},\cdots ,{x}^{\left(n\right)}\right)$ with prescribed values ${x}_{0}\mathrm{,}\cdots \mathrm{,}{x}_{n-1}$ :

Step 1: Select $N>L-n$ and define ${}_{\left(N\right)}r{}_{l}^{\left(i\right)}$ for $i=1,\cdots ,n;\text{\hspace{0.17em}}l=0,1,\cdots ,N+1$ by

${}_{\left(N\right)}r{}_{N+1}^{\left(1\right)}=\cdots ={}_{\left(N\right)}r{}_{N+1}^{\left(n\right)}=0,$

${}_{\left(N\right)}r{}_{l}^{\left(1\right)}=\frac{{a}_{l}^{\left(1\right)}}{{b}_{l}+{}_{\left(N\right)}r{}_{l+1}^{\left(n\right)}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\left(l=N,N-1,\cdots ,0\right),$

${}_{\left(N\right)}r{}_{l}^{\left(i\right)}=\frac{{a}_{l}^{\left(i\right)}+{}_{\left(N\right)}r{}_{l+1}^{\left(i-1\right)}}{{b}_{l}+{}_{\left(N\right)}r{}_{l+1}^{\left(n\right)}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\left(i=2,\cdots ,n;\text{\hspace{0.17em}}l=N,N-1,\cdots ,0\right)$ .

Step 2: Set ${}_{\left(N\right)}x{}_{0}={x}_{0},\cdots ,{}_{\left(N\right)}x{}_{n-1}={x}_{n-1}$ and

${}_{\left(N\right)}x{}_{l+n}=-{}_{\left(N\right)}r{}_{l}^{\left(n\right)}{}_{\left(N\right)}x{}_{l+n-1}-\cdots -{}_{\left(N\right)}r{}_{l}^{\left(1\right)}{}_{\left(N\right)}x{}_{l}$

for $l=0,1,\cdots ,L-n$ .

Step 3: Increase N until the accuracy of the iterates is within prescribed limits.

For any $l$ , the vector ${\left({}_{\left(N\right)}r{}_{l}^{\left(1\right)}\mathrm{,}\cdots \mathrm{,}{}_{\left(N\right)}r{}_{l}^{\left(n\right)}\right)}^{\text{T}}$ is an approximant of a GCF. Hence, convergence of the algorithm is related to convergence of GCFs. For the latter, we cite two helpful results.

Theorem 2. (Levrie [18] , Perron [12] ). The GCF

$\left[\begin{array}{cccc}{a}_{0}^{\left(1\right)}& {a}_{1}^{\left(1\right)}& {a}_{2}^{\left(1\right)}& \cdots \\ \vdots & \vdots & \vdots & \\ {a}_{0}^{\left(n\right)}& {a}_{1}^{\left(n\right)}& {a}_{2}^{\left(n\right)}& \cdots \\ {b}_{0}& {b}_{1}& {b}_{2}& \cdots \end{array}\right]$

converges if it satisfies the so-called dominance condition, i.e.

$\left|{a}_{k}^{\left(1\right)}\right|+\left|{a}_{k}^{\left(2\right)}\right|+\cdots +\left|{a}_{k}^{\left(n\right)}\right|+1\le \left|{b}_{k}\right|\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{for}\text{\hspace{0.17em}}\text{all}\text{\hspace{0.05em}}\text{\hspace{0.17em}}k\ge 0.$

Theorem 3. (De Bruin [19] , Perron [12] ). Consider a GCF of the form (8) with nth approximant numerators ${A}_{\nu +n+1}^{\left(i\right)}\left(i=\mathrm{1,}\cdots \mathrm{,}n\right)$ and denominators ${B}_{\nu +n+1}$ and the GCF given by

$\left[\begin{array}{ccc}{a}_{0}^{\left(1\right)}{\rho}_{0}{\rho}_{-1}\cdots {\rho}_{-n}& {a}_{1}^{\left(1\right)}{\rho}_{1}{\rho}_{0}\cdots {\rho}_{1-n}\cdots & {a}_{\nu}^{\left(1\right)}{\rho}_{\nu}{\rho}_{\nu -1}\cdots {\rho}_{\nu -n}\cdots \\ {a}_{0}^{\left(2\right)}{\rho}_{0}{\rho}_{-1}\cdots {\rho}_{1-n}& {a}_{1}^{\left(2\right)}{\rho}_{1}{\rho}_{0}\cdots {\rho}_{2-n}\cdots & {a}_{\nu}^{\left(2\right)}{\rho}_{\nu}{\rho}_{\nu -1}\cdots {\rho}_{\nu -n+1}\\ \vdots & \vdots & \vdots \\ {a}_{0}^{\left(n\right)}{\rho}_{0}{\rho}_{-1}& {a}_{1}^{\left(n\right)}{\rho}_{1}{\rho}_{0}& {a}_{\nu}^{\left(n\right)}{\rho}_{\nu}{\rho}_{\nu -1}\\ {b}_{0}{\rho}_{0}& {b}_{1}{\rho}_{1}& {b}_{\nu}{\rho}_{\nu}\end{array}\right]$ (17)

with nth numerators ${\stackrel{\u02dc}{A}}_{\nu +n+1}^{\left(i\right)}\left(i=\mathrm{1,}\cdots \mathrm{,}n\right)$ and denominators ${\stackrel{\u02dc}{B}}_{\nu +n+1}$ where the real numbers ${\rho}_{-n}\mathrm{,}\text{\hspace{0.17em}}{\rho}_{-n+1}\mathrm{,}\cdots \mathrm{,}{\rho}_{0}\mathrm{,}{\rho}_{1}\mathrm{,}\cdots $ are all different from zero. Then

$\begin{array}{l}{\stackrel{\u02dc}{A}}_{\nu +n+1}^{\left(i\right)}={\rho}_{\nu}{\rho}_{\nu -1}\cdots {\rho}_{1}{\rho}_{0}\cdots {\rho}_{-n+i-1}{A}_{\nu +n+1}^{\left(i\right)}\text{\hspace{1em}}\left(i=1,\cdots ,n\right)\hfill \\ {\stackrel{\u02dc}{B}}_{\nu +n+1}={\rho}_{\nu}{\rho}_{\nu -1}\cdots {\rho}_{0}{B}_{\nu +n+1}\hfill \end{array}\}\nu \in {\mathbb{N}}_{0}$

In other words, if one of these two GCFs converges so does the other.

Notice that the GCF (17) may be interpreted as an equivalence transformation of the GCF (12).

3. Main Results

To make (4) congruent with (6) we put

${a}_{k}^{\left(i\right)}=-\frac{{P}_{k+i-1,k+n}}{{P}_{k+n+1,k+n}}\text{\hspace{1em}}\left(i=1,\cdots ,n,\text{\hspace{0.17em}}\text{\hspace{0.17em}}k=0,1,2,\cdots \right),$ (18)

${b}_{k}=-\frac{{P}_{k+n,k+n}-1}{{P}_{k+n+1,k+n}}\text{\hspace{1em}}\left(k=0,1,2,\cdots \right).$ (19)

Theorem 4. Let ${a}_{k}^{\left(i\right)}\mathrm{,}{b}_{k}$ be defined as in (18) and (19). The limits

$\left[\begin{array}{c}{\xi}_{l}^{\left(1\right)}\\ \vdots \\ {\xi}_{l}^{\left(n\right)}\end{array}\right]=\left[\begin{array}{cccc}{a}_{l}^{\left(1\right)}& {a}_{l+1}^{\left(1\right)}& {a}_{l+2}^{\left(1\right)}& \cdots \\ \vdots & \vdots & \vdots & \\ {a}_{l}^{\left(n\right)}& {a}_{l+1}^{\left(n\right)}& {a}_{l+2}^{\left(n\right)}& \cdots \\ {b}_{l}& {b}_{l+1}& {b}_{l+2}& \cdots \end{array}\right]$ (20)

exist for all $l\ge 0$ if the corresponding Markov chain is irreducible and recurrent. In case of convergence the invariant measure is a dominated solution of (6) and satisfies the decoupled recursion

${x}_{l+n}=-{\xi}_{l}^{\left(n\right)}{x}_{l+n-1}-\cdots -{\xi}_{l}^{\left(1\right)}{x}_{l}\text{\hspace{1em}}\left(l=0,1,2,\cdots \right).$ (21)

Proof. Denote by ${}_{\left(N\right)}P={\left({P}_{ik}\right)}_{0\le i\mathrm{,}k\le N}$ the $\left(N+1\right)\times \left(N+1\right)$ northwest corner truncation of $P$ . Since $P$ is assumed to be irreducible and recurrent we conclude from Seneta [20] [21] [22] that the finite system

${}_{\left(N\right)}h\left({}_{\left(N\right)}I-{}_{\left(N\right)}P\right)={e}_{0}$ (22)

where ${}_{\left(N\right)}I$ is the unit matrix and ${}_{\left(N\right)}e{}_{0}$ is the vector with unity in the first position and zeros elsewhere has a unique solution ${}_{\left(N\right)}h=\left({}_{\left(N\right)}h{}_{0}\mathrm{,}{}_{\left(N\right)}h{}_{1}\mathrm{,}\cdots \mathrm{,}{}_{\left(N\right)}h{}_{N}\right)$ satisfying

$\underset{N\to \infty}{lim}\frac{{}_{\left(N\right)}h{}_{k}}{{}_{\left(N\right)}h{}_{0}}=\frac{{x}_{k}}{{x}_{0}}\text{\hspace{1em}}\left(k=\mathrm{0,1,2,}\cdots \right)\mathrm{.}$

The vector ${}_{\left(N\right)}h$ satisfies the homogeneous linear difference Equation (6) for $k=0,1,\cdots ,N-n$ and is subject to the boundary conditions

$\begin{array}{l}\left(1-{P}_{00}\right){}_{\left(N\right)}h{}_{0}-{P}_{10}{}_{\left(N\right)}h{}_{1}=1\hfill \\ -{P}_{01}{}_{\left(N\right)}h{}_{0}+\left(1-{P}_{11}\right){}_{\left(N\right)}h{}_{1}-{P}_{21}{}_{\left(N\right)}h{}_{2}=0\hfill \\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\vdots \hfill \\ -{P}_{0,n-1}{}_{\left(N\right)}h{}_{0}-{P}_{1,n-1}{}_{\left(N\right)}h{}_{1}-\cdots -{P}_{n,n-1}{}_{\left(N\right)}h{}_{n}=0\hfill \end{array}\}$ (23)

and

${}_{\left(N\right)}h{}_{N+1}=0.$ (24)

Notice that the numerators ${A}_{l}^{\left(1\right)}\mathrm{,}\cdots \mathrm{,}{A}_{l}^{\left(n\right)}$ and the denumerators ${B}_{l}$ of the GCF (20) satisfy

${x}_{k+n+1}={b}_{k+l}{x}_{k+n}+{a}_{k+l}^{\left(n\right)}{x}_{k+n-1}+\cdots +{a}_{k+l}^{\left(1\right)}{x}_{k}\text{\hspace{1em}}\left(k=0,1,2,\cdots \right)$ (25)

and build up a fundamental system of solutions to Equation (6) for $k\ge l$ . Hence any solution of the recurrence relation (6) can be expressed in terms of these functions. In view of their initial values

$\{\begin{array}{l}{A}_{l,j}^{\left(i\right)}={\delta}_{i,j+1}=\{\begin{array}{l}1\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{for}\text{\hspace{0.05em}}\text{\hspace{0.17em}}i=j+1\hfill \\ 0\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{for}\text{\hspace{0.05em}}\text{\hspace{0.17em}}i\ne j+1\hfill \end{array}\text{\hspace{1em}}\left(i=1,\cdots ,n;j=0,\cdots ,n\right)\\ {B}_{l,j}=0\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{for}\text{\hspace{0.05em}}\text{\hspace{0.17em}}j=0,\cdots ,n-1\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{and}\text{\hspace{0.17em}}{B}_{l,l+n}=1;\end{array}$ (26)

we get

${}_{\left(N\right)}h{}_{k}={}_{\left(N\right)}h{}_{l}{A}_{l,k-l}^{\left(1\right)}+\cdots +{}_{\left(N\right)}h{}_{l+n-1}{A}_{l,k-l}^{\left(n\right)}+{}_{\left(N\right)}h{}_{l+n}\text{\hspace{0.17em}}{B}_{l,k-l}\text{\hspace{1em}}\left(k=l,l+1,\cdots \right).$ (27)

Choosing $k=N+1$ and utilizing (24) equation (27) reduces to

${}_{\left(N\right)}h{}_{l+n}{B}_{l,N-l+1}=-{}_{\left(N\right)}h{}_{l}{A}_{l,N-l+1}^{\left(1\right)}-\cdots -{}_{\left(N\right)}h{}_{l+n-1}{A}_{l,N-l+1}^{\left(n\right)}.$ (28)

Dividing both sides of (28) by ${B}_{l\mathrm{,}N-l+1}$ and ${}_{\left(N\right)}h{}_{0}$ we formally arrive at

$\frac{{}_{\left(N\right)}h{}_{l+n}}{{}_{\left(N\right)}h{}_{0}}=-\frac{{}_{\left(N\right)}h{}_{l}}{{}_{\left(N\right)}h{}_{0}}\frac{{A}_{l,N-l+1}^{\left(1\right)}}{{B}_{l,N-l+1}}-\cdots -\frac{{}_{\left(N\right)}h{}_{l+n-1}}{{}_{\left(N\right)}h{}_{0}}\frac{{A}_{l,N-l+1}^{\left(n\right)}}{{B}_{l,N-l+1}}.$ (29)

Passing to the limit $N\to \infty $ we get the decoupled recursion (21) provided that the limits $li{m}_{N\to \infty}{A}_{l\mathrm{,}N-l+1}^{\left(i\right)}/{B}_{l\mathrm{,}N-l+1}$ do exist for $i=0,1,\cdots ,n$ .

To prove our assertion we utilize that the invariant measure ${\left({x}_{k}\right)}_{k\ge 0}$ of the irreducible and recurrent Markov chain (1) is strictly positive and satisfies the recurrence relation (4) which can be rewritten as

$\begin{array}{l}\frac{{P}_{k,k+n}\cdot {x}_{k}}{{P}_{k+n+1,k+n}\cdot {x}_{k+n+1}}+\frac{{P}_{k+1,k+n}\cdot {x}_{k+1}}{{P}_{k+n+1,k+n}\cdot {x}_{k+n+1}}+\cdots +\frac{{P}_{k+n-1,k+n}\cdot {x}_{k+n-1}}{{P}_{k+n+1,k+n}\cdot {x}_{k+n+1}}+1\\ =\frac{\left(1-{P}_{k+n,k+n}\right){x}_{k+n}}{{P}_{k+n+1,k+n}\cdot {x}_{k+n+1}}\text{\hspace{1em}}\text{\hspace{1em}}\left(k=0,1,2,\cdots \right).\end{array}$ (30)

Define ${\rho}_{k}=\frac{{x}_{k+n}}{{x}_{k+n+1}}$ for $k=0,1,2,\cdots $ Then (30) becomes equivalent to

$\begin{array}{l}\left|{a}_{k}^{\left(1\right)}{\rho}_{k}{\rho}_{k-1}\cdots {\rho}_{k-n}\right|+\left|{a}_{k}^{\left(2\right)}{\rho}_{k}{\rho}_{k-1}\cdots {\rho}_{k-n+1}\right|\\ +\cdots +\left|{a}_{k}^{\left(n\right)}{\rho}_{k}{\rho}_{k-1}\right|+1=\left|{b}_{k}{\rho}_{k}\right|\text{\hspace{1em}}\text{\hspace{0.17em}}\left(k=0,1,2,\cdots \right)\end{array}$

implying that the GCFs

$\left[\begin{array}{ccc}{a}_{l}^{\left(1\right)}{\rho}_{l}{\rho}_{l-1}\cdots {\rho}_{l-n}& {a}_{l+1}^{\left(1\right)}{\rho}_{l+1}{\rho}_{l}\cdots {\rho}_{l-n+1}& \cdots \\ {a}_{l}^{\left(2\right)}{\rho}_{l}{\rho}_{l-1}\cdots {\rho}_{l-n+1}& {a}_{l+1}^{\left(2\right)}{\rho}_{l+1}{\rho}_{l}\cdots {\rho}_{l-n+2}& \cdots \\ \vdots & \vdots & \\ {a}_{l}^{\left(n\right)}{\rho}_{l}{\rho}_{l-1}& {a}_{l+1}^{\left(n\right)}{\rho}_{l+1}{\rho}_{l}& \cdots \\ {b}_{l}{\rho}_{l}& {b}_{l+1}{\rho}_{l}& \cdots \end{array}\right]$

converge for all $l\ge 0$ by means of Theorem 2. From Theorem 3, we then conclude that the same is true for the GCFs (8). ,

Theorem 2 says that the numerical calculation of the invariant measures of X can be reduced to Van der Cruyssen’s algorithm with (23) as initial conditions.

Remark. It is important that the statement of Theorem 4 consists of two parts:

・ The invariant measure is dominated by other solutions of the difference Equation (4).

・ By means of GCFs, we are able to construct a decoupled recursion which is not affected to numerical instability.

Our main goal was the derivation of the first statement. Although the existence of dominating solutions has been pointed out in specific examples (e.g. ( [8] , p. 167) where the exact solutions of the difference equations are known), to our knowledge, no statement in this generality has been published. Since the desired solution being dominated directly implies numerical instability, the system $x=xP$ should not be solved by forward computation. Note, that up to some slight modifications concerning the boundary conditions, the truncated system (22) yields the same difference Equation (4) for $k=0,1,\cdots ,N-n-1$ . Thus, forward computation could be applied to (22), too, but at least for large N, the result of numerical instability and hence, the recommendation not to use forward computation, holds for (22) as well.

The observation of inherent numerical instability of (4) is essential since the transition structure under consideration arises in many practical applications, e.g. state-dependent queueing systems with bulk arrivals, and it is also valid in a more general context, e.g. as an approximation to state-dependent variants of the traditional G/M/1 queueing model.

Basically, we have exploited that the solutions of the truncated system (22) converge to invariant measures as $N\to \infty $ . For Markov chains with a general transition structure, there is no way of solving $x=xP$ directly (in particular, forward computation cannot be applied if ${P}_{kl}>0$ for some $k<l-1$ ). In this situation, Seneta [20] [21] [22] as well as Golub and Seneta [23] already recommended to use the convergence of the solutions of the truncated system (22) to the invariant measure for numerical issues. Furthermore, Seneta [22] discussed numerical aspects (in terms of the condition number) of the finite system (22) and stated numerical stability of Gaussian elimination or LU decomposition. The above comment concerning forward computation as a solution method for (22) emphasizes on the fact that it is important to solve this finite system in an appropriate way. The GCF-based algorithm can be interpreted as a combination of building up the truncated system (22), and then applying a modification of Gaussian elimination procedure. Therefore, it follows both steps recommended in the literature cited above and represents the complete procedure in a combined mathematical form, which is interesting from a structural point of view.

4. Continuous-Time Markov Chains

The results of the preceding chapter can easily be extended to continuous-time Markov chains $Y={\left({Y}_{t}\right)}_{t\ge 0}$ generated by a conservative, irreducible and regular Q-matrix of the form

$Q=\left[\begin{array}{ccccccccc}{q}_{00}& {q}_{01}& {q}_{02}& \cdots & {q}_{0n}& O& O& \cdots & \cdots \\ {q}_{10}& {q}_{11}& {q}_{12}& \cdots & {q}_{1n}& {q}_{1,n+1}& O& \cdots & \cdots \\ O& {q}_{21}& {q}_{22}& \cdots & {q}_{2n}& {q}_{2,n+1}& {q}_{2,n+2}& O& \cdots \\ O& O& {q}_{32}& \cdots & {q}_{3n}& {q}_{3,n+1}& {q}_{3,n+2}& {q}_{3,n+3}& \\ \ddots & \ddots & \ddots & & \ddots & \ddots & \ddots & \ddots & \ddots \end{array}\right]$ (31)

where $n\ge 1$ and ${q}_{k\mathrm{,}k+n}\ne 0$ for at least one $k\in {\mathbb{N}}_{0}$ . Notice that the irreducibility of Y implies

${q}_{k,k-1}\ne 0\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{\hspace{0.17em}}\text{for}\text{\hspace{0.05em}}\text{\hspace{0.17em}}k=1,2,\cdots $

If Y is positive recurrent, the limits

${\pi}_{k}=\underset{t\to \infty}{\mathrm{lim}}P\left({Y}_{t}=k|{Y}_{0}=i\right)\text{\hspace{1em}}\left(k=0,1,2,\cdots \right)$

exist independently of the initial state and build up a probability distribution which is strictly positive. For the construction of a continuous-time Markov process from its infinitesimal properties the reader is referred to Reuter [24] and Kendall and Reuter [25] . Now let ${}_{\left(N\right)}Q$ be the $\left(N+1\right)\times \left(N+1\right)$ northwest corner truncation of Q. If Y is regular and positive recurrent, then the finite system

${}_{\left(N\right)}z{}_{\left(N\right)}Q={}_{\left(N\right)}e{}_{0}$ (32)

has a unique solution ${}_{\left(N\right)}z=\left({}_{\left(N\right)}z{}_{0}\mathrm{,}{}_{\left(N\right)}z{}_{1}\mathrm{,}\cdots \mathrm{,}{}_{\left(N\right)}z{}_{N}\right)$ satisfying

$\underset{N\to \infty}{\mathrm{lim}}\frac{{}_{\left(N\right)}z{}_{k}}{{}_{\left(N\right)}z{}_{0}}=\frac{{\pi}_{k}}{{\pi}_{0}}\text{\hspace{1em}}\left(k=0,1,2,\cdots \right),$

see Tweedie [26] . Now let

${c}_{k}^{\left(i\right)}=-\frac{{q}_{k+i-1,k+n}}{{q}_{k+n+1,k+n}}\text{\hspace{1em}}\left(i=1,\cdots ,n,\text{\hspace{1em}}k=0,1,2,\cdots \right),$ (33)

${d}_{k}=-\frac{{q}_{k+n,k+n}}{{q}_{k+n+1,k+n}}\text{\hspace{1em}}\left(k=0,1,2,\cdots \right).$ (34)

By substituting (31) into (32) it is seen that ${}_{\left(N\right)}z$ satisfies the $\left(n+1\right)\text{th}$ order homogeneous linear difference equation

${\pi}_{k+n+1}={d}_{k}{\pi}_{k+n}+{c}_{k}^{\left(n\right)}{\pi}_{k+n-1}+\cdots +{c}_{k}^{\left(1\right)}{\pi}_{k}\text{\hspace{1em}}\left(k=0,1,2,\cdots \right)$ (35)

for $k=0,1,\cdots ,N-n$ and the boundary conditions

$\begin{array}{l}{q}_{00}{}_{\left(N\right)}z{}_{0}+{q}_{10}{}_{\left(N\right)}z{}_{1}=1\\ {q}_{01}{}_{\left(N\right)}z{}_{0}+{q}_{11}{}_{\left(N\right)}z{}_{1}+{q}_{21}{}_{\left(N\right)}z{}_{2}=0\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{\hspace{0.05em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\vdots \\ {q}_{0,n-1}{}_{\left(N\right)}z{}_{0}+{q}_{1,n-1}{}_{\left(N\right)}z{}_{1}+\cdots +{q}_{n,n-1}{}_{\left(N\right)}z{}_{n}=0\end{array}\}$ (36)

${}_{\left(N\right)}z{}_{N+1}=0.$ (37)

By replacing (33) with (18) and (34) with (19), it is readily seen that the scheme (35)-(37) formally coincides with that of the discrete time case. Hence (26)-(29) also hold for ${}_{\left(N\right)}z{}_{l}$ . To prove convergence of the associated GCFs

$\left[\begin{array}{c}{\Lambda}_{l}^{\left(1\right)}\\ \vdots \\ {\Lambda}_{l}^{\left(n\right)}\end{array}\right]=\left[\begin{array}{cccc}{c}_{l}^{\left(1\right)}& {c}_{l+1}^{\left(1\right)}& {c}_{l+2}^{\left(1\right)}& \cdots \\ \vdots & \vdots & \vdots & \\ {c}_{l}^{\left(n\right)}& {c}_{l+1}^{\left(n\right)}& {c}_{l+2}^{\left(n\right)}& \cdots \\ {d}_{l}& {d}_{l+1}& {d}_{l+2}& \cdots \end{array}\right]\text{\hspace{1em}}\left(l=0,1,2,\cdots \right)$ (38)

we use the same arguments as in the proof of Theorem 4. Notice that ${\left({\pi}_{k}\right)}_{k=0}^{\infty}$ satisfies (35). Rearranging yields

$-{c}_{k}^{\left(1\right)}\frac{{\pi}_{k}}{{\pi}_{k+n+1}}-\cdots -{c}_{k}^{\left(n\right)}\frac{{\pi}_{k+n-1}}{{\pi}_{k+n+1}}+1={d}_{k}\frac{{\pi}_{k+n}}{{\pi}_{k+n+1}}\text{\hspace{1em}}\left(k=0,1,2,\cdots \right).$ (39)

Define ${\gamma}_{k}=\frac{{\pi}_{k+n}}{{\pi}_{k+n+1}}$ for $k=0,1,2,\cdots $ . Since $-{c}_{k}^{\left(i\right)}>0$ for $i=1,\cdots ,n,\mathrm{}k\ge 0$ and ${d}_{k}>0$ for $k\ge 0$ , (39) is equivalent to

$\begin{array}{l}\left|{c}_{k}^{\left(i\right)}{\gamma}_{k}{\gamma}_{k-1}\cdots {\gamma}_{k-n}\right|+\left|{c}_{k}^{\left(2\right)}{\gamma}_{k}{\gamma}_{k-1}\cdots {\gamma}_{k-n+1}\right|+\cdots +\left|{c}_{k}^{\left(n\right)}{\gamma}_{k}{\gamma}_{k-1}\right|+1\\ =\left|{d}_{k}{\gamma}_{k}\right|\text{\hspace{1em}}\left(k=\mathrm{0,1,2,}\cdots \right)\mathrm{.}\end{array}$

By Theorem 3, the GCF

$\left[\begin{array}{ccc}{c}_{l}^{\left(1\right)}{\gamma}_{l}{\gamma}_{l-1}\cdots {\gamma}_{l-n}& {c}_{l+1}^{\left(1\right)}{\gamma}_{l+1}{\gamma}_{l}\cdots {\gamma}_{l-n+1}& \dots \\ {c}_{l}^{\left(2\right)}{\gamma}_{l}{\gamma}_{l-1}\cdots {\gamma}_{l-n+1}& {c}_{l+1}^{\left(2\right)}{\gamma}_{l+1}{\gamma}_{l}\cdots {\gamma}_{l-n+2}& \dots \\ \vdots & \vdots & \\ {c}_{l}^{(n)}{\gamma}_{l}{\gamma}_{l-1}& {c}_{l+1}^{\left(n\right)}{\gamma}_{l+1}{\gamma}_{l}& \dots \\ {d}_{l}{\gamma}_{l}& {d}_{l+1}{\gamma}_{l}& \cdots \end{array}\right]$

then converges for all $l\ge 0$ . Hence the same is true for the GCFs (38). Summarizing we arrive at the following theorem.

Theorem 5. Let ${c}_{k}^{\left(i\right)}\mathrm{,}{d}_{k}$ be defined as in (33) and (34), respectively. The limits (38) exist for all $l\ge 0$ if the corresponding Markov process is irreducible, regular and positive recurrent. In case of convergence the limiting distribution ${\left({\pi}_{k}\right)}_{k=0}^{\infty}$ is a dominated solution of (35) and satisfies the decoupled recursion.

${\pi}_{l+n}=-{\Lambda}_{l}^{\left(n\right)}{\pi}_{l+n-1}-\cdots -{\Lambda}_{l}^{\left(1\right)}{\pi}_{l}\text{\hspace{1em}}\left(l=0,1,2,\cdots \right).$ (40)

For executing (40), we make use of Van der Cruyssen’s algorithm with (36) as initial conditions. The resulting sequence ${\left({}_{\left(N\right)}z{}_{k}\right)}_{k=0}^{N}$ can be normalized such that $\underset{k=0}{\overset{N}{\sum}}}{}_{\left(N\right)}z{}_{k}=1$ .

Remark. As for discrete-time Markov chains, the key statement of Theorem 5 is that the invariant measure is a dominated solution of the difference equation (35). Again, the GCFs additionally combine the two-step method consisting of considering the truncated system (32) and applying Gaussian elimination or LU decomposition.

5. Numerical Examples

As an example we consider the continuous-time Markov chain $Y={\left({Y}_{t}\right)}_{t\ge 0}$ generated by the Q-matrix $Q={\left({q}_{ij}\right)}_{0\le i,k<\infty}$ , where

${q}_{ik}=\{\begin{array}{ll}\frac{{a}_{0}{a}_{1}}{{\gamma}^{i}}\hfill & k=i-1,i\ge 1\hfill \\ \frac{{a}_{1}-{a}_{0}-1}{{\gamma}^{i}},\hfill & k=i+1\hfill \\ \frac{1}{{\gamma}^{i}},\hfill & k=i+2\hfill \\ -\frac{{a}_{1}-{a}_{0}}{{\gamma}^{i}},\hfill & k=i=0\hfill \\ -\frac{{a}_{0}{a}_{1}+{a}_{1}-{a}_{0}}{{\gamma}^{i}},\hfill & k=i\ge 1\hfill \\ 0,\hfill & \text{\hspace{0.05em}}\text{elsewhere}\text{\hspace{0.05em}}\hfill \end{array}$ (41)

with parameters ${a}_{0}>\gamma >1$ and ${a}_{1}\ge {a}_{0}+1$ . Such a Markov chain may be interpreted as a model for a single-server queueing system with state-dependent arrival and service rates, and with customers arriving in groups of size 1 or 2.

It is easy to check that Q is irreducible. To prove that Y is regular and positive recurrent we make use of Tweedie’s [27] criterion. The condition is to find some $\epsilon >0$ and a non-negative sequence $z=\left({z}_{0},{z}_{1},\cdots \right)$ satisfying ${z}_{i}\to \infty $ as $i\to \infty $ and

$\underset{k=0}{\overset{\infty}{\sum}}}\text{\hspace{0.05em}}\text{\hspace{0.05em}}{q}_{ik}{z}_{k}\le -\epsilon $ (42)

for almost all i. By substituting (41) into (42) we get

$\frac{1}{{\gamma}^{i}}{z}_{i+2}+\frac{{a}_{1}-{a}_{0}-1}{{\gamma}^{i}}{z}_{i+1}-\frac{{a}_{1}-{a}_{0}}{{\gamma}^{i}}{z}_{i}+\frac{{a}_{0}{a}_{1}}{{\gamma}^{i}}{z}_{i-1}\le -\epsilon $

for almost all i. The substitution ${z}_{i}={\gamma}^{i}$ for $i=0,1,2,\cdots $ implies the condition

$\frac{\left(\gamma -1\right)\left(\gamma -{a}_{0}\right)\left(\gamma +{a}_{1}\right)}{\gamma}\le -\epsilon $

for almost all i which is true because of ${a}_{0}>\gamma >1$ .

Under these conditions there exists a unique invariant measure of Y (up to multiplication by a constant), which satisfies the following set of equations:

$\frac{{a}_{0}{a}_{1}}{\gamma}{\pi}_{1}-\left({a}_{1}-{a}_{0}\right){\pi}_{0}=0,$ (43)

$\frac{{a}_{0}{a}_{1}}{{\gamma}^{2}}{\pi}_{2}-\frac{{a}_{0}{a}_{1}+{a}_{1}-{a}_{0}}{\gamma}{\pi}_{1}+\left({a}_{1}-{a}_{0}-1\right){\pi}_{0}=0$ (44)

and

$\frac{{a}_{0}{a}_{1}}{{\gamma}^{k+3}}{\pi}_{k+3}-\frac{{a}_{0}{a}_{1}+{a}_{1}-{a}_{0}}{{\gamma}^{k+2}}{\pi}_{k+2}+\frac{{a}_{1}-{a}_{0}-1}{{\gamma}^{k+1}}{\pi}_{k+1}+\frac{1}{{\gamma}^{k}}{\pi}_{k}=0$

or, equivalently,

${a}_{0}{a}_{1}{\pi}_{k+3}-\left({a}_{0}{a}_{1}+{a}_{1}-{a}_{0}\right)\gamma {\pi}_{k+2}+\left({a}_{1}-{a}_{0}-1\right){\gamma}^{2}{\pi}_{k+1}+{\gamma}^{3}{\pi}_{k}=0$ (45)

for $k=0,1,2,\cdots $ . (45) leads to the recursion

${\pi}_{k+3}=\frac{\gamma \left({a}_{0}{a}_{1}+{a}_{1}-{a}_{0}\right){\pi}_{k+2}-{\gamma}^{2}\left({a}_{1}-{a}_{0}-1\right){\pi}_{k+1}-{\gamma}^{3}{\pi}_{k}}{{a}_{0}{a}_{1}}$ (46)

which is used for forward computation.

Since (45) is a homogenous linear difference equation with constant coefficients a fundamental set of solutions can easily be derived from the roots of its characteristic equation. A simple manipulation yields the following set of linearly independent solutions:

${\left({\left(\frac{\gamma}{{a}_{0}}\right)}^{k}\right)}_{k=0}^{\infty},\mathrm{}{\left({\left(-\frac{\gamma}{{a}_{1}}\right)}^{k}\right)}_{k=0}^{\infty},\mathrm{}{\left({\gamma}^{k}\right)}_{k=0}^{\infty}.$

The desired invariant measure ${\left({\pi}_{k}\right)}_{k\mathrm{=0}}^{\infty}$ of Y with initial value ${\pi}_{0}=1$ is a linear combination of the first two solutions, that is:

${\pi}_{k}=\frac{{a}_{1}}{{a}_{0}+{a}_{1}}{\left(\frac{\gamma}{{a}_{0}}\right)}^{k}+\frac{{a}_{0}}{{a}_{0}+{a}_{1}}{\left(-\frac{\gamma}{{a}_{1}}\right)}^{k}\text{\hspace{1em}}\left(k=0,1,2,\cdots \right).$

Therefore, choosing $\gamma >1$ yields that there is a geometrically increasing solution of (46), which explains why forward computation cannot cope with this problem, whereas the GCF-based algorithm becomes a stable procedure. This effect is reflected in Table 1 and Table 2, where data type double in C++ was used.

Table 1. Numerical values for $\gamma =3,\mathrm{}{a}_{0}=5,\mathrm{}{a}_{1}=7.$

Table 2. Numerical values for $\gamma =9,\mathrm{}{a}_{0}=10,\mathrm{}{a}_{1}=12.$

Consider next the M/M/1 queueing system, in which the customers arrive according to a Poisson stream with rate $\lambda >0$ and in which the successive service times are stochastically independent and exponentially distributed with parameter $\mu >0$ . For this system it is known that the queueing process $L={\left(L\left(t\right)\right)}_{t\ge 0}$ which counts the number of customers in line, forms a homogeneous continuous time Markov chain with state space ${\mathbb{N}}_{0}=\left\{\mathrm{0,1,2,}\cdots \right\}$

being regular and positive recurrent for $\rho =\frac{\lambda}{\mu}<1$ , see [28] . The model is convenient to get clear about the mechanism of our approach.

The invariant measure ${\left({\pi}_{k}\right)}_{k=0}^{\infty}$ of L meets the second order linear difference equation

$\lambda {\pi}_{k-1}-\left(\lambda +\mu \right){\pi}_{k}+\mu {\pi}_{k+1}=0\text{\hspace{1em}}\left(k=1,2,\cdots \right)$ (47)

subject to the side conditions

${\pi}_{0}=1\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{and}\text{\hspace{0.17em}}\text{\hspace{0.17em}}-\lambda {\pi}_{0}+\mu {\pi}_{1}=0.$

In principle, ${\left({\pi}_{k}\right)}_{k=0}^{\infty}$ could be computed by forward computation, that is

${\pi}_{0}=1,$

${\pi}_{1}=\rho {\pi}_{0},$

${\pi}_{k+1}=\left(\rho +1\right){\pi}_{k}-\rho {\pi}_{k-1}\text{\hspace{1em}}\left(k=1,2,\cdots \right),$

where $\rho =\frac{\lambda}{\mu}<1$ .

A simple induction argument shows that ${\pi}_{k}={\rho}^{k}$ for $k=0,1,2,\cdots $ . Another solution of (47) is given by ${\stackrel{\u02dc}{\pi}}_{k}=1$ for $k=0,1,2,\cdots $ , implying that ${\left({\pi}_{k}\right)}_{k=0}^{\infty}$ becomes a dominated solution of (47), as claimed. Therefore ${\left({\pi}_{k}\right)}_{k=0}^{\infty}$ can also be characterized by the decoupled recursion (40), i.e.

${\pi}_{k+1}=-{\Lambda}_{k}^{\left(1\right)}{\pi}_{k}\text{\hspace{1em}}\left(k=0,1,2,\cdots \right).$ (48)

Substituting of (48) into (47) leads to

${\Lambda}_{k-1}^{\left(1\right)}=-\frac{1}{\left(1+{\rho}^{-1}\right)+{\rho}^{-1}{\Lambda}_{k}^{\left(1\right)}}\text{\hspace{1em}}\left(k=1,2,\cdots \right).$ (49)

By truncating this infinite continued fraction scheme at a certain level $k=N$ , we get approximants for the desired coefficients ${\Lambda}_{k}^{\left(1\right)}$ . A numerical example is given in Table 3. In this example the effect of numerical instability is comparatively small.

6. Conclusion and Further Research

For Markov chains with a specific transition structure, we have proven that the

Table 3. Numerical values for the M/M/1 queueing system for $\rho =\frac{1}{3}$ .

invariant measure is a dominated solution of the corresponding steady-state recurrence relations, and therefore, it cannot be calculated by forward computation. As a by-product of our considerations, a GCF-based method for computing the invariant measure in a numerically stable way has been established. The effects of numerical instability of the original recurrence relations as well as the stability of the decoupled version have been illustrated by numerical examples. In some way, the GCF-based approach is similar to previously recommended methods (truncate the infinite system and solve the truncated one by Gaussian elimination or LU decomposition), but represents the steps in a combined mathematical form. Note that in previous literature, the generality of the transition structure did not allow forward computation, and hence, the question of instability of this method did not arise.

At no point of our consideration, we used stochasticity of P (or the corresponding property of conservativity of Q) explicitly. Therefore, it seems reasonable to extend our results to more general infinite systems $Sx=0$ of linear equations, where

$S=\left(\begin{array}{cccccccc}{s}_{00}& {s}_{01}& & & & & & \\ {s}_{10}& {s}_{11}& {s}_{12}& & & & & \\ {s}_{20}& {s}_{21}& {s}_{22}& {s}_{23}& & & & \\ & \cdots & \cdots & \cdots & \ddots & \ddots & & \\ {s}_{n0}& {s}_{n1}& \cdots & \cdots & {s}_{nn}& {s}_{n\mathrm{,}n+1}& & \\ & {s}_{n+\mathrm{1,0}}& {s}_{n+\mathrm{1,1}}& \cdots & \cdots & {s}_{n+\mathrm{1,}n+1}& {s}_{n+\mathrm{1,}n+2}& \\ & & \ddots & \ddots & \cdots & \cdots & \ddots & \ddots \end{array}\right)\mathrm{.}$

In the context of computing invariant measures of Markov chains, we have $S=I-{P}^{\text{T}}$ or $S={Q}^{\text{T}}$ , respectively. In the general case, the main steps of the proofs of Theorem 4 or Theorem 5 can be restated in an abstract context as follows: If ${s}_{kk}>0$ and ${s}_{k,k+1}<0$ for $k=0,1,2,\cdots $ , and ${s}_{kl}\le 0$ for $k=1,2,3,\cdots $ and $l<k$ , and if there is a strictly positive solution $x$ of $Sx=0$ , all GCFs involved in the algorithmic procedure converge. If additionally, we have

$\underset{N\to \infty}{\mathrm{lim}}\frac{{}_{\left(N\right)}x{}_{n}}{{}_{\left(N\right)}x{}_{0}}=\frac{{x}_{n}}{{x}_{0}}$ for all $n=0,1,2,\cdots $ for the solutions ${}_{\left(N\right)}x$ of ${}_{\left(N\right)}x\cdot {}_{\left(N\right)}S={}_{\left(N\right)}e{}_{0}$ ,

then the GCF-based algorithm converges to $x$ as $N$ tends to infinity, see [29] . Usually, these assumptions are met in the context of computing Perron-Frobenius eigenvectors for infinite non-negative matrices with some communication structure (e.g. irreducibility, see [30] for more details). In the context of discrete-time Markov chains, invariant measures are right eigenvectors for the Perron-Frobenius eigenvalue 1, whereas left eigenvectors are related to hitting probabilities (or absorption probabilities). Therefore, an extension of our considerations could refer to the task of computing these probabilities under appropriate assumptions on the transition structure. Further generalizations could deal with the following generalizations:

・ In the tridiagonal case (that is, $n=1$ ), a generalization to block-matrices (that is, the corresponding Markov chain is a quasi-birth-death process) by means of matrix-valued continued fractions has been studied in [31] . The resulting algorithm is similar to the matrix-analytic methods studied in [32] [33] . An intuitive combination is the study of transition probability matrices of the form (1) where all ${P}_{kl}$ are matrices. For practical issues, it would be desirable to find a memory-efficient algorithm for computing stationary expectations. For quasi-birth-death processes (that is, block-tridiagonal transition matrices), such a method has been suggested in [34] .

・ Instead of banded matrices, we could consider upper Hessenberg matrices P (or lower Hessenberg matrices S). Then the difference equation (4) of order n is replaced by a difference equation of infinite order (sometimes referred to as sum equation). Furthermore, arbitrary lower bandwidthes for P could be considered (as in [9] , where the upper bandwidth was restricted to 1).

Acknowledgements

We acknowledge support by Open Access Publishing Fund of Clausthal University of Technology.

Cite this paper

Baumann, H. and Hanschke, T. (2017) Inherent Numerical Instability in Computing Invariant Measures of Markov Chains. Applied Mathematics, 8, 1367-1385. https://doi.org/10.4236/am.2017.89101

References

- 1. Karlin, S. and Taylor, H.M. (1981) A Second Course in Stochastic Processes. Academic Press, New York.
- 2. Miller, K.S. (1968) Linear Difference Equations. Benjamin, New York.
- 3. Cash, J.R. (1980) A Note on the Numerical Solution of Linear Recurrence Relations. Numerische Mathematik, 34, 371-386. https://doi.org/10.1007/BF01403675
- 4. Gautschi, W. (1967) Computational Aspects of Three-Term Recurrence Relations. SIAM Review, 9, 24-82. https://doi.org/10.1137/1009002
- 5. Gautschi, W. (1972) Zur Numerik rekurrenter Relationen. Computing, 9, 107-126. https://doi.org/10.1007/BF02236961
- 6. Lozier, S.W. (1980) Numerical Solution of Linear Difference Equations. Report NBSIR 80-1976, National Bureau of Standards, US Dept. of Commerce, Washington DC. https://doi.org/10.6028/NBS.IR.80-1976
- 7. Mattheij, R.M.M. (1980) Characterization of Dominant and Dominated Solutions of Linear Recursions. Numerische Mathematik, 35, 421-442. https://doi.org/10.1007/BF01399009
- 8. Wimp, J. (1984) Computation with Recurrence Relations. Pitman, Boston.
- 9. Hanschke, T. (1992) Markov Chains and Generalized Continued Fractions. Journal of Applied Probability, 29, 838-849. https://doi.org/10.1017/S0021900200043710
- 10. Jacobi, C.G.J. (1868) Allgemeine Theorie der kettenbruchahnlichen Algorithmen, in welchen jede Zahl aus drei vorhergehenden gebildet wird. [General Theory of Continued-Fraction-Type Algorithms in Which Every Number Is Generated by the Three Preceding Ones.] Journal für die reine und angewandte Mathematik, 69, 29-64. https://doi.org/10.1515/crll.1868.69.29
- 11. Perron, O. (1907) Grundlagen für eine Theorie des Jacobischen Kettenbruchalgorithmus. [Fundamentals for a Theory of Jacobi’s Continued-Fraction Algorithm.] Mathematische Annalen, 64, 1-76. https://doi.org/10.1007/BF01449880
- 12. Perron, O. (1907) über die Konvergenz der Jacobi-Kettenalgorithmen mit komplexen Elementen. [On the Convergence of Jacobi’s Continued-Fraction Algorithms with Complex Elements.] Sitzungsber. Akad. München, 37, 401-482.
- 13. Van der Cruyssen, P. (1979) Linear Difference Equations and Generalized Continued Fractions. Computing, 22, 269-278. https://doi.org/10.1007/BF02243567
- 14. Perron, O. (1909) über lineare Differenzen-und Differentialgleichungen. [On Linear Difference and Differential Equations.] Mathematische Annalen, 66, 446-487. https://doi.org/10.1007/BF01450044
- 15. Hanschke, T. (1991) über die Minimallosung der Poincare-Perronschen Differenzengleichung. [On the Minimal Solution of the Poincaré-Perron Difference Equation.] Monatshefte für Mathematik, 112, 281-295. https://doi.org/10.1007/BF01351769
- 16. Hanschke, T. (1998) Ein verallgemeinerter Jacobi-Perron-Algorithmus zur Reduktion linearer Differenzengleichungssysteme. [A Generalized Jacobi-Perron Algorithm for the Reduction of Systems of Linear Difference Equations.] Monatshefte für Mathematik, 126, 287-311. https://doi.org/10.1007/BF01299054
- 17. Levrie, P. and Bultheel, A. (1996) Matrix Continued Fractions Related to First-Order Linear Recurrence Systems. Electronic Transactions on Numerical Analysis, 4, 46-63.
- 18. Levrie, P. (1986) Pringsheim’s Theorem for Generalized Continued Fractions. Journal of Computational and Applied Mathematics, 14, 439-445.
- 19. de Bruin, M.G. (1978) Convergence of Generalized C-Fractions. Journal of Approximation Theory, 24, 177-207. https://doi.org/10.1016/0021-9045(78)90023-0
- 20. Seneta, E. (1967) Finite Approximations to Infinite Non-Negative Matrices. Proceedings of the Cambridge Philosophical Society, 63, 983-992. https://doi.org/10.1017/S0305004100042006
- 21. Seneta, E. (1968) Finite Approximations to Infinite Non-Negative Matrices II. Proceedings of the Cambridge Philosophical Society, 64, 465-470. https://doi.org/10.1017/S0305004100043061
- 22. Seneta, E. (1980) Computing the Stationary Distribution for Infinite Markov Chains. Linear Algebra and Its Applications, 34, 259-267.
- 23. Golub, G. and Seneta, E. (1974) Computation of the Stationary Distribution of an Infinite Stochastic Matrix of Special Form. Bulletin of the Australian Mathematical Society, 10, 255-261. https://doi.org/10.1017/S0004972700040867
- 24. Reuter, G.E.H. (1957) Denumerable Markov Processes and the Associated Contraction Semigroup on L. Acta Mathematica, 97, 1-46. https://doi.org/10.1007/BF02392391
- 25. Kendall, D.G. and Reuter, G.E.H. (1957) The Calculation of the Ergodic Projection for Markov Chains and Processes with a Countable Infinity of States. Acta Mathematica, 97, 103-144. https://doi.org/10.1007/BF02392395
- 26. Tweedie, R.L. (1973) The Calculation of Limit Probabilities for Denumerable Markov Processes from Infinitesimal Properties. Journal of Applied Probability, 10, 84-99. https://doi.org/10.1017/S0021900200042108
- 27. Tweedie, R.L. (1975) Sufficient Conditions for Regularity, Recurrence and Ergodicity of Markov Processes. Mathematical Proceedings of the Cambridge Philosophical Society, 78, 125-136. https://doi.org/10.1017/S0305004100051562
- 28. Gross, D., Shortle, J.F., Thompson, J.M. and Harris, C.M. (2008) Fundamentals of Queueing Theory. 4th Edition, Wiley, New Jersey. https://doi.org/10.1002/9781118625651
- 29. Baumann, H. (2017) Generalized Continued Fractions: Definitions, Convergence and Applications to Markov Chains. Habilitationsschrift. Clausthal University of Technology, Clausthal-Zellerfeld.
- 30. Seneta, E. (1981) Non-Negative Matrices and Markov Chains. Springer, New York. https://doi.org/10.1007/0-387-32792-4
- 31. Hanschke, T. (1999) A Matrix Continued Fraction Algorithm for the Multiserver Repeated Order Queue. Mathematical and Computer Modelling, 30, 159-170.
- 32. Baumann, H. and Sandmann, W. (2010) Numerical Solution of Level Dependent Quasi-Birth-and-Death Processes. Procedia Computer Science, 1, 1561-1569. https://doi.org/10.1016/j.procs.2010.04.175
- 33. Bright, L. and Taylor, P.G. (1995) Calculating the Equilibrium Distribution in Level Dependent Quasi-Birth-and-Death Processes. Communication in Statistics. Stochastic Models, 11, 497-525. https://doi.org/10.1080/15326349508807357
- 34. Baumann, H. and Sandmann, W. (2013) Computing Stationary Expectations in Level-Dependent QBD Processes. Journal of Applied Probability, 50, 151-165. https://doi.org/10.1017/S0021900200013176