140 4 Markov Chains at Equilibrium
4.10 Finding s Using Direct Techniques
Direct techniques are useful when the transition matrix P has no special structure
but its size is small such that rounding errors
1
are below a specified maximum level.
In that case we start with the equilibrium equation
Ps= s (4.53)
where s is the unknown n-component distribution vector. This can be written as
(
P −I
)
s = 0 (4.54)
As= 0 (4.55)
which describes a homogeneous system of linear equations with A = P −I. The
rank of A is n − 1 since the sum of the columns must be zero. Thus, there are
many possible solutions to the system and we need an extra equation to get a unique
solution.
The extra equation that is required is the normalizing condition
m
i=1
s
i
= 1 (4.56)
where we assumed our states are indexed as s
1
, s
2
, ..., s
m
. We can delete any row
matrix A in (4.55) and replace it with (4.56). Let us replace the last row with (4.56).
In that case we have the system of linear equations
⎡
⎢
⎢
⎢
⎢
⎢
⎣
a
11
a
12
··· a
1m
a
21
a
22
··· a
2m
.
.
.
.
.
.
.
.
.
.
.
.
a
m−1,1
a
m−1,2
··· a
m−1,m
11··· 1
⎤
⎥
⎥
⎥
⎥
⎥
⎦
⎡
⎢
⎢
⎢
⎢
⎢
⎣
s
1
s
2
.
.
.
s
m−1
s
m
⎤
⎥
⎥
⎥
⎥
⎥
⎦
=
⎡
⎢
⎢
⎢
⎢
⎢
⎣
0
0
.
.
.
0
1
⎤
⎥
⎥
⎥
⎥
⎥
⎦
(4.57)
This gives us a system of linear equations whose solution is the desired steady-
state distribution vector.
Example 4.7 Find the steady-state distribution vector for the state transition matrix
P =
⎡
⎣
0.40.20
0.10.50.6
0.50.30.4
⎤
⎦
1
Rounding errors occur due to finite word length in computers. In floating-point arithmetic,
rounding errors occur whenever addition or multiplication operations are performed. In fixed-point
arithmetic, rounding errors occur whenever multiplication or shift operations are performed.