Back in the game

Published:

Good to be back! Noticed I have been an LP member for 20 years.

After a number of years in the "I give up" gang, I realized that the work I was doing with lottery data was good practice with excel and I am starting up a new angle. In the interim I have learned to code in python, in fact just 8 classes to go (the long path, 1 at a time) to earn a Bachelor's degree in Computer Science.

Right now the current project is to generate predictions using Python code I wrote for time series analysis. I can import a spreadsheet (as a csv file) into a pandas dataframe and attempt fitting each ball in the PA pick 3 using SARIMA, then generating predictions for 7 days.

It is still a work in progress, but getting closer each day. The S in sarima means it looks for seasonal trends (something I though about but never implemented in excel).

Still treating the pick 3 as 3 separate draws of 1 in 10, and still not playing box, as a box means the code was wrong.

So many toys (algorithms) in the python stats and data mining tool box! After SARIMA, I will rework the code to use Markov chains.

Does not even matter if it works, the point is I am actively working with writing code.

Entry #202

Comments

Avatar lakerben -
#1
Great! Are you going to post your p3 program?
Avatar hypersoniq -
#2
That depends on if it works... so far I am only getting it to spit out average (mean) as a forecast, I asked for 7 days of forecast and ALL of the numbers are 4.5, dead center between 0 and 9.
Avatar hypersoniq -
#3
I have since cast output to an integer, but it is still spitting out 4's, so that tells me that SARIMAX is not the right model. Today I will try to experiment with other models. It could be that the data is too chaotic and needs a completely different solution. I am just celebrating the fact that my first attempt to write a python program for data analysis worked!

Post a Comment

Please Log In

To use this feature you must be logged into your Lottery Post account.

Not a member yet?

If you don't yet have a Lottery Post account, it's simple and free to create one! Just tap the Register button and after a quick process you'll be part of our lottery community.

Register