86 3 Markov Chains
1. Repeated multiplications to get P
n
.
2. Expanding the initial distribution vector s(0).
3. Diagonalizing the matrix P.
4. Using the Jordan canonic form of P.
5. Using the z-transform.
The first method is simple and is best done using a mathematical package such
as MATLAB. We have seen examples of this technique in the previous section. We
show in the following sections how the other techniques are used.
3.11 Finding s (n) by Expanding s(0)
In most cases the transition matrix P is simple, i.e. it has m distinct eigenvalues. In
that case we can express our initial distribution vector s(0) as a linear combination
of the m eigenvectors:
s(0) = c
1
x
1
+c
2
x
2
+···+c
m
x
m
(3.40)
where x
i
is the ith eigenvector of P and c
i
is the corresponding scalar expansion
coefficients. We can write the above equation as a simple matrix expression:
s(0) = Xc (3.41)
where X is an m × m matrix whose columns are the eigenvectors of P and c is an
m-component vector of the expansion coefficients:
X =
x
1
x
2
··· x
m
(3.42)
c =
c
1
c
2
··· c
m
t
(3.43)
We need not normalize the eigenvectors before we determine the coefficients
vector c because any normalization constant for X will be accounted for while de-
termining c.
To find s(n) we will use the technique explained below. Equation (3.41) is a
system of m-linear equations in m unknowns, namely the components of the column
vector c. There are many numerical techniques for finding these components like
Gauss elimination, Kramer’s rule, etc. MATLAB has a very simple function for
finding the eigenvectors of P:
X = eig(P) (3.44)
where matrix X will contain the eigenvectors in its columns. To find the coefficient
vector c we use MATLAB to solve the system of linear equations in (3.41) by typing
the MATLAB command