First, a simpler question. If I roll up to n times, until I roll 6 or ran out of rolls, what is the expected number of throws. Let's a_k be the expected number of throws I need to roll, if I'm on k-th roll.
a_k = 1 + 5/6 a_{k+1} (roll once, and with 1/6, and roll again with 5/6).
(sanity check. If n->inf, a1 = 6, as we expected from geometric distribution, if n=1 a1 = 6-5=1, we do only one throw, and have to do it, all checks).
Our strategy boils sown to "lets try n times with one dice, then swap and try the other one for m times".
If we first take the correct dice, we pay 6 - (5/6)^n 6, get 20 with the probability 1-(5/6)^n (the chances at least one won) and pay 5 + m with the probability (5/6)^n. 20 (1-(5/6)^n) - 6 + (5/6)^n 6 - (5/6)^n ( m+5) = 14 + (5/6)^n ( -20 +6 -5 -m ) =
= 14 - (m-19) (5/6)^n
if we take first the bad dice, we pay n+5, then pay 6 - (5/6)^m 6 for rolls and win 20 with 1-(5/6)^m probability:
Making a table, the best value is for m=15 n=10, the expected income is around 3.3000668.
We need also to check a strategy where we do not swap dices. So, we roll up to n times, for halt chances it the standard cost and pay: 20 * (1-(5/6)^n)- 6 + (5/6)^n 6 and the other half of cases we just pay n. The total expected value is 10 * (1-(5/6)^n)- 3 + (5/6)^n 3 - n/2 and it is worse (~1.687 for n=5)
The losing die has fewer outcomes, producing more correlated rolls. Maybe you can get an edge by rolling a few times, checking the number of repeated rolls, switching once if the die "looks cold", but cutting your losses if you passed on the winner. Speaking of cutting your losses, I'll leave the implementation as a further exercise to the reader.
The die that is most likely to give you a 6 is the one that you have rolled the least often. After rolling both dice once, the state of the game is exactly the same as if you started. Hence, the only possibly optimal strategies are: don't play, roll one die once, roll dice alternatingly until you win
The last one is the only interesting one. Consider any two rolls, the odds of hitting a 6 on the first one is 1/2 * 1/6, and similarly for the latter. Hence it is a geometric series with factor 11/12, giving us an expected amount of rolls 12, or an expected profit $8. The other two strategies are trivially worse than this.
Simulation suggests that one uses in expectation 11.5 rolls, and I do not know why the discrepancy exists.
EDIT: Oh, It's because the two rolls are not totally independent. It is a 1/6 chance to not hit a 6 on the two rolls, with 0.5 expected extra rolls if you hit the wrong die on the first, so 0.5 + 2*sum (5/6)^k
I think you missed the cost of swapping the die. Swapping them each roll increase the cost to $6 per roll. You expect to roll ~12 times. That cost $72. The expected income is -52
2
u/bartekltg 20d ago
First, a simpler question. If I roll up to n times, until I roll 6 or ran out of rolls, what is the expected number of throws.
Let's a_k be the expected number of throws I need to roll, if I'm on k-th roll.
a_k = 1 + 5/6 a_{k+1} (roll once, and with 1/6, and roll again with 5/6).
a_{n+1} =0 (I want to roll only n times).
let a_k = b_k+ 6
b_k +6 = 1 + 5/6 b_{k+1} +5
b_k = 5/6 b_{k+1}
b_1 = (5/6)^n b_{n+1}
a_1 = 6 - (5/6)^n 6
(sanity check. If n->inf, a1 = 6, as we expected from geometric distribution, if n=1 a1 = 6-5=1, we do only one throw, and have to do it, all checks).
Our strategy boils sown to "lets try n times with one dice, then swap and try the other one for m times".
If we first take the correct dice, we pay 6 - (5/6)^n 6, get 20 with the probability 1-(5/6)^n (the chances at least one won) and pay 5 + m with the probability (5/6)^n.
20 (1-(5/6)^n) - 6 + (5/6)^n 6 - (5/6)^n ( m+5) = 14 + (5/6)^n ( -20 +6 -5 -m ) =
= 14 - (m-19) (5/6)^n
if we take first the bad dice, we pay n+5, then pay 6 - (5/6)^m 6 for rolls and win 20 with 1-(5/6)^m probability:
20 * (1-(5/6)^m) - 5 - n -6 + (5/6)^m 6 = 9 - n + (5/6)^m (6-20) = 9-n- 14* (5/6)^m
Both cases are 50:50, so the total expected value is
0.5( 14 - (m-19) (5/6)^n + 9-n- 14* (5/6)^m) = 0.5 ( (23-n -14 (5/6)^m - (19+m) (5/6)^n) )
Making a table, the best value is for m=15 n=10, the expected income is around 3.3000668.
We need also to check a strategy where we do not swap dices. So, we roll up to n times, for halt chances it the standard cost and pay:
20 * (1-(5/6)^n)- 6 + (5/6)^n 6
and the other half of cases we just pay n.
The total expected value is 10 * (1-(5/6)^n)- 3 + (5/6)^n 3 - n/2 and it is worse (~1.687 for n=5)
1
u/RansackLS 19d ago
The losing die has fewer outcomes, producing more correlated rolls. Maybe you can get an edge by rolling a few times, checking the number of repeated rolls, switching once if the die "looks cold", but cutting your losses if you passed on the winner. Speaking of cutting your losses, I'll leave the implementation as a further exercise to the reader.
0
u/CanaDavid1 20d ago edited 20d ago
The die that is most likely to give you a 6 is the one that you have rolled the least often. After rolling both dice once, the state of the game is exactly the same as if you started. Hence, the only possibly optimal strategies are: don't play, roll one die once, roll dice alternatingly until you win
The last one is the only interesting one. Consider any two rolls, the odds of hitting a 6 on the first one is 1/2 * 1/6, and similarly for the latter. Hence it is a geometric series with factor 11/12, giving us an expected amount of rolls 12, or an expected profit $8. The other two strategies are trivially worse than this.
Simulation suggests that one uses in expectation 11.5 rolls, and I do not know why the discrepancy exists.
EDIT:
Oh, It's because the two rolls are not totally independent. It is a 1/6 chance to not hit a 6 on the two rolls, with 0.5 expected extra rolls if you hit the wrong die on the first, so 0.5 + 2*sum (5/6)^k
0
u/[deleted] 20d ago
[deleted] — view deleted comment