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. And that is it! Our resource generator for MOBILE LEGENDS ACCOUNTS will start out Functioning
    for a couple of minutes; Allow for some time for that method
    to operate properly and to the resources to get A part
    of your consumer account.
    mobile legends account free 2021 | Lvl 30 Account
    mobile legends account free

  2. We now have currently been given a great deal of
    favourable feed-back with regards to this manual.
    Diamonds and Struggle Points are a significant Portion of
    the sport and you may acquire them by means of our Instrument.

    mobile legends account free 2021 | Lvl 30 Account
    mobile legends account free

  3. The method is usually diverse for different running methods.

    If you really feel insecure read more and absence assurance, question a
    friend who understands more details on a loan. This is certainly an explanation of how to maneuver a Mobile Legends account to another mobile phone.
    Rejoice playing this match on a new mobile phone!
    mobile legends account free 2021 | Lvl 30 Account
    mobile legends account free

  4. However, you don’t have to fret since this technique
    has confirmed by itself not to mention it may be the proper solution. Properly, there are several measures you’ll want
    to consider if you’d like to transfer your Mobile
    Legends account to a completely new mobile telephone. Look into Some steps beneath.

    mobile legends account free 2021 | Lvl 30 Account
    mobile legends account free

  5. The cookie is accustomed to detect personal purchasers behind a shared IP deal with and
    implement security settings over a for every-client basis.
    One example is, When the visitor is in the espresso shop the place there are
    a bunch of infected machines, but the particular visitor’s device is reliable
    mobile legends account free 2021 | Lvl 30 Account
    mobile legends account free

  6. Karaca cami avizesi her cami ve mescit ile uyumludur.
    Karaca cami avizesi modelleri arasından kolayca tercih yapılabilir.
    Karaca cami avizesi fiyatları avizenin işçiliğine, üretimde kullanılan malzemenin kalitesine
    ve avizenin boyutlarına göre farklılık
    gösterir.Karaca cami avizesi fiyatları üretici
    firmadan ayrıntılı bir şekilde öğrenilmesi
    mümkündür. Cami avizesi fiyatları internet
    üzerinden de araştırılıp analiz edilebilir.

    Cami avizeleri

  7. When you have any Concepts on how you need to split your likes, views,
    follows, and responses, just let’s know. We’ll let you know how that works.

    Any time you use our free demo deals for Instagram,
    chances are you’ll find that you will get free Instagram
    followers with the efforts.
    free instagram account 2021 | Accounts And Password
    free instagram account

  8. This app is absolutely free and unregulated. more info There will be no unique verification. There’ll
    be no sample. Additionally, all the followers with the account are genuine Instagram users who’re Lively on the location.
    free instagram account 2021 | Accounts And Password
    free instagram account

  9. They have a safe return plan for the products that didn’t fulfill the buyers’ expectations.

    And along with that, the corporate offers several payment modes to own Anyone covered.
    These are extra worried about shopper pleasure, and also you definitely will love
    purchasing with them.
    free instagram account 2021 | Accounts And Password
    free instagram account

  10. Come across responses to any thoughts you might take into account about our merchandise and instruments.
    If you cannot come across your answer at FAQ you are able to attain us by way
    of our Reside assistance center with no payment.

    free instagram account 2021 | Accounts And Password
    free instagram account

  11. Cami Avizesi Modelleri ve Fiyatları Nedir?

    Cami avizesi camilerde iç aydınlatmayı sağlayan demirbaş eşyalar arasında yer alır.

    Cami avizesi hem aydınlatmayı sağlar hem de dekorasyonu tamamlar.
    Cami avizeleri cami ve mescitlerin iç dizaynı ile uyumlu bir şekilde tasarlanmıştır.

    Cami avizeleri

  12. It may become a wild ride If you’re able to keep up
    While using the requires on the advertising and promotion needed to maintain your merchandise shifting.
    A free demo Instagram followers package deal are going to be just the issue to Get the toes moist.

    free instagram account 2021 | Accounts And
    Password
    free instagram account

  13. I think this is one of the most significant information for me. And i am glad reading your article. But want to remark on some general things, The website style is ideal, the articles is really excellent : D. Good job, cheers

  14. IMPORTANT Take note: We are more passionate about supplying code to those who
    share our short article With all the social media marketing back links :
    ). When responding to reviews, we prioritize people who share.

    free coc account (Gems) 2021 | Clash Of Clans accounts Passwords
    free coc account

  15. There’s a web-site termed EpicNPC that you can go to by accessing ,
    in which Every single participant from a variety of online games can offer the account.
    From time to time, When you are Blessed, yow will discover free account available from numerous gamers.

    free coc account (Gems) 2021 | Clash Of Clans accounts Passwords
    free coc account

  16. Money is A very powerful require in one’s everyday living.
    Therefore no sensible man or woman will like to invest
    it on this kind of online games. So with the folks who are
    looking for a clash of clans accounts free and strategies to
    get free Clash of Clans accounts, they must initial find out that is
    known as the Clash of Lance account?
    free coc account (Gems) 2021 | Clash Of Clans accounts Passwords
    free coc account

  17. You could pay a visit to our best Web-site to say premium
    coc accounts. Considering the fact that the highest accounts of (coc th thirteen free accounts) might be consumed promptly, it
    is best to obtain an early account on our Web-site
    free coc account (Gems) 2021 | Clash Of Clans accounts Passwords
    free coc account

  18. No must go at duration anymore. Just see under would be the free COC accounts the admin will share,
    the accounts that happen to be shared by the method are scrambled so who will
    get it quickly.
    free coc account (Gems) 2021 | Clash Of Clans accounts Passwords
    free coc account

  19. Cami ve Mescitler İçin Avize Modelleri Nelerdir?

    Cami avizesi modelleri uzman ekip eşliğinde tasarımı yapılan ürünlerdir.

    Karaca cami avizesi modelleri uzun yıllar boyunca sorunsuz bir şekilde kullanılabilir.
    Cami avizesi imalatçıları tarafından TSE sertifikalı avizeler
    üretir. Cami avizesi imalatçıları avizenin iskelet
    sistemini pirinç demir alüminyum ya da zamak metalleri kullanarak üretir.

    Cami avizeleri

  20. On the list of methods to level up your townhall quickly is with gems.

    The idea should be to use your gems as properly as you possibly can. Gems might be acquired
    from the beginning of recreation by means of numerous events.
    Preferably, save these gems for future updates.
    free coc account (Gems) 2021 | Clash Of Clans accounts Passwords
    free coc account

  21. As your alternative, you could play the game using a crew which has 3,
    4, or two persons. You could play it by by
    yourself way too. Not surprisingly, mainly because it is
    usually a multiplayer and web relationship-based game, you can play it with your friends
    and double your Pleasure!
    pubg mobile free account 2021 | Accounts With Uc, Skins
    pubg mobile free account

  22. The accounts on this element are removed on account of they’re
    fatigued. It’ll very likely be additional as speedily as attainable (a variety of several hours or tomorrow).
    For people who want an urgent account, you quite possibly can ask for an account
    by posting a remark.
    pubg mobile free account 2021 | Accounts With Uc, Skins
    pubg mobile free account

  23. During the battle, your teammates might be hurt. You’ll want to aid
    them to Get well. If you are fiddling with a staff you need to
    know that far more alive individuals with your workforce indicates much more chance to be the winner.

    pubg mobile free account 2021 | Accounts With Uc, Skins
    pubg mobile free account

  24. You could get Chegg free accounts by people who agree to
    supply Chegg login data or concur on Chegg account sharing by
    featuring deals. They may charge you at reduced charges and offer you the Chegg login examine reddit.

    free chegg account 2021 | Premium Accounts And Password
    free chegg account

  25. You must pay back on your faculty or higher education guides,
    get books and also other analyze components.
    Also, some learners consider on the net classes.
    And while you are aware that none of these things includes a free selling
    price tag.
    free chegg account 2021 | Premium Accounts And Password
    free chegg account

  26. How to unblur chegg responses for free 2021 one.
    As you simply click the research button you’ll get the right response right away.
    The Before everything technique to acquire free chegg responses is always to avail its free
    trial. Chegg was released in 2005, and now it’s almost 3 million subscribers.
    Chegg inc is definitely an american education and learning technological know-how
    corporation situated in california. Chegg delivers four
    months free trial to all the persons to investigate and understand chegg improved.

    free chegg account 2021 | Premium Accounts And Password
    free chegg account

  27. Innovative Savants is active in delivering free solutions to its people and it is presenting
    greatest fees at any time. You may additionally locate practical backlinks and free accounts for all kinds
    of other helpful webpages likewise. Via People accounts, you might entry the studying substance and
    encouraging guidebook for free of Charge or for best most
    affordable fees.
    free chegg account 2021 | Premium Accounts And Password
    free chegg account

  28. 95 for just a membership. But as edza.Web, we wish you to achieve these privileges without having having to pay any Money so
    we provide you with free Chegg accounts.
    free chegg account 2021 | Premium Accounts And Password
    free chegg account

  29. So In fact, you can download Fortnite Free Accounts on your PC, PS4, Xbox One
    and iOS devices completely free. So If you are downloading for computer, you
    can access Fortnite from Epic Games’ website.
    Actually after creating an Epic Games account. So you have to download the Epic Games Store to your computer.

    Later, you can log in to your account and find and download Fortnite from here.

    free fortnite accounts 2021 | Free Account, Pass And Skin
    free fortnite accounts

  30. Now, there isn’t any price savings if gamers use Apple and Google payment solutions, where by Apple and Google accumulate an exorbitant thirty%
    payment on all payments. If Apple and Google reduced their costs on payments, Epic will
    pass together the price savings to gamers.
    free fortnite accounts 2021 | Free Account, Pass And Skin
    free fortnite accounts

  31. This is a consumer-unfriendly Remedy. Apple even prohibits apps like Netflix from even telling customers how to pay for his or her membership solutions beyond the app.
    Epic would like to give all clients very simple, in-app obtaining choices free of obstruction.
    free fortnite accounts 2021 | Free Account, Pass And Skin
    free fortnite accounts

  32. This cookie carries out information about how the tip person makes use of the web site and any marketing the end consumer
    can have noticed right before checking out the stated
    Internet site.
    free fortnite accounts 2021 | Free Account, Pass And Skin
    free fortnite accounts

  33. Right now, We now have taken the subsequent action inside our pursuit
    for fairer electronic platforms globally, filing a lawsuit in opposition to Google in Australia’s Federal Courtroom.
    This follows a situation we filed on equivalent grounds towards Apple in Australia in November
    2020. Google advertises Android as an open platform, but the fact paints another photo; downloading software
    package specifically is unnecessarily tricky and Frightening, and pre-set up app shops are rarely
    permitted.
    free fortnite accounts 2021 | Free Account, Pass And Skin
    free fortnite accounts

  34. Related:og fortnite accountfortnite accountrenegade raiderstacked fortnite accountfortnite accounts renegade raiderfortnite account skinsfortnite accounts og ps4fortnite accounts og cheapog
    fortnite accounts pcrenegade raider accountfortnite accounts ps4fortnite accounts og skins
    free fortnite accounts 2021 | Free Account, Pass And Skin
    free fortnite accounts

  35. Şehirler arası transferlerde Mercedes VIP Vito araçların önemi firmamız tarafından temel düstur
    edinilerek, her türlü önlem ve emniyetli yolculuk için gerekli ön çalışmalar hassas şekilde sağlanmaktadır.
    Türkiye’nin 81 iline ister bir kişi ister grupla ulaşım hizmeti sunmaktayız.
    Yolcularımızı güven, rahatlık, hijyen konularında gitmek istedikleri yerlere ulaştırmakta, memnun kalabilmeleri için azami
    çaba sarf etmekteyiz.

    Şehirler Arası Transfer

  36. İzmir Transfer hizmetlerinde Mercedes VIP Vito araçların önemi firmamız tarafından temel düstur edinilerek, her
    türlü önlem ve emniyetli yolculuk için gerekli ön çalışmalar hassas şekilde sağlanmaktadır.
    Türkiye’nin 81 iline ister bir kişi ister grupla ulaşım hizmeti
    sunmaktayız. Yolcularımızı güven, rahatlık, hijyen konularında gitmek istedikleri yerlere ulaştırmakta, memnun kalabilmeleri için azami çaba sarf etmekteyiz.

    izmir transfer

  37. Şehirler arası VIP Transfer hizmetlerimizde sizi evinizden alarak, yorulmadan yapacağınız yolculuk sonrasında gitmek istediğiniz adrese kadar ulaştırmaktayız.

    Şehirler Arası Transfer hizmetlerimizde alanında uzman ve tecrübeli
    personellerimiz günün her saatinde hizmet vadediyor,
    havalimanından veya belirttiğiniz yerden sizleri alıyor ve
    varmak istediğiniz kente konforlu şekilde ulaştırıyoruz.
    Yerli ve yabancı bütün yolcularımızın seyahatlerinde problem yaşamamaları,
    güvenli ve kaliteli bir yolculuk deneyimi elde etmeleri için olanaklarımızı sonuna kadar seferber
    ediyoruz.

    Şehirler Arası Vip Transfer

  38. Yabancı film izle imkanlarını bizlere ücretsiz veren pek fazla site göremiyoruz.
    Bu aralar akla en popüler seçenek olan Netflix gelmektedir.
    Ancak sizler de biliyorsunuz ki, Netflix üzerinden alacağınız hizmetler için belli bir ödeme yapıyorsunuz.
    Bu ödeme tabii ki görüntü kalitesi ve ekran paylaşımı ile değişiyor.

    Ortalama 30-50 TL arasında ödeme yapmanız talep ediliyor.

    Elbette ki her servisin ve hizmetin karşılığı olmalıdır.
    Ancak daha uygunu varsa neden Netflix’e üye olalım ki?
    Filmci Baba sitesi zaten bizlere full film izle imkanlarıyla birlikte Netflix orijinal dizilerini de sunuyor.
    En iyi yabancı filmleri zaten Netflix’te göremiyoruz.
    Son birkaç senedir eklemeler yapılmaya başladı. Ancak genel olarak birçok filmden mahrum olduğunu görüntülüyoruz.

    hd film izle

Comments are closed.