The following is an interview question:
Two players A and B play a game rolling a fair die. If A rolls a 1, he immediately reroll, and if the reroll is less than 4 then A wins. Otherwise, B rolls. If B rolls a 6, he win, otherwise A rolls again, and so on. What is the probability A wins?
My approach: I have 4 states S (initial starting state), 1, 1-{1,2,3}, 6, and this is my markov chain matrix (note that 1-{1,2,3} is the state where Person A rolls a 1 then either 1,2,3)
$ \begin{array}{c|cccc} & \text{S} & \text{1} & \text{1-{1,2,3}} & \text{6} \\ \hline \text{S} & 4/6 & 1/6 & 0 & 1/6 \\ \text{1} & 33/36 & 0 & 3/36 & 0 \\ \text{1-{1,2,3}} & 0 & 0 & 1 & 0 \\ \text{6} & 0 & 0 & 0 & 1 \\ \end{array} $
Using this I calculate probability of absorption to state 1-{1,2,3} and get 0.0769. Is this matrix the right set up? And is there a simpler way of doing this?
Thank you!
Lulu's answer is quite simple and elegant.
Here's a slightly different approach, lengthier but perhaps a bit easier to understand.
Consider the first round.
Probability of A winning is
$$\frac{1}{6} \times \frac{1}{2} = \frac{1}{12}$$
Probability of neither of them winning the round is
$$\frac{11}{12} \times \frac{5}{6} = \frac{55}{72}$$
Also, these remain the same for every round viewed in isolation.
So, probability of A winning in the second round would be
$$\frac{55}{72} \times \frac{1}{12}$$
Similarly, probability of A winning in the third round would be
$$\left (\frac{55}{72} \right )^2\times \frac{1}{12}$$
Summing up the probability of A winning in round $1$, or $2$ ... infinity, we get the overall probability.$^{*}$
$$\begin{align*} P(A) &= \frac{1}{12} + \frac{1}{12} \times \frac{55}{72} + \frac{1}{12} \times \left (\frac{55}{72} \right )^2 + \, ...\\[0.3cm] &= \frac{\frac{1}{12}}{1 - \frac{55}{72}} \\[0.3cm] &= \frac{6}{17} \\[0.3cm] \end{align*}$$
$^{*}$ Sum of an infinite geometric sequence with $|r| < 1$ is $\frac{a}{1 - r}$.