A coin is tossed continuously until 2 heads or 2 tails appear respectively. Let the result of first toss is tail. The game is over when we get 2 heads respectively.
Determine the transition probability matrix.
Check my answer is correct or not.
Let $X_n$ denote the number of tail that appear. Let the state $S=\{0,1,2\}$.
So, the transition probability matrix is $$P= \begin{bmatrix} 1&0&0\\ 0&\dfrac{1}{2}&\dfrac{1}{2}\\ 0&0&1 \end{bmatrix}. $$
Notice that $a_{i,j}$ element in matrix describes the probability of transition from state $i$ to $j$. Your matrix describes process in which '$0$' is absorbing state (which is obviously not true).
If the matrix shall describe number of consecutive tails (and the two tails is absorbing state) then the matrix is as follows: $$P= \begin{bmatrix} \dfrac{1}{2}&\dfrac{1}{2}&0\\ \dfrac{1}{2}&0&\dfrac{1}{2}\\ 0&0&1 \end{bmatrix}. $$