• Welcome to Dark Bit Factory & Gravity.
 

Lottery result analyser

Started by combatking0, October 25, 2006

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

combatking0

I am building a lottery result analyser!

While it won't be postable in its final working form, I'll put up my source code and an empty Access database for it to use when I'm done.
It will use ASP, so those of you with IIS or PWS can get it working.

What it will do is display the 7 most selected balls for any given ball set combined with any given lotto machine.
Then I'll play the most common 6 from the most common selection of ball/machine combination, and see if my results improve when compared to lucky dips or playing the same 6 numbers every week.

It's a mad hatter approach, but why else would they use different ball sets and machines?

On the programming side of things, I have created a script which parses a properly formatted text file into the database. That's saved me hours of work.
Now I just need to perfect the analyser.
You are our 9001st visitor.
Challenge Trophies Won:

lilw4t3rdr0p

Post your results and we can see if they win in the US. Just remember the first 5 are the number and the last is the POWERBALL!

Sounds cool!

Shockwave

This sort of program fascinates me. I've long suspected that the lottery is a fix, maybe if I can generate a winning ticket I'll re-consider.

Had you thought of applying this sort of technique to something like horse racing or Snooker matches or something like that? It could be a good tool.
Shockwave ^ Codigos
Challenge Trophies Won:

taj

Tell us next weeks numbers - Im not greedy, 5 will do!
Challenge Trophies Won:

lilw4t3rdr0p

Screw that. I want all six and i'll split it. Hows that?

combatking0

#5
I'll compare last nights draw to the predicted results later today...

As for other lotteries, the program could be very easily modified, but you would have to change the same thing several times as the database, source text file and ASP code all work sort of seperatly.

And as for other sports, it depends on what aspects you want to study.
________________________

Analysis of Main Lotto Draw 25/10/2006:
Machine: Amethyst | Ball Set: 4 | History of draws with Amethyst4: 11
Analysis using Balls & Machine: 2 Correct numbers, 2 Main, 0 Bonus.
Analysis using Balls only:Ã,  Ã,  Ã,  Ã,  Ã, 0 Correct numbers, 0 Main, 0 Bonus.
Analysis using Machine only:Ã,  Ã,  2 Correct numbers, 1 Main, 1 Bonus.
________________________

I think that went quite well.
The only problem is there are 12 sets of balls and 6 machines currently in use, so in order to be certain of buying a ticket which uses the predictions of every combination of ball set and machine currently in use, I would need to buy 72 tickets.
OR
I could just buy the ticket for the most common combination of ball and machine (I'll find out which one this is. I think it could be Amethyst1, which is 46,19,06,45,43,39), and wait until that selection is made. Until then, it's a game of "What if I knew which combination will be chosen?".
You are our 9001st visitor.
Challenge Trophies Won:

Clanky

well thats fasinating!
but... i saw on Today Tonight (Channel 7 AUS) that they dont fix it... and that the balls are weighed, sized and all that so that they are have an equal chance at falling to the bottom... i did the same thing in math - confidence intervals and probability! if they are too far of the mean with like, a standard deviation of a certain numer, their rejected!
but, all in all, a nice program - dont know if its different in USA, EURO and others, but anyways - a nice way to win the lottery!!! just need the numbers for next weeks Oz Lotto! haha
:cheers:
He tilts, and his eyes are focused on the ground far below.. Wind? Angels? Men..

combatking0

I've been neglecting this - I'll test the last 2-3 weeks of numbers tonight and see how close they were.
You are our 9001st visitor.
Challenge Trophies Won:

Shockwave

You'll miss the euromillions draw now  ;) You could have been Ã,£100 million to the good!
Shockwave ^ Codigos
Challenge Trophies Won:

combatking0

I was going to run the same analysis on Euromillions, but then I noticed they only use one set of balls & machine, so I just use the top 7 most drawn numbers as displayed on their site.

On the UK draw, there have been the following results:
01/11/2006: Matches:
   Ball set 7, Any Machine: 13 (1 Ball)
04/11/2006: Matches:
   Ball set 8, Topaz Machine: 30, 34 (1 Ball + Bonus Ball)
   Any Ball set, Topaz Machine: 30 (1 Ball)
08/11/2006: Matches:
   Any Ball set, Topaz Machine: 02, 18 (2 Balls)

There's something in it, I just know there is.  :o
You are our 9001st visitor.
Challenge Trophies Won:

lilw4t3rdr0p

Keep trying. You will get it!

combatking0

I just need a method for guessing the ball set & machine which will be used in advance.

I'll also re-program it to tell me what each combination of balls and machine it thinks is likely to produce.  :skint:
You are our 9001st visitor.
Challenge Trophies Won:

.:] Druid [:.

I second shockie, you really should focus on Euromillion ;)

[sheep]: im sure he wants to goto prison.. they didnt get him last time.. he was promised a big cock up his arse.. and no doubt looking forward to it.. lets hope he gets his wish this year.

lilw4t3rdr0p

druid: why he isn't going to give you any!!

te he. kidding.

I agree millions!!!!!

combatking0

OK, the predicted Euromillions balls are:
01, 03, 12, 49, 50 *1* *7*

Damn, I'll have to change my ticket.
You are our 9001st visitor.
Challenge Trophies Won:

bikemadness

Shockwave is right - lotto is rigged, it has to be.
Winning numbers are based on all the guesses.
Computers are big and fast enough to work out the least payout.
Previous results can't be analyzed, but there is a pattern - they tie together mathmatically.
Range of numbers to choose from is relative to the population size.

I've coded something simple and then pick good looking combinations.

Have a Yahappy day.
Have a Yahappy day.
I don't know what is wrong with the world - but I know how to fix it.

Shockwave

The things that made me think that the lottery was a fix most of all were first of all that Richard Branson didn't get it. He promised to give a lot more to good causes and he would have been a popular choice with the residents of the UK. Instead it was given to that Quango Camelot. Secondly have you noticed that at first, there were a lot of small payouts, like you'd buy a ticket and perhaps win a tenner or even get four numbers from time to time, even the small wins have dried up now.

To make it fair, Richard Branson should be given a chance to run it, and on the back of each ticket, there should be a range of check boxes with the names of good causes, and you should be able to choose say 5 of them for a proportion of your ticket price to go to.
Shockwave ^ Codigos
Challenge Trophies Won:

combatking0

#17
I have re-built the analyser using PHP and SQL, and I have compiled over 50% of the predictions into a text file (attached).
I will complete my listing this evening and re-post the completed file tomorrow.

If the balls drawn match up with those reccomended by the analysis (sorted by Machine and Set Of Balls), there may be something in this.

[edit]
I have included the PHP for this.
For it to work, you'll have to set up the following:
database name = "lotto"
table name = "lotto"
columns:
dateD (date)
ball1 (tinyint)
ball2 (tinyint)
ball3 (tinyint)
ball4 (tinyint)
ball5 (tinyint)
ball6 (tinyint)
bonus (tinyint)
Bset (tinyint)
machine (tinytext)

Then, access the page loadLotto.php. If you have a slow MYSQL service, it could take longer than 30 seconds to add the data from lotto.txt to the database - in this case, check the contents of the lotto table in the lotto database - find the earliest draw date, and delete every draw on that date and later in the lotto.txt file, and open loadLotto.php again.
Repeat until you don't see the 30 seconds error.

Then, go to showLotto.php, which can show you lottery draws selected by machine and set of balls. Make your choices and hit LIST on the form at the bottom. The page will then display the results and its forecast.

To update the draw list one at a time, navigate to the inputLotto.php page. This form allows you to enter the details of a single draw to the database. Enter the details here each time a new draw is made - make sure you know the date, each ball (including the bonus), the ball set and the machine - to make sure the next prediction is more accurate.
[/edit]
You are our 9001st visitor.
Challenge Trophies Won:

combatking0

#18
Here are the results of my preditcions.

Lottery results for Main Draw on 16/06/2007:
Main:   08, 17, 33, 41, 43, 45
Bonus:   37
Machine & Set:   Sapphire #2

Predictions:

Sapphire #2:   02, 20, 22, 41, 01, 06 (also 8,13,17-19,25,26,29,32,33,36-39,42,47-49) (Based on 4 Draws)
Matched:   41 (1) and 08, 17, 33, 37 (4) from auxiliary results
Rating:      3/7 (Below average)
Updated:   41, 02, 08, 17, 20, 22 (also 33,37) (Based on 5 Draws)

Sapphire #Any:   30, 48, 01, 02, 06, 08 (also 14,20,21,40,46,49) (Based on 29 Draws)
Matched:   08 (1)
Rating:      1/7 (Poor)
Updated:   30, 08, 48, 01, 02, 06 (also 14,20,21,40,41,46,49) (Based on 30 Draws)

Any #2:      37, 02, 38, 48, 10, 21 (also 25,40,47) (Based on 142 Draws)
Matched:   37 (1)
Rating:      1/7 (Poor)
Updated:   37, 02, 38, 48, 10, 21 (also 25,40,47) (Based on 143 Draws)

Winning Match:   (3 balls = Ã,£10)
Moonstone #Any:   17, 45, 48, 40, 43, 06 (also 23) (Based on 67 Draws)

Profit on playing every predicted line (72 lines):
-Ã,£72 + Ã,£10 = -Ã,£62 :(
You are our 9001st visitor.
Challenge Trophies Won:

Shockwave

So we're not millionaires yet then.. :(
Shockwave ^ Codigos
Challenge Trophies Won: