TITLE: What values makes this Markov chain aperiodic?
QUESTION [11 upvotes]: Let the following transition matrix represent a $4$ state Markov chain
$$\begin{pmatrix}
  0 & a & 0 & b \\
\frac{1}{2} & 0 & \frac{1}{3}+c & d \\
  0 & a & 0 & b  \\
  e & 0 & f & 0
 \end{pmatrix}$$
Let all the constants be positive real numbers, what values of these would make the chain aperiodic?
Any help here is greatly appreciated, because I can't see how to do this other than finding an expression for the $n$th power of the matrix at the  diagonal values

REPLY [10 votes]: More generally: aperiodicity of a Markov chain depends only on the underlying directed graph. The actual values of the nonzero entries of the transition matrix don't matter, as long as they are nonzero.
EDIT: A picture may help.  Here is the directed graph with the states $1,2,3,4$ and an arrow from $i$ to $j$ wherever the $(i,j)$ entry in the transition matrix is nonzero. 

Consider starting at a state $i$, travelling along the arrows, and ending back at $i$.  If every way of doing this has a number of steps divisible by $d$, and $d$ is the largest integer with this property, then state $i$ has period $d$.  If $d=1$, the state is aperiodic.  As Byron said, starting, say, at state $2$ you can return to $2$ in $2$ steps ($2 \to 1 \to 2$) or $3$ steps ($2 \to 4 \to 1 \to 2$), so state $2$ is aperiodic.  On the other hand, if you removed the arrow from $2$ to $4$ (i.e. made $d=0$), all states would have period $2$.