hypersoniq's Blog

One avenue left to explore

The last area of my entire idea pool, kept at bay for years because I did not understand the underlying math...

Hidden Markov Models.

As applied to biology they make sense so far. Given many choices they will create paths that describe the most likely path nature will take. At it's core is the Markov chain, so this should be an interesting final journey. Honestly this will take months before anything remotely workable is ready, so there is no urgency to be done, but instead a focus to make sure each step is as complete as it can be.

Entry #684

PRNG synchronization

I am sure many had the idea to try and write code that would attempt to reverse engineer the seed used to generate a states rng picked machines. I remember spending a week on this many years ago. I remember the test was simple, generate a list of random numbers and compare to the history... one mismatch and it was discounted and you move on to the next.

So what if a more thorough count of each seed were to take place? Compare all the lines, even the mismatches and generate a score. Then look at the distribution of these scores. Sure it seems like beating a dead horse but I did not always use rigorous statistics in the early days. I don't even think I used python, it was a simple VBA macro in excel. I also only looked at separate columns and did not try the data as a 000-999 pick.

The end result will be the same, but it is another case of being able to check off another hair brained theory of "hey, i tried everything".

2 way design this time, columns and combos. May incorporate a dozen test draws with the 13th being the "money shot", mimicing the actual draw process in PA. Output a full report, including longest matching chains and longest mismatch chains. Might also see if they might be using the previous evening mechanical draw as a seed for the next rng draw... that should close the door on this rabbit hole once and for all.

Entry #683

How do we make a better guess?

Since past draw data has no relationship to new draw data, what might be the source of a new guess structure? This has been a question that has been bothering me over the last 6 months of putting lottery system development on hold. I think it is safe to remove combining the words prediction and lottery, statistics clearly shows there is zero correlation except that the next draw will be in the same discrete range, dictated by the pool of numbers.

I am trying to look for completely off the wall ideas, because the math approach ain't mathing.

Entry #682

One chapter away from studying Hidden Markov Models!

Getting there... rosalind.info has a grand total problem count of 284 currently, I just got solve number 211 two days ago. The book has 11 chapters, just starting chapter 9, then it is HMM in chapter 10!

Entry #681

Back Testing ... where ALL systems fail

As I spent many years in spreadsheets trying countless systems to find a profitable best guess, I realized some were too complex to test in the spreadsheet because I hated the VBA macro language, so I moved to the Python language. While setting up systems was a straightforward task, back testing was always a bit trickier, but possible. When I started being able to run complete back tests across entire draw histories is when I saw just how systems fail on profitability in the long term. I could back test how effective mirrors or Vtracs were right in a spreadsheet, but jackpot games added complexity. Once I started back testing what I considered the better systems against the histories I saw the reality that multi year gaps and inconsistent results were common to ALL systems.

To be fair, I know that some use reduction systems and I was always searching for the one shot best guess single line to play. I never found it, at least not repeatably or profitably. I can say that upskilling to full back tests took the fun out of the hobby. Applying rigorous statistical testing ended up proving to myself that system design for random processes is a fool's errand.... one that kept this fool busy for over 20 years! None of that time was wasted however as my coding/problem solving skills definitely improved. I was usually under the impression that I was just not asking the right questions, then came the realization that there were no questions that would provide the answers I was looking for.

This hobby was a super domain to work with noisy meaningless data. Now that my new hobby is Bioinformatics, I have seen how working with noisy data with hidden structures is possible. My most focused attempt at lottery was using Markov chains on follower distributions. This does not work on the lottery, but I was able to apply Markov chains directly to solve a few problems in finding hidden patterns in DNA that had shifted by mutation. IF the lottery data was predictable, Markov chains were indeed the right tool. But, because lottery draws are truly memoryless, it did not work.

Back testing squashed every fantasy I had about "figuring it out" or "beating the system".

Entry #680

The cost and value of the temporary license to daydream.

Since pretty much giving up on developing lottery systems, I still have a horse in the race. One power ball ticket per draw. I opt in for the multiplier and the double play, so each sets me back $4. At $12 per week, this has the annual cost of $624, assuming zero hits. Because it is spread out over 52 weeks, that is about 20 minutes a week from my wage going to the game... i can live with that. 

What do I get for that expense? The license to daydream 3 times a week. Let's face it, most work sucks, that is why they have to pay you to show up. Even if my chances of a win are infinitely small, they are non zero... on the most recent (Wednesday night) double play, I had a 3+1 hit for $500... that means 2026 will have a net cost of $124. I had a few smaller hits that even eat into that figure. I know that should lightning strike, there would be no crazy spending, because the goal is always to never have to work for anyone else ever again, to get my remaining time. 

To me, the expense is fully justified and not from necessary funds. That license to daydream goes a long way to ward off boredom and depression at a job that pays well but sucks otherwise.

Entry #679

Patterns that are not visible

In a recent exercise on a biology problem, the glaring inefficiency of lottery systems became apparent. The problem asked to scan 50 entries of 100 nucleotides (letters A, G,C and T) to find a motif (pattern) of a fixed length, Even if the pattern is not exact due to single nucleotide polymorphism (over evolutionary time, a C may be changed to another letter. So this introduced the concept of edit distance, or the number of changes needed to turn one string into another, this was then the constraint... find all matches within a certain edit distance. Now, the problem supplied the fixed motif length, but the authors brought up a great point... what if you do not know even the length of the pattern? That hit home for the lottery problem... look at how many parameters we are left to guess... how many draws to use? Spotting a trend before it goes away? What about patterns that may hold but some of the numbers change, completely obscuring the pattern to begin with? I admit that the CS degree trains one to find deterministic answers, and should cause one to reject the idea of a lottery system to begin with... but Biology introduces messy, noisy data, non deterministic answers that must look to probability to make accurate calculations, best guesses while sticking to biological realities that can't just be glossed over by coding tricks. Some of these techniques might be used in this problem domain. I still need to figure out which ones and exactly how, but after over 20 years of a pointless chase, this may be the inspiration needed. If patterns that are similar but not exact can be identified, this could also answer such questions as how many draws to use or how there might be other less obvious structures instead of direct followers to apply a Markov decision process to. Not rushing back to the lottery lab anytime soon, but problems that seem impossible in one domain may be solved by applying techniques from a completely different domain.

Entry #678

Powerball 1+1 pays $10 on double play.

Interesting how I am using the top results from the follower Markov chain to play 3 draws at a time, and the matches almost never come from the next draw, where they might be expected to. Since that drift is present but not yet well understood, going to try a 3x duration when I play tomorrow... 3 weeks (12 draws) on the numbers generated specifically for tomorrow's draw. 2 weeks vacation after Friday, so I will not even have to play, just check the numbers until the Monday 7/24 draw. Would have cost $36 but thanks to that last draw 1+1 it will only cost $26.

Entry #677

Millionaire for Life is tough to justify

At $5 a ticket and a nightly draw, that is prohibitively expensive to "experiment" with. Does not mean that I would not, just means I would not regularly. The very first 1 week test concluded with a $6 profit... so now is the time to step away with a rare return on a poorly designed spreadsheet analysis of 2 weeks worth of data.

Looming at those 2 weeks eventually yielded one combo to play, so I dropped $35 for a 7 day stretch. Second night was a 2+1 for $25. Sixth day was a 1+1 for $8 and the last day was a 2+0 for $8. $35 in, $41 out, net + $6. Of the 5 white balls, the wins involved 4 of them, one pick was never drawn. The 1/5 has a 20% chance of coming out, so that factored in twice.

With that, I do not think that the "system" I employed to get that 1 line was anything special... first, third, fourth and 5th nights matched 0+0. Though it would be interesting to run a "control" experiment using a generic Python QP, I am cheap. If the mood ever strikes again, I will run exactly that experiment. The one thing that seems to hold with the jackpot games is playing for a cycle vs a single draw, always seem to do better playing for a week than per draw or long term... maybe that is the magic time interval... play the PB the same way, pick 1 combo and play for a week (3 draws). 

That was the first time I fired up a spreadsheet in about 4 months... that used to be a daily ritual for draw updates. The draw update script turned that into a single button push whenever I need the data, so roughly once per week for the latest PB draws... I automated the time sink into the hobby, amazing how quickly it was replaced as the hobby of choice.

Entry #676

My biggest mistake, looking for a deterministic answer!

Lottery data is complete noise, the only structure is by definition of the game... like pick 3 has 3 digits in a combo, 0 to 9 in spots 1, 2 and 3. However, there are exactly 0 relationships to past draws and 0 relationships between the positions.

One of the things I have come to accept over the last 4 months of switching to bioinformatics as a hobby is that biological data is also noisy, but it is still structured, even if it is structured by millions of years of evolution. In many of the data projects using genomic data, there are no "Exact" matches, there could be variation in DNA or RNA that changes one nucleotide, but the overall energy available still allows a ribosome to recognize an attachment site so it can begin constructing the protein chain from the instructions.

There is much about probability involved. One of the last challenges I had was to construct a Markov Chain Monte Carlo (MCMC) simulator to allow the discovery of a regulatory motif (patterns of A, C, G or T) that has mutated over time to prevent an exact match. In 7 more chapters I will hit upon Hidden Markov Models (HMMs). So the study that is about biological computing is actually turning into a master class on probability over noisy data.

There are many ideas about applying some of this back to the lottery problem, but none actionable just yet. Just over the last week or so, I feel that I better understand the problem of getting stuck in a local minimum during the gradient descent phase of machine learning by seeing how different approaches to identifying patterns in seemingly random strings is not only possible, but fundamental to the advancement of biology.

One such area is in identifying repeated strings when you do not know in advance how long these strings will be... that seems to have a direct application in discovering patterns that are not obvious because they are not equal... but their variance is small enough to be identified!

More later, this textbook has 11 chapters and I just finished chapter 3...

Entry #675

3+0 on the powerball double play!

$20 for 3+0 on the last day of the "free week". Not bad, 2 consecutive free weeks. $12 budget already makes the cheapest way to play and still have the multiplier and bonus draw, so not bad to have a mini streak. Now if it continues along the usual lines, there should be zero hits in the next week's 3 draws... but I don't know until the draws happen.

Entry #674

Last wednesday 0+1 pb hit will make this week free!

$12 per week to play PB. Wednesday got a PB match with PP for $16. I play wed. Thru mon. For the week, buying 3 new chances on tuesday or wednesday morning for the next 3 draws. Had a handful of 0+1 hits that generated a bit of padding against the usual losses... $16 was the biggest single hit. Last draw for this week is tonight. I pick a different path each week through the hot/neutral/cold chart on the app. No rhyme or reason. I maintain based on past experience that my red ball picks end up being better than QP, but the white ball picks are just as bad as QP.

Entry #673

Brute force first target data... M4L

Since there is not yet enough history and PA did not update their old game hooks to the database since cash 4 life, I will look to another of the participating states to grab the data. A simple script to print the white balls to csv should suffice. A format like

WB1 - difference - WB2 - difference .... WB 5 will be row 1

difference -          - difference is row 2

Next draw, repeat. 

That will show the changes row to row and column to column. The cash ball will only have the row to row difference.

Cell formatting can color the backgrounds to encode info like O/E.

Nothing written in stone, just searching for things that hold, generalizations based on pure observation.

There may not be a direct pattern in the numbers at face value, but maybe some other information can be used to find some pattern that holds.

Then there are some concepts that I would like to look at such as a "scoring matrix" for combo selection. This would be extremely off the deep end for lottery analysis but nothing has worked so far so why not? It also helps lay the foundation began by follower Markov chains into full blown hidden Markov models. Just now starting to understand the function of HMMs in other applications.

Entry #672

Expanding on the brute force concept...

The idea is to look for things, patterns, coincidences... not limited to any one thing. They can be tracked as well... such as if you are looking at the individual situation of odds and evens, check the rolling percentage over several draws. The end goal is to develop a list of things that hold over multiple draws. Things you might otherwise miss if doing bulk statistics over many draws.

You may end up with some odd collections...

Perhaps odd follows odd at a higher percentage than odd follows even... remember, this is per column as well as across the combo.

There could also be some way to re imagine the history, rather than a flat 2D file, it could be a 3D array with the tine series step as the third dimension.

There are no rules here, be creative... regular classical statistics have not been able to "crack the code".

Entry #671

What about brute force?

Start with the first 2 draws. Make an exhaustive list for each position how one got to the next, even if it is NOT based on math or statistics. Add the next draw and remove those that failed, keep those that held. Repeat until you are left with a handful of "rules" general enough to have held to that point. Then, and only then can you look for spreadsheet or code automation to push forward.

Entry #670
Page 1 of 46
Guest