I want to answer the original question, what is the best number
when both the referee and the opponent randomly choose their number.
Let a be my choice, p the opponents choice and r the referee's choice
There are 6 disjoint distinctions:
#1 p>r and a > r (will be repeated)
#2 p>r and a < = r (I win immediately)
#3 p < = r and a > r (opponent wins immediately)
#4 p < =r and a > p and a < =r (I win immediately )
#5 p < =r and a=p (will be repeated)
#6 p < =r and a < p (opponent wins immediately )
The likelihood to win for a choosen a is:
P(#2)+P(#4) / ( P(#2)+P(#3)+P(#4)+P(#6) )
The problem is to find the best a.
Ok, I was not able to calc the conditional probabilities for
the 6 cases, but I counted them for all p and r and a
( just 1 mio cases to count, did only take some millisecs ).
The shortend result table is:
1: 0,5000000
2: 0,5049990
...
26: 0,6000000
...
36: 0,6164190
37: 0,6169666
38: 0,6172911
39: 0,6173862
40: 0,6172459
41: 0,6168639
42: 0,6162340
...
50: 0,6015301
...
75: 0,4204524
...
99: 0,0390176
100: 0,0196078
So the optimum is at 39.
Can anyone calc the conditional probabilities?