Question from professor that I need help with
After answering exercise 14 calculate $E(N_i)$ and then $f_i$ for all $i$ in state spaces of the Markov chains depicted by the four transition matrices in exercise 14.
Question 14
Specify the classes of the following Markov chains, and determine whether they are transient or recurrent:
Partial Answer:
$$P_1=\begin{bmatrix}0&\frac{1}{2}&\frac{1}{2}\\\frac{1}{2}&0&\frac{1}{2}\\\frac{1}{2}&\frac{1}{2}&0\end{bmatrix}$$ $S=\{0,1,2\}$ recurrent.
$$P_3=\begin{bmatrix}\frac{1}{2}&0&\frac{1}{2}&0&0\\ \frac{1}{4}&\frac{1}{2}&\frac{1}{4}&0&0\\ \frac{1}{2}&0&\frac{1}{2}&0&0\\ 0&0&0&\frac{1}{2}&\frac{1}{2}\\ 0&0&0&\frac{1}{2}&\frac{1}{2}\\\end{bmatrix}$$ $S_1=\{0,2\}$ recurrent.$S_2=\{3,4\}$ recurrent.$S_3=\{1\}$ transient.
Definitions:
$t_i= inf\{n\geq 1, X_n=i\}$ ,return time to state I
$f_i=P_i(t_i < \infty)$ ,probability that the Markov chain starting at $i$ will ever return to $i$
$N_i=$ number of visits to state $i$
I only gave two of the four transition matrices just to make it a bit shorter.
My question lies in how to go about solving my professors question.