The Markov chain given in the question has two transient states and one recurrent state.
The recurrent state is state 2 and as such the matrix has already been arranged in the
required form for this type of problem; namely:
P=(QR0I)
with Q connecting the transient states to the transient states and R connecting the transient
states to the recurrent states. In this question we thus have:
Q=(0.60.10.20.2)andR=(0.30.6)
To calculate the vector of hitting times, h, for this chain we need to use:
h=(I−Q)−11
and as such we need to invert a 2×2 matrix as shown below:
(I−Q)−1=(0.4−0.1−0.20.8)−1=10.4×0.8−0.1×0.2(0.80.10.20.4)=(8/31/32/34/3)
When this matrix is multiplied by a vector containing all ones we get the desired vector of hitting times:
h=(I−Q)−11=(8/31/32/34/3)(11)=(32)
Now, obviously, calculating the hitting probabilities using:
H=(I−Q)−1R
is pointless because there is only one recurrent (absorbing) state. Lets do
it anyway, however, in order to confirm that the formula above gives a result
that is in accordance with our intuition.
H=(I−Q)−1R=(8/31/32/34/3)(0.30.6)=(4/5+1/51/5+4/5)=(11)