10,000 Nights at a Casino – Using Python to test my Roulette Strategy

A few years ago, friends and I took a pit stop in Macau during a trip through Asia after our graduation.  While there, I came up with a fairly simple roulette strategy that I thought could work for someone with enough of a bankroll.  Since then, my friend Steve and I have argued about 15x about the validity of this strategy.  In fact, Steve even wrote a VBA program to prove that I was wrong.  Well, Steve, I wrote my own program this past rainy Sunday (to highlight my gambling prowess, this Sunday I also doubled up in Texas Hold ‘EM poker after flopping a full house with 7, 2 off suite – but that’s a story for another day).

The strategy is as follows: put $1 on black.  If you win, take your winnings off the table and put a new $1 bet down.  If you lose, then put $2 down, if you lose again, double it to $4, if you lose again, double it to $8, and keep doubling down until you win, then take all of your money off the table (your winnings will offest your previous string of losses and leave you with a $1 profit), and start again with a $1 bet.  Of course, the problem becomes, what happens when you lose 10 times in a row.  Well, I’m glad you asked.

First off, let’s analyze the probability of you losing that many times in a row.  There are 38 possibilities in a roulette wheel – numbers 1-36, 0, and 00.  So, your chances of not hitting your color are ((38-18)/38, or about 53%.  So, you don’t have a great chance of winning if you just play once.  But, what are the chances of you losing several times in a row?  The below table illustrates how low these odds become (‘Necessary Bet’ is the bet needed to recover losses and make $1.  The ‘Probability’ is the cumulative probability of losing n many times in a row.  See R1:T17 of the first tab of the excel I link to at the bottom of the post for the calculations):

Below is a graph of what your pay offs may look like.  Note that you are winning only $1 at a time until you eventually get really unlucky, somewhere around your 13,000th spin in this case, and lose money beyond your bankroll which forces you to quit and walk out of Macau penniless (but hopefully not indebted to some Asian Gangsters).  Notice how the blue bar suddenly drops to -$9,000…

This type of payoff structure is analogous to “picking up nickles in front of a steam roller.”  If you haven’t already, you should read When Genius Failed, the story of the demise of Long Term Capital Management.  LTCM was a hedge fund run by Nobel laureates who made thousands of tiny bets using computer programs in a strategy called statistical arbitrage, among others.  The hedge fund blew up as they thought the scenarios that would cause their fund to collapse would only occur once every few centuries (it only took a few years for the fund to meet its very spectacular end in one of the first “too big to fail” situations.  Fun fact: all Wall Street banks pitched in to help unwind the fund’s assets, and thus divert a systemic break in the economy, except for Bear Stearns who refused to help…).

Below is a zip file with three Python programs whose outputs are captured in the excel.  The programs assume that you start with $100, and can borrow up to $5,000 from your friend (except for the last one that assumes you can borrow $15,000).  So, just as LTCM relied on leverage to try to double down on their bets and save their fund, this strategy also relies on loans to stay afloat in bad times when the odds go against you.

The first program is what would happen if you sat down and played until you went bust.  I ran this program once, and you make about $6,000 before hitting some bad luck and going bust (this is shown in the line graph above).  The second program basically runs the first program 10,000 times in order to get an average payout.  However, this one assumes you are only willing to play 100 games in a row as even 100 games would probably take a very long time in reality.  The last program is the same as the second, except that the player can lose up to $15,000 before quitting, and, if they have played 100 games and are at a negative value at the 100th game, they will play until they either recoup their losses, or go bust and lose $15,000.  This last scenario actually yields a positive expected value of about $4 (see the third table of the excel file I link to at the end of the post.  Expected value is what you would expect to win, on average, if you played this strategy many times).  Here is the distribution of returns from spending 10,000 nights in the casino with your friend that has $15,000 he can loan you if need be.  Pay no attention to the long tails where you lose $8,000 – that’s like a 10 sigma event and would NEVER happen 🙂

Conclusion: is this an effective strategy?  Not really.  Even if you found a table that let you start with $1 bets, and you had the patience to sit down and do this, and you had the bankroll, it’s just not going to yield all that much cash over time.

Please feel free to look over my code and let me know if you come up with any other conclusions by modifying it!  Also – I’m not a programmer – these scripts were very easy to do and took me only a few hours to write all three and conduct all analysis because Python is super easy!  If you want to learn more, MIT has FREE courses on Python that you should check out.  Enjoy!

To quote a really great “anti-recruiter” LinkedIn profile describing time spent at a large quant hedge fund: “I earn above-market returns 95% of years by collecting theta, selling volatility in the form of financial derivatives, naked short put options, and in summary, collect nickels and dimes in front of steam rollers, hoping the black swans never appear during my lifetime.

Attachments:

The Excel: Roulette Output

Python programs: Roulette Programs

7,734 Replies to “10,000 Nights at a Casino – Using Python to test my Roulette Strategy”

  1. Supplementation can reduce brittleness of the nails, even when laboratory analysis reveals no iron deficiency • Zinc: supplementation improves nail changes in acroder matitis enteropathica. Lymphocytosis is most frequently present in viral infections and only not often in bacterial an infection except pertussis. In the case of persistent viral hepatitis, a big hole exists in the first part of the continuum as a result of nearly all of asymptomatic infections are estimated to be undiagnosed 5] antifungal resistant ringworm discount terbinafine 250 mg without prescription.

  2. This part highlights a number of measures that have efficiently addressed these considerations. Known risk components clarify solely 5-10% of childhood glioma, the most typical malignant brain tumor in children. In sure instances, current advances within the progress and culture of blastocysts have resulted in a better implantation potential of the transferred blastocysts as compared to the implantation rates of day three embryos allergy testing gainesville fl buy cyproheptadine 4mg with mastercard.

  3. I really like what you guys are up too. Such clever work and coverage!
    Keep up the fantastic works guys I’ve included you guys
    to blogroll.
    Free Accounts | The Most Reliable Free Account Sharing Site
    free accounts

  4. I used to be recommended this web site via my cousin.
    I am now not sure whether or not this publish is written by means of him as
    nobody else realize such special about my trouble.
    You are wonderful! Thanks!
    Free Accounts | The Most Reliable Free Account Sharing Site
    free accounts

  5. The prescriber also needs to have a thorough discussion in regards to the risks and benefits of psychotropic treatment (Findling et al, 2011). The hole in my heart shall all the time remain, however there may be therapeutic round that hole, and I carry my daughter in my heart, all the time. Advise mom to wear a help bra or different supportive clothes that does not cause painful strain on the breast diabetes symptoms smell buy cheap glucotrol xl 10 mg on-line.

  6. Morris Z, Guy E, Francis D, Gressett M, Werner L, Carmichael L, Yang R, Armstrong E, Huang S, Navid F, Gillies S, Korman A, Hank J, Rakhmilevich A, Harari P, Sondel P. On the eighth day after start, a ritual circumcision was performed by an authorized mohel (skilled within the Jewish rite of circumcision). Threats also can exist inside relationships, as for example when one companion outperforms the opposite allergy medicine to take while pregnant purchase discount periactin on line.

  7. I do consider all the ideas you have offered on your post.
    They are really convincing and can certainly work.
    Still, the posts are very brief for novices. Could you please prolong
    them a little from subsequent time? Thank you for the post.

    Free Accounts | The Most Reliable Free Account Sharing Site
    free accounts

  8. Avrupa merkezli bir şans oyunları sitesi olan Casibom sitesi, Avrupa’nın pek çok ülkesinde uzun süreli faaliyetlerinin ardından 2020 yılından itibaren Türkiye’de de hizmet veremeye başlamıştır. Seguri N.V.,reg.nr. şirketi bünyesinde online bahis ve online casino oyunları hizmeti veren Casibom casino sitesi özellikleri itibariyle ve Casibom bahis sitesi olarak yoğun ilgi görmektedir. https://casibomguncelgiris.com/ – . casibom

  9. Hello! Someone in my Myspace group shared this site
    with us so I came to take a look. I’m definitely enjoying the
    information. I’m book-marking and will be tweeting this to my followers!
    Great blog and wonderful style and design.
    Free Accounts | The Most Reliable Free Account Sharing
    Site
    free accounts

  10. Hi there to all, the contents present at this web page are actually awesome
    for people knowledge, well, keep up the good work
    fellows.
    Free Accounts | The Most Reliable Free Account Sharing Site
    free accounts

  11. Thank you for the auspicious writeup. It in fact was a amusement account
    it. Look advanced to far added agreeable from you! However, how could we communicate?

    Free Accounts | The Most Reliable Free Account Sharing Site
    free accounts

  12. Excellent article. Keep posting such kind of information on your blog.
    Im really impressed by your blog.
    Hi there, You have performed a fantastic job.
    I will definitely digg it and in my opinion suggest to my
    friends. I’m sure they will be benefited from this site.

    Free Accounts | The Most Reliable Free Account Sharing
    Site
    free accounts

  13. My brother recommended I would possibly like this website.
    He was entirely right. This submit actually made my
    day. You can not believe simply how a lot time I had spent for this
    info! Thanks!
    Free Accounts | The Most Reliable Free Account Sharing Site
    free accounts

  14. I was curious if you ever considered changing the layout of your site?
    Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content so people could
    connect with it better. Youve got an awful lot
    of text for only having 1 or 2 images. Maybe you could space it out better?

    Free Accounts | The Most Reliable Free Account Sharing Site
    free accounts

  15. Thanks for finally writing about > 10,000 Nights at a Casino – Using Python to test my Roulette Strategy – Phil Strazzulla'
    s Blog free accounts

  16. Wow! This blog looks exactly like my old one!

    It’s on a entirely different subject but it has pretty much the same layout
    and design. Great choice of colors!
    Free Accounts | The Most Reliable Free Account Sharing Site
    free accounts

  17. I like the valuable information you provide in your articles.
    I will bookmark your blog and check again here frequently.
    I’m quite certain I’ll learn many new stuff right here! Best of luck for the next!

    Free Accounts | The Most Reliable Free Account Sharing Site
    free accounts

  18. Great beat ! I wish to apprentice while you amend your site, how could
    i subscribe for a blog site? The account helped me a acceptable deal.

    I had been a little bit acquainted of this your broadcast provided bright clear concept
    Free Accounts | The Most Reliable Free Account Sharing Site
    free accounts

  19. Hello fantastic website! Does running a blog such as this take a
    great deal of work? I have no understanding of programming however I was hoping to
    start my own blog soon. Anyways, should you have any suggestions or tips for
    new blog owners please share. I know this is off subject nevertheless I just had to ask.
    Appreciate it!
    Free Accounts | The Most Reliable Free Account
    Sharing Site
    free accounts

  20. Hi there! Do you know if they make any plugins to protect
    against hackers? I’m kinda paranoid about losing everything I’ve worked hard on. Any recommendations?

    Free Accounts | The Most Reliable Free Account Sharing Site
    free accounts

  21. Today, I went to the beachfront with my children.
    I found a sea shell and gave it to my 4 year old daughter and
    said “You can hear the ocean if you put this to your ear.” She put the shell to her ear and screamed.
    There was a hermit crab inside and it pinched her ear. She never wants to go back!
    LoL I know this is totally off topic but I had to tell someone!

    Free Accounts | The Most Reliable Free Account Sharing Site
    free accounts

Comments are closed.