Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.math > #332066 > unrolled thread
| Started by | quasi <quasi@null.set> |
|---|---|
| First post | 2016-04-18 03:15 -0500 |
| Last post | 2016-04-25 12:47 -0700 |
| Articles | 20 on this page of 51 — 12 participants |
Back to article view | Back to sci.math
optimal betting quasi <quasi@null.set> - 2016-04-18 03:15 -0500
Re: optimal betting R Kym Horsell <kym@kymhorsell.com> - 2016-04-18 10:07 +0000
Re: optimal betting richard@cogsci.ed.ac.uk (Richard Tobin) - 2016-04-18 13:22 +0000
Re: optimal betting Jürgen R. <jurgenr@web.de> - 2016-04-18 15:49 +0200
Re: optimal betting richard@cogsci.ed.ac.uk (Richard Tobin) - 2016-04-18 14:01 +0000
Re: optimal betting richard@cogsci.ed.ac.uk (Richard Tobin) - 2016-04-18 16:38 +0000
Re: optimal betting richard@cogsci.ed.ac.uk (Richard Tobin) - 2016-04-18 17:04 +0000
Re: optimal betting quasi <quasi@null.set> - 2016-04-18 13:45 -0500
Re: optimal betting R Kym Horsell <kym@kymhorsell.com> - 2016-04-19 01:36 +0000
Re: optimal betting quasi <quasi@null.set> - 2016-04-18 21:56 -0500
Re: optimal betting quasi <quasi@null.set> - 2016-04-18 14:35 -0500
Re: optimal betting quasi <quasi@null.set> - 2016-04-18 15:14 -0500
Re: optimal betting Virgil <VIRGIL@VIRGIL.com> - 2016-04-18 13:32 -0600
Re: optimal betting Jamie M <jmorken@shaw.ca> - 2016-04-18 12:53 -0700
Re: optimal betting R Kym Horsell <kym@kymhorsell.com> - 2016-04-18 20:31 +0000
Re: optimal betting Jamie M <jmorken@shaw.ca> - 2016-04-18 17:40 -0700
Re: optimal betting Virgil <VIRGIL@VIRGIL.com> - 2016-04-18 17:24 -0600
Re: optimal betting richard@cogsci.ed.ac.uk (Richard Tobin) - 2016-04-19 00:24 +0000
Re: optimal betting Virgil <VIRGIL@VIRGIL.com> - 2016-04-18 18:54 -0600
Re: optimal betting quasi <quasi@null.set> - 2016-04-18 20:41 -0500
Re: optimal betting Jamie M <jmorken@shaw.ca> - 2016-04-18 17:50 -0700
Re: optimal betting Virgil <VIRGIL@VIRGIL.com> - 2016-04-18 20:40 -0600
Re: optimal betting Jamie M <jmorken@shaw.ca> - 2016-04-18 19:50 -0700
Re: optimal betting "Ross A. Finlayson" <ross.finlayson@gmail.com> - 2016-04-18 20:48 -0700
Re: optimal betting "Ross A. Finlayson" <ross.finlayson@gmail.com> - 2016-04-18 21:04 -0700
Re: optimal betting quasi <quasi@null.set> - 2016-04-19 18:02 -0500
Re: optimal betting quasi <quasi@null.set> - 2016-04-25 03:28 -0500
Re: optimal betting djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-25 05:46 -0700
Re: optimal betting quasi <quasi@null.set> - 2016-04-25 11:46 -0500
Re: optimal betting djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-25 09:04 -0700
Re: optimal betting djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-25 09:14 -0700
Re: optimal betting Jürgen R. <jurgenr@web.de> - 2016-04-25 18:26 +0200
Re: optimal betting djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-25 10:51 -0700
Re: optimal betting quasi <quasi@null.set> - 2016-04-25 14:03 -0500
Re: optimal betting djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-25 11:49 -0700
Re: optimal betting quasi <quasi@null.set> - 2016-04-25 15:10 -0500
Re: optimal betting djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-25 16:47 -0700
Re: optimal betting Peter Percival <peterxpercival@hotmail.com> - 2016-04-26 10:47 +0100
Re: optimal betting djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-26 08:05 -0700
Re: optimal betting quasi <quasi@null.set> - 2016-04-26 16:05 -0500
Re: optimal betting djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-26 18:28 -0700
Re: optimal betting quasi <quasi@null.set> - 2016-04-26 21:46 -0500
Re: optimal betting djoyce099 <hlauk.h.bogart@gmail.com> - 2016-04-26 19:13 -0700
Re: optimal betting quasi <quasi@null.set> - 2016-04-26 22:04 -0500
Re: optimal betting grahamcooper7@gmail.com - 2016-04-26 19:25 -0700
Re: optimal betting Peter Percival <peterxpercival@hotmail.com> - 2016-04-26 21:26 +0100
Re: optimal betting William Elliot <marsh@panix.com> - 2016-04-18 20:30 -0700
Re: optimal betting Leon Aigret <aigret@address.invalid> - 2016-04-19 14:25 +0200
Re: optimal betting quasi <quasi@null.set> - 2016-04-19 12:08 -0500
Re: optimal betting quasi <quasi@null.set> - 2016-04-19 11:58 -0500
Re: optimal betting grahamcooper7@gmail.com - 2016-04-25 12:47 -0700
Page 2 of 3 — ← Prev page 1 [2] 3 Next page →
| From | Jamie M <jmorken@shaw.ca> |
|---|---|
| Date | 2016-04-18 17:50 -0700 |
| Message-ID | <nf3vcr$m3u$2@gioia.aioe.org> |
| In reply to | #332117 |
On 4/18/2016 6:41 PM, quasi wrote: > quasi wrote: >> quasi wrote: >>> >>> A game with 1 player proceeds as follows ... >>> >>> A standard 52 card deck is shuffled and the cards are then >>> dealt out, face up, one card at a time. Before each card is >>> dealt, the player has the option to bet on the color (red >>> or black) of the card which is about to be dealt. >>> >>> All bets pay even money (i.e., if the player bets x, then >>> the player wins x if the bet wins, and loses x if the bet >>> loses. >>> >>> Initially the player has wealth 1. If at some point during >>> the game, the player has wealth w > 0 and has the option to >>> make a bet, the player can bet x, where x is any real number >>> between 0 and w inclusive. A bet of 0 is effectively the >>> same as "no bet" or "pass". If the player has wealth w and >>> bets w (i.e., bets it all), the player's new wealth will be >>> 2w if the bet wins, and 0 if the bet loses, in which case, >>> the player is out of the game (i.e.,"tapped out). >>> >>> The goal of the player is to maximize the worst-case final >>> wealth. In other words, the player seeks a betting strategy >>> which will guarantee a final wealth of at least w, where w >>> is as large as possible. Note -- this is not the same as >>> the goal of seeking to maximize expected final wealth. >>> >>> Computational challenge: >>> >>> (1) Find an optimal betting strategy for the player. >>> >>> (2) Using an optimal betting strategy, what is the player's >>> guaranteed worst-case final wealth? >>> >>> I'll post the answers I came up with in about a week. >> >> The problem was answered correctly by Richard Tobin. >> >> Here's a variation ... >> >> Same game, same rules, with one change to the game, and with >> a modified goal: >> >>From a shuffled full deck, the first 26 cards are removed in >> advance. The player is aware that 26 cards are left, but doesn't >> know which ones. The betting phase then begins. >> >> Problem: >> >> For a betting strategy, S say, let p(S) be the probability >> that the player's final wealth is at least 2. Over all >> possible choices of S, what is the maximum value of p(S)? > > Let me clarify the objective ... > > The money is just play money -- the player doesn't get to keep > it. To win the game, the player's final wealth must be at least > 2, else the player loses. Thus, if the player's final wealth > exceeds 2, the excess is irrelevant. Analogously, if the final > wealth is less than 2, it might as well be 0. > > In this context, an optimal betting strategy is one which > maximizes the player's probability of winning. The problem > is to find this maximum probability. > >> Remarks: >> >> (1) I haven't yet tried it, so I don't know the answer. >> >> (2) I don't know if it's a good problem. > > quasi > Hi, Unless the player gets to play multiple games and average the winnings, then the optimal strategy is to only bet when all remaining cards are known, ie all the same colour. (I think) cheers, Jamie
[toc] | [prev] | [next] | [standalone]
| From | Virgil <VIRGIL@VIRGIL.com> |
|---|---|
| Date | 2016-04-18 20:40 -0600 |
| Message-ID | <VIRGIL-F1212B.20405918042016@news.giganews.com> |
| In reply to | #332118 |
In article <nf3vcr$m3u$2@gioia.aioe.org>, Jamie M <jmorken@shaw.ca> wrote: > On 4/18/2016 6:41 PM, quasi wrote: > > quasi wrote: > >> quasi wrote: > >>> > >>> A game with 1 player proceeds as follows ... > >>> > >>> A standard 52 card deck is shuffled and the cards are then > >>> dealt out, face up, one card at a time. Before each card is > >>> dealt, the player has the option to bet on the color (red > >>> or black) of the card which is about to be dealt. > >>> > >>> All bets pay even money (i.e., if the player bets x, then > >>> the player wins x if the bet wins, and loses x if the bet > >>> loses. > >>> > >>> Initially the player has wealth 1. If at some point during > >>> the game, the player has wealth w > 0 and has the option to > >>> make a bet, the player can bet x, where x is any real number > >>> between 0 and w inclusive. A bet of 0 is effectively the > >>> same as "no bet" or "pass". If the player has wealth w and > >>> bets w (i.e., bets it all), the player's new wealth will be > >>> 2w if the bet wins, and 0 if the bet loses, in which case, > >>> the player is out of the game (i.e.,"tapped out). > >>> > >>> The goal of the player is to maximize the worst-case final > >>> wealth. In other words, the player seeks a betting strategy > >>> which will guarantee a final wealth of at least w, where w > >>> is as large as possible. Note -- this is not the same as > >>> the goal of seeking to maximize expected final wealth. > >>> > >>> Computational challenge: > >>> > >>> (1) Find an optimal betting strategy for the player. > >>> > >>> (2) Using an optimal betting strategy, what is the player's > >>> guaranteed worst-case final wealth? > >>> > >>> I'll post the answers I came up with in about a week. > >> > >> The problem was answered correctly by Richard Tobin. > >> > >> Here's a variation ... > >> > >> Same game, same rules, with one change to the game, and with > >> a modified goal: > >> > >>From a shuffled full deck, the first 26 cards are removed in > >> advance. The player is aware that 26 cards are left, but doesn't > >> know which ones. The betting phase then begins. > >> > >> Problem: > >> > >> For a betting strategy, S say, let p(S) be the probability > >> that the player's final wealth is at least 2. Over all > >> possible choices of S, what is the maximum value of p(S)? > > > > Let me clarify the objective ... > > > > The money is just play money -- the player doesn't get to keep > > it. To win the game, the player's final wealth must be at least > > 2, else the player loses. Thus, if the player's final wealth > > exceeds 2, the excess is irrelevant. Analogously, if the final > > wealth is less than 2, it might as well be 0. > > > > In this context, an optimal betting strategy is one which > > maximizes the player's probability of winning. The problem > > is to find this maximum probability. > > > >> Remarks: > >> > >> (1) I haven't yet tried it, so I don't know the answer. > >> > >> (2) I don't know if it's a good problem. > > > > quasi > > > > > Hi, > > Unless the player gets to play multiple games and average the winnings, > then the optimal strategy is to only bet when all remaining cards > are known, ie all the same colour. (I think) > > cheers, > Jamie But under the new rules, having only one color left can never be known while one has any plays left (one cannot be sure of either color until 26 cards of the other color have been playedm but at that point one has no plays left) so it is not viable strategy! -- Virgil "Mit der Dummheit kampfen Gotter selbst vergebens." (Schiller)
[toc] | [prev] | [next] | [standalone]
| From | Jamie M <jmorken@shaw.ca> |
|---|---|
| Date | 2016-04-18 19:50 -0700 |
| Message-ID | <nf46dk$tl8$2@gioia.aioe.org> |
| In reply to | #332123 |
On 4/18/2016 7:40 PM, Virgil wrote: >> Hi, >> >> Unless the player gets to play multiple games and average the winnings, >> then the optimal strategy is to only bet when all remaining cards >> are known, ie all the same colour. (I think) >> >> cheers, >> Jamie > > But under the new rules, having only one color left can never be known > while one has any plays left (one cannot be sure of either color until > 26 cards of the other color have been playedm but at that point one has > no plays left) so it is not viable strategy! > Oh ya oops I didn't notice the new rule, now it is not much more predictable than a random number generator, and safest to assume it is just a random draw for each card, basically not worth playing that game, unless the house provides the initial money :D cheers, Jamie
[toc] | [prev] | [next] | [standalone]
| From | "Ross A. Finlayson" <ross.finlayson@gmail.com> |
|---|---|
| Date | 2016-04-18 20:48 -0700 |
| Message-ID | <366eff69-b7c5-44db-a117-740ea28f4a22@googlegroups.com> |
| In reply to | #332123 |
On Monday, April 18, 2016 at 7:41:09 PM UTC-7, Virgil wrote: > In article <nf3vcr$m3u$2@gioia.aioe.org>, Jamie M <jmorken@shaw.ca> > wrote: > > > On 4/18/2016 6:41 PM, quasi wrote: > > > quasi wrote: > > >> quasi wrote: > > >>> > > >>> A game with 1 player proceeds as follows ... > > >>> > > >>> A standard 52 card deck is shuffled and the cards are then > > >>> dealt out, face up, one card at a time. Before each card is > > >>> dealt, the player has the option to bet on the color (red > > >>> or black) of the card which is about to be dealt. > > >>> > > >>> All bets pay even money (i.e., if the player bets x, then > > >>> the player wins x if the bet wins, and loses x if the bet > > >>> loses. > > >>> > > >>> Initially the player has wealth 1. If at some point during > > >>> the game, the player has wealth w > 0 and has the option to > > >>> make a bet, the player can bet x, where x is any real number > > >>> between 0 and w inclusive. A bet of 0 is effectively the > > >>> same as "no bet" or "pass". If the player has wealth w and > > >>> bets w (i.e., bets it all), the player's new wealth will be > > >>> 2w if the bet wins, and 0 if the bet loses, in which case, > > >>> the player is out of the game (i.e.,"tapped out). > > >>> > > >>> The goal of the player is to maximize the worst-case final > > >>> wealth. In other words, the player seeks a betting strategy > > >>> which will guarantee a final wealth of at least w, where w > > >>> is as large as possible. Note -- this is not the same as > > >>> the goal of seeking to maximize expected final wealth. > > >>> > > >>> Computational challenge: > > >>> > > >>> (1) Find an optimal betting strategy for the player. > > >>> > > >>> (2) Using an optimal betting strategy, what is the player's > > >>> guaranteed worst-case final wealth? > > >>> > > >>> I'll post the answers I came up with in about a week. > > >> > > >> The problem was answered correctly by Richard Tobin. > > >> > > >> Here's a variation ... > > >> > > >> Same game, same rules, with one change to the game, and with > > >> a modified goal: > > >> > > >>From a shuffled full deck, the first 26 cards are removed in > > >> advance. The player is aware that 26 cards are left, but doesn't > > >> know which ones. The betting phase then begins. > > >> > > >> Problem: > > >> > > >> For a betting strategy, S say, let p(S) be the probability > > >> that the player's final wealth is at least 2. Over all > > >> possible choices of S, what is the maximum value of p(S)? > > > > > > Let me clarify the objective ... > > > > > > The money is just play money -- the player doesn't get to keep > > > it. To win the game, the player's final wealth must be at least > > > 2, else the player loses. Thus, if the player's final wealth > > > exceeds 2, the excess is irrelevant. Analogously, if the final > > > wealth is less than 2, it might as well be 0. > > > > > > In this context, an optimal betting strategy is one which > > > maximizes the player's probability of winning. The problem > > > is to find this maximum probability. > > > > > >> Remarks: > > >> > > >> (1) I haven't yet tried it, so I don't know the answer. > > >> > > >> (2) I don't know if it's a good problem. > > > > > > quasi > > > > > > > > > Hi, > > > > Unless the player gets to play multiple games and average the winnings, > > then the optimal strategy is to only bet when all remaining cards > > are known, ie all the same colour. (I think) > > > > cheers, > > Jamie > > But under the new rules, having only one color left can never be known > while one has any plays left (one cannot be sure of either color until > 26 cards of the other color have been playedm but at that point one has > no plays left) so it is not viable strategy! > -- > Virgil > "Mit der Dummheit kampfen Gotter selbst vergebens." (Schiller) There is no winning strategy from the outset, but chance could favor the observer, who may see an uneven number of the two samples from the fixed population, and compute the current expectations given the finite population and the existing draw. I don't know if it would pay for an ante, though (as the number of decks increases and count in the draw decreases). There are simply fixed odds. So, given an unbounded number of tries at the game there is better than even odds to guess right given various draws. (Yes the samples are still i.i.d., but, the sample is the half of the deck, from that are samples that statistical expectations detail in terms of the distribution of half-decks.) It is still the martingale (or "gambler's ruin", though, if some target "must" be achieved in n-many games). (If more than 3/4 of 26 cards are one color, there is a more likelihood the remaining cards are the other, or (1 - (1/2)^ 2) * 52/2 . This is unlikely so maybe not worth the ante, or time.) This reminds of the "switch or not". The variation on that one is "you might switch or not, but you don't know how many d100's are rolled or will be rolled, all you can (rationally) do is switch if x < 51".
[toc] | [prev] | [next] | [standalone]
| From | "Ross A. Finlayson" <ross.finlayson@gmail.com> |
|---|---|
| Date | 2016-04-18 21:04 -0700 |
| Message-ID | <8c98b9aa-1aa8-47d6-a129-96506652b149@googlegroups.com> |
| In reply to | #332127 |
On Monday, April 18, 2016 at 8:48:10 PM UTC-7, Ross A. Finlayson wrote: > On Monday, April 18, 2016 at 7:41:09 PM UTC-7, Virgil wrote: > > In article <nf3vcr$m3u$2@gioia.aioe.org>, Jamie M <jmorken@shaw.ca> > > wrote: > > > > > On 4/18/2016 6:41 PM, quasi wrote: > > > > quasi wrote: > > > >> quasi wrote: > > > >>> > > > >>> A game with 1 player proceeds as follows ... > > > >>> > > > >>> A standard 52 card deck is shuffled and the cards are then > > > >>> dealt out, face up, one card at a time. Before each card is > > > >>> dealt, the player has the option to bet on the color (red > > > >>> or black) of the card which is about to be dealt. > > > >>> > > > >>> All bets pay even money (i.e., if the player bets x, then > > > >>> the player wins x if the bet wins, and loses x if the bet > > > >>> loses. > > > >>> > > > >>> Initially the player has wealth 1. If at some point during > > > >>> the game, the player has wealth w > 0 and has the option to > > > >>> make a bet, the player can bet x, where x is any real number > > > >>> between 0 and w inclusive. A bet of 0 is effectively the > > > >>> same as "no bet" or "pass". If the player has wealth w and > > > >>> bets w (i.e., bets it all), the player's new wealth will be > > > >>> 2w if the bet wins, and 0 if the bet loses, in which case, > > > >>> the player is out of the game (i.e.,"tapped out). > > > >>> > > > >>> The goal of the player is to maximize the worst-case final > > > >>> wealth. In other words, the player seeks a betting strategy > > > >>> which will guarantee a final wealth of at least w, where w > > > >>> is as large as possible. Note -- this is not the same as > > > >>> the goal of seeking to maximize expected final wealth. > > > >>> > > > >>> Computational challenge: > > > >>> > > > >>> (1) Find an optimal betting strategy for the player. > > > >>> > > > >>> (2) Using an optimal betting strategy, what is the player's > > > >>> guaranteed worst-case final wealth? > > > >>> > > > >>> I'll post the answers I came up with in about a week. > > > >> > > > >> The problem was answered correctly by Richard Tobin. > > > >> > > > >> Here's a variation ... > > > >> > > > >> Same game, same rules, with one change to the game, and with > > > >> a modified goal: > > > >> > > > >>From a shuffled full deck, the first 26 cards are removed in > > > >> advance. The player is aware that 26 cards are left, but doesn't > > > >> know which ones. The betting phase then begins. > > > >> > > > >> Problem: > > > >> > > > >> For a betting strategy, S say, let p(S) be the probability > > > >> that the player's final wealth is at least 2. Over all > > > >> possible choices of S, what is the maximum value of p(S)? > > > > > > > > Let me clarify the objective ... > > > > > > > > The money is just play money -- the player doesn't get to keep > > > > it. To win the game, the player's final wealth must be at least > > > > 2, else the player loses. Thus, if the player's final wealth > > > > exceeds 2, the excess is irrelevant. Analogously, if the final > > > > wealth is less than 2, it might as well be 0. > > > > > > > > In this context, an optimal betting strategy is one which > > > > maximizes the player's probability of winning. The problem > > > > is to find this maximum probability. > > > > > > > >> Remarks: > > > >> > > > >> (1) I haven't yet tried it, so I don't know the answer. > > > >> > > > >> (2) I don't know if it's a good problem. > > > > > > > > quasi > > > > > > > > > > > > > Hi, > > > > > > Unless the player gets to play multiple games and average the winnings, > > > then the optimal strategy is to only bet when all remaining cards > > > are known, ie all the same colour. (I think) > > > > > > cheers, > > > Jamie > > > > But under the new rules, having only one color left can never be known > > while one has any plays left (one cannot be sure of either color until > > 26 cards of the other color have been playedm but at that point one has > > no plays left) so it is not viable strategy! > > -- > > Virgil > > "Mit der Dummheit kampfen Gotter selbst vergebens." (Schiller) > > There is no winning strategy from the outset, > but chance could favor the observer, who may > see an uneven number of the two samples from > the fixed population, and compute the current > expectations given the finite population and > the existing draw. > > I don't know if it would pay for an ante, though > (as the number of decks increases and count in > the draw decreases). There are simply fixed odds. > > So, given an unbounded number of tries at the game > there is better than even odds to guess right given > various draws. (Yes the samples are still i.i.d., but, > the sample is the half of the deck, from that are samples > that statistical expectations detail in terms of the > distribution of half-decks.) It is still the martingale > (or "gambler's ruin", though, if some target "must" be > achieved in n-many games). > > (If more than 3/4 of 26 cards are one color, there > is a more likelihood the remaining cards are the other, > or (1 - (1/2)^ 2) * 52/2 . This is unlikely so > maybe not worth the ante, or time.) > > This reminds of the "switch or not". The variation > on that one is "you might switch or not, but you > don't know how many d100's are rolled or will be > rolled, all you can (rationally) do is switch if > x < 51". One thing about games besides "winning is valued" is "there's nothing better to do" or opportunity cost. For, if you find a winning strategy, so will someone else, and, they don't have anything better to do. Sometimes the game theory might better be "what's the least losing strategy, given you must play." Then there's death and taxes! Time is money. For a more systematic treatment it's interesting to run out the bounds and work up what are the critical regions for law of small numbers and law of large numbers. This is for example, about the sample mean, vis-a-vis, some "true" mean that is the sample mean for centralized distributions (and for application of the central limit theorem) but is the interval of the regular distributions (and for that expectations or samples are not i.i.d., that they are distributed but biased instead of independent and regularly instead of identically distributed, or along those lines). Thank you, excuse me, I'm not too much the statistician, though I do find it interesting.
[toc] | [prev] | [next] | [standalone]
| From | quasi <quasi@null.set> |
|---|---|
| Date | 2016-04-19 18:02 -0500 |
| Message-ID | <vpddhb1b3bic7jp92g2uvg0h459jg16inu@4ax.com> |
| In reply to | #332117 |
quasi wrote:
>quasi wrote:
>>quasi wrote:
>>>
>>>A game with 1 player proceeds as follows ...
>>>
>>>A standard 52 card deck is shuffled and the cards are then
>>>dealt out, face up, one card at a time. Before each card is
>>>dealt, the player has the option to bet on the color (red
>>>or black) of the card which is about to be dealt.
>>>
>>>All bets pay even money (i.e., if the player bets x, then
>>>the player wins x if the bet wins, and loses x if the bet
>>>loses.
>>>
>>>Initially the player has wealth 1. If at some point during
>>>the game, the player has wealth w > 0 and has the option to
>>>make a bet, the player can bet x, where x is any real number
>>>between 0 and w inclusive. A bet of 0 is effectively the
>>>same as "no bet" or "pass". If the player has wealth w and
>>>bets w (i.e., bets it all), the player's new wealth will be
>>>2w if the bet wins, and 0 if the bet loses, in which case,
>>>the player is out of the game (i.e.,"tapped out).
>>>
>>>The goal of the player is to maximize the worst-case final
>>>wealth. In other words, the player seeks a betting strategy
>>>which will guarantee a final wealth of at least w, where w
>>>is as large as possible. Note -- this is not the same as
>>>the goal of seeking to maximize expected final wealth.
>>>
>>>Computational challenge:
>>>
>>>(1) Find an optimal betting strategy for the player.
>>>
>>>(2) Using an optimal betting strategy, what is the player's
>>>guaranteed worst-case final wealth?
>>>
>>>I'll post the answers I came up with in about a week.
>>
>>The problem was answered correctly by Richard Tobin.
>>
>>Here's a variation ...
>>
>>Same game, same rules, with one change to the game, and with
>>a modified goal:
>>
>>From a shuffled full deck, the first 26 cards are removed in
>>advance. The player is aware that 26 cards are left, but doesn't
>>know which ones. The betting phase then begins.
>>
>>Problem:
>>
>>For a betting strategy, S say, let p(S) be the probability
>>that the player's final wealth is at least 2. Over all
>>possible choices of S, what is the maximum value of p(S)?
>
>Let me clarify the objective ...
>
>The money is just play money -- the player doesn't get to keep
>it. To win the game, the player's final wealth must be at least
>2, else the player loses. Thus, if the player's final wealth
>exceeds 2, the excess is irrelevant. Analogously, if the final
>wealth is less than 2, it might as well be 0.
>
>In this context, an optimal betting strategy is one which
>maximizes the player's probability of winning. The problem
>is to find this maximum probability.
>
>>Remarks:
>>
>>(1) I haven't yet tried it, so I don't know the answer.
>>
>>(2) I don't know if it's a good problem.
I can at least say this ...
It's a much harder problem than the previous one.
Let's consider some naive strategies ...
Naive Strategy (1):
Bet 1 on the first card (red or black, it doesn't matter).
The above "blind" strategy yields a probability to win
of 1/2.
Naive Strategy (2):
Pass on the first card, then bet 1 on the second card,
either on black if the first card is red, or on red if
the first card is black.
The above strategy yields a probability to win of
26/51 = .5098039216 [approx]
which is better than naive strategy 1.
Naive Strategy (3):
Pass the first 25 cards, then bet 1 on the last card,
choosing whichever color had the least number of
occurrences in the first 25 cards.
The above strategy yields a probability to win of
82533729461/148835093922 = .5545313762 [approx]
which is better than naive strategy 2.
But the above strategies are not even close to optimal.
While I haven't yet worked out an optimal strategy, I do have
a strategy which I think is _nearly_ optimal, yielding a
probability to win between .65 and .66.
quasi
[toc] | [prev] | [next] | [standalone]
| From | quasi <quasi@null.set> |
|---|---|
| Date | 2016-04-25 03:28 -0500 |
| Message-ID | <mvkrhbhla28bc6mlv3mnu794gj2nhvh0o5@4ax.com> |
| In reply to | #332175 |
quasi wrote: >quasi wrote: >>quasi wrote: >>>quasi wrote: >>>> >>>>A game with 1 player proceeds as follows ... >>>> >>>>A standard 52 card deck is shuffled and the cards are then >>>>dealt out, face up, one card at a time. Before each card is >>>>dealt, the player has the option to bet on the color (red >>>>or black) of the card which is about to be dealt. >>>> >>>>All bets pay even money (i.e., if the player bets x, then >>>>the player wins x if the bet wins, and loses x if the bet >>>>loses. >>>> >>>>Initially the player has wealth 1. If at some point during >>>>the game, the player has wealth w > 0 and has the option to >>>>make a bet, the player can bet x, where x is any real number >>>>between 0 and w inclusive. A bet of 0 is effectively the >>>>same as "no bet" or "pass". If the player has wealth w and >>>>bets w (i.e., bets it all), the player's new wealth will be >>>>2w if the bet wins, and 0 if the bet loses, in which case, >>>>the player is out of the game (i.e.,"tapped out). >>>> >>>>The goal of the player is to maximize the worst-case final >>>>wealth. In other words, the player seeks a betting strategy >>>>which will guarantee a final wealth of at least w, where w >>>>is as large as possible. Note -- this is not the same as >>>>the goal of seeking to maximize expected final wealth. >>>> >>>>Computational challenge: >>>> >>>>(1) Find an optimal betting strategy for the player. >>>> >>>>(2) Using an optimal betting strategy, what is the player's >>>>guaranteed worst-case final wealth? >>>> >>>>I'll post the answers I came up with in about a week. >>> >>>The problem was answered correctly by Richard Tobin (with >>>some help from Jürgen R). >>> >>>Here's a variation ... >>> >>>Same game, same rules, with one change to the game, and with >>>a modified goal: >>> >>>From a shuffled full deck, the first 26 cards are removed in >>>advance. The player is aware that 26 cards are left, but doesn't >>>know which ones. The betting phase then begins. >>> >>>Problem: >>> >>>For a betting strategy, S say, let p(S) be the probability >>>that the player's final wealth is at least 2. Over all >>>possible choices of S, what is the maximum value of p(S)? >> >>Let me clarify the objective ... >> >>The money is just play money -- the player doesn't get to keep >>it. To win the game, the player's final wealth must be at least >>2, else the player loses. Thus, if the player's final wealth >>exceeds 2, the excess is irrelevant. Analogously, if the final >>wealth is less than 2, it might as well be 0. >> >>In this context, an optimal betting strategy is one which >>maximizes the player's probability of winning. The problem >>is to find this maximum probability. >> >>>Remarks: >>> >>>(1) I haven't yet tried it, so I don't know the answer. >>> >>>(2) I don't know if it's a good problem. > >I can at least say this ... > >It's a much harder problem than the previous one. > >Let's consider some naive strategies ... > >Naive Strategy (1): > > Bet 1 on the first card (red or black, it doesn't matter). > > The above "blind" strategy yields a probability to win > of 1/2. > >Naive Strategy (2): > > Pass on the first card, then bet 1 on the second card, > either on black if the first card is red, or on red if > the first card is black. > > The above strategy yields a probability to win of > > 26/51 = .5098039216 [approx] > > which is better than naive strategy 1. > >Naive Strategy (3): > > Pass the first 25 cards, then bet 1 on the last card, > choosing whichever color had the least number of > occurrences in the first 25 cards. > > The above strategy yields a probability to win of > > 82533729461/148835093922 = .5545313762 [approx] > > which is better than naive strategy 2. > >But the above strategies are not even close to optimal. > >While I haven't yet worked out an optimal strategy, I do have >a strategy which I think is _nearly_ optimal, yielding a >probability to win between .65 and .66. I have the exact answer now. I computed a betting strategy which provably maximizes the player's probability of winning the game. The maximum probability is a rational number -- computable but not guessable. I'll leave it a challenge problem, no time limit, but if someone posts the correct maximum probability, I'll affirm it. Warning -- this is a difficult problem, both theoretically and computationally. quasi
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-25 05:46 -0700 |
| Message-ID | <eb9a7ee2-5b4d-434c-a0a3-8fd3a93ea9a7@googlegroups.com> |
| In reply to | #332612 |
On Monday, April 25, 2016 at 3:30:13 AM UTC-4, quasi wrote: > quasi wrote: > >quasi wrote: > >>quasi wrote: > >>>quasi wrote: > >>>> > >>>>A game with 1 player proceeds as follows ... > >>>> > >>>>A standard 52 card deck is shuffled and the cards are then > >>>>dealt out, face up, one card at a time. Before each card is > >>>>dealt, the player has the option to bet on the color (red > >>>>or black) of the card which is about to be dealt. > >>>> > >>>>All bets pay even money (i.e., if the player bets x, then > >>>>the player wins x if the bet wins, and loses x if the bet > >>>>loses. > >>>> > >>>>Initially the player has wealth 1. If at some point during > >>>>the game, the player has wealth w > 0 and has the option to > >>>>make a bet, the player can bet x, where x is any real number > >>>>between 0 and w inclusive. A bet of 0 is effectively the > >>>>same as "no bet" or "pass". If the player has wealth w and > >>>>bets w (i.e., bets it all), the player's new wealth will be > >>>>2w if the bet wins, and 0 if the bet loses, in which case, > >>>>the player is out of the game (i.e.,"tapped out). > >>>> > >>>>The goal of the player is to maximize the worst-case final > >>>>wealth. In other words, the player seeks a betting strategy > >>>>which will guarantee a final wealth of at least w, where w > >>>>is as large as possible. Note -- this is not the same as > >>>>the goal of seeking to maximize expected final wealth. > >>>> > >>>>Computational challenge: > >>>> > >>>>(1) Find an optimal betting strategy for the player. > >>>> > >>>>(2) Using an optimal betting strategy, what is the player's > >>>>guaranteed worst-case final wealth? > >>>> > >>>>I'll post the answers I came up with in about a week. > >>> > >>>The problem was answered correctly by Richard Tobin (with > >>>some help from Jürgen R). > >>> > >>>Here's a variation ... > >>> > >>>Same game, same rules, with one change to the game, and with > >>>a modified goal: > >>> > >>>From a shuffled full deck, the first 26 cards are removed in > >>>advance. The player is aware that 26 cards are left, but doesn't > >>>know which ones. The betting phase then begins. > >>> > >>>Problem: > >>> > >>>For a betting strategy, S say, let p(S) be the probability > >>>that the player's final wealth is at least 2. Over all > >>>possible choices of S, what is the maximum value of p(S)? > >> > >>Let me clarify the objective ... > >> > >>The money is just play money -- the player doesn't get to keep > >>it. To win the game, the player's final wealth must be at least > >>2, else the player loses. Thus, if the player's final wealth > >>exceeds 2, the excess is irrelevant. Analogously, if the final > >>wealth is less than 2, it might as well be 0. > >> > >>In this context, an optimal betting strategy is one which > >>maximizes the player's probability of winning. The problem > >>is to find this maximum probability. > >> > >>>Remarks: > >>> > >>>(1) I haven't yet tried it, so I don't know the answer. > >>> > >>>(2) I don't know if it's a good problem. > > > >I can at least say this ... > > > >It's a much harder problem than the previous one. > > > >Let's consider some naive strategies ... > > > >Naive Strategy (1): > > > > Bet 1 on the first card (red or black, it doesn't matter). > > > > The above "blind" strategy yields a probability to win > > of 1/2. > > > >Naive Strategy (2): > > > > Pass on the first card, then bet 1 on the second card, > > either on black if the first card is red, or on red if > > the first card is black. > > > > The above strategy yields a probability to win of > > > > 26/51 = .5098039216 [approx] > > > > which is better than naive strategy 1. > > > >Naive Strategy (3): > > > > Pass the first 25 cards, then bet 1 on the last card, > > choosing whichever color had the least number of > > occurrences in the first 25 cards. > > > > The above strategy yields a probability to win of > > > > 82533729461/148835093922 = .5545313762 [approx] > > > > which is better than naive strategy 2. > > > >But the above strategies are not even close to optimal. > > > >While I haven't yet worked out an optimal strategy, I do have > >a strategy which I think is _nearly_ optimal, yielding a > >probability to win between .65 and .66. > > I have the exact answer now. > > I computed a betting strategy which provably maximizes the > player's probability of winning the game. > > The maximum probability is a rational number -- computable but > not guessable. I'll leave it a challenge problem, no time limit, > but if someone posts the correct maximum probability, I'll > affirm it. > > Warning -- this is a difficult problem, both theoretically and > computationally. > > quasi Am I reading this right? You are removing half the shuffled deck leaving just 26 cards that are used in the play? More then one full deck of shuffled cards can be halved but for the sake of argument just one deck is used and the half is removed. If this is true then you are playing roulette without the (single zero European roulette) or (double zero American) table. No advantage either way, a zero sum game. Or a coin toss. A full deck or decks is different were you could devise a counting strategy where you would not be betting every card but when the deck weights heavy in your favor of either least color drawn then you bet on that color a similar strategy to counting cards in black jack. Removing half the shuffled deck over the long haul of play no one can win. Please correct me if I read this wrong! Dan
[toc] | [prev] | [next] | [standalone]
| From | quasi <quasi@null.set> |
|---|---|
| Date | 2016-04-25 11:46 -0500 |
| Message-ID | <hdishb1s340uncq8sphdott0nv3ulb3oam@4ax.com> |
| In reply to | #332622 |
djoyce099 wrote: >quasi wrote: >>quasi wrote: >>>quasi wrote: >>>>quasi wrote: >>>>>quasi wrote: >>>>>> >>>>>>A game with 1 player proceeds as follows ... >>>>>> >>>>>>A standard 52 card deck is shuffled and the cards are then >>>>>>dealt out, face up, one card at a time. Before each card is >>>>>>dealt, the player has the option to bet on the color (red >>>>>>or black) of the card which is about to be dealt. >>>>>> >>>>>>All bets pay even money (i.e., if the player bets x, then >>>>>>the player wins x if the bet wins, and loses x if the bet >>>>>>loses. >>>>>> >>>>>>Initially the player has wealth 1. If at some point during >>>>>>the game, the player has wealth w > 0 and has the option to >>>>>>make a bet, the player can bet x, where x is any real number >>>>>>between 0 and w inclusive. A bet of 0 is effectively the >>>>>>same as "no bet" or "pass". If the player has wealth w and >>>>>>bets w (i.e., bets it all), the player's new wealth will be >>>>>>2w if the bet wins, and 0 if the bet loses, in which case, >>>>>>the player is out of the game (i.e.,"tapped out). >>>>>> >>>>>>The goal of the player is to maximize the worst-case final >>>>>>wealth. In other words, the player seeks a betting strategy >>>>>>which will guarantee a final wealth of at least w, where w >>>>>>is as large as possible. Note -- this is not the same as >>>>>>the goal of seeking to maximize expected final wealth. >>>>>> >>>>>>Computational challenge: >>>>>> >>>>>>(1) Find an optimal betting strategy for the player. >>>>>> >>>>>>(2) Using an optimal betting strategy, what is the player's >>>>>>guaranteed worst-case final wealth? >>>>>> >>>>>>I'll post the answers I came up with in about a week. >>>>> >>>>>The problem was answered correctly by Richard Tobin (with >>>>>some help from Jürgen R). >>>>> >>>>>Here's a variation ... >>>>> >>>>>Same game, same rules, with one change to the game, and with >>>>>a modified goal: >>>>> >>>>>From a shuffled full deck, the first 26 cards are removed in >>>>>advance. The player is aware that 26 cards are left, but doesn't >>>>>know which ones. The betting phase then begins. >>>>> >>>>>Problem: >>>>> >>>>>For a betting strategy, S say, let p(S) be the probability >>>>>that the player's final wealth is at least 2. Over all >>>>>possible choices of S, what is the maximum value of p(S)? >>>> >>>>Let me clarify the objective ... >>>> >>>>The money is just play money -- the player doesn't get to keep >>>>it. To win the game, the player's final wealth must be at least >>>>2, else the player loses. Thus, if the player's final wealth >>>>exceeds 2, the excess is irrelevant. Analogously, if the final >>>>wealth is less than 2, it might as well be 0. >>>> >>>>In this context, an optimal betting strategy is one which >>>>maximizes the player's probability of winning. The problem >>>>is to find this maximum probability. >>>> >>>>>Remarks: >>>>> >>>>>(1) I haven't yet tried it, so I don't know the answer. >>>>> >>>>>(2) I don't know if it's a good problem. >>> >>>I can at least say this ... >>> >>>It's a much harder problem than the previous one. >>> >>>Let's consider some naive strategies ... >>> >>>Naive Strategy (1): >>> >>> Bet 1 on the first card (red or black, it doesn't matter). >>> >>> The above "blind" strategy yields a probability to win >>> of 1/2. >>> >>>Naive Strategy (2): >>> >>> Pass on the first card, then bet 1 on the second card, >>> either on black if the first card is red, or on red if >>> the first card is black. >>> >>> The above strategy yields a probability to win of >>> >>> 26/51 = .5098039216 [approx] >>> >>> which is better than naive strategy 1. >>> >>>Naive Strategy (3): >>> >>> Pass the first 25 cards, then bet 1 on the last card, >>> choosing whichever color had the least number of >>> occurrences in the first 25 cards. >>> >>> The above strategy yields a probability to win of >>> >>> 82533729461/148835093922 = .5545313762 [approx] >>> >>> which is better than naive strategy 2. >>> >>>But the above strategies are not even close to optimal. >>> >>>While I haven't yet worked out an optimal strategy, I do have >>>a strategy which I think is _nearly_ optimal, yielding a >>>probability to win between .65 and .66. >> >>I have the exact answer now. >> >>I computed a betting strategy which provably maximizes the >>player's probability of winning the game. >> >>The maximum probability is a rational number -- computable but >>not guessable. I'll leave it as a challenge problem, no time >>limit, but if someone posts the correct maximum probability, >>I'll affirm it. >> >>Warning -- this is a difficult problem, both theoretically and >>computationally. > >Am I reading this right? >You are removing half the shuffled deck leaving just 26 cards >that are used in the play? Yes. >More then one full deck of shuffled cards can be halved but >for the sake of argument just one deck is used and the half >is removed. Yes, 26 cards are removed, 26 remain. >If this is true then you are playing roulette without the >(single zero European roulette) or (double zero American) >table. > >No advantage either way, a zero sum game. >Or a coin toss. No. In roulette (with half red, half black), if red comes up on the first roll, the probabilities for the color of the second roll are 1/2 for red, 1/2 for black (same as it was for the first roll). But in this game, if the first card turned over is red, the probabilities for the color of the second card are 25/51 for red, 26/51 for black. Now consider naive strategy #2 (in the part of my post where I outlined some "naive" strategies). quasi
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-25 09:04 -0700 |
| Message-ID | <413feb80-fdd4-43f8-bedd-29bc9c276476@googlegroups.com> |
| In reply to | #332626 |
On Monday, April 25, 2016 at 11:48:44 AM UTC-4, quasi wrote: > djoyce099 wrote: > >quasi wrote: > >>quasi wrote: > >>>quasi wrote: > >>>>quasi wrote: > >>>>>quasi wrote: > >>>>>> > >>>>>>A game with 1 player proceeds as follows ... > >>>>>> > >>>>>>A standard 52 card deck is shuffled and the cards are then > >>>>>>dealt out, face up, one card at a time. Before each card is > >>>>>>dealt, the player has the option to bet on the color (red > >>>>>>or black) of the card which is about to be dealt. > >>>>>> > >>>>>>All bets pay even money (i.e., if the player bets x, then > >>>>>>the player wins x if the bet wins, and loses x if the bet > >>>>>>loses. > >>>>>> > >>>>>>Initially the player has wealth 1. If at some point during > >>>>>>the game, the player has wealth w > 0 and has the option to > >>>>>>make a bet, the player can bet x, where x is any real number > >>>>>>between 0 and w inclusive. A bet of 0 is effectively the > >>>>>>same as "no bet" or "pass". If the player has wealth w and > >>>>>>bets w (i.e., bets it all), the player's new wealth will be > >>>>>>2w if the bet wins, and 0 if the bet loses, in which case, > >>>>>>the player is out of the game (i.e.,"tapped out). > >>>>>> > >>>>>>The goal of the player is to maximize the worst-case final > >>>>>>wealth. In other words, the player seeks a betting strategy > >>>>>>which will guarantee a final wealth of at least w, where w > >>>>>>is as large as possible. Note -- this is not the same as > >>>>>>the goal of seeking to maximize expected final wealth. > >>>>>> > >>>>>>Computational challenge: > >>>>>> > >>>>>>(1) Find an optimal betting strategy for the player. > >>>>>> > >>>>>>(2) Using an optimal betting strategy, what is the player's > >>>>>>guaranteed worst-case final wealth? > >>>>>> > >>>>>>I'll post the answers I came up with in about a week. > >>>>> > >>>>>The problem was answered correctly by Richard Tobin (with > >>>>>some help from Jürgen R). > >>>>> > >>>>>Here's a variation ... > >>>>> > >>>>>Same game, same rules, with one change to the game, and with > >>>>>a modified goal: > >>>>> > >>>>>From a shuffled full deck, the first 26 cards are removed in > >>>>>advance. The player is aware that 26 cards are left, but doesn't > >>>>>know which ones. The betting phase then begins. > >>>>> > >>>>>Problem: > >>>>> > >>>>>For a betting strategy, S say, let p(S) be the probability > >>>>>that the player's final wealth is at least 2. Over all > >>>>>possible choices of S, what is the maximum value of p(S)? > >>>> > >>>>Let me clarify the objective ... > >>>> > >>>>The money is just play money -- the player doesn't get to keep > >>>>it. To win the game, the player's final wealth must be at least > >>>>2, else the player loses. Thus, if the player's final wealth > >>>>exceeds 2, the excess is irrelevant. Analogously, if the final > >>>>wealth is less than 2, it might as well be 0. > >>>> > >>>>In this context, an optimal betting strategy is one which > >>>>maximizes the player's probability of winning. The problem > >>>>is to find this maximum probability. > >>>> > >>>>>Remarks: > >>>>> > >>>>>(1) I haven't yet tried it, so I don't know the answer. > >>>>> > >>>>>(2) I don't know if it's a good problem. > >>> > >>>I can at least say this ... > >>> > >>>It's a much harder problem than the previous one. > >>> > >>>Let's consider some naive strategies ... > >>> > >>>Naive Strategy (1): > >>> > >>> Bet 1 on the first card (red or black, it doesn't matter). > >>> > >>> The above "blind" strategy yields a probability to win > >>> of 1/2. > >>> > >>>Naive Strategy (2): > >>> > >>> Pass on the first card, then bet 1 on the second card, > >>> either on black if the first card is red, or on red if > >>> the first card is black. > >>> > >>> The above strategy yields a probability to win of > >>> > >>> 26/51 = .5098039216 [approx] > >>> > >>> which is better than naive strategy 1. > >>> > >>>Naive Strategy (3): > >>> > >>> Pass the first 25 cards, then bet 1 on the last card, > >>> choosing whichever color had the least number of > >>> occurrences in the first 25 cards. > >>> > >>> The above strategy yields a probability to win of > >>> > >>> 82533729461/148835093922 = .5545313762 [approx] > >>> > >>> which is better than naive strategy 2. > >>> > >>>But the above strategies are not even close to optimal. > >>> > >>>While I haven't yet worked out an optimal strategy, I do have > >>>a strategy which I think is _nearly_ optimal, yielding a > >>>probability to win between .65 and .66. > >> > >>I have the exact answer now. > >> > >>I computed a betting strategy which provably maximizes the > >>player's probability of winning the game. > >> > >>The maximum probability is a rational number -- computable but > >>not guessable. I'll leave it as a challenge problem, no time > >>limit, but if someone posts the correct maximum probability, > >>I'll affirm it. > >> > >>Warning -- this is a difficult problem, both theoretically and > >>computationally. > > > >Am I reading this right? > >You are removing half the shuffled deck leaving just 26 cards > >that are used in the play? > > Yes. > > >More then one full deck of shuffled cards can be halved but > >for the sake of argument just one deck is used and the half > >is removed. > > Yes, 26 cards are removed, 26 remain. > > >If this is true then you are playing roulette without the > >(single zero European roulette) or (double zero American) > >table. > > > >No advantage either way, a zero sum game. > >Or a coin toss. > > No. > > In roulette (with half red, half black), if red comes up on > the first roll, the probabilities for the color of the second > roll are 1/2 for red, 1/2 for black (same as it was for the > first roll). > > But in this game, if the first card turned over is red, the > probabilities for the color of the second card are 25/51 for > red, 26/51 for black. > > Now consider naive strategy #2 (in the part of my post where > I outlined some "naive" strategies). > > quasi Hi quasi, But are you still splitting the shuffled deck in half and using only 1/2 the original deck of 52 cards never referring to the 1/2 deck you took out of play? If that is the case it is still a zero sum game where house or player have no advantage. I do not care what kind of strategy you use if that is the case. A zero sum game in the long haul. If you, at some point, are bringing in the other 1/2 of the un-played deck then it becomes a little more dicey. No pun intended because I am a craps shooter.;-) Dan
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-25 09:14 -0700 |
| Message-ID | <49348cd5-e322-4711-b4c1-78b74c01cc66@googlegroups.com> |
| In reply to | #332627 |
On Monday, April 25, 2016 at 12:04:52 PM UTC-4, djoyce099 wrote: > On Monday, April 25, 2016 at 11:48:44 AM UTC-4, quasi wrote: > > djoyce099 wrote: > > >quasi wrote: > > >>quasi wrote: > > >>>quasi wrote: > > >>>>quasi wrote: > > >>>>>quasi wrote: > > >>>>>> > > >>>>>>A game with 1 player proceeds as follows ... > > >>>>>> > > >>>>>>A standard 52 card deck is shuffled and the cards are then > > >>>>>>dealt out, face up, one card at a time. Before each card is > > >>>>>>dealt, the player has the option to bet on the color (red > > >>>>>>or black) of the card which is about to be dealt. > > >>>>>> > > >>>>>>All bets pay even money (i.e., if the player bets x, then > > >>>>>>the player wins x if the bet wins, and loses x if the bet > > >>>>>>loses. > > >>>>>> > > >>>>>>Initially the player has wealth 1. If at some point during > > >>>>>>the game, the player has wealth w > 0 and has the option to > > >>>>>>make a bet, the player can bet x, where x is any real number > > >>>>>>between 0 and w inclusive. A bet of 0 is effectively the > > >>>>>>same as "no bet" or "pass". If the player has wealth w and > > >>>>>>bets w (i.e., bets it all), the player's new wealth will be > > >>>>>>2w if the bet wins, and 0 if the bet loses, in which case, > > >>>>>>the player is out of the game (i.e.,"tapped out). > > >>>>>> > > >>>>>>The goal of the player is to maximize the worst-case final > > >>>>>>wealth. In other words, the player seeks a betting strategy > > >>>>>>which will guarantee a final wealth of at least w, where w > > >>>>>>is as large as possible. Note -- this is not the same as > > >>>>>>the goal of seeking to maximize expected final wealth. > > >>>>>> > > >>>>>>Computational challenge: > > >>>>>> > > >>>>>>(1) Find an optimal betting strategy for the player. > > >>>>>> > > >>>>>>(2) Using an optimal betting strategy, what is the player's > > >>>>>>guaranteed worst-case final wealth? > > >>>>>> > > >>>>>>I'll post the answers I came up with in about a week. > > >>>>> > > >>>>>The problem was answered correctly by Richard Tobin (with > > >>>>>some help from Jürgen R). > > >>>>> > > >>>>>Here's a variation ... > > >>>>> > > >>>>>Same game, same rules, with one change to the game, and with > > >>>>>a modified goal: > > >>>>> > > >>>>>From a shuffled full deck, the first 26 cards are removed in > > >>>>>advance. The player is aware that 26 cards are left, but doesn't > > >>>>>know which ones. The betting phase then begins. > > >>>>> > > >>>>>Problem: > > >>>>> > > >>>>>For a betting strategy, S say, let p(S) be the probability > > >>>>>that the player's final wealth is at least 2. Over all > > >>>>>possible choices of S, what is the maximum value of p(S)? > > >>>> > > >>>>Let me clarify the objective ... > > >>>> > > >>>>The money is just play money -- the player doesn't get to keep > > >>>>it. To win the game, the player's final wealth must be at least > > >>>>2, else the player loses. Thus, if the player's final wealth > > >>>>exceeds 2, the excess is irrelevant. Analogously, if the final > > >>>>wealth is less than 2, it might as well be 0. > > >>>> > > >>>>In this context, an optimal betting strategy is one which > > >>>>maximizes the player's probability of winning. The problem > > >>>>is to find this maximum probability. > > >>>> > > >>>>>Remarks: > > >>>>> > > >>>>>(1) I haven't yet tried it, so I don't know the answer. > > >>>>> > > >>>>>(2) I don't know if it's a good problem. > > >>> > > >>>I can at least say this ... > > >>> > > >>>It's a much harder problem than the previous one. > > >>> > > >>>Let's consider some naive strategies ... > > >>> > > >>>Naive Strategy (1): > > >>> > > >>> Bet 1 on the first card (red or black, it doesn't matter). > > >>> > > >>> The above "blind" strategy yields a probability to win > > >>> of 1/2. > > >>> > > >>>Naive Strategy (2): > > >>> > > >>> Pass on the first card, then bet 1 on the second card, > > >>> either on black if the first card is red, or on red if > > >>> the first card is black. > > >>> > > >>> The above strategy yields a probability to win of > > >>> > > >>> 26/51 = .5098039216 [approx] > > >>> > > >>> which is better than naive strategy 1. > > >>> > > >>>Naive Strategy (3): > > >>> > > >>> Pass the first 25 cards, then bet 1 on the last card, > > >>> choosing whichever color had the least number of > > >>> occurrences in the first 25 cards. > > >>> > > >>> The above strategy yields a probability to win of > > >>> > > >>> 82533729461/148835093922 = .5545313762 [approx] > > >>> > > >>> which is better than naive strategy 2. > > >>> > > >>>But the above strategies are not even close to optimal. > > >>> > > >>>While I haven't yet worked out an optimal strategy, I do have > > >>>a strategy which I think is _nearly_ optimal, yielding a > > >>>probability to win between .65 and .66. > > >> > > >>I have the exact answer now. > > >> > > >>I computed a betting strategy which provably maximizes the > > >>player's probability of winning the game. > > >> > > >>The maximum probability is a rational number -- computable but > > >>not guessable. I'll leave it as a challenge problem, no time > > >>limit, but if someone posts the correct maximum probability, > > >>I'll affirm it. > > >> > > >>Warning -- this is a difficult problem, both theoretically and > > >>computationally. > > > > > >Am I reading this right? > > >You are removing half the shuffled deck leaving just 26 cards > > >that are used in the play? > > > > Yes. > > > > >More then one full deck of shuffled cards can be halved but > > >for the sake of argument just one deck is used and the half > > >is removed. > > > > Yes, 26 cards are removed, 26 remain. > > > > >If this is true then you are playing roulette without the > > >(single zero European roulette) or (double zero American) > > >table. > > > > > >No advantage either way, a zero sum game. > > >Or a coin toss. > > > > No. > > > > In roulette (with half red, half black), if red comes up on > > the first roll, the probabilities for the color of the second > > roll are 1/2 for red, 1/2 for black (same as it was for the > > first roll). > > > > But in this game, if the first card turned over is red, the > > probabilities for the color of the second card are 25/51 for > > red, 26/51 for black. > > > > Now consider naive strategy #2 (in the part of my post where > > I outlined some "naive" strategies). > > > > quasi > > Hi quasi, > > But are you still splitting the shuffled deck in half and using only 1/2 the > original deck of 52 cards never referring to the 1/2 deck you took out of play? > If that is the case it is still a zero sum game where house or player have no > advantage. I do not care what kind of strategy you use if that is the case. > A zero sum game in the long haul. If you, at some point, are bringing in the other 1/2 of the un-played deck then it becomes a little more dicey. > > No pun intended because I am a craps shooter.;-) > > Dan I should have added, how can you include the 51 remaining cards in your calculations when you are not using the full deck. Only 26 cards should be considered. Just my thoughts. Thanks, Dan
[toc] | [prev] | [next] | [standalone]
| From | Jürgen R. <jurgenr@web.de> |
|---|---|
| Date | 2016-04-25 18:26 +0200 |
| Message-ID | <nflg8j$9mh$1@dont-email.me> |
| In reply to | #332629 |
On 25.04.2016 18:14, djoyce099 wrote: > On Monday, April 25, 2016 at 12:04:52 PM UTC-4, djoyce099 wrote: >> On Monday, April 25, 2016 at 11:48:44 AM UTC-4, quasi wrote: >>> djoyce099 wrote: >>>> quasi wrote: >>>>> quasi wrote: >>>>>> quasi wrote: >>>>>>> quasi wrote: >>>>>>>> quasi wrote: >>>>>>>>> >>>>>>>>> A game with 1 player proceeds as follows ... >>>>>>>>> >>>>>>>>> A standard 52 card deck is shuffled and the cards are then >>>>>>>>> dealt out, face up, one card at a time. Before each card is >>>>>>>>> dealt, the player has the option to bet on the color (red >>>>>>>>> or black) of the card which is about to be dealt. >>>>>>>>> >>>>>>>>> All bets pay even money (i.e., if the player bets x, then >>>>>>>>> the player wins x if the bet wins, and loses x if the bet >>>>>>>>> loses. >>>>>>>>> >>>>>>>>> Initially the player has wealth 1. If at some point during >>>>>>>>> the game, the player has wealth w > 0 and has the option to >>>>>>>>> make a bet, the player can bet x, where x is any real number >>>>>>>>> between 0 and w inclusive. A bet of 0 is effectively the >>>>>>>>> same as "no bet" or "pass". If the player has wealth w and >>>>>>>>> bets w (i.e., bets it all), the player's new wealth will be >>>>>>>>> 2w if the bet wins, and 0 if the bet loses, in which case, >>>>>>>>> the player is out of the game (i.e.,"tapped out). >>>>>>>>> >>>>>>>>> The goal of the player is to maximize the worst-case final >>>>>>>>> wealth. In other words, the player seeks a betting strategy >>>>>>>>> which will guarantee a final wealth of at least w, where w >>>>>>>>> is as large as possible. Note -- this is not the same as >>>>>>>>> the goal of seeking to maximize expected final wealth. >>>>>>>>> >>>>>>>>> Computational challenge: >>>>>>>>> >>>>>>>>> (1) Find an optimal betting strategy for the player. >>>>>>>>> >>>>>>>>> (2) Using an optimal betting strategy, what is the player's >>>>>>>>> guaranteed worst-case final wealth? >>>>>>>>> >>>>>>>>> I'll post the answers I came up with in about a week. >>>>>>>> >>>>>>>> The problem was answered correctly by Richard Tobin (with >>>>>>>> some help from Jürgen R). >>>>>>>> >>>>>>>> Here's a variation ... >>>>>>>> >>>>>>>> Same game, same rules, with one change to the game, and with >>>>>>>> a modified goal: >>>>>>>> >>>>>>> >From a shuffled full deck, the first 26 cards are removed in >>>>>>>> advance. The player is aware that 26 cards are left, but doesn't >>>>>>>> know which ones. The betting phase then begins. >>>>>>>> >>>>>>>> Problem: >>>>>>>> >>>>>>>> For a betting strategy, S say, let p(S) be the probability >>>>>>>> that the player's final wealth is at least 2. Over all >>>>>>>> possible choices of S, what is the maximum value of p(S)? >>>>>>> >>>>>>> Let me clarify the objective ... >>>>>>> >>>>>>> The money is just play money -- the player doesn't get to keep >>>>>>> it. To win the game, the player's final wealth must be at least >>>>>>> 2, else the player loses. Thus, if the player's final wealth >>>>>>> exceeds 2, the excess is irrelevant. Analogously, if the final >>>>>>> wealth is less than 2, it might as well be 0. >>>>>>> >>>>>>> In this context, an optimal betting strategy is one which >>>>>>> maximizes the player's probability of winning. The problem >>>>>>> is to find this maximum probability. >>>>>>> >>>>>>>> Remarks: >>>>>>>> >>>>>>>> (1) I haven't yet tried it, so I don't know the answer. >>>>>>>> >>>>>>>> (2) I don't know if it's a good problem. >>>>>> >>>>>> I can at least say this ... >>>>>> >>>>>> It's a much harder problem than the previous one. >>>>>> >>>>>> Let's consider some naive strategies ... >>>>>> >>>>>> Naive Strategy (1): >>>>>> >>>>>> Bet 1 on the first card (red or black, it doesn't matter). >>>>>> >>>>>> The above "blind" strategy yields a probability to win >>>>>> of 1/2. >>>>>> >>>>>> Naive Strategy (2): >>>>>> >>>>>> Pass on the first card, then bet 1 on the second card, >>>>>> either on black if the first card is red, or on red if >>>>>> the first card is black. >>>>>> >>>>>> The above strategy yields a probability to win of >>>>>> >>>>>> 26/51 = .5098039216 [approx] >>>>>> >>>>>> which is better than naive strategy 1. >>>>>> >>>>>> Naive Strategy (3): >>>>>> >>>>>> Pass the first 25 cards, then bet 1 on the last card, >>>>>> choosing whichever color had the least number of >>>>>> occurrences in the first 25 cards. >>>>>> >>>>>> The above strategy yields a probability to win of >>>>>> >>>>>> 82533729461/148835093922 = .5545313762 [approx] >>>>>> >>>>>> which is better than naive strategy 2. >>>>>> >>>>>> But the above strategies are not even close to optimal. >>>>>> >>>>>> While I haven't yet worked out an optimal strategy, I do have >>>>>> a strategy which I think is _nearly_ optimal, yielding a >>>>>> probability to win between .65 and .66. >>>>> >>>>> I have the exact answer now. >>>>> >>>>> I computed a betting strategy which provably maximizes the >>>>> player's probability of winning the game. >>>>> >>>>> The maximum probability is a rational number -- computable but >>>>> not guessable. I'll leave it as a challenge problem, no time >>>>> limit, but if someone posts the correct maximum probability, >>>>> I'll affirm it. >>>>> >>>>> Warning -- this is a difficult problem, both theoretically and >>>>> computationally. >>>> >>>> Am I reading this right? >>>> You are removing half the shuffled deck leaving just 26 cards >>>> that are used in the play? >>> >>> Yes. >>> >>>> More then one full deck of shuffled cards can be halved but >>>> for the sake of argument just one deck is used and the half >>>> is removed. >>> >>> Yes, 26 cards are removed, 26 remain. >>> >>>> If this is true then you are playing roulette without the >>>> (single zero European roulette) or (double zero American) >>>> table. >>>> >>>> No advantage either way, a zero sum game. >>>> Or a coin toss. >>> >>> No. >>> >>> In roulette (with half red, half black), if red comes up on >>> the first roll, the probabilities for the color of the second >>> roll are 1/2 for red, 1/2 for black (same as it was for the >>> first roll). >>> >>> But in this game, if the first card turned over is red, the >>> probabilities for the color of the second card are 25/51 for >>> red, 26/51 for black. >>> >>> Now consider naive strategy #2 (in the part of my post where >>> I outlined some "naive" strategies). >>> >>> quasi >> >> Hi quasi, >> >> But are you still splitting the shuffled deck in half and using only 1/2 the >> original deck of 52 cards never referring to the 1/2 deck you took out of play? >> If that is the case it is still a zero sum game where house or player have no >> advantage. I do not care what kind of strategy you use if that is the case. >> A zero sum game in the long haul. If you, at some point, are bringing in the other 1/2 of the un-played deck then it becomes a little more dicey. >> >> No pun intended because I am a craps shooter.;-) >> >> Dan > > I should have added, how can you include the 51 remaining cards in your > calculations when you are not using the full deck. Only 26 cards should be considered. Just my thoughts. The setup is the same as dealing from a full deck and stopping after card 26. You have 26 betting opportunities. Of these at least 13 offer odds in your favor, the other 13 have 50:50 odds at worst. I don't see an analytic solution to this one. The previous problem had a very neat and surprising closed-form solution that you can find by setting up the recursion and using the Pascal triangle identity.
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-25 10:51 -0700 |
| Message-ID | <f7a9a6d8-9509-4d7f-93e1-1eb47a66c9f3@googlegroups.com> |
| In reply to | #332630 |
> > The setup is the same as dealing from a full deck and stopping after > card 26. > > You have 26 betting opportunities. Of these at least 13 offer odds in > your favor, the other 13 have 50:50 odds at worst. > > I don't see an analytic solution to this one. The previous problem had a > very neat and surprising closed-form solution that you can find by > setting up the recursion and using the Pascal triangle identity. I wonder what Edward Oakley "Ed" Thorp would say about this strategy? The American math professor that beat the house by counting cards at the black jack tables. He is 83 now and a couple of years older then me. Not long after his little escapade the house increased the shoe size too an eight deck shoe and reshuffled after about 1/2 the shoe was dealt. I wonder why the casinos did this? duh! A little info. about this remarkable guy. (born August 14, 1932) is an American mathematics professor, author, hedge fund manager, and blackjack player best known as the "father of the wearable computer" after inventing the world's first wearable computer in 1961.[1] Dan
[toc] | [prev] | [next] | [standalone]
| From | quasi <quasi@null.set> |
|---|---|
| Date | 2016-04-25 14:03 -0500 |
| Message-ID | <2gqshbdfc7r8g6bgrce5v01s64fa1hlj3h@4ax.com> |
| In reply to | #332627 |
djoyce099 wrote:
>quasi wrote:
>>djoyce099 wrote:
>>>quasi wrote:
>>>>quasi wrote:
>>>>>quasi wrote:
>>>>>>quasi wrote:
>>>>>>>quasi wrote:
>>>>>>>>
>>>>>>>>A game with 1 player proceeds as follows ...
>>>>>>>>
>>>>>>>>A standard 52 card deck is shuffled and the cards are
>>>>>>>>then dealt out, face up, one card at a time. Before each
>>>>>>>>card is dealt, the player has the option to bet on the
>>>>>>>>color (red or black) of the card which is about to be
>>>>>>>>dealt.
>>>>>>>>
>>>>>>>>All bets pay even money (i.e., if the player bets x, then
>>>>>>>>the player wins x if the bet wins, and loses x if the bet
>>>>>>>>loses.
>>>>>>>>
>>>>>>>>Initially the player has wealth 1. If at some point
>>>>>>>>during the game, the player has wealth w > 0 and has
>>>>>>>>the option to make a bet, the player can bet x, where
>>>>>>>>x is any real number between 0 and w inclusive. A bet
>>>>>>>>of 0 is effectively the same as "no bet" or "pass". If
>>>>>>>>the player has wealth w and bets w (i.e., bets it all),
>>>>>>>>the player's new wealth will be 2w if the bet wins,
>>>>>>>>and 0 if the bet loses, in which case, the player is
>>>>>>>>out of the game (i.e.,"tapped out").
>>>>>>>>
>>>>>>>>The goal of the player is to maximize the worst-case
>>>>>>>>final wealth. In other words, the player seeks a betting
>>>>>>>>strategy which will guarantee a final wealth of at least
>>>>>>>>w, where w is as large as possible. Note -- this is not
>>>>>>>>the same as the goal of seeking to maximize expected
>>>>>>>>final wealth.
>>>>>>>>
>>>>>>>>Computational challenge:
>>>>>>>>
>>>>>>>>(1) Find an optimal betting strategy for the player.
>>>>>>>>
>>>>>>>>(2) Using an optimal betting strategy, what is the
>>>>>>>>player's guaranteed worst-case final wealth?
>>>>>>>>
>>>>>>>>I'll post the answers I came up with in about a week.
>>>>>>>
>>>>>>>The problem was answered correctly by Richard Tobin (with
>>>>>>>some help from Jürgen R).
>>>>>>>
>>>>>>>Here's a variation ...
>>>>>>>
>>>>>>>Same game, same rules, with one change to the game, and
>>>>>>>with a modified goal:
>>>>>>>
>>>>>>>From a shuffled full deck, the first 26 cards are removed
>>>>>>>in advance. The player is aware that 26 cards are left,
>>>>>>>but doesn't know which ones. The betting phase then
>>>>>>>begins.
>>>>>>>
>>>>>>>Problem:
>>>>>>>
>>>>>>>For a betting strategy, S say, let p(S) be the probability
>>>>>>>that the player's final wealth is at least 2. Over all
>>>>>>>possible choices of S, what is the maximum value of p(S)?
>>>>>>
>>>>>>Let me clarify the objective ...
>>>>>>
>>>>>>The money is just play money -- the player doesn't get to
>>>>>>keep it. To win the game, the player's final wealth must be
>>>>>>at least 2, else the player loses. Thus, if the player's
>>>>>>final wealth exceeds 2, the excess is irrelevant.
>>>>>>Analogously, if the final wealth is less than 2, it might
>>>>>>as well be 0.
>>>>>>
>>>>>>In this context, an optimal betting strategy is one which
>>>>>>maximizes the player's probability of winning. The problem
>>>>>>is to find this maximum probability.
>>>>>>
>>>>>>>Remarks:
>>>>>>>
>>>>>>>(1) I haven't yet tried it, so I don't know the answer.
>>>>>>>
>>>>>>>(2) I don't know if it's a good problem.
>>>>>
>>>>>I can at least say this ...
>>>>>
>>>>>It's a much harder problem than the previous one.
>>>>>
>>>>>Let's consider some naive strategies ...
>>>>>
>>>>>Naive Strategy (1):
>>>>>
>>>>> Bet 1 on the first card (red or black, it doesn't matter).
>>>>>
>>>>> The above "blind" strategy yields a probability to win
>>>>> of 1/2.
>>>>>
>>>>>Naive Strategy (2):
>>>>>
>>>>> Pass on the first card, then bet 1 on the second card,
>>>>> either on black if the first card is red, or on red if
>>>>> the first card is black.
>>>>>
>>>>> The above strategy yields a probability to win of
>>>>>
>>>>> 26/51 = .5098039216 [approx]
>>>>>
>>>>> which is better than naive strategy 1.
>>>>>
>>>>>Naive Strategy (3):
>>>>>
>>>>> Pass the first 25 cards, then bet 1 on the last card,
>>>>> choosing whichever color had the least number of
>>>>> occurrences in the first 25 cards.
>>>>>
>>>>> The above strategy yields a probability to win of
>>>>>
>>>>> 82533729461/148835093922 = .5545313762 [approx]
>>>>>
>>>>> which is better than naive strategy 2.
>>>>>
>>>>>But the above strategies are not even close to optimal.
>>>>>
>>>>>While I haven't yet worked out an optimal strategy, I do
>>>>>have a strategy which I think is _nearly_ optimal, yielding
>>>>>a probability to win between .65 and .66.
>>>>
>>>>I have the exact answer now.
>>>>
>>>>I computed a betting strategy which provably maximizes the
>>>>player's probability of winning the game.
>>>>
>>>>The maximum probability is a rational number -- computable
>>>>but not guessable. I'll leave it as a challenge problem, no
>>>>time limit, but if someone posts the correct maximum
>>>>probability, I'll affirm it.
>>>>
>>>>Warning -- this is a difficult problem, both theoretically
>>>>and computationally.
>>>
>>>Am I reading this right? You are removing half the shuffled
>>>deck leaving just 26 cards that are used in the play?
>>
>>Yes.
>>
>>>More then one full deck of shuffled cards can be halved but
>>>for the sake of argument just one deck is used and the half
>>>is removed.
>>
>>Yes, 26 cards are removed, 26 remain.
>>
>>>If this is true then you are playing roulette without the
>>>(single zero European roulette) or (double zero American)
>>>table.
>>>
>>>No advantage either way, a zero sum game.
>>>Or a coin toss.
>>
>>No.
>>
>>In roulette (with half red, half black), if red comes up on
>>the first roll, the probabilities for the color of the second
>>roll are 1/2 for red, 1/2 for black (same as it was for the
>>first roll).
>>
>>But in this game, if the first card turned over is red, the
>>probabilities for the color of the second card are 25/51 for
>>red, 26/51 for black.
>>
>>Now consider naive strategy #2 (in the part of my post where
>>I outlined some "naive" strategies).
>
>But are you still splitting the shuffled deck in half and using
>only 1/2 the original deck of 52 cards never referring to the
>1/2 deck you took out of play?
Yes.
>If that is the case it is still a zero sum game where house or
>player have no advantage.
No, the player has the advantage.
>I do not care what kind of strategy you use if that is the case.
>A zero sum game in the long haul.
You mean zero advantage.
But you're wrong.
Suppose the player uses naive strategy #2.
Let's play it out ...
The player starts with wealth 1.
The deck is shuffled (a standard 52 card deck).
The first 26 cards are removed (but not shown).
There are 26 cards remaining.
The player knows this but doesn't know which 26 cards are left.
The first card is about to be dealt.
Using naive strategy #2, the player has the option to bet, but
chooses to pass.
Now the first card is dealt, face up.
The second card is about to be dealt.
The player still has wealth 1.
Using naive strategy #2, the player bets 1 (i.e., bets it all)
as follows ...
If the first card dealt was red, the player bets 1 that the
second card will be black.
If the first card dealt was black, the player bets 1 that the
second card will be red.
But if the first card dealt was red, then of the 51 unseen cards,
25 are red, 26 are black.
Similarly, if the first card dealt was black, then of the 51
unseen cards, 25 are black, 26 are red.
Either way, the probability that the player wins the bet is
26/51.
If you still have doubts, try using a 4-card deck (2 red cards,
2 black cards). Shuffle it, then remove 2 cards. As shown below,
(coding 0 = red, 1 = black), there are 6 equally likely color
sequences (4 choose 2) for the full deck. For each of the 6
possible decks, the first two cards are then removed.
original deck after
shuffled removing first
4-card deck two cards
(full deck) (half deck)
----------- --------------
0,0,1,1 1,1
0,1,0,1 0,1
0,1,1,0 1,0
1,0,0,1 0,1
1,0,1,0 1,0
1,1,0,0 0,0
The game starts with one of the above half decks.
Using naive strategy #2, the player passes the first bet.
Suppose the first card dealt from the half deck is red.
Using naive strategy #2, the player bets 1 (i.e., bets it all)
that the second card (in this case the last card) will be black.
Of the 6 equally likely possibilities for the full deck, only
3 are consistent with a red card being the first card dealt
from the half deck. Thus, based on the new information (that
the first card dealt from the half deck is red), we get the
following 3 equally likely possibilities ...
original deck after deck after
shuffled removing first after the
4-card deck two cards first card
(full deck) (half deck) is dealt
----------- -------------- --------------
0,1,0,1 0,1 1
1,0,0,1 0,1 1
1,1,0,0 0,0 0
As you can see, given that the first card of the half deck is
red, the probability is 2/3 that the second card will be black.
Analogously, if first card dealt from the half deck is black,
the probability is 2/3 that the second card will be red.
Thus, starting with an original full deck of 4 cards (2 reds,
2 blacks), the player wins the specified game 2/3 of the time
by using naive strategy #2 (which for a 4-card deck, is
actually an optimal strategy).
quasi
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-25 11:49 -0700 |
| Message-ID | <6dbbfb88-7379-4135-bd4a-1d822d8032ce@googlegroups.com> |
| In reply to | #332634 |
On Monday, April 25, 2016 at 2:06:11 PM UTC-4, quasi wrote: > djoyce099 wrote: > >quasi wrote: > >>djoyce099 wrote: > >>>quasi wrote: > >>>>quasi wrote: > >>>>>quasi wrote: > >>>>>>quasi wrote: > >>>>>>>quasi wrote: > >>>>>>>> > >>>>>>>>A game with 1 player proceeds as follows ... > >>>>>>>> > >>>>>>>>A standard 52 card deck is shuffled and the cards are > >>>>>>>>then dealt out, face up, one card at a time. Before each > >>>>>>>>card is dealt, the player has the option to bet on the > >>>>>>>>color (red or black) of the card which is about to be > >>>>>>>>dealt. > >>>>>>>> > >>>>>>>>All bets pay even money (i.e., if the player bets x, then > >>>>>>>>the player wins x if the bet wins, and loses x if the bet > >>>>>>>>loses. > >>>>>>>> > >>>>>>>>Initially the player has wealth 1. If at some point > >>>>>>>>during the game, the player has wealth w > 0 and has > >>>>>>>>the option to make a bet, the player can bet x, where > >>>>>>>>x is any real number between 0 and w inclusive. A bet > >>>>>>>>of 0 is effectively the same as "no bet" or "pass". If > >>>>>>>>the player has wealth w and bets w (i.e., bets it all), > >>>>>>>>the player's new wealth will be 2w if the bet wins, > >>>>>>>>and 0 if the bet loses, in which case, the player is > >>>>>>>>out of the game (i.e.,"tapped out"). > >>>>>>>> > >>>>>>>>The goal of the player is to maximize the worst-case > >>>>>>>>final wealth. In other words, the player seeks a betting > >>>>>>>>strategy which will guarantee a final wealth of at least > >>>>>>>>w, where w is as large as possible. Note -- this is not > >>>>>>>>the same as the goal of seeking to maximize expected > >>>>>>>>final wealth. > >>>>>>>> > >>>>>>>>Computational challenge: > >>>>>>>> > >>>>>>>>(1) Find an optimal betting strategy for the player. > >>>>>>>> > >>>>>>>>(2) Using an optimal betting strategy, what is the > >>>>>>>>player's guaranteed worst-case final wealth? > >>>>>>>> > >>>>>>>>I'll post the answers I came up with in about a week. > >>>>>>> > >>>>>>>The problem was answered correctly by Richard Tobin (with > >>>>>>>some help from Jürgen R). > >>>>>>> > >>>>>>>Here's a variation ... > >>>>>>> > >>>>>>>Same game, same rules, with one change to the game, and > >>>>>>>with a modified goal: > >>>>>>> > >>>>>>>From a shuffled full deck, the first 26 cards are removed > >>>>>>>in advance. The player is aware that 26 cards are left, > >>>>>>>but doesn't know which ones. The betting phase then > >>>>>>>begins. > >>>>>>> > >>>>>>>Problem: > >>>>>>> > >>>>>>>For a betting strategy, S say, let p(S) be the probability > >>>>>>>that the player's final wealth is at least 2. Over all > >>>>>>>possible choices of S, what is the maximum value of p(S)? > >>>>>> > >>>>>>Let me clarify the objective ... > >>>>>> > >>>>>>The money is just play money -- the player doesn't get to > >>>>>>keep it. To win the game, the player's final wealth must be > >>>>>>at least 2, else the player loses. Thus, if the player's > >>>>>>final wealth exceeds 2, the excess is irrelevant. > >>>>>>Analogously, if the final wealth is less than 2, it might > >>>>>>as well be 0. > >>>>>> > >>>>>>In this context, an optimal betting strategy is one which > >>>>>>maximizes the player's probability of winning. The problem > >>>>>>is to find this maximum probability. > >>>>>> > >>>>>>>Remarks: > >>>>>>> > >>>>>>>(1) I haven't yet tried it, so I don't know the answer. > >>>>>>> > >>>>>>>(2) I don't know if it's a good problem. > >>>>> > >>>>>I can at least say this ... > >>>>> > >>>>>It's a much harder problem than the previous one. > >>>>> > >>>>>Let's consider some naive strategies ... > >>>>> > >>>>>Naive Strategy (1): > >>>>> > >>>>> Bet 1 on the first card (red or black, it doesn't matter). > >>>>> > >>>>> The above "blind" strategy yields a probability to win > >>>>> of 1/2. > >>>>> > >>>>>Naive Strategy (2): > >>>>> > >>>>> Pass on the first card, then bet 1 on the second card, > >>>>> either on black if the first card is red, or on red if > >>>>> the first card is black. > >>>>> > >>>>> The above strategy yields a probability to win of > >>>>> > >>>>> 26/51 = .5098039216 [approx] > >>>>> > >>>>> which is better than naive strategy 1. > >>>>> > >>>>>Naive Strategy (3): > >>>>> > >>>>> Pass the first 25 cards, then bet 1 on the last card, > >>>>> choosing whichever color had the least number of > >>>>> occurrences in the first 25 cards. > >>>>> > >>>>> The above strategy yields a probability to win of > >>>>> > >>>>> 82533729461/148835093922 = .5545313762 [approx] > >>>>> > >>>>> which is better than naive strategy 2. > >>>>> > >>>>>But the above strategies are not even close to optimal. > >>>>> > >>>>>While I haven't yet worked out an optimal strategy, I do > >>>>>have a strategy which I think is _nearly_ optimal, yielding > >>>>>a probability to win between .65 and .66. > >>>> > >>>>I have the exact answer now. > >>>> > >>>>I computed a betting strategy which provably maximizes the > >>>>player's probability of winning the game. > >>>> > >>>>The maximum probability is a rational number -- computable > >>>>but not guessable. I'll leave it as a challenge problem, no > >>>>time limit, but if someone posts the correct maximum > >>>>probability, I'll affirm it. > >>>> > >>>>Warning -- this is a difficult problem, both theoretically > >>>>and computationally. > >>> > >>>Am I reading this right? You are removing half the shuffled > >>>deck leaving just 26 cards that are used in the play? > >> > >>Yes. > >> > >>>More then one full deck of shuffled cards can be halved but > >>>for the sake of argument just one deck is used and the half > >>>is removed. > >> > >>Yes, 26 cards are removed, 26 remain. > >> > >>>If this is true then you are playing roulette without the > >>>(single zero European roulette) or (double zero American) > >>>table. > >>> > >>>No advantage either way, a zero sum game. > >>>Or a coin toss. > >> > >>No. > >> > >>In roulette (with half red, half black), if red comes up on > >>the first roll, the probabilities for the color of the second > >>roll are 1/2 for red, 1/2 for black (same as it was for the > >>first roll). > >> > >>But in this game, if the first card turned over is red, the > >>probabilities for the color of the second card are 25/51 for > >>red, 26/51 for black. > >> > >>Now consider naive strategy #2 (in the part of my post where > >>I outlined some "naive" strategies). > > > >But are you still splitting the shuffled deck in half and using > >only 1/2 the original deck of 52 cards never referring to the > >1/2 deck you took out of play? > > Yes. > > >If that is the case it is still a zero sum game where house or > >player have no advantage. > > No, the player has the advantage. > > >I do not care what kind of strategy you use if that is the case. > >A zero sum game in the long haul. > > You mean zero advantage. > > But you're wrong. > > Suppose the player uses naive strategy #2. > > Let's play it out ... > > The player starts with wealth 1. > > The deck is shuffled (a standard 52 card deck). > > The first 26 cards are removed (but not shown). > > There are 26 cards remaining. > > The player knows this but doesn't know which 26 cards are left. > > The first card is about to be dealt. > > Using naive strategy #2, the player has the option to bet, but > chooses to pass. > > Now the first card is dealt, face up. > > The second card is about to be dealt. > > The player still has wealth 1. > > Using naive strategy #2, the player bets 1 (i.e., bets it all) > as follows ... > > If the first card dealt was red, the player bets 1 that the > second card will be black. > > If the first card dealt was black, the player bets 1 that the > second card will be red. > > But if the first card dealt was red, then of the 51 unseen cards, > 25 are red, 26 are black. > > Similarly, if the first card dealt was black, then of the 51 > unseen cards, 25 are black, 26 are red. > > Either way, the probability that the player wins the bet is > 26/51. > > If you still have doubts, try using a 4-card deck (2 red cards, > 2 black cards). Shuffle it, then remove 2 cards. As shown below, > (coding 0 = red, 1 = black), there are 6 equally likely color > sequences (4 choose 2) for the full deck. For each of the 6 > possible decks, the first two cards are then removed. > > original deck after > shuffled removing first > 4-card deck two cards > (full deck) (half deck) > ----------- -------------- > 0,0,1,1 1,1 > 0,1,0,1 0,1 > 0,1,1,0 1,0 > 1,0,0,1 0,1 > 1,0,1,0 1,0 > 1,1,0,0 0,0 > > The game starts with one of the above half decks. > > Using naive strategy #2, the player passes the first bet. > > Suppose the first card dealt from the half deck is red. > > Using naive strategy #2, the player bets 1 (i.e., bets it all) > that the second card (in this case the last card) will be black. > > Of the 6 equally likely possibilities for the full deck, only > 3 are consistent with a red card being the first card dealt > from the half deck. Thus, based on the new information (that > the first card dealt from the half deck is red), we get the > following 3 equally likely possibilities ... > > original deck after deck after > shuffled removing first after the > 4-card deck two cards first card > (full deck) (half deck) is dealt > ----------- -------------- -------------- > 0,1,0,1 0,1 1 > 1,0,0,1 0,1 1 > 1,1,0,0 0,0 0 > > As you can see, given that the first card of the half deck is > red, the probability is 2/3 that the second card will be black. > > Analogously, if first card dealt from the half deck is black, > the probability is 2/3 that the second card will be red. > > Thus, starting with an original full deck of 4 cards (2 reds, > 2 blacks), the player wins the specified game 2/3 of the time > by using naive strategy #2 (which for a 4-card deck, is > actually an optimal strategy). > > quasi You lost me even after reading over your different strategies. I would like to see an algorithm run through thousands of plays for each of your different strategies with output that proves your point in all of this. Good luck in your endeavor. Dan
[toc] | [prev] | [next] | [standalone]
| From | quasi <quasi@null.set> |
|---|---|
| Date | 2016-04-25 15:10 -0500 |
| Message-ID | <q9ushbt1iv6g6jsa42imap34jp6d17i5jl@4ax.com> |
| In reply to | #332636 |
djoyce099 wrote: > >You lost me even after reading over your different strategies. For simplicity, I suggested that you focus only on what I called naive strategy #2. >I would like to see an algorithm run through thousands of plays >for each of your different strategies For naive strategy #2, you should be able to program it. >with output that proves your point in all of this. If the player uses naive strategy #2 starting with half of a shuffled 4-card deck, you should see that the player wins about 2/3 of the time. Alternatively, as Jürgen R. explained, you can look at it this way ... Removing 26 cards from a shuffled 52-card deck and dealing out the remaining 26 cards face up would yield the same probabilities as if the full shuffled 52-card deck were left intact and the first 26 cards were dealt out face up. So considering it that way, suppose the first card of a shuffled 52-card deck is dealt out face up, and suppose it's red. What's the probability that the next card is black? quasi
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-25 16:47 -0700 |
| Message-ID | <6ab652f6-91c4-4622-a074-378a86b43c44@googlegroups.com> |
| In reply to | #332640 |
On Monday, April 25, 2016 at 3:13:05 PM UTC-4, quasi wrote: > djoyce099 wrote: > > > >You lost me even after reading over your different strategies. > > For simplicity, I suggested that you focus only on what I called > naive strategy #2. > > >I would like to see an algorithm run through thousands of plays > >for each of your different strategies > > For naive strategy #2, you should be able to program it. > > >with output that proves your point in all of this. > > If the player uses naive strategy #2 starting with half of a > shuffled 4-card deck, you should see that the player wins > about 2/3 of the time. > > Alternatively, as Jürgen R. explained, you can look at it > this way ... > > Removing 26 cards from a shuffled 52-card deck and dealing out > the remaining 26 cards face up would yield the same probabilities > as if the full shuffled 52-card deck were left intact and the > first 26 cards were dealt out face up. > > So considering it that way, suppose the first card of a > shuffled 52-card deck is dealt out face up, and suppose > it's red. What's the probability that the next card is > black? > > quasi A little better then 50/50. Getting back to a 1/2 deck (26) cards this would be a tough one to answer because I have witnessed 10 reds in a row at a roulette table. As far as building an algorithm I had enough problems with my algorithm for stacking primes on the Tower of Hanoi where in the end after I completed it there is a predetermined mathematical procedure that I would not have found if I had not completed it. Now through a simple algorithm I can find the least moves possible for any sequential prime pair. Good luck with the algorithm or anyone else who attempts it. I would love to see the results. Thanks for your patience. Dan Dan
[toc] | [prev] | [next] | [standalone]
| From | Peter Percival <peterxpercival@hotmail.com> |
|---|---|
| Date | 2016-04-26 10:47 +0100 |
| Message-ID | <nfndf1$j44$1@news.albasani.net> |
| In reply to | #332663 |
djoyce099 wrote: > [...] > Getting back to a 1/2 deck (26) cards this would be a tough one to answer because I have witnessed 10 reds in a row at a roulette table. What is the relevance of roulette to Mr quasi's intriguing problem? -- For centuries and centuries And under President and King, He's always told the proper lies And always done the proper thing. T.S. Eliot
[toc] | [prev] | [next] | [standalone]
| From | djoyce099 <hlauk.h.bogart@gmail.com> |
|---|---|
| Date | 2016-04-26 08:05 -0700 |
| Message-ID | <e7da32f8-870b-416c-bed2-64cdd05b3800@googlegroups.com> |
| In reply to | #332697 |
On Tuesday, April 26, 2016 at 5:47:19 AM UTC-4, Peter Percival wrote: > djoyce099 wrote: > > [...] > > Getting back to a 1/2 deck (26) cards this would be a tough one to answer because I have witnessed 10 reds in a row at a roulette table. > > What is the relevance of roulette to Mr quasi's intriguing problem? > > -- > For centuries and centuries > And under President and King, > He's always told the proper lies > And always done the proper thing. > T.S. Eliot Peter, I was just explaining that red black with no zeros in a roulette game is the same as quasi's removing one half of a shuffled deck out of play and using the other half only for his strategy of play. I believe, no advantage over the long haul for him or the house. Plus they are both a game of chance. The most important part of any game of chance and the strategy you use is to know when to stop play and take your wins or losses. The most powerful play a player has against the casino. The casino has to continue the game no matter what. I am no stranger to the game of chance and I will post something interesting later in the day. Mathematics problems are fantastic and quasi is a very smart guy but in the real world of long term play his strategy ain't gonna work unless he employs my most powerful play against an opposition or casino, get out when the getting's good or bad. I will explain this more in my post later today. If this is just a short term strategy and a great mathematics problem that is just fine I have no problem with that. I was just expressing my opinion. BTW quasi was the one that beat my long standing challenge of most zeros or 9's in the quotient remainder of a divisor of rsa240 and rsa2048. Where both divisor and quotient had to be prime. Thanks for your input. Dan
[toc] | [prev] | [next] | [standalone]
| From | quasi <quasi@null.set> |
|---|---|
| Date | 2016-04-26 16:05 -0500 |
| Message-ID | <5rjvhbhbebgun3gf1ta36da8n1v9r7engf@4ax.com> |
| In reply to | #332710 |
djoyce099 wrote:
>Peter Percival wrote:
>>djoyce099 wrote:
>>> [...]
>>>Getting back to a 1/2 deck (26) cards this would be a tough
>>>one to answer because I have witnessed 10 reds in a row at a
>>>roulette table.
>>
>>What is the relevance of roulette to Mr quasi's intriguing
>>problem?
>
>I was just explaining that red black with no zeros in a roulette
>game is the same as quasi's removing one half of a shuffled deck
>out of play and using the other half only for his strategy of
>play.
But as I tried to explain, it's not the same.
In roulette, the two events
(1) The next roll will be red.
(2) The next roll will be black.
are equally likely, regardless of the rolls seen so far.
In the "half-deck" game, if r,b are the number of red and black
cards, respectively, dealt (face up) so far, then
(1) The probability that the next card will be red equals
(n - r)/(2n - (r + b)).
(2) The probability that the next card will be black equals
(n - b)/(2n - (r + b)).
assuming the full deck has 2n cards, n red, n black.
Consequently, assuming there is at least one card left to be
dealt, then, if r > b, the next card to be dealt is more likely
to be black than red, and analogously, if b > r, the next card
to be dealt is more likely to be red than black.
In particular, for n > 1, if the first card dealt from the half
deck is red, the second card is more likely to be black than red
(probability n/(2n - 1)), and if the first dealt from the half
deck is black, the second card is more likely to be red than black
(again probability n/(2n - 1)).
>I believe, no advantage over the long haul for him or the house.
There is no "long-haul".
As previously explained, for any single game, the player has the
advantage.
Recall naive strategy #2:
* No bet on the first card.
* For the second card, bet 1, betting on red if the first is
black, and betting on black if the first card is red.
* No further bets.
Using the above strategy, the player wins the game with
probability n/(2n - 1).
>Plus they are both a game of chance.
So what?
Strategies are being analyzed based on their _probabilities_
of winning. If some strategy for the player provably wins with
probability more than 1/2, then that _proves_ that the game
yields an advantage for the player.
>The most important part of any game of chance and the strategy
>you use is to know when to stop play and take your wins or
>losses. The most powerful play a player has against the casino.
>The casino has to continue the game no matter what.
We're not talking about the gambler's ruin phenomenon.
We're talking about the probability, using a particular strategy,
for the player to win a single game.
>I am no stranger to the game of chance and I will post something >interesting later in the day.
OK.
>Mathematics problems are fantastic and quasi is a very smart guy
>but in the real world of long term play
But this is not a real-world game. A casino wouldn't knowingly
offer a game which yields an advantage for the player.
>his strategy ain't gonna work
Naive strategy #2 provably _does_ work, in the sense that it
gives the player more than a 50% chance of winning the game.
>unless he employs my most powerful play against an opposition
>or casino, get out when the getting's good or bad.
The questions at hand relate only to mathematical probability,
not human psychology.
>I will explain this more in my post later today.
OK.
>If this is just a short term strategy and a great mathematics
>problem that is just fine I have no problem with that.
In a sense, that's all it is.
The stated goal was to maximize the probability of winning the
game (a _single_ game), by use of some betting strategy.
>I was just expressing my opinion.
Questions about probability often fool people.
Valid mathematical reasoning is what's required to separate
true probabilistic claims from false ones.
quasi
[toc] | [prev] | [next] | [standalone]
Page 2 of 3 — ← Prev page 1 [2] 3 Next page →
Back to top | Article view | sci.math
csiph-web