Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.math > #550733

Re: Non-daily problem ... pick how many coins to flip

From Mike Terry <news.dead.person.stones@darjeeling.plus.com>
Newsgroups sci.math
Subject Re: Non-daily problem ... pick how many coins to flip
Date 2022-01-12 00:41 +0000
Organization Aioe.org NNTP Server
Message-ID <srl84m$4nm$1@gioia.aioe.org> (permalink)
References <srds7t$3do$1@dont-email.me> <srhs62$9kg$1@gioia.aioe.org> <srj6o7$72f$1@dont-email.me> <srka3q$1ut2$1@gioia.aioe.org>

Show all headers | View raw


On 11/01/2022 16:09, Mike Terry wrote:
> On 11/01/2022 06:06, James Waldby wrote:
>> Mike Terry ... wrote:
>>> On 09/01/2022 05:35, James Waldby wrote:
>>>> Note, I posted this probability problem in puzzling.stackexchange.com
>>>> at URL <https://puzzling.stackexchange.com/q/114382/2004>, with title
>>>> "Gambling game where you pick how many coins to flip" and am copying
>>>> it here in case of interest.
>>>>
>>>>
>>>> At a gambling joint, you are invited to be a player in a game with
>>>> identical unfair but consistent coins flipped simultaneously in each
>>>> round, with no cost to enter.  Each player gets a different number of
>>>> coins to flip.
>>>>
>>>> In the first set of games, there are 7 players, having 2, 3, 4, 5, 6,
>>>> 7, or 8 coins each.  In each round, one player (the highest-scoring
>>>> one) gets a payoff, and others get nothing.  The score of a player
>>>> with n coins who gets k heads is k/(n+1-p), where p = 5/17 is the
>>>> probability of a head appearing.  There are many rounds per set of
>>>> games.
>>>
>>> What if the result is a tie?  Possibilities I can think of:
>>>
>>> a)  Round is voided.  (No payoff)
>>> b)  All tying players receive a (whole) payoff.
>>> c)  The payoff is split between the tying players.
>>
>>> My preference for ease of calculation would be (a) or (b).  Then to
>>> solve the problem we just need to work out the probabilities of each
>>> player getting the various possible scores, and do simple
>>> calculations.  (c) would make the calculations much more
>>> complicated!
>>
>> For player n, scores are a multiple of 1/(n+1-p).  For the given p =
>> 5/17, there can be no ties.  We have 1/(n+1-p) = 1/(n+12/17) =
>> 1/((12+17n)/17) = 17/(12+17n).  This gives denominators of 29, 46, 63,
>> 80, 97, 114, 131, 148, 165 for respective n, and each of those numbers
>> has a distinct prime factor; 29, 23, 7, 5, 97, 19, 131, 37, 11
>> respectively, hence no ties.
> 
> I realised there were probably no ties for the exact examples given, but it seemed you were 
> describing a general parameterised family of games, and I wasn't sure whether uniqueness of scores 
> would hold generally.
> 
> Well, I could be picky and say that matches are always possible even in your given examples, because 
> all players could score zero.  Then the instructions don't say how to handle this situation, 
> although of course however we sensibly handle ties there should be zero payout to all players... :)
> 
>>
>> More generally, I agree that your suggestions (a) and (b) sound
>> simpler than (c) but it isn't clear to me that any of those approaches
>> can be handled without complications.
> 
> (a) and (b) seem straight forward enough.  IIUC, all we need is the expected returns for each 
> player.  E.g. for player C4, there are 4 possible payout amounts (one being zero) and for each 
> amount, just one C4 outcome (number of heads rolled by C4) giving it.  So we can just look at each 
> C4 outcome, like "C4 has 3 heads" and find the contribution to the expected return:
> 
>      contribution = Score(3,4) * P(C4 has 3 heads) * P(other players all roll less than 3)
> 
> This is simple because all players roll independently, so probabilities multiply.  I would think I 
> could (with patience) calculate all the expectations by hand, which is why I say straight forward. 
> The key is that the outcome space partitions in a simple fashion to make this work.
> 
> If ties were possible, the partition approach still works, but becomes much more complicated, 
> because if e.g. 5 players could all get the same score, we would have to subdivide what was one 
> partition in cases (a),(b) into 2^5 = 32 sub-partitions and account for each contribution (since the 
> probabilities will differ for each sub-partition.  So I don't fancy (c) from a coding perspective.
> 
> Anyway, I'll write my own program and see what comes out...
> 

OK I take it back - no way could I do all the calculations by hand, they're WAAAAY to big!  Maybe 
for a small example, where the principle is exactly the same, but calculations much simpler - 
perhaps a round with just C3 and C4 or something :)

Anyway, my program spat out some results, but who knows if they're right.  So many places to make a 
silly coding error...

But here they are for (C2,C3,C4,C5,C6,C7,C8):
(I calculated exact results, but the table shows to 10 dec places)

Player C2 : Expected return:  0.0404755565    Expected score :  0.5217391304
Player C3 : Expected return:  0.1327606207    Expected score :  0.5714285714
Player C4 : Expected return:  0.1339101959    Expected score :  0.6000000000
Player C5 : Expected return:  0.1324500243    Expected score :  0.6185567010
Player C6 : Expected return:  0.1409186594    Expected score :  0.6315789474
Player C7 : Expected return:  0.1313551388    Expected score :  0.6412213740
Player C8 : Expected return:  0.1190174653    Expected score :  0.6486486486

The expected score is not what we want - we're interested in the expected return.  Reordering from 
best to worst I get:

Player C6 : Expected return:  0.1409186594    Expected score :  0.6315789474
Player C4 : Expected return:  0.1339101959    Expected score :  0.6000000000
Player C3 : Expected return:  0.1327606207    Expected score :  0.5714285714
Player C5 : Expected return:  0.1324500243    Expected score :  0.6185567010
Player C7 : Expected return:  0.1313551388    Expected score :  0.6412213740
Player C8 : Expected return:  0.1190174653    Expected score :  0.6486486486
Player C2 : Expected return:  0.0404755565    Expected score :  0.5217391304

So, choose 6 coins by preference, else 4, else 3 etc..

Mike.

Back to sci.math | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Non-daily problem ... pick how many coins to flip James Waldby <j-waldby@no.no> - 2022-01-09 05:35 +0000
  Re: Non-daily problem ... pick how many coins to flip "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-01-08 22:08 -0800
    Re: Non-daily problem ... pick how many coins to flip James Waldby <j-waldby@no.no> - 2022-01-09 06:41 +0000
      Re: Non-daily problem ... pick how many coins to flip "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2022-01-10 16:39 -0800
  Re: Non-daily problem ... pick how many coins to flip FromTheRafters <erratic@nomail.afraid.org> - 2022-01-09 05:52 -0500
    Re: Non-daily problem ... pick how many coins to flip James Waldby <j-waldby@no.no> - 2022-01-11 06:27 +0000
  Re: Non-daily problem ... pick how many coins to flip Mike Terry <news.dead.person.stones@darjeeling.plus.com> - 2022-01-10 17:59 +0000
    Re: Non-daily problem ... pick how many coins to flip James Waldby <j-waldby@no.no> - 2022-01-11 06:06 +0000
      Re: Non-daily problem ... pick how many coins to flip Mike Terry <news.dead.person.stones@darjeeling.plus.com> - 2022-01-11 16:09 +0000
        Re: Non-daily problem ... pick how many coins to flip Mike Terry <news.dead.person.stones@darjeeling.plus.com> - 2022-01-12 00:41 +0000

csiph-web