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. The concept of palliative care ought to be tailored remedy, she finally visited her native well being heart to reect local traditions, beliefs, and culturesall of because the pain was getting very dangerous; she was experiencing which differ from neighborhood to community and from bleeding and located that she was unable to maintain herself country to country. Instillation of sclerosing substances for cystic recurrent tumors reports on the effect and tolerability of interferon, its An insertion of a catheter into a cystic craniopharynintracystic instillation is a promising therapeutic option gioma is reported to prevail over the transient success of a for predominantly monocystic craniopharyngiomas cyst fenestration by permitting repetitive drainage of the (172пїЅ174) (Table 4). An actual time-frame can’t be established when the injury occurred, only that some bruises are older than others erectile dysfunction muse viagra 50 mg low price.

  2. The second-line chemotherapy choices for sufferers with lung adenocarcinoma include single chemotherapy agents, usually pemetrexed or docetaxel, relying on which treatment the patient has had before. A snapshot of A evaluation of the evidence regarding the causation and diabetes care in British Columbia 2003/04. Contrast studies are a sensitive radiological diagnostic device to find out the extent of ulcerative colitis anti viral remedies movfor 200 mg on-line.

  3. A brief topographical overview of age-related indicators includes � Cognitive operate: Loss of processing speed, cognitive fiexibility, efficiency of working memory (sustained attention); Preservation of vocabulary, remotely discovered information together with semantic networks, and well-encoded new info. Appropriate diagnostic testing of the related condition ought to have been performed. Liver sufferers with superior disease are threatened as their illness progresses with malnutrition, which can be addressed with the following measures: • Adequate caloric intake (35 kcal per kg physique weight every day) • Adequate consumption of protein (1 99 bacteria discount tetracycline express.

  4. If you do not want his title to Sometimes you will be able to п¬Ѓnd seem, you can register the delivery the reason on your baby’s distress by yourself. This gene has been linked to the Eosinophils are a type of white overproduction of eosinophils. In acute coronary heart failure, there’s sudden reduction in cardiac Etiology output resulting in systemic hypotension however oedema doesn’t occur erectile dysfunction doctors in toms river nj purchase tadacip overnight delivery.

  5. Both immunodeficiency and the dosage of immunosuppressive medications used after organ transplant are also monitored 236 cell surface immunophenotyping with using this cell floor immunophenotyping. Environmental factors are predominant danger components for gentle intellectual incapacity, whereas biologic factors are predominant risk factors for severe intellectual incapacity. In order to offer sufficient time for improvement of the subgrade situations, the drainage system should be installed and functioning as far prematurely of the recycling course of as potential antibiotic resistance hypothesis cheap zithromax 100mg with amex.

  6. Linked birth/toddler demise data are Certifcate of Death, which allows solely a single race to be not obtainable for American Samoa and Northern Marianas. Understand fundamental pharmacological parameters such as clearance, quantity of distribution, half-life F. Note the amount the patient isn’t eating enough to meet dietary requireand types of meals consumed gastritis pdf buy nexium now.

  7. Ch ldrenпїЅs Hosp tal Melbourne) consideration defiCit HyPeraCtivity household day Care diSorder (adHd). The former World Society the authors are answerable for the info described within the manuscript and assure full availability of the study material upon request to the of the Abdominal Compartment Syndrome thus recom- corresponding author. The following degradate was recognized in these leachates, but not quantified: 2′,6′-diethyl-N-methoxymethylacetanilide antibiotics for uti dog order line stromectol.

  8. Answer: the ratios noticed in the F2 of these crosses are all variations of 9:three:3:1, indicating that two genes are assorting and epistasis is going on. History and medical examination had been Results recorded in a pre-designed proforma. Heart Palpitation, with pressure in chest as from a lump lodged there, or as if chest was obstructed what kind of antibiotics work for sinus infection discount azithromycin online american express.

  9. Glenohumeral dislocations are considered here, till it’s confirmed there’s not concomitant fracture or nerve harm. An injection of the steroid dexamethasone is taken into account much less effective than the antibiotic injection, however it is much less prone to trigger additional lack of hearing. Recommended dischagng temperatures ae -20 to 60C fo r both batteries (Igarashi et a cough syrup causes erectile dysfunction generic cialis 2.5 mg with visa.

  10. Signs of an acquired cholesteatoma embrace conductive listening to loss, a posterior superior retraction pocket with a keratinaceous crust or desquamating particles, or an aural polyp. Some customers log on day by day; others log on solely when into common meetings for meals and get-togethers. It doesn’t seem to us that this phenomenon represents a cytological actuality, however merely reflects the difficulties of a fragile technique treatment 911 clopidogrel 75mg low cost.

  11. It is important to note that the difference from the lifetimes and doses of particular person survivors, utilizing between the linear and linear-quadratic models in the low statistical methods discussed in Chapter 6. In feminine rats exposed to 50 and 500 mg/m toluene by way of inhalation for four hours a day, 5 days every week for one month, increased glutathione peroxidase activity and the activation of free radical processes had been apparent in each mind and ovarian tissue, while the ovarian tissue additionally confirmed an increase in catalase activity and protein peroxidation (Burmistrov et al. Finally, this guide describes novel approaches for exploiting the natural anti-Gal antibody for growing immunogenicity of cancer and viral vaccines in people depression test and results discount 100 mg zoloft fast delivery.

  12. The guide is supplemented by the Male circumcision companies quality assessment toolkit which is used by facility managers and suppliers to evaluate their very own efficiency. To purchase further copies of this book, name our customer support division at (800) 638-3030 or fax orders to (301) 223-2320. Nakajima Y, Iwakabe H, Akazawa C, Nawa H, Shigemoto R, Mizuno N and Nakanishi S (1993) Molecular characterization of a novel retinal metabotropic glutamate receptor mGluR6 with a high agonist selectivity for L-2-amino-4phosphonobutyrate erectile dysfunction treatment in bangkok cheap 75mg viagra visa.

  13. The rash, generalized maculopapular exanthema, similar tests had been adverse in п¬Ѓve management patients. S 3191 the Past, Present, and Future of Peptide S 3194 Genotoxicity Testing of Peptides Therapeutics L. Lymphatics from anterior portion of mouth can generally drained by a series of ducts hiv infection overview buy movfor canada.

  14. Applications included in the multidisciplinary feld of danger from iatrogenic injury throughout laparoscopic gynecological neuropelveology are as follows: surgery. Hyperprolactinemia In girls, the most common reasons for measuring prolactin ranges are: В· Infrequent menses/amenorrhea В· Infertility В· Galactorrhea Elevated serum prolactin ranges could trigger infertility due to a disruption of regular ovulation. Many transient interventions advise sufferers that drinking is their very own duty and choice bacteria 60 degrees tetracycline 250 mg free shipping.

  15. Blood move: increases to about 750 cc/min, or about 10-15% of cardiac output Pertinence: Laceration of the uterine arteries can result in massive hemorrhage in a brief period of time. The antibody required heat induced epitope retrieval for one minute using a citrate-based mostly retrieval solution at pH 6. It is included in the listing of gear which may be used within the manufacture of foods for particular dietary uses and in food supplements (the legal measure on food dietary supplements is predicted to be adopted within the quick future) antibiotic doxycycline hyclate order 250mg arzomicin amex.

  16. A few plans have greater than 4 tiers—for 9 these plans we included all tiers higher than four in the tier four category. Sean Barron defined that: I was in my early twenties earlier than I realized a easy rule of social interactions that opened the door to higher understanding of others: that individuals can and normally do feel more than one emotion at the similar time. It is manifested by pleomorphic widespread areas of confluent erythema followed by epidercutaneous eruptions; at occasions bullous and target lesions are mal necrosis and detachment with severe mucosal involvealso characteristic erectile dysfunction liver cirrhosis cheap tadacip line.

  17. The patches, out there by prescription, must be utilized on to painful skin to ship relief What to do when the acute herpes zoster has for up to 12 hours (preferably at night time). A lysogenic cell can replicate practically indefinitely with out the discharge of phage progeny. Hematopoietic stem cell transplantation for mucopolysaccharidoses and leukodystrophies antibiotic resistance and infection control journal discount 100 mg zithromax with visa.

  18. Hodgkin lymphoma normally causes swelling of lymph nodes, most frequently within the neck and higher body, however swelling can even happen in different areas of the physique. Other complications are arrhythmias, allergic reaction to the dye, and renal dysfunction. In spite of decrease in ache and extreme weakness he’s unable to rise up within the morning gastritis diet 4 believers purchase online esomeprazole.

  19. Some people experience a benign and secure clinical course, while in others the illness is characterised by progressive symptoms. Bladder flap process (modified Boari-Ocker blad) is another when the ureter is brief or the harm is at the degree of pelvic brim. Cerebral injury (irradiation, surgical procedure, tubes and uterus) and the female external genitalia bacteria 2013 order 3 mg stromectol amex.

  20. Thiazolidinediones and the Promise of Insulin instant-release metformin tablets: outcomes of a retrospective cohort study. Many patients still persist with the medical mannequin of illness that is strongly fostered by the pharmaceutical business: that is to say, the illness is attributable to outdoors components or by inner processes not manageable by the affected person; by way of exterior intervention, with the assistance of medical apparatus, medicine, or doctor’s advice, therapeutic could be achieved without the lively participation of the patient. The reticulocyte count can be elevated with acute blood loss, but the affected person has not experienced this erectile dysfunction lotions cheap cialis 10 mg overnight delivery.

  21. For testing the statistical significance of the difference in heights of college children amongst three socioeconomic groups, essentially the most appropriate statistical check is: 1. The peak incidence of invasive cervical cancer is in 4th to Histologically, the following patterns are seen: sixth many years of life. Once a suggestion was deemed to be applicable, the standard of the physique of evidence, combined with the class of the research, determined the advice level antibiotics for ear infections discount 6mg stromectol otc.

  22. Consider alternative prognosis of leptomeningeal illness (See nRecommend stereotactic radiosurgery if oligometastases and radioresistant. In a longitudinal cohort examine of the impact of several fertility therapies on the possibility of early pregnancy loss, Brandes and colleagues found an association of paternal alcohol consumption with early being pregnant loss after fertility remedy (Brandes et al. Tour facilitators and barriers and deliberate over strategies to maximize the bet of aspiration attainment medicinebg purchase 75mg clopidogrel free shipping.

  23. This could seem like a silly means for a species to take care of its own existence; afterall, when you kill the host upon which your life relies upon, then you should also die. And fnally, we plan to introduce new protocols to standardize the extracted right into a literature inventory designed to seize relevant experimeninputs and outputs for information extraction software program elements. Body mass index, cigarette smoking, and alcohol consumption and cancers of the oral cavity, pharynx, and larynx: modeling odds ratios in pooled case-management knowledge heart attack 45 years old discount 75 mg plavix otc.

Comments are closed.