Let's say I have a transition matrix P $$ \begin{bmatrix} 0.4 & 0.6 & 0. & 0.& 0.\\ 0.5 &0. & 0.5 &0. & 0. \\ 0.6 &0. & 0. & 0.4 &0. \\ 0.7 &0. & 0. & 0. & 0.3\\ 1. & 0.& 0.& 0.& 0. \end{bmatrix} $$
The stationary distribution of this matrix, which describes a real-world process, has imaginary values. The Perron-Frobenius eigenvalue is 1. I know for advection processes or processes where stuff stays in the system forever i.e. $\lambda=1$, we deal with imaginary values because those don't disappear. However, I don't know enough about transition matrices to know if the same thing is going on here.
Also, if I wanted to use the stationary distribution as a probability distribution in order to calculate something in expectation, but I end up having imaginary values in the stationary distribution, were I to calculate my expected value as normal, can I still treat it as a proper expectation or is it now meaningless?
Thanks.
Here's some code to compute the eigenvector using the standard scipy linear algebra library:
The output:
The eigenvectors of the matrix are the columns of the second array returned, not the rows.