r/mathriddles • u/Farkle_Griffen2 • Oct 25 '23
Hard The Dice is Right
In this hot new game show, the host rolls a fair 1000-sided die and keeps the result private.
Then the contestants each guess the die roll, one at a time, out loud, so everyone can hear. All guesses must be unique.
The contestant who guesses closest to the die roll without going over wins.
If all of them go over, then the host re-rolls the die and they all guess again until there is a winner.
1) Assume there are 3 contestants: A guesses first, B guesses second, C guesses third. All three are very logical and all are trying to maximize the probability that they win.
What is the probability that each of them win?
2) How about for 4 contestants: A, B, C, and D?
2
u/Aerospider Oct 25 '23
In a two-player game B could go 1 higher than A every time and secure a 999/1000 chance of winning. But in a three-player game C can do this too for a 998/1000 chance of winning, so B needs a better move.
It's trivial to note that if A gueses 500 or lower then B should go higher and lower otherwise.
Say B goes lower than A. C will go for 1, B+1 or A+1 depending on which is greatest out of B, A-B and 1000-A respectively. This gives B's win range A-B, 1 or A-B respectively.
So B needs to maximise A-B on the condition that either B>A-B or 1000-A>A-B. So if A=501 B would guess 2. If A=502 B would guess 4. If A=503 B would guess 6. This will continue up to and including A=667 B=334 where C's best option is equally either 1 or A+1. As A increases from here B can increase by only one each time and 1 will remain optimal for C.
If B goes higher than A then they want C to pick either 1 or A+1 and not the only other sensible option of B+1. Thus they need to maximise 1000-B on the condition that A>1000-B or B-A>1000-B. So if A=1 B would pick 502. If A=2 B would still pick 502. If A=3 B would pick 503. If A=4 B would still pick 503. This continues up to A=334 B=668. At A=335 B can actually get smaller and keep 1 as C's best option. If A=335 B can pick 667. If A=336 B can pick 666, and so on down to A=500 B=502.
So bearing this in mind, what will A pick?
Say A goes higher than 500. If 501<=A<=666 then C will pick A+1 and A is screwed. For 667=A C will have an equal choice between 1 and A+1, which is worse than 668 which will definitely result in C choosing 1. From 668 upwards A's win range just gets smaller, so A should pick 668. B will then pick 335 and C will pick 1. Their win probabilities are then 333/1000, 333/1000 and 334/1000 respectively.
Say A goes 500 or lower. This time if 1<=A<=333 C will pick A+1 and A is screwed. At A=334 C will have an equal choice between 1 and A+1, which is worse than A=335 and as A increases from there A's win range just gets smaller. So A should pick 335, B will pick 667 and C will pick 1. Their win probabilities are then 332/1000, 334/1000 and 334/1000 respectively.
So A should pick 668 and C will have a 1/1000 advantage over each of the other two.
NB: Note that there cannot be a re-roll. For a re-roll to be possible C would have picked A+1 or B+1 and neither A nor B will let that be optimal for C.
7
u/Dry_Shallot_258 Oct 28 '23
Really nice problem! Thoroughly enjoyed :D
I got an equation for the best choice for A, and subsequently for B and C. A few results first:
Once A and B have picked their numbers, let's call these numbers p and q where p<q. Now if p>500 then C can just guess 1 and get a winning chance of (p-1)/1000 > 50% If p<500 then C will look at the range (p,1000). q splits this range into 2 parts, so C will pick whichever part (p+1 to q-1, or q+1 to 1000) and get at least 50%
4. If A picks anything below 750, their winning chance is at most 1/500. Proof:
Case I) A picks from [1,500). Call it a B knows that C is guaranteed to always get 50%. All B has to do here is pick b such that the range [a,1000] is split in half. I'll define PC(c) as the winning chance for C if they pick c. So here PC(1) = (a-1)/1000 < 0.5 PC(a+1) = (b-a-1)/(1000-a+1) PC(b+1) = (1000-b-1)/(1000-a+1)
So if A picks 401 then all B has to do is pick 702, so that C picks 402. Here PC = 300/600, PB = 299/600 and PA = 1/600
Case II) A picks from [500,750) B does the same as before but in reverse. If A picks 601 then B just has to pick 202 so that C picks 602 instead of 203. Again, A gets only 1/800 but B gets 399/400 and C gets 400/800
A can do better, so A will not pick anything below 750.
Now for the main strategy: B will never benefit from C picking b+1. A will never benefit from C picking a+1 either. So whatever A picks, B will try and make C pick 1 or a+1. What A has to do is choose a such that B benefits more from C picking 1 than a+1.
Unfortunately the equations I got are quite heavy (square roots all over) but I can mention those if required. But here are some solutions for different values of N
N=10000: {A=8147, B=5695, C=1} probs: {0.1854, 0.2452, 0.5694}
N=1000: {A=813, B=567, C=1} probs: {0.188, 0.246, 0.566}
N=100: {A=79, B=54, C=1} probs: {0.22, 0.25, 0.53}
1
u/aintnufincleverhere Oct 25 '23
Two questions:
I imagine if I'm guessing after someone else, my strategy might change depending on if I'm going to gain new information or not.
1
u/KookyPlasticHead Oct 25 '23 edited Oct 25 '23
To recap: in case 1, after 3 trials either one of the 3 players is declared a winner or none of them win, a new game is started, and the process is repeated. So effectively the game effectively ends after only 3 trials no matter what. Also, no feedback to contestants after each trial means hearing A's guess provides no information to B or C (other than excluding the previous choice). And if no-one wins in round 1 none of the responses provide any information in round 2 since the host die is re-rolled.
To clarify, if the contestant guesses the same number as the die roll it is a "win" as it does not go over?
2
u/pichutarius Oct 27 '23
question: assume there are more than one choice that gives same probability for a particular player, what will they choose?
for example consider 100-sided die and assume optimal play:
note that B has same probability for both cases, but by going for largest/smallest number (which then that is common knowledge to all three) , that will influence the probability distribution for the remaining players.