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


Groups > sci.math > #550678

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-11 16:09 +0000
Organization Aioe.org NNTP Server
Message-ID <srka3q$1ut2$1@gioia.aioe.org> (permalink)
References <srds7t$3do$1@dont-email.me> <srhs62$9kg$1@gioia.aioe.org> <srj6o7$72f$1@dont-email.me>

Show all headers | View raw


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...

> 
> Note, I realized earlier today that I had heads and tails backwards in
> my problem statement, and that what I actually meant for the
> heads-probability and the score-function to be are p = 12/17 instead
> of p = 5/17, and score = k/(n+p) instead of k/(n+1-p).  Note, both
> forms have been answered at that puzzling.stackexchange.com URL,
> <https://puzzling.stackexchange.com/q/114382/2004>, although neither
> answer provides much mathematical detail.  The odd bimodality of the
> probability distribution for the correctly-stated form remains
> unexplained too.

I will not look there, as I intend to write my own program to give the answer!
I'll use the corrected spec you've given.

Mike.


>   
>>> Example (with Cn referring to player n with n coins): Suppose C3 flips
>>> 3 coins and gets 1 head, scoring 1/(3+1-p) ~ 0.2698; that C4 flips 4
>>> coins and gets 3 heads, scoring 3/(4+1-p) = 0.6375; and C8 flips 8
>>> coins, gets 5 heads, and scores 5/(8+1-p) ~ 0.5743.  If everyone else
>>> scores less, C4 receives $0.6375.
>>>
>>> Given a choice in this first set of games, how many coins will you
>>> use?  If that first choice is gone, what's your second choice?
>>>
>>> In the second set of games, instead of 7 players with 2, 3, 4, 5, 6,
>>> 7, or 8 coins each, there are only 5 players, having 3, 4, 5, 6, or 7
>>> coins each.  Again, if given the choice, how many coins will you use,
>>> and if that choice is gone, what's your second choice?

Back to sci.math | Previous | Next — Previous in thread | Next 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