Study Markov Chains for lottery, lotto, software, algorithms, programs, number follower.

Markov Chains: Lottery, Lotto, Software, Algorithms, Programming

By Ion Saliu, Founder of Lottery Mathematics

Apply Markov chains mathematics to computer programming, software for lottery, lotto, gambling.

See here the first application of Markov Chains mathematics to lottery software, lotto games.

I. First Lotto Program Based on Markov ChainsMarkov by Cristiano Lopes
II. Ion Saliu's Algorithm for Enhanced Markov Chains Lottery Software

Study the most efficient Markov chain algorithm adding lottery pairs to lotto number followers.

1. The First Lotto Program Based on Markov ChainsMarkov by Cristiano Lopes

thornc Cristiano Lopes programming post in one of my oldest lottery and gambling forums was a surprise to me. We hadn't discussed anything about Markov chains and his writing dedicated lotto software.

Well, let me detail the presentation of Cristiano Lopes. First of all, the probability is high this is his real name. And these are his real intentions. Such traits are rare in Cyberland. I made him a gambling author. He created a nice utility: CoolRevGui. I urged him to write a distributable piece of software. The result is a really fine file viewer, file reverser, and file shuffler.

I had written DOS utilities to perform such tasks. But CoolRevGui offers the convenience of GUI, specifically choosing files via point-and-click. A sidebar here. Back in the 1980s, Apple Computer introduced Macintosh. The tough guys of the computing world quickly came up with a joke. They said Mac was for yuppies. Yuppies could never use two hands in performing any task. Reason: they always have a glass of Bourbon in the left hand… Since I consider life a tough endeavor, I thought I might as well take the tough path on the computing Appalachian Trail (read: Command Prompt software programming)!

Now I'm on my way of making Cristiano a tough competitor. That is, my only competitor — I feel so all-alone, when many others get stoned (from Bob Dylan). I don't hide behind false modesty. I do not have a real competitor in gambling and theory of games. The fundamental truth is that we are far better off when we have competitors. Regardless of the headaches competitors bring about, competition is the only source of high quality adrenaline. Physiologically, creativity is impossible without intense flowing of adrenaline. (One can make a parallel with intense flow in procreation during wartimes.)

This week I had the first sign Cristiano was on his way to becoming my biggest competitor. We discussed briefly the Markov chains. I have written a few paragraphs on Markov chains in a couple of messages. Cristiano had prior experience with the subject while a student in computer science. I advised him to use an algorithm in his textbooks to write a simple Markov chains program applied to lotto data files. The start is the most important thing. The start is the hardest part. Every subsequent step is a piece of cake. We are stopped in the tracks by the toxic shame of failure at step 1.01. (I look sometimes at the very first incarnation of LotWon: November 1988. Compared to my current software, LotWon 1.01 would generate the feeling of embarrassment to myself. But to me, my old lotto software generates a feeling of nostalgia; and a feeling of pride for having the courage to step on step one and see beyond step one.)

So, he sent to me a little program named Markov. The program takes a lotto-6 data file, performs Markov chains correlating, and outputs a new data file. The output file tries to offer the highest-probability combinations in future lotto-6 drawings. Cristiano asked me to test the program. I did so with a really tough lotto-6 game: Pennsylvania lottery 6/69 game. I tried a few ranges of past draws to input to the application. One of the ranges yielded a result way above random expectation. I created an input file with 35 combinations. They represented draw #3 through draw #37. The program generated an output file of 20 combinations. The last line had only 4 numbers, so I deleted it.

The 19-combination output file yielded 2 3-hit combinations within the next two draws. Those were line #1 and line #2 in the data file. They acted as future drawings. That's a total of 38 combinations played. The probability of 3 of 6 in a 6/69 game is 1 in 151. A total of 302 combinations are needed to get 2 3 of 6 hits. The tiny Markov program was 7.95 times (302 / 38 = 795%) better than random expectation! That's a huge improvement by any standards. (You may note that 35 is approximately equal to N/2 in a 69-number game. Search for wonder grid and CheckGrid for similarities in my software.)

Cristiano sent me various versions of the source code of CollRevGui. In C programming language, but if I can see then I can read C. This time, however, he did not send me the source code. The Internet is flooded by source code for Markov chains programs! Most of them try to create meaningful text from previous pieces of text. Cristiano's program, however, is the first attempt to apply Markov chains correlating to lotto games. It is also the first attempt to generate focused prediction of lotto combinations based on Markov chains. Other programming attempts I've seen are vague, at best.

I would hope Cristiano goes beyond step 1.00 of his Markov lottery software. A future program is recommended to be distributable, even if for testing only. He need not reveal the source code. The adrenaline will always write better source code. For me, at least...

A few suggestions to make the Markov lotto program more functional and usable automatically -

  • Add a few lines describing what the program does and its basic requirements;
  • Add a simple box where the user is asked to enter the InputFile of lotto drawings;
  • Add an input box where the user selects number of lottery draws to analyze in the InputFile;
  • Add a simple box where the user is asked to type the OutputFile filename;
  • If the run was successful, add a final dialog, informing: Success! Run it again (Y/N?).

    Ion Saliu's improved Markov-chains algorithm based on pairs of lotto numbers picked randomly.

    2. Ion Saliu's Algorithm for Enhanced Markov Chains Lottery Software

  • The Markov chains theory follows random paths. My theory as applied to the lotto wonder grid takes the path indicated by the Fundamental Formula of Gambling (FFG). Insofar as pick lottery is concerned, FFG outruns Markov by several steps. Another poster here, Shalaska the sports bettor, knows better what I am talking about.

    The Fundamental Formula of Gambling (FFG) is by far the most precise instrument in theory of games and gambling. FFG offers far more accurate (focused) results than Markov chains correlating.

    Ion Saliu's Markov chains lotto software is more effective than regular Markov based on followers.

    And here is, axiomaticus, a most effective function in lottery of an application of a Markov-Chains algorithm — M = Generate Combinations from Pairings as Markov Chains:

    Ion Saliu's Markov chains lotto software is more effective than regular Markov based on followers.

    — and this is a most effective method of a lotto Markov-Chains algorithm — F = Pairings & Most Frequent Numbers:

    Ion Saliu's Markov chains lotto software is more effective than regular Markov based on followers.

    Ion Saliu's Markov chains lotto software is more effective than regular Markov based on followers.

    Download MARKOV.

  • Download also a help file for the Markov chains lottery software: MarkovHelp.txt.
    If you click, the text file opens in your browser directly; right-click to download to your computer (Save Target As).

    Markov-chains software algorithms should consider pair of lotto numbers instead of followers.

    By the way —
    CoolRevGui was written for Windows NT, an older platform. It works great with files under 32K. It may work fine with files over 32K, depending on the OS and its components. In my case, and other cases, it does not work properly with very large text files.

    The GUI versions change their objects and components (e.g. dialog boxes) quite often — thusly creating incompatibility. On the other hand, my 32-bit command prompt lottery software has worked flawlessly with all 32-bit and 64-bit versions of Windows, from Windows 95 to Win 8. Way to go, axiomatic one! You deserve a 10, Parpaluck (as in the upcoming Windows 10, 2015)!

    Markov chains lottery software runs faster and better at Windows command prompt instead of GUI.

    Resources in Theory of Probability, Mathematics, Statistics, Combinatorics

    The first real lotto software to apply Markov Chains to lottery games for 6 winning numbers.

    Markov chains in lottery are not as effective as Fundamental Formula of Gambling.

    | Home | Search | New Writings | Odds, Generator | Contents | Forums | Sitemap |

    Read an article on gambling, mathematics, Markov chains for lottery, algorithms, programs.