Jamie rolls her fair 6-sided die multiple times.
Find the probability that she rolls her first 5 before she rolls her second (not necessarily distinct) even number?
This is what I have so far...
the probability that she rolls a 5 is $\frac{1}{6}$ the probability that she rolls an even number if $\frac{1}{2}$
Now I'm stuck...can anyone help me get to the final product? please be clear and concise.
First, we compute the probability that Jamie rolls a 5 before she rolls an even number. Let this probability equal $q$.
We can write down an equation involving $q$ by considering the different things that could happen on Jamie's first roll. If she rolls a $5$ on her first roll, the game ends and she "wins"; this happens with probability $1/6$. If she rolls an even number on her first roll, the game ends and she "loses"; this happens with probability $1/2$. Otherwise, the game restarts. Thus, $$q = \frac{1}{6} \cdot 1 + \frac{1}{2} \cdot 0 + \frac{1}{3} q \implies q = \frac{1}{4}$$
Now, let $p$ be the probability that Jamie rolls a 5 before she rolls her second even number. Again, we look at cases. If Jamie rolls a 1 or 3, the game resets; this happens with probability $1/3$. If she rolls an even number, then we're reduced to the game that Jamie wins with probability $q$; this happens $1/2$ of the time. And last, if she rolls a 5, then she just wins, and the game ends. So, $$p = \frac{1}{3} p + \frac{1}{2} q + \frac{1}{6} \implies p = \frac{7}{16}$$