TeX source:
P=\begin{pmatrix} 0 & 1 \\ 1/2 & 1/2 \end{pmatrix}