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


Groups > sci.math > #550415 > unrolled thread

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

Started byJames Waldby <j-waldby@no.no>
First post2022-01-09 05:35 +0000
Last post2022-01-12 00:41 +0000
Articles 10 — 4 participants

Back to article view | Back to sci.math


Contents

  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

#550415 — Non-daily problem ... pick how many coins to flip

FromJames Waldby <j-waldby@no.no>
Date2022-01-09 05:35 +0000
SubjectNon-daily problem ... pick how many coins to flip
Message-ID<srds7t$3do$1@dont-email.me>
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.

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?

-- 
jiw

[toc] | [next] | [standalone]


#550417

From"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
Date2022-01-08 22:08 -0800
Message-ID<srdu5o$ct9$1@dont-email.me>
In reply to#550415
On 1/8/2022 9:35 PM, 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...

Consistently unfair? ;^)

[toc] | [prev] | [next] | [standalone]


#550419

FromJames Waldby <j-waldby@no.no>
Date2022-01-09 06:41 +0000
Message-ID<sre02k$lid$1@dont-email.me>
In reply to#550417
Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:
> On 1/8/2022 9:35 PM, 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...
> 
> Consistently unfair? ;^)

The probability of a head (5/17) is different from that of a tail
(12/17), and does not change at any time.  "Unequally weighted" might
be a better term than "unfair".

[toc] | [prev] | [next] | [standalone]


#550618

From"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
Date2022-01-10 16:39 -0800
Message-ID<srijke$ssb$4@dont-email.me>
In reply to#550419
On 1/8/2022 10:41 PM, James Waldby wrote:
> Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:
>> On 1/8/2022 9:35 PM, 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...
>>
>> Consistently unfair? ;^)
> 
> The probability of a head (5/17) is different from that of a tail
> (12/17), and does not change at any time.  "Unequally weighted" might
> be a better term than "unfair".

Agreed.

[toc] | [prev] | [next] | [standalone]


#550423

FromFromTheRafters <erratic@nomail.afraid.org>
Date2022-01-09 05:52 -0500
Message-ID<sreepl$84u$1@dont-email.me>
In reply to#550415
on 1/9/2022, James Waldby supposed :
> 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.
>
> 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?

I'm guessing that the fewest coins can get the highest yields.

Were it a seventeen sided die with five heads and twelve tails (sounds 
more like a mythological creature) then it would be the number of rolls 
each participant gets rather than the number of tossed coins. More 
rolls/tosses means less deviation from average value per roll/toss. The 
more tunrns you take, the more average your result will likely be.

[toc] | [prev] | [next] | [standalone]


#550660

FromJames Waldby <j-waldby@no.no>
Date2022-01-11 06:27 +0000
Message-ID<srj813$dfo$1@dont-email.me>
In reply to#550423
FromTheRafters <erratic@nomail.afraid.org> wrote:
> on 1/9/2022, James Waldby supposed :
>> 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.
>>
>> 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?
> 
> I'm guessing that the fewest coins can get the highest yields.

That is true for the problem as stated - although 3 is better than 2
or 4 - but not for the problem as I meant it to be :) As I mentioned
in my reply to Mike Terry, the heads-probability should be p = 12/17
instead of p = 5/17, and the score-function should be score = k/(n+p)
instead of k/(n+1-p).  For that form, intuition seems much less
satisfactory, and the two problem forms don't seem complementary.

> Were it a seventeen sided die with five heads and twelve tails (sounds 
> more like a mythological creature) then it would be the number of rolls 
> each participant gets rather than the number of tossed coins. More 
> rolls/tosses means less deviation from average value per roll/toss. The 
> more turns you take, the more average your result will likely be.

I'm not sure about that "less deviation from average value..." idea.
The variance of a binomial distribution with parameters n and p [as we
have here, via n Bernoulli trials] is n*p*(1-p) which increases
directly with n.  Also, for a given n, while the average number of
heads is ~ n*p over a long run of turns, the average payouts to player
Cn won't necessarily be proportional to n*p, because only the high
scorer in a round receives a payout.

[toc] | [prev] | [next] | [standalone]


#550560

FromMike Terry <news.dead.person.stones@darjeeling.plus.com>
Date2022-01-10 17:59 +0000
Message-ID<srhs62$9kg$1@gioia.aioe.org>
In reply to#550415
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!

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

[toc] | [prev] | [next] | [standalone]


#550655

FromJames Waldby <j-waldby@no.no>
Date2022-01-11 06:06 +0000
Message-ID<srj6o7$72f$1@dont-email.me>
In reply to#550560
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.

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.

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

[toc] | [prev] | [next] | [standalone]


#550678

FromMike Terry <news.dead.person.stones@darjeeling.plus.com>
Date2022-01-11 16:09 +0000
Message-ID<srka3q$1ut2$1@gioia.aioe.org>
In reply to#550655
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?

[toc] | [prev] | [next] | [standalone]


#550733

FromMike Terry <news.dead.person.stones@darjeeling.plus.com>
Date2022-01-12 00:41 +0000
Message-ID<srl84m$4nm$1@gioia.aioe.org>
In reply to#550678
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.

[toc] | [prev] | [standalone]


Back to top | Article view | sci.math


csiph-web