A Mathematical Analysis of the Card Game of Betweenies through Kelly ’ s Criterion

In the game of Betweenies, the player is dealt two cards out of a deck and bets on the probability that the third card to be dealt will have a numerical value in between the values of the first two cards. In this work, we present the exact rules of the two main versions of the game, and we study the optimal betting strategies. After discussing the shortcomings of the direct approach, we introduce an information-theoretic technique, Kelly’s criterion, which basically maximizes the expected log-return of the bet: we offer an overview, discuss feasibility issues, and analyze the strategies it suggests. We also provide some gameplay simulations.


Introduction
The card game of " In-Betweenies" or "In-Between" 1 is also known under many alternative names including "Between the Sheets" 2 , "Red Dog" 3 , "Acey Deucey" 4 , and "Yablon."It comes in many variants and is offered as a gaming option in several casinos and online casinos.Though the exact rules vary, the main concept is that the player is dealt two cards and bets on whether the value of a third card dealt about to be dealt will be between the values of the two previously dealt cards.In this work we calculate the probabilities associated with the game, namely, the probability that a given hand is dealt and the probability of winning given the hand dealt, and we suggest a betting strategy based on Kelly's criterion KC .
KC is famous for suggesting an optimal betting strategy which, at the same time, eliminates the possibility of the gambler getting ruined 5, 6 .As we will throught see below, however, the set of rules of this particular game does not fall within the scope of the general case considered in 5 , in view of the fact that the player needs to contribute an amount of money in the beginning of each round for the right to play in this round.This feature can

The Rules
The game is played in rounds and with a standard deck of 52 cards.The cards from 2 to 10 are associated with their face values, while Jack, Queen, and King with the values 11, 12, and 13, respectively.Aces can be associated with either 1 or 14, subject to further rules stated below.In the beginning of the round, every player contributes a fixed amount of money henceforth assumed to be equal to 1 , known as the "ante," to the pot in order to play.Subsequently, each player is dealt two cards, one at a time, face up.Assuming that the first card is an ace, the player must declare it "low" of value 1 or "high" of value 14 .Assuming that the second card is an ace, it is automatically declared "high."After the two cards are dealt to a player, the player bets an amount of money, ranging from 0 to the pot amount, that the third card dealt will be strictly between the two already dealt cards which we designate as event B .If the player wins, the player receives the amount of money bet from the pot; otherwise, the player contributes the amount of money bet to the pot.If a player's wealth becomes zero, the player quits the game.If at any point during the round the pot becomes empty, the round ends and a new round begins.
There are several possible variations to the rules above.
i Multiple decks of cards may be used.
ii Aces may always carry their face value 1.
iii Assuming that the three dealt cards are all equal, a payout of 11 : 1 may be paid to the player i.e, the player gets the original bet back plus 11 times the bet .
iv Assuming that the two dealt cards have consecutive values, the bet is returned to the player at no loss.
v The bet payout may vary depending on how many cards apart the two dealt cards are: 5 : 1 to for one card apart, 4 : 1 for 2 cards apart, 2 : 1 for three cards apart, and 1 : 1 for 4 or more cards apart.
vi The unit contribution to the pot may be nonapplicable.
We will refer to the game with all these options turned off and on as the party version and the casino version, respectively.The reason is that, in a party game between friends, ante contributions are necessary to get the game going, while a casino game is in general more gamblingoriented and bets are covered by the casino's funds.
Further variations are mentioned in the literature: for example, when the third card is equal to either of the first two, then the player not only loses the bet into the pot, but has to contribute an extra amount equal to the bet into the pot 1 .As the possibilities are practically endless, we will restrict our study to the two versions mentioned above.

Kelly's Criterion
Kelly's criterion KC 5, 7 is a reinterpretation of the concept of mutual information, which is the core subject of Information Theory, in the context of games of chance and betting.Simply put, assuming independent trials in a game of chance, it suggests a betting strategy, based on which a player can expect an exponential increase of his wealth.The rate of this increase is, more precisely, equal to the information gain between the two underlying probability distributions of the game: true outcome probabilities and projected outcome probabilities, as suggested by the advertised odds.We demonstrate it here by repeating the example in Kelly's original paper 5 , which is worth working out in full detail, as the original exposition is rather terse, omitting, however, the extra information provided by the "private wire" considered therein, which is an additional complication not directly relevant to our discussion.

Description of a General Game and the Classical Approach
Consider a random variable X with n possible mutually exclusive outcomes x i with probabilities p i , i 1, . . ., n. Assume further that the odds placed on x i are t i ÷ 1, whereby it is meant that, if a player places a bet b i on x i , and x i is indeed the outcome, he will receive a wealth of t i b i back including the original bet hence the use of the new symbol "÷" instead of the previous ":" ; otherwise the bet is lost.How should the various b i be determined?
One possible approach is to maximize the expected wealth: assuming that the player's initial total wealth is w, the total wealth after betting and assuming outcome hence the expected wealth after the game is We observe that ∂w ∂b i p i t i − 1.

3.2
Assuming p i t i ≤ 1 for some i, for any bet with b i b > 0, the new bet with all b j , j / i left unchanged and b i b − > 0, > 0 is at least as profitable; hence the optimal bet can be taken to have b i 0. Focusing on an i such that p i t i > 1, for any bet with b i b < w, the bet with all b j , j / i left unchanged and b i b < w, > 0 is at least as profitable; hence the optimal bet can be taken to have n i 1 b i w.Furthermore, assuming that p i t i ≤ p j t j and w > b i , b j > 0, decreasing b i , and increasing b j by such that they both remain between 0 and w is again at least as profitable.We conclude that, assuming that there exists an i such that p i t i > 1, the optimal bet is to set b i * w, b j 0, j / i * , where i * is taken to be the smallest of all i such that i arg max j {p j t j }, This strategy is, however, highly risky, as, with probability 1−p i * , the bet is lost and the player is ruined.Furthermore, the probability that the player is not ruined after m rounds of the game is p i * m ; assuming that p i * < 1 otherwise there is really no element of randomness in the game , lim p i * m 0, so eventually the player gets certainly ruined.This phenomenon is known as "gambler's ruin." Note that, without loss of generality, we may consider that

Journal of Probability and Statistics
This is because, even if the player wishes to save an amount of money b, he may equivalently bet b/t i on outcome x i .Indeed, 3.3 shows that this betting scheme is possible since n i 1 b/t i ≤ b, and the return is always b, and, in the case of strict inequality, it even leads to a certain extra gain of b − n i 1 b/t i .When n i 1 1/t i > 1, on the other hand, this betting scheme leads to certain loss unfair odds ; hence it may make sense for the player to actually save part of his wealth and bet the rest.This scenario is the most frequent in actual betting schemes, and the money lost to the player accounts for the commission the "track take" of the bet authority the "bookie" .

A New Approach: Kelly's Criterion
KC suggests maximizing the exponential growth factor of the wealth, or, equivalently, the log-return of the game: For the discussion that follows, we assume 3.3 , so we seek to maximize To achieve this, we use Lagrange multipliers and maximize

3.6
In other words, bets are proportional to the probabilities.In that case, In Information Theory, this quantity is known as the Kullback-Leibler distance D KL P T or information gain or relative entropy 8 between the probability distribution P P i and the function T T i in this order , i 1, . . ., n, where P i p i and T i 1/t i .We distinguish the following two cases.i n i 1 T i 1 fair odds : then T is also a probability distribution and l ≥ 0 8 , ii n i 1 T i < 1 superfair odds : then T can be turned into a probability distribution and this case reduced to the previous one by considering the additional event N "none of x i , i 1, . . ., n, occurs" and assigning to it T -probability 1 − n i 1 T i .As this event has zero P -probability to occur, it does not affect the player's betting strategy note that, by convention, terms in the sum defining D KL P T corresponding to P i 0 are taken to be 0, which equals the limit value as P i → 0 8 .

Unfair Odds
What happens when n i 1 T i > 1?In this case, T neither is nor can it be extended into a probability distribution; hence D KL P T is not guaranteed to be positive, and, even if it is, this strategy may be suboptimal.An attempt to use Lagrange multipliers directly as above, even allowing for the possibility that a part b > 0 of the initial wealth w is saved, leads to λ 0, hence to no solution, assuming that all b i > 0, i 1, . . ., n.We therefore need to consider the possibility that zero bets get placed on some of the possible outcomes.To sum up, we need to maximize The fact that the log function is concave over the maximization region guarantees convergence to a global maximum.We observe, though, that some of the constraints are inequalities rather than equalities, and dealing with such constraints requires the use of a generalization of the Lagrangian method of multipliers, known as the Karush-Kuhn-Tucker KKT equations 9 : we form the functional 3.9 which we now attempt to maximize.A stipulation of KKT theory is that the coefficients corresponding to inequality constraints must carry the sign of the inequality, and that, if the inequality is strictly satisfied at the point of optimality, the coefficient must be zero: specifically, μ i ≥ 0, and either b i 0 or else μ i 0, i 1, . . ., n; the case for μ and b is similar, but, as we established above, the optimal bet necessarily has b > 0; hence μ 0. Taking the partial derivatives yields

3.12
Setting p i∈S p i and τ i∈S 1/t i , we obtain

3.14
These conditions are enough to determine S unambiguously.To begin with, assume, without loss of generality, that the outcomes are so ordered that p i t i is a decreasing function of i: then, S {1, . . ., k} for some k 0, . . ., n k 0 stands for S ∅ .Now define, and note that F 0 1.Assuming that p 1 t 1 < 1, it follows that S ∅ and that no bets are placed.In any case, b F k * and S {1, . . ., k * }, where k * is the smallest k such that p k 1 t k 1 ≤ F k .Note that as noted in 5 , compared to a classical player who avoids betting on outcomes x k for which the odds are unfavorable, namely, for which p k t k < 1, a player following KC does bet on such outcomes, as long as p k t k > b.
As a historical note, let us mention that the KKT theory, formulated in 1951, predates KC, published in 1956.Unfortunately, 3.11 and 3.12 were given in 5 without even a hint as to how they were obtained, so we can only assume that the KKT theory was used.

Feasibility
Though KC suggests a betting strategy that is both optimal and avoids gambler's ruin, in many practical games the rules prohibit its application, and some approximation is required.To demonstrate the main issues, let us continue with the example of the random game of n possible mutually exclusive outcomes we have been studying in this section: the optimal betting strategy suggested by KC regards the version of the game, henceforth labeled G 1 , where the player has the right to place n simultaneous bets, one on each possible outcome.Alternatively, however, a player may be restricted by the rules to place a possibly negative bet on one outcome of his choice only, negative bets signifying bets on the complementary outcome; we label this version G 2 .Finally, a player may be restricted by the rules to place a nonnegative bet on one outcome only predetermined by the rules; we label this version G 3 .
As a concrete example, consider the game of rolling two fair dice and betting on the sum of their outcomes, which ranges from 2 to 12. Our analysis above concerned G 1 , where the player is allowed to place 11 simultaneous bets, one on each possible outcome of the sum.Under G 2 , the player would be restricted into placing a bet on only one outcome of his choice; for example, that the sum will or will not be 8.Finally, under G 3 , the player would be restricted into placing a bet on the outcome, for example, that the sum will be 8, assuming that the rules restricted betting to this particular value of the sum and no other.
When n 2, and under simple 2 ÷ 1 returns, G 2 and G 3 are essentially the same, except for the fact that in G 2 negative bets are allowed; note, indeed, that a negative bet for an outcome translates into a positive bet for its complement.In practice, hardly any game is G 1 or G 2 : imagine, for example, a player playing Blackjack and betting on the outcome that the dealer has a higher hand than him!
As another example, in the party version of the game of Betweenies, given the player's hand, the probabilities that the third card dealt will or will not fall strictly between the cards of the hand can be computed, and they clearly add up to 1; therefore, this game is clearly an instance of the general game described in Section 3.1 for n 2. Applying KC, however, presupposes a G 1 game, namely, that the player is able to place bets simultaneously on either possible outcome B and B that the third card either will or will not lie strictly between the two cards of the hand, respectively, and game rules allow betting only on the former event, not on the latter.KC can still be applied in a modified form, allowing only part of the player's wealth to be placed in bets while saving the rest, but the feasible betting strategy so obtained which is the main object of this work and is studied in detail in the next sections will be suboptimal.
Note that this case, where betting is restricted by the rules of the game to certain outcomes only, should not be confused with the unfair odds case in Section 3.3, despite the similarity due to the common feature that only part of the wealth is actually waged.In that section, the player was still allowed to bet on all possible outcomes.In particular, the analysis carried out in that section is not relevant for the scenario just described.

Criticism
The most important feature of KC to keep in mind is that the betting strategy it proposes maximizes the player's wealth in the long run, but it normally achieves this through highly volatile short-term outcomes 6 .Given, however, the finite span of human life and human nature more generally, many might find it preferable to trade the optimal but highly volatile eventual growth of wealth achieved by KC for a suboptimal growth, as long as it is also less volatile in the short or medium term.This is normally achieved by "underbetting," namely, placing bets equal to a fraction of what KC proposes.

Party Version: The Probabilities
The probabilistic analysis of Betweenies naturally breaks down in two stages: first, the probabilities that a player be dealt any specific hand of two cards must be determined; then, the probability of victory given any dealt hand of two cards must be determined.

Hand Probabilities
Let C i,j denote the event that the two cards dealt have value i and j, i ≤ j, i, j 1, . . ., 14.We set p i,j P C i,j .Note that, unless i 1 or j 14, the order in which the two cards are dealt is irrelevant for determining p i,j ; furthermore, the order is always irrelevant for determining the conditional winning probability given C i,j .
Assuming then that i, j 2, . . ., 13 and i < j, p i,j

Probability of Victory Given a Certain Hand
Let V denote the event of victory.We set v i,j P V | C i,j to be the probability of victory given a certain hand.We observe outright that v ii v i,i 1 0, as there is no card strictly in between the dealt cards in these two cases.In all other cases, there are exactly 4 j − i − 1 cards in between two cards of value i and j, i, j 1, . . ., 14; hence where j > i 1 and s : j − i − 1, ranging from 0 to 12 inclusive, is set to be the spread of the hand.Note that, by redefining s max j − i − 1, 0 , v 0 0 in 4.7 can be extended to cover the case where i j as well.

Certain Loss and Spread Probabilities
There is clearly no point in betting when v s 0 ⇔ s 0. How often does this occur?Letting q 0 denote the probability of s 0, it follows that We see that q 0 is minimized for p H 0. This is to be expected: assuming that a player is dealt an ace in the first card, there is no point, in the absence of further information, in declaring it high, as then the player forfeits the possibility of obtaining the strongest possible hand i, j 1, 14 if a second ace is dealt, without gaining any advantage.We will henceforth assume that p H 0, in which case q 0 44/221 ≈ 0.1991.Hence, in approximately one turn out of five the player has no chance to win.
Note that we do not imply that the player should invariably use p H 0, but rather just in the general scenario studied here.Given further information, using p H > 0 may actually be advantageous.For example, consider a game of many say 15 players where the first card has been dealt to all players , and suppose that a player has been dealt an ace, while all other players have been dealt high-value cards and aces.What should the player do?It is rather improbable to receive a second ace under the circumstances, while the remaining deck is now certainly biased towards low-value cards.The best chance may be then to declare the ace high, expecting a low-value second card, in order to establish a wide spread.Using information gathered from used cards accounting for a considerable portion of the deck is frequently referred to as "end play," and has been shown to be very profitable in other card games as well, for example, Blackjack.

Optimal Betting Strategy and Zero Bets
We will now determine the optimal betting strategy for a given hand using KC, as described in Section 3.2.Assume that the hand dealt has spread s, and that the player places a bet b, while the player's total wealth in the beginning of the round is w.Note that, in accordance with the discussion in Section 3.4, it makes sense to consider that the amount b placed as a bet is, in general, less than the total wealth w, because, given the hand dealt, the player is not allowed to place bets on both possible outcomes B and B simultaneously, but only on one, namely, B.
More specifically, at the end of the round, the player's wealth is w

5.2
Note that b s, w ≤ 0.92 w − 1 , so the suggested bet is always less than the current wealth w − 1, hence possible, in principle.In practice, however, there are two further conceivable complications in applying KC as described in Section 3.2 the follows.
i If the restriction imposed by the available pot amount P becomes significant, namely b s, w > P, the player uses b P instead.
ii If b < 0, KC essentially suggests betting |b| on B, which would be a valid suggestion assuming a G 2 game, according to the classification of Section 3.4: for example, if s 4, KC suggests that the player should place a bet of 9/25 w − 1 that the third card will not fall between the two cards dealt.Unfortunately, in the context of a G 3 game, such as the one under consideration, such a bet is not allowed, and the player is forced to use b 0 instead.
In particular, the formula indicates that b s, w > 0 if and only if s ≥ 7; hence a player following KC places zero bets with probability

Mean Wealth
Assuming that the player places a bet b under KC and spread s ≥ 7, and using 4.7 and 5.2 , the mean earnings will be For s ≤ 6, w s w − 1.The mean wealth after a round is, therefore, which suggests that, given that a bet is placed, a mean return of approximately 16.8% is expected, assuming that w 1.In order to consider how the mean wealth varies over different rounds, we let W n be the player's wealth at the end of the nth round W 0 w with probability 1 ; 5.5 shows that This recursion is readily solvable: , n ∈ N. 5.10

Probability of Ultimate Ruin
We mentioned above that if the player's original wealth is w > 427282/12907 ≈ 33.1047 then it is worth playing the game, as the average wealth w after one round is greater than w.
We caution the reader that this means that if the player plays "many times" one round only, each time starting with w > 33.1047, then "on average" w > w.In particular, this statement should not be misunderstood to mean that if the player plays many rounds in a row, each time using w as the new w, then the final expected wealth will be unboundedly greater than the starting wealth, provided the latter was at least 33.1047.A numerical simulation of the game shows, in fact, that starting with w 34 and playing successive rounds till either 1000 rounds are reached or w 0 is reached, the player goes broke with a probability of approximately 83.6%!On the other hand, for a starting w 1000, the simulation shows that the player goes broke with a probability of only 4.7%, but otherwise accumulates an average wealth of 7.93 • 10 15 at the end of 1000 rounds.
Suppose that the player's intention is to play successive rounds of the game in order to eventually accumulate wealth unboundedly greater than the original wealth: the relevant quantity to consider is the probability of ruin r w , namely, the probability that the total accumulated wealth becomes 0 or less after playing the game for any finite number of rounds, provided the original wealth was w.In order to study r, we observe that a Markov chain can, in fact, model the game.Its states are all possible nonnegative values of wealth w ∈ R , and state w 0 actually stands for "zero wealth or debt" and is absorbing: assuming a player reaches this state, reaching positive wealth ever again is impossible.Furthermore, all states w ∈ 0, 1 lead with certainty to w 0 because of the contribution of a unit of wealth in the beginning of each round.
In order to both simplify analysis and make it more realistic at the same time, we will henceforth assume that wealth and bets can only be multiples of 1 namely, integers , and that bets b suggested by 5.2 get rounded to the nearest integer.In that case, the Markov chain modeling the game has only integer states w ∈ N. The ruin probabilities are now determined as solutions to the system r w ∞ u 0 P w, u r u , 5.11 where P w, u denotes the transition probability from wealth w to wealth u in one round.
To determine P w, u , note first of all that r 0 r 1 r 2 1: it is easy to see that w 0 already signifies ruin, and that w 1 leads immediately to ruin because of the unit contribution to the pot.The case of w 2 is a bit more involved: after the unit contribution to the pot in the beginning of the round, the player is left with one unit of wealth, so the only possible bets are b 0 which surely leads to ruin in the next round , or b 1, which, in case of victory, will allow the player to regain w 2 at the end of the round.What is this probability t of victory?First, the player needs sufficient spread s so that 4s 25 − 1 1 ⇐⇒ 4s 25 2 ⇐⇒ 4s 25 ≥ 1.5 ⇐⇒ s ≥ 9.375 ⇐⇒ s ≥ 10.

5.12
Therefore, we see that which is much less than 1.Hence, the probability that the player will still have w 2 after n rounds is t n , and t n → 0 as n → ∞, so avoiding ruin with initial wealth w 2 is an event of zero probability.To conclude, P 0, 0 P 1, 0 1, P 2, 2 t, and P 2, 1 1 − t.For all other values of w, the allowed values of u are , if s 12.

5.15
For each w, then, P w, u > 0 for at most 13 values of u; hence the infinite array P is extremely sparse.
In order to compute an approximation of r numerically, system 5.11 can be approximated by a finite system of equations.To do this, we choose > 0, we determine W such that, for all w > W, r w < this clearly must be done through an alternative method that estimates r, e.g., simulation , and we set r w ≈ 0, thus confining our attention to the square array P w, u , 2 ≤ w, u ≤ W. For example, simulations suggest that for r 5000 ≈ 0.0085 < 1%.Using W 10 5 , we produce Figure 1, where we plot r w for w ≤ 1000 in linear scale and for w ≤ 70, 000 in log scale.
Figure 1 further suggests that, asymptotically, r w ≈ A/w for some constant A > 0. Indeed, writing out 5.11 in full, Assume now that w 1, so that the effect of rounding b can be ignored: then,

5.17
Substituting r w A/w and 5.17

5.18
which verifies our asymptotical choice.Note, however, that this provides no information about A. It further follows by the data that A behaves rather like a slowly varying function of w: A A w A 0 a w for some A 0 > 0 and some function a such that a w → 0 as w → ∞.
Our results indicate that w 78 is the smallest value of w such that r w < 0.5: at that value, nonruin becomes more likely than ruin.Furthermore, w 458, 4629, and 39484 are the first values of w such that r w < 0.1, 0.01, and 0.001, respectively.On the other hand, assuming that w 3, which is the smallest value for which ruin is not certain, the probability to avoid ruin is only about 3.38 • 10 −9 .

Casino Version: The Probabilities
From now on, we consider all options mentioned in the list of Section 2 turned on.
Assuming n decks of cards, the probability p i,j for a hand i, j , i ≤ j, i, j 1, . . ., 13 remember that "high" aces of value 14 are no longer an option here is

6.1
This is actually considerably simpler than the party version.
We define the spread of the hand i, j , j ≥ i, as s j − i − 1 ∈ {−1, 0, . . ., 11} we shall see that it now makes sense to distinguish between equal cards and consecutive cards; hence −1 is allowed .It follows that the probability v s of winning given a spread s is; Indeed, assuming s ≥ 0, there are 4ns favorable cards out of the total 52n − 2 remaining cards to draw from, while, if s −1, the two cards are the same and there are 4n − 2 favorable cards of the same value to draw from.The probability q s that a hand has spread s is computed as follows:

6.3
Unlike the party version, there is no possibility of certain loss here: when s 0, there is no opportunity for gain, but the player still incurs no losses.

Optimal Betting Strategy
Once more, following the discussion of Section 5.1, we determine the optimal betting strategy for a given hand using KC.Assume that the hand dealt has spread s, and that the player places a bet b, while the player's total wealth in the beginning of the round is w.At the end of the round, the player's wealth is as follows i w b with probability v s and w − b with probability 1 − v s , assuming that s ≥ 4, ii w 2b with probability v s and w − b with probability 1 − v s , assuming that s 3, iii w 4b with probability v s and w − b with probability 1 − v s , assuming that s 2, In particular, the increased odds considered for the rarer cases s −1, 1, 2, 3 are not increased enough to have an impact on the betting strategy.More specifically, considering that s −1, KC would return b s, w > 0 if and only if

Mean Wealth
Since the betting strategy is identical in the party and casino versions, the analysis of Section 5.2 becomes relevant here as well.The mean wealth after one round given a hand of spread s ≥ 7 and initial wealth w is

7.8
This fraction is equal to 85139/82875 ≈ 1.02732 for n 1, and it eventually decreases towards 29151/28561 ≈ 1.02066 as n increases.As b s, w is expressed as a fraction of w not involving w contrary to the party version where the corresponding fraction does involve w , there is no possibility of ruin assuming infinitely that small bets are possible .Figure 2 shows two actual games of the party version, as described in Section 4, one of which resulted in ruin and one in a very large wealth over 1000 rounds which could have been even larger had it not been for a large lost bet in the final rounds .We assume that the player faced infinitely wealthy opponents and that the pot was infinite, which is the same as saying that the player played solo with an infinite pot.The player's initial wealth was taken to be 50.The simulation on the left is typical of games resulting in ruin and gives some insight into the mechanisms that cause ruin.More specifically, we see that the player started by doing well, and three successful bets in rounds 61, 65, and 71 boosted his wealth to 386, an almost eight-fold increase.In round 77, however, an unsuccessful large bet reduced his wealth to 152, followed by two more unsuccessful sizeable bets in rounds 78 and 79, finally reducing his wealth to a meager 74.In short, ruin was partly caused by large unsuccessful bets, namely, localized large losses.Furthermore, long periods where the wealth slope is equal to −1 are clearly visible in the figure, and they correspond to the periods where the player places no bets due to unfavorable hands, but pays the ante in the beginning of each round.This gradual loss of small amounts of wealth over an extended period of time becomes significant when the number of rounds is much larger than the initial wealth, and is the second cause of ruin.

Examples of Gameplay and Short-Term Considerations
These considerations bring us back to the criticism of KC in Section 3.5: is it possible to reduce uncertainty of wealth growth conceding a decrease of the expected final wealth?Let us consider the following two sets of simulations, each consisting of 10,000 games of at most 100 rounds each, and where the initial wealth is always w 50.In the first set bets are placed according to KC: the probability of ruin is 52.13%, the mean wealth is 525.9, and the probability of no gain end wealth is less than or equal to the initial wealth is 60.55%, but the median wealth assuming no loss is 392 and the 5% and 95% quantiles lie at 67 and 4,699, respectively.In the second set the bets placed are double the bets suggested by KC, but the player has moderate expectations and withdraws at any point his wealth exceeds 80: the probability of ruin is 35.62%, the mean wealth is 64.34, the probability of no gain is 35.72%, but the median wealth assuming no loss is 94 and the 5% and 95% quantiles lie at 82 and 138, respectively.
Violating KC and hyperbetting at low wealth allows the player to leave faster the lowwealth zone where ruin is likely to occur due to gradual loss of wealth.Alas, it makes ruin due to sudden loss of wealth much more likely when wealth is high and bets are high... except that now the player pulls out of the game before such high values of wealth are reached!This strategy then outperforms KC in short term, leading to smaller probability of ruin and loss: gain is now small but almost certain, and its effective value is constrained in a much narrower range than before, so that the variation in the expected wealth is smaller.Of course, if the player gets greedy and overbets without withdrawing when wealth exceeds 80, the probability of ruin increases to 77.83%.

Summary and Conclusion
We described two variations called the party and the casino version of the card game of Betweenies also known by several other names , in which the player bets on whether the value of the card he is about to receive will lie between the two cards he has already been dealt.After a brief introduction to Kelly's criterion KC , a method to determine the optimal betting scheme in a game of chance based on Information Theory, in a sense that the logarithm of the ratio of the player's wealth before and after the game is maximized, we applied it to both described versions of the game, essentially coming up with the same betting strategy in both cases.In the party version, where every player is required to contribute a fixed amount of money to the pot in the beginning of each round, there is an initial wealth-dependent probability of ruin, which we studied in two ways: by simulation and by solving the equations numerically.The latter method suggested that the probability of ruin is asymptotically inversely proportional to the initial wealth, and we verified this by direct substitution in the equations.
We finally provided some simulations of gameplay of Betweenies one leading to ruin and another to a large wealth , assuming that players follow the strategy laid down by KC, and we demonstrated how alternative strategies can perform better in short term, by reducing the probability of ruin and increasing the probability of gain, albeit reducing the expected gain.We also showed that, in the long term, such strategies increase the probability of ruin.
− 1 b with probability v s and w − 1 − b with probability 1 − v s .The expected log-return of the game is then b ≤ w − 1, 0 ≤ s ≤ 12, and we seek to maximize this quantity over b.Setting the derivative to , makes Betweenies a very boring game indeed, as approximately four times out of five players place zero bets!

7 q s v s r w − 1 b 12 s 7 q s 1 −Figure 1 :
Figure 1: a log 10 r w for w ≤ 70000; b r w for w ≤ 1000.

Figure 2 :
Figure 2: A sequence of rounds of Betweenies party version leading to ruin a and a large wealth b , with a starting wealth of w 50.Note the large lost bet in the final rounds of b .
card can be chosen in 4 ways out of 52 possible cards and the second in 3 ways out of 51 possible cards .When aces are present, things get complicated by the low-high option.Let p H be the probability that the player declares the first ace card if such a card be indeed dealt to be high.Then, for j 2, . . ., 13, Furthermore, p 14,14 is the probability that two aces are dealt and that the first is declared high: Finally, p i,14 , i 2, . . ., 13, is the result of two possible and mutually exclusive scenarios: either the first card dealt is an ace declared high, or the second card is an ace.
as the first ace can be chosen in 4 ways out of 52 possible cards , declared low with probability 1 − p H , and the second non-ace in 4 ways out of 51 possible cards .Similarly, p 1,14 is the probability that two aces are dealt and that the first is declared low: • • • p 12−s,13 p 13−s,14 , W n | W n−1 , the mean value of W n given W n−1 , is a new random variable depending on W n−1 .Taking anew the mean value E of this formula over the distribution of W n−1 , and setting E W n w n , we obtain