Consider the Markov chain with state space $E=\left\{0,1,2,3,4,5,6\right\}$ and transition matrix $$ \begin{pmatrix}1/5 & 3/5 & 0 & 0 & 1/5 & 0 & 0\\0 & 0 & 1 & 0 & 0 & 0 & 0\\0 & 1/3 & 2/3 & 0 & 0 & 0 & 0\\0 & 1 & 0 & 0 & 0 & 0 & 0\\0 & 0 & 0 & 0 & 0 & 1 & 0\\0 & 0 & 0 & 0 & 0 & 0& 1\\0 & 0 & 0 & 0 & 1 & 0 & 0\end{pmatrix} $$ Determine the entropy of this Markov chain!
First of all I determined the adjaceny matrix $$ A=\begin{pmatrix}1 & 1 & 0 & 0 & 1 & 0 & 0\\0 & 0 & 1 & 0 & 0 & 0 & 0\\0 & 1 & 0 & 1 & 0 & 0 & 0\\0 & 1 & 0 & 0 & 0 & 0 & 0\\0 & 0 & 0 & 0 & 0 & 1 & 0\\0& 0 & 0 & 0 & 0 & 0 & 1\\0 & 0 & 0 & 0 & 1 & 0 & 0\end{pmatrix}. $$ Determine the entropy of the Markov chain.
Then I determined the communicating classes, which are $$ C_1=\left\{1,2,3\right\},~~~C_2=\left\{4,5,6\right\},~~~C_3=\left\{0\right\}. $$ Then I considered the graph with vertices $C_1, C_2, C_3$ and for which there is an edge from class $C$ to class $D$ if there is an edge from any state in $C$ to any state in $D$.
Then I ordered the classes such that there can only be an edge from $C_j$ to $C_i$ if $j>0$, getting the matrix $$ \begin{pmatrix} 0 & 1 & 0 & 0 & 0 & 0 & 0\\1 & 0 & 1 & 0 & 0 & 0 & 0\\1 & 0 & 0 & 0 & 0 & 0 & 0\\0 & 0 & 0 & 0 & 1 & 0 & 0\\0 & 0 & 0 & 0 & 0 & 1 & 0\\0 & 0 & 0 & 1 & 0 & 0 & 0\\1 & 0 & 0 & 1 & 0 & 0 & 1 \end{pmatrix} $$ which is in triangular form; on the diagonal I have three square irreducible matrices.
A book says that the entropy is now the logarithm of the maximal eigenvalue (absolute value) of these three matrices. I determined the eigenvalues of the three matrices and the maximal absolut value is 1.325 (rounded).
So I get the result $$ \approx\log_2(1.325)=0.406. $$
So the entropy of the Markov chain is approximately $0.4$.
Am I right? And how can I interpret this result?
The entropy rate of a Markov chain with transition matrix $P$ and stationary distribution $\pi$ is $$h(Q)=-\sum\limits_{i,j}\pi_iP_{i,j}\log P_{i,j}.$$ The specific transition matrix $P$ given in the question yields a Markov chain circling, after a while, deterministically on the states $$4\to5\to6\to4,$$ hence $\pi_i=0$ for every $i$ in $\{0,1,2,3\}$ and $P_{i,j}\log P_{i,j}=0$ for every $i$ in $\{4,5,6\}$ and every $j$.
In particular, $$h(P)=0,$$ as it should be for any essentially deterministic random process.