# Probability of winning dice game

#### Opalg

##### MHB Oldtimer
Staff member
The starting point (which I guess you already know) is to make a list of the probabilities $p(x)$ of rolling a total of $x$ with the two dice, where $x$ goes from $2$ to $12$. These are $$\begin{array}{r|ccccccccccc}x& 2&3&4&5&6 &7&8&9&10 &11&12\\ \hline p(x) & \frac1{36} & \frac2{36} & \frac3{36} & \frac4{36} & \frac5{36} & \frac6{36} & \frac5{36} & \frac4{36} & \frac3{36} & \frac2{36} & \frac1{36} \end{array}.$$

The probability of an immediate win on the first roll is $p(7)+p(11)$. To win at a later stage, you first need to roll an $x$ (where $x$ is $4,5,6,8,9$ or $10$). You then need to roll another $x$ before rolling a $7$. The probability of those two things happening is $p(x)\dfrac{p(x)}{p(x)+p(7)}$. Putting in the numbers, and adding the various probabilities, I get the overall probability of a win to be $\dfrac{244}{495} \approx 0.49292929\ldots$.

#### TheFallen018

##### Member
The starting point (which I guess you already know) is to make a list of the probabilities $p(x)$ of rolling a total of $x$ with the two dice, where $x$ goes from $2$ to $12$. These are $$\begin{array}{r|ccccccccccc}x& 2&3&4&5&6 &7&8&9&10 &11&12\\ \hline p(x) & \frac1{36} & \frac2{36} & \frac3{36} & \frac4{36} & \frac5{36} & \frac6{36} & \frac5{36} & \frac4{36} & \frac3{36} & \frac2{36} & \frac1{36} \end{array}.$$

The probability of an immediate win on the first roll is $p(7)+p(11)$. To win at a later stage, you first need to roll an $x$ (where $x$ is $4,5,6,8,9$ or $10$). You then need to roll another $x$ before rolling a $7$. The probability of those two things happening is $p(x)\dfrac{p(x)}{p(x)+p(7)}$. Putting in the numbers, and adding the various probabilities, I get the overall probability of a win to be $\dfrac{244}{495} \approx 0.49292929\ldots$.
Wow, that works really well. I thought it was going to be much more complicated and messy than that, which is a beautiful solution. I'm curious though, is that equation $p(x)\dfrac{p(x)}{p(x)+p(7)}$ something that you derived for this, or is this a standard formula for similar problems.If it's something that you derived, would you be able to explain how you came up with it? If it's a standard equation, would you happen to know it's name? I'd love to understand better how and why it works. Thanks

#### Opalg

##### MHB Oldtimer
Staff member
Wow, that works really well. I thought it was going to be much more complicated and messy than that, which is a beautiful solution. I'm curious though, is that equation $p(x)\dfrac{p(x)}{p(x)+p(7)}$ something that you derived for this, or is this a standard formula for similar problems.If it's something that you derived, would you be able to explain how you came up with it? If it's a standard equation, would you happen to know it's name? I'd love to understand better how and why it works. Thanks
In the expression ${\color {red} p(x)}{\color {green}\dfrac{p(x)}{p(x)+p(7)}}$, the red $\color {red} p(x)$ gives the probability that the first roll of the dice gives the value $x$. The green fraction represents the probability of rolling $x$ again before rolling a $7$. My argument for that is that after rolling the first $x$, you can completely disregard any subsequent rolls until either an $x$ or a $7$ turns up. The only question is, which one of those will appear first. The relative probabilities of $x$ and $7$ are in the proportion $p(x)$ to $p(7)$. So out of a combined probability of $p(x) + p(7)$, the probability of an $x$ is $\dfrac{p(x)}{p(x)+p(7)}$, and the probability of a $7$ is $\dfrac{p(7)}{p(x)+p(7)}$.

I hope that makes sense.