# Best betting strategy for simple high/low bet of variable amount, but if you lose it all you're out?

**URL:** <https://boards.straightdope.com/t/best-betting-strategy-for-simple-high-low-bet-of-variable-amount-but-if-you-lose-it-all-youre-out/855121>\
**Category:** Factual Questions\
**Created:** [June 5, 2020, 9:02pm UTC](https://boards.straightdope.com/t/best-betting-strategy-for-simple-high-low-bet-of-variable-amount-but-if-you-lose-it-all-youre-out/855121 "2020-06-05T21:02:30Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![septimus](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/septimus/32/410_2.png) [@septimus](https://boards.straightdope.com/u/septimus)\
**Post date:** [June 7, 2020, 8:18am UTC](https://boards.straightdope.com/t/best-betting-strategy-for-simple-high-low-bet-of-variable-amount-but-if-you-lose-it-all-youre-out/855121/21 "2020-06-07T08:18:31Z")

</div>

> [@septimus](#):
>
> With the stated strategy as a “baseline” but making some adjustments (e.g. setting the round 9 and 10 bets with the target median in mind) I could get the median winnings up to $16,000. There’s room for further improvement but I’ll stop here. 🙂

I’m afraid the “I’ll stop here” was a lie. Go ahead and report me! 🙂

Once I realized that the exact median-optimizing strategy could be derived with less than 60 LOC, it was irresistible to do so. (To reduce wear and tear on a beleaguered Pentium chip, I stipulated that bets must be multiples of $10 — this should have little effect on the solutions.)

An expected median of $27,520 can be obtained. The bets in the first round with that optimal strategy are  
\< B[sub]2[/sub], B[sub]3[/sub], B[sub]4[/sub], B[sub]5[/sub], B[sub]6[/sub], B[sub]7[/sub]\> = \< 100%, 100%, 100%, 78%, 51%, 8% \>  
but of course these portions vary as the game progresses. (This all depends on the correctness of my code. I hope I’m not too optimistic if I continue to guess correctness as “better than even-money.”)

I will not show the _mean_ winnings achieved with the median-optimizing strategy, since that would require making bets when the median target was no longer possible. And, even though ‘Bet entire bank’ would be as good as anything, that would seem, as in the title of a famous movie, _A Line of Code Too Far_.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [June 7, 2020, 12:37pm UTC](https://boards.straightdope.com/t/best-betting-strategy-for-simple-high-low-bet-of-variable-amount-but-if-you-lose-it-all-youre-out/855121/22 "2020-06-07T12:37:45Z")

</div>

> [@](#):
>
> I’m afraid the “I’ll stop here” was a lie. Go ahead and report me!

**septimus** , don’t accuse posters of lying. No warning issued.

---

<div class="post-metadata">

**Author:** ![filmore](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@filmore](https://boards.straightdope.com/u/filmore)\
**Post date:** [June 7, 2020, 5:29pm UTC](https://boards.straightdope.com/t/best-betting-strategy-for-simple-high-low-bet-of-variable-amount-but-if-you-lose-it-all-youre-out/855121/23 "2020-06-07T17:29:13Z")

</div>

> [@septimus](#):
>
> An expected median of $27,520 can be obtained.

Thanks a lot for figuring that out. This has been much more interesting than I would have thought. Does this type of problem of finding the maximized median value have a mathematical solution or is it something that needs an iterative program to solve? And will the maximum median value always be less than or equal to the mean of the pure odds solution?

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [June 7, 2020, 6:02pm UTC](https://boards.straightdope.com/t/best-betting-strategy-for-simple-high-low-bet-of-variable-amount-but-if-you-lose-it-all-youre-out/855121/24 "2020-06-07T18:02:51Z")

</div>

The median won’t always be less than the mean. A standard Martingale strategy applied to any casino game will give a median result of positive one minimum bet, but a negative mean.

---

<div class="post-metadata">

**Author:** ![septimus](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/septimus/32/410_2.png) [@septimus](https://boards.straightdope.com/u/septimus)\
**Post date:** [June 7, 2020, 6:06pm UTC](https://boards.straightdope.com/t/best-betting-strategy-for-simple-high-low-bet-of-variable-amount-but-if-you-lose-it-all-youre-out/855121/25 "2020-06-07T18:06:33Z")

</div>

> [@filmore](#):
>
> Thanks a lot for figuring that out. This has been much more interesting than I would have thought. Does this type of problem of finding the maximized median value have a mathematical solution or is it something that needs an iterative program to solve? And will the maximum median value always be less than or equal to the mean of the pure odds solution?

Iterative. Solve for the question “Is there a strategy with \>50% chance of achieving at least $20,000?” If yes, repeat with $24,000, and so on, zeroing in on the optimum.

Sure, there are solitaire games where the maximized median exceeds the maximized mean. Perhaps the most obvious example is the ordinary Martingale: you bet $1 on a craps table pass-line bet, then $2 if that loses. Your _median_ winnings, occurring about 74% of the time, are $1. But your _mean_ winnings at the Craps Table cannot exceed zero no matter how you bet.

(Which is not to say that $1 is the optimized median in a casino game. Playing just the pass-line at craps, you have \>50% chance of winning 96% of your bankroll _if that’s your goal_, i.e. turning $1000 into $1960.)

ETA: Ninja’ed by **Chronos**.

[Previous page](https://boards.straightdope.com/t/best-betting-strategy-for-simple-high-low-bet-of-variable-amount-but-if-you-lose-it-all-youre-out/855121.md?page=1)
