This is LaTeX code:
[latex]
X_1 \sim \begin{pmatrix} 0 & 1 \\ q & p \end{pmatrix}
[/latex]