<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>cient Computation of Equilibrium/Transient Probability Distribution of Arbitrary Finite State Space Continuous Time Markov Chains</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer Science and Engineering, Ecole Centrale School of Engineering, Mahindra University</institution>
          ,
          <addr-line>Bahadurpally, Hyderabad</addr-line>
          ,
          <country country="IN">India</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this research paper, e cient algorithms for computation of equilibrium as well as transient probability distribution of arbitrary nite state space Continuous / Discrete Time Markov Chains are proposed. The e ective idea is to solve a structured systems of linear equations e ciently. The ideas of this research paper could be utilized in solving structured system of linear equations that arise in other applications.</p>
      </abstract>
      <kwd-group>
        <kwd>Continuous Time Markov Chains</kwd>
        <kwd>Region of Convergence</kwd>
        <kwd>Generator Matrix</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>Markov chains provide interesting stochastic models of natural/arti cial
phenomena arising in science and engineering. The existence of equilibrium
behavior enables computation of equilibrium performance measures. Thus, researchers
invested considerable e ort in e ciently computing the equilibrium probability
distribution of Markov Chains and thus, the equilibrium performance measures.</p>
      <p>
        Traditionally, computation of transient probability distribution of
Continuous Time Markov Chains (CTMCs) was considered to be a di cult open
problem. It requires computation of Matrix Exponential associated with the generator
matrix of CTMC. Even in the case of nite state space CTMCs, e cient
computation of transient probability distribution was considered to be a di cult open
problem. In [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], an interesting approach for recursive computation of transient
probability distribution of arbitrary nite state space CTMCs was proposed. In
the case of in nite state space, Quasi-birth-and-Death (QBD) processes, matrix
geometric recursion for transient probability distribution was found in [16].
      </p>
      <p>
        It is well known that computation of equilibrium distribution of CTMCs
reduces to solution of linear system of equations. The approach proposed in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]
reduces the computation of transient probability distribution of nite state space
CTMCs to solving linear system of equations in the transform (Laplace
transform) domain. Thus, an interesting question that remained deals with e cient
solution of such structured linear system of equations in the Laplace transform
domain. In fact, a more interesting problem is to design an algorithm which
meets a lower bound on the computation of solution of structured system of
linear equations arising in the transient/equilibrium analysis of CTMCs.
      </p>
      <p>This research paper is organized as follows. In Section 2, related literature is
reviewed. In Section 3, algorithm for e cient computation of equilibrium
probability mass function (PMF) of CTMCs is discussed. In Section 4, algorithm for
e cient computation of transient PMF of CTMCs is discussed. In Section 5, we
provide numerical results. The research paper concludes in Section 6.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Review of Literature</title>
      <p>It is well known that computation of equilibrium probability vector of a
Homogeneous CTMC with generator Q reduces to the solution of the following
linear system of equations (computation of vector in the left null space of the
generator matrix Q):</p>
      <p>Q
0:
It should be noted that in the case of homogeneous Discrete Time Markov Chain
(DTMC) with state transition matrix P , the computation of equilibrium
probability vector reduces to the solution of following linear system of equations
i.e.</p>
      <p>P
or, equivalently, (P</p>
      <p>
        I)
0:
It readily follows that (P I) has the properties of a generator matrix. Thus,
in the following discussion, we consider only the computation of equilibrium
probability vector of a CTMC. In computational linear algebra, there are e
cient algorithms to solve linear system of equations [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], [12], [15]. Volker Strassen
made fundamental contributions to this problem [13], [14]. He showed that the
complexity of matrix inversion is equivalent to that of matrix multiplication.
It readily follows that the matrix Q is a Laplacian matrix (i.e. a square
matrix with positive diagonal and non-positive o -diagonal elements such that the
row sums are zero). There are e cient algorithms to solve Laplacian system of
equations [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>E cient Computation of Equilibrium Probability Mass</title>
    </sec>
    <sec id="sec-4">
      <title>Function of CTMCs</title>
      <p>
        But, from the point of view of computing , the structure of generator matrix Q
was not completely taken into account. Thus, the goal of this research paper is
to design e cient algorithm for computing , taking into account the structure
of generator matrix Q: Some related e ort dealing with Laplacian system of
equations is discussed in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. In fact, we would like to design a computationally
optimal algorithm for computation of (in terms of computational complexity).
We illustrate the essential idea with a CTMC with 4 states.
3.1
      </p>
      <p>
        CTMC with 4 States
First consider the generator matrix of a CTMC with 4 states (i.e. 4 x 4 matrix)
partitioned using blocks of size 2 x 2 (i.e. there are 4 such 2 x 2 matrices in the
generator) [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. Speci cally, we have
      </p>
      <p>Q =</p>
      <p>A11 A12</p>
      <p>A21 A22
Q~ =</p>
      <p>A~11 A~12 :</p>
      <p>0 A22
1A~11 = 0;
1A~12 + 2A22 = 0:
2 =</p>
      <p>1A~12A221:
where Ai;j ; i; j 2 f1; 2g, are 2 x 2 square matrices in the 4 x 4 block matrix Q.</p>
      <p>Claim: For an irreducible positive recurrent (recurrent non-null) CTMC with
generator matrix Q, it is well known that the matrices A11 and A22 are
nonsingular. Hence, we have that</p>
      <p>A21 = A22X with X = A221A21:
Thus, by means of elementary column operations (i.e. multiplication by a scalar
and addition/subtraction), the generator matrix Q can be converted into the
block upper triangular form:
Note that A~22 = A22.</p>
      <p>Let X = [f1 f2]. Hence, column operations to arrive at Q~ (from Q) are
determined by the column vectors f1; f2. Also, it follows from linear algebra, that
the equilibrium probability vector is una ected by such column operations.
Hence, with = [ 1 2]; we have the following system of linear equations:
i.e. the boundary system of two equations and
(1)
(2)</p>
      <sec id="sec-4-1">
        <title>Thus, we have</title>
      </sec>
      <sec id="sec-4-2">
        <title>Further, since equation</title>
        <p>The boundary system of equations corresponds to a singular matrix A~11 for an
irreducible, recurrent non-null Markov chain (otherwise will be zero). Thus
the boundary system of linear equations leads to a single linear equation in two
variables 1 = [ 1;1 1;2]: Hence we have a linear equation of the form
1;1
+ 1;2
= 0: Thus, 1;2 =</p>
        <p>1;1 :
2 can be expressed in-terms of 1; we utilize the normalizing</p>
        <p>e = 1;
where e is a column vector of ones, to determine 1;1 and hence all the other
equilibrium probabilities.</p>
        <p>Remark 1: We realize that the inverse of a 2 x 2 matrix can be computed
by inspection and essentially only requires computation of the determinant. For
instance, let us consider a 2 x 2 matrix B:</p>
      </sec>
      <sec id="sec-4-3">
        <title>It is well known that where B =</title>
        <p>Now, we generalize the above algorithm for the case, where the number of states,
N = 2m, where m &gt; 2. In such case, the generator matrix is of the following
form:
are all non-singular matrices, except A11 or Amm.</p>
        <p>
          Proof: Refer [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. The proof utilizes the fact that strictly diagonally dominant
matrix is non-singular. tu
        </p>
        <p>Hence, as in the m = 2 case, by means of elementary column operations on
the generator matrix Q, we arrive at the following block upper triangular matrix
Q~:</p>
        <p>6 0
Q~ = 666 ...
The above system of linear equations is recursively solved to compute the
equilibrium probability vector i.e.</p>
        <p>for 2
j</p>
        <p>1);
j =
(m
1A1j A~jj1
~
2A2j A~jj1
~
j 1Aj 1j A~jj1
~
m =
1A~1mA~m1m
2A~2mA~m1m</p>
        <p>~
m 1Am 1mAm1m:
As in the m = 2 case, using non-singular matrices on the diagonal of generator
matrix, Q, it can be converted to a block upper-triangular matrix. Since inverse
of 2 x 2 matrices on the diagonal of Q can be computed e ciently, an e cient
algorithm exists for such a computational problem.</p>
        <p>
          De nition: nite memory recursion of order L for the equilibrium
probability vector is of the following form
(L + 1) = (1)W1 + (2)W2 +
+ (L)WL;
where Wi; i = 1; : : : ; L, are recursion matrices. We call such a recursion forward
nite memory recursion [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. Such a forward nite memory recursion holds true
for in nite state space CTMCs also [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ], [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ], [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ].
        </p>
        <p>Remark 2: Since A~jj are all non-singular 2 x 2 matrices, their inverse can
be e ciently computed.</p>
        <p>Computational Complexity We now compute the computational complexity
of the algorithm to determine equilibrium probabilities in most general case.
{ Conversion of Q into a Block Upper Triangular Matrix: This task is
accomplished using an approach similar to Gaussian elimination using the 2 x 2
non-singular matrices. It requires
(i)
(M
1)2 + (M
2)2 +
+ 22 + 1 =</p>
        <p>M (M
1)(2M
6
1)
;
2 x 2 matrix multiplication,</p>
        <p>M (M
1)(2M
6
1)
;
2 x 2 matrix additions and (M 1) inversions of 2 x 2 matrices.
(ii) 2 x 2 Matrix inversions needed in Finite Memory Recursion: We require
(m 2) inversions of 2 x 2 matrices (since Am~ m is already inverted in step
(i)). Each 2 x 2 matrix inversion requires (a) Determinant computation
i.e. 2 multiplications and one subtraction; (b) Division of elements by
determinant i.e. 4 divisions.
(iii) 2 x 2 Matrix Multiplications: In the above system of linear equations, we
require
1 + 2 + 3 +
+ (m
1) =
2
multiplications of two 2 x 2 matrices. Each such multiplication (of two
2 x 2 matrices) requires at most 8 multiplications and 4 additions. To
reduce the complexity, we can utilize Strassen's multiplication algorithm.
The number of multiplications required to compute the product of 2 x 2
matrices reduces to 7 (using Strassen's algorithm). But with Strassen's
algorithm we require 18 additions/subtractions.
(iv) Vector Matrix Multiplications: We require
m(m</p>
        <p>1)
1 + 2 + 3 +
+ (m
1) =
m(m</p>
        <p>1)
2
multiplications of 1 x 2 and 2 x 2 matrices ( i.e. multiplication of row
vector and 2 x 2 matrix).
{ Normalization requires (2m 1) additions and one division to obtain 1;1:
{ Finally, we require (2m 1) multiplications to determine the equilibrium
probabilities using 11:
Thus, total number of 2 x 2 matrix inversions, 2 x 2 matrix multiplications and
2 x 2 matrix additions and other arithmetical operations required can be readily
determined.</p>
        <p>Note that in the computer implementation of any algorithm, divisions are
\more expensive" than multiplications. Hence, in the above inversion of 2 x 2
matrices, we rst compute the inverse of determinant and convert the
associated divisions to multiplications.</p>
        <p>
          Note also that in the case of QBD processes, Latouche et.al utilize Gaussian
Elimination method to compute the equilibrium probability distribution [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ]. In
fact they provide probabilistic interpretation of the method.
        </p>
        <p>Remark 3: Suppose, the number of states of the CTMC is an Odd number.
Then, we consider the 3 x 3 boundary system of linear equations (i.e. the initial
probability vector is of dimension 3) and utilize the above idea to compute the
equilibrium probability vector e ciently.</p>
        <p>
          Remark 4: It should be noted that using similar idea (as discussed above), by
means of elementary column operations, the generator matrix can be converted
into a block lower triangular matrix. In this case, the boundary system of linear
equations is at the trailing boundary. By solving for the last probability vector,
we recursively compute the equilibrium probabilities. We call such a recursion
as the backward nite memory recursion [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ].
4
        </p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>E cient Computation of Transient Probability Mass</title>
    </sec>
    <sec id="sec-6">
      <title>Function of CTMCs</title>
      <p>It is well known that the transient PMF of a homogeneous CTMC (generator
matrix doesn't depend on time t, unlike non-homogeneous CTMC) satis es the
following vector matrix di erential equation i.e.</p>
      <p>d
dt</p>
      <p>(t) = (t)Q:
s~(s)</p>
      <p>~(0) = ~(s)Q:
~(s) =
~(0)[Q
sI] 1:
Taking Laplace-Transform on both sides, we have that
Equivalently, we have the following expression for ~(s):
These constitute a structured system of linear equations. Our goal is to e ciently
solve such system of equations for (s) and compute the inverse Laplace
transform of (s) to arrive at the time dependent (transient) PMF of CTMC.</p>
      <p>Lemma 2: For a positive recurrent (recurrent non-null) CTMC, in the
Region of Convergence (ROC) (of Laplace transform) the sub-matrices on the
diagonal of (Q sI) are non-singular.</p>
      <p>Proof : As in the equilibrium case, such matrices are all strictly diagonally
dominant and hence are all non-singular. tu</p>
      <p>Thus, as in the case of computation of equilibrium PMF, (s) can be
determined e ciently for the values of s lying in the Region of Convergence. Detailed
duplication of equations is avoided for brevity.</p>
    </sec>
    <sec id="sec-7">
      <title>Conclusions</title>
      <p>In this research paper, e cient algorithms for computing the equilibrium and
transient probability distribution of an arbitrary nite state space CTMC are
discussed. The algorithms e ectively solve a structured system of linear
equations e ciently. It might be interesting to apply the proposed method to solving
system of linear equations, where the coe cient matrix has the structure similar
to a generator matrix (i.e. structured diagonally dominant matrix), for instance,
the generator matrix has Toeplitz structure in some applications. This idea,
however, is left for future research.
12. Stothers, Andrew James. "On the complexity of matrix multiplication." (2010).
13. Strassen, Volker. "Gaussian elimination is not optimal." Numerische mathematik
134), 354-356 (1969).
14. Strassen, Volker. "The asymptotic spectrum of tensors and the exponent of matrix
multiplication." In 27th Annual Symposium on Foundations of Computer Science
(sfcs 1986), pp. 49-54. IEEE, (1986).
15. Williams, Virginia Vassilevska. "Multiplying matrices faster than
CoppersmithWinograd extended abstract." In Proceedings of the 2012 ACM Symposium on
Theory of Computing (STOC'12). ACM, New York. (2012).
16. Zhang, Ji, and Edward J. Coyle. "Transient analysis of quasi-birth-death
processes." Stochastic Models 5(3), 459-496 (1989).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Cohen</surname>
            ,
            <given-names>Michael B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jonathan</surname>
            <given-names>Kelner</given-names>
          </string-name>
          , Rasmus Kyng, John Peebles, Richard Peng, Anup B.
          <string-name>
            <surname>Rao</surname>
            , and
            <given-names>Aaron</given-names>
          </string-name>
          <string-name>
            <surname>Sidford</surname>
          </string-name>
          .
          <article-title>"Solving directed laplacian systems in nearlylinear time through sparse LU factorizations."</article-title>
          <source>In 2018 IEEE 59th Annual Symposium on Foundations of Computer Science (FOCS)</source>
          , pp.
          <fpage>898</fpage>
          -
          <lpage>909</lpage>
          . IEEE, (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Doron</surname>
          </string-name>
          ,
          <string-name>
            <surname>Dean</surname>
          </string-name>
          , Francois Le Gall, and
          <string-name>
            <surname>Amnon</surname>
          </string-name>
          Ta-Shma.
          <article-title>"Probabilistic logarithmicspace algorithms for laplacian solvers." In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2017)</article-title>
          .
          <article-title>Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik, (</article-title>
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>Le</given-names>
            <surname>Gall</surname>
          </string-name>
          , Francois.
          <article-title>"Powers of tensors and fast matrix multiplication."</article-title>
          <source>In Proceedings of the 39th international symposium on symbolic and algebraic computation</source>
          , pp.
          <fpage>296</fpage>
          -
          <lpage>303</lpage>
          . (
          <year>2014</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Gaver</surname>
            ,
            <given-names>D. P.</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>P. A.</given-names>
            <surname>Jacobs</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Guy</given-names>
            <surname>Latouche</surname>
          </string-name>
          .
          <article-title>"Finite birth-and-death models in randomly changing environments</article-title>
          .
          <source>" Advances in applied probability 16(4)</source>
          ,
          <fpage>715</fpage>
          -
          <lpage>731</lpage>
          (
          <year>1984</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>G. Rama</given-names>
            <surname>Murthy</surname>
          </string-name>
          . \
          <article-title>Transient and Equilibrium Analysis of Markov Chains: Forward and Backward Finite memory Recursions: Canonical Forms,"</article-title>
          <source>Proceedings of the Princeton Annual Conference on Information Sciences and Systems</source>
          , Vol.
          <volume>2</volume>
          , pp.
          <fpage>574</fpage>
          -
          <lpage>579</lpage>
          . (
          <year>1990</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>G. Rama</given-names>
            <surname>Murthy</surname>
          </string-name>
          .
          <article-title>"Transient and Equilibrium Analysis of Computer Networks: Finite Memory and Matrix Geometric Recursions,"</article-title>
          <source>Ph.D thesis</source>
          , Purdue University, West Lafayette, USA, (
          <year>1989</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Garimella</surname>
            ,
            <given-names>Rama</given-names>
          </string-name>
          <string-name>
            <surname>Murthy</surname>
          </string-name>
          .
          <article-title>E cient Algorithms for Computation of Equilibrium/Transient Probability Distribution of Finite Markov Chains: Potential Lower Bound on Computational Complexity</article-title>
          .
          <source>No. 490. EasyChair</source>
          , (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Murthy</surname>
            , G. Rama, and
            <given-names>Edward J.</given-names>
          </string-name>
          <string-name>
            <surname>Coyle</surname>
          </string-name>
          .
          <article-title>"Finite Memory Recursive Solutions in Stochastic Models: Equilibrium</article-title>
          and
          <string-name>
            <given-names>Transient</given-names>
            <surname>Analysis</surname>
          </string-name>
          .
          <source>"</source>
          (
          <year>1989</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Murthy</surname>
            , Garimella Rama, and
            <given-names>Rumyantsev</given-names>
          </string-name>
          <string-name>
            <surname>Alexander</surname>
          </string-name>
          .
          <article-title>" On an exact solution of the rate matrix of Quasi-Birth-Death process with small number of phases"</article-title>
          ,
          <source>Proceedings of 31st European Conference on Modelling and Simulation ( ECMS</source>
          <year>2017</year>
          ), Budapest, Hungary, (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Garimella</surname>
            , Rama Murthy, and
            <given-names>Rumyantsev</given-names>
          </string-name>
          <string-name>
            <surname>Alexander</surname>
          </string-name>
          .
          <article-title>"On an exact solution of the rate matrix of G=M=1 type Markov process with small number of phases."</article-title>
          <source>Journal of Parallel and Distributed Computing</source>
          <volume>119</volume>
          ,
          <fpage>172</fpage>
          -
          <lpage>178</lpage>
          (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Stewart</surname>
            ,
            <given-names>William J</given-names>
          </string-name>
          .
          <article-title>Introduction to the numerical solution of Markov chains</article-title>
          . Princeton University Press, (
          <year>1994</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>