Dark Bit Factory & Gravity
GENERAL => Projects => Topic started by: combatking0 on October 25, 2006
-
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.
-
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!
-
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.
-
Tell us next weeks numbers - Im not greedy, 5 will do!
-
Screw that. I want all six and i'll split it. Hows that?
-
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?".
-
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:
-
I've been neglecting this - I'll test the last 2-3 weeks of numbers tonight and see how close they were.
-
You'll miss the euromillions draw now ;) You could have been £100 million to the good!
-
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
-
Keep trying. You will get it!
-
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:
-
I second shockie, you really should focus on Euromillion ;)
-
druid: why he isn't going to give you any!!
te he. kidding.
I agree millions!!!!!
-
OK, the predicted Euromillions balls are:
01, 03, 12, 49, 50 *1* *7*
Damn, I'll have to change my ticket.
-
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.
-
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.
-
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]
-
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 :(
-
So we're not millionaires yet then.. :(
-
No, but if I had had £72 to play on lottery tickets on every draw, I'd be down by £62 already.
I'll play selectively for the time being, but Sapphire seems to get a lot of business lately. Not much data on it yet, but it could soon be one of the top 3 machines in terms of draws played.
-
Things are getting better - I'm up by £9 this week...
[edit]Damn, no I'm not - I read the numbers wrong]
Lottery results for Main Draw on 20/06/2007:
Main: 13,16,22,43,47,49
Bonus: 28
Machine & Set: Amethyst #4
Predictions:
Amethyst #4: 02, 07, 47, 10, 37, 43 (also 46) (Based on 14 Draws)
Matched: 43, 47 (2)
Rating: 2/7 (Fair)
Updated: 47, 02, 07, 43, 10, 22 (also 37,46) (Based on 15 Draws)
Amethyst #Any: 43, 34, 38, 24, 49, 19 (Based on 117 Draws)
Matched: 43, 49 (2)
Rating: 2/7 (Fair)
Updated: 43, 34, 38, 49, 24, 19 (also 22) (Based on 118 Draws)
Any #4: 36, 25, 44, 47, 07, 31 (also 38) (Based on 158 Draws)
Matched: 47 (1)
Rating: 1/7 (Poor)
Updated: 36, 25, 44, 47, 07, 31 (also 38,43) (Based on 159 Draws)
Winning Match: None
Profit on playing every predicted line (72 lines):
-£72 + £0 = -£72 :(
-----------------------------
I have posted the new predictions in a file below.
-
Whoops, nearly forgot to update before tonights draw:
Lottery results for Main Draw on 23/06/2007:
Main: 06,12,19,25,31,41
Bonus: 21
Machine & Set: Sapphire #3
Predictions:
Sapphire #3: 13, 30, 49, 05, 08, 14 (also 17-19,21,24,26,31,34,40,42,43,48) (Based on 3 Draws)
Matched: (0)
Rating: 0/7 (Dreadful)
Updated: 13, 19, 21, 30, 31, 49 (Based on 4 Draws)
Sapphire #Any: 30, 08, 48, 01, 02, 06 (also 14,20,21,40,41,46,49) (Based on 30 Draws)
Matched: 06 (1)
Rating: 1/7 (Poor)
Updated: 30, 06, 08, 21, 41, 48 (Based on 31 Draws)
Any #3: 43, 12, 22, 34, 40, 11 (also 17,45) (Based on 50 Draws)
Matched: 12 (1)
Rating: 1/7 (Poor)
Updated: 43, 12, 22, 34, 40, 11 (also 17,31,45) (Based on 51 Draws)
Winning Match: (3=£10)
Moonstone #4: 49, 06, 11, 12, 13, 19
Pearl #1: 18, 31, 19, 21, 25, 27
Pearl #3: 04, 12, 06, 09, 15, 25
Profit on playing every predicted line (72 lines):
-£72 + £30 = -£42
-
ck0,
dont be too downhearted about the results. Your method may be doing well, despite losing money. It may be that you are adjusting the odds in your favour by a small amount (a few %) but that isnt enough to win. In other words you may lose more by picking entirely random numbers. I suggest trying it a few times: pick completely random, and use your predictor...then compare. I know it doesn't make you a millionaire but its something.
Chris
-
Thanks Taj - I can see a pattern emerging, as one of the three associated numbers with each draw (Same machine & balls, just same machine, or just same balls) usually pull 2 correct numbers out of the blue.
You're right - the balls predicted are merely those more likely than the rest to be chosen, if only be a few %.
One day, the few % is all it might need.
Here are the results of last night's draw:
Lottery results for Main Draw on 27/06/2007:
Main: 07,13,23,40,41,48
Bonus: 01
Machine & Set: Amethyst #2
Predictions:
Amethyst #2: 04, 07, 25, 26, 11, 24 (also 39,48) (Based on 11 Draws)
Matched: 07 (1)
Rating: 1/7 (Poor)
Updated: 07, 04, 25, 26, 48, 11 (also 23,24,39) (Based on 12 Draws)
Amethyst #Any: 43, 34, 38, 49, 24, 19 (also 22) (Based on 118 Draws)
Matched: (0)
Rating: 0/7 (Dreadful)
Updated: 43, 34, 38, 49, 24, 07 (also 19,22) (Based on 119 Draws)
Any #2: 48, 37, 24, 01, 03, 17 (also 25) (Based on 50 Draws)
Matched: 48, 01 (1+1)
Rating: 2/7 (Below average)
Updated: 48, 37, 01, 24, 03, 17 (also 25,40) (Based on 51 Draws)
Winning Match: None
Profit on playing every predicted line (72 lines):
-£72 + £0 = -£72 :(
--------------------------------------------
Best match, 1 plus the bonus, but that I suppose counts as two for the sake of analysis.
-
Lottery results for Main Draw on 30/06/2007:
Main: 10,11,17,34,38,46
Bonus: 48
Machine & Set: Amethyst #4
Predictions:
Amethyst #4: 47, 02, 07, 43, 10, 22 (also 37,46) (Based on 15 Draws)
Matched: 10 (1)
Rating: 1/7 (Poor)
Updated: 47, 02, 07, 10, 43, 46 (Based on 16 Draws)
Amethyst #Any: 43, 34, 38, 49, 24, 07 (also 19,22) (Based on 119 Draws)
Matched: 38, 49 (2)
Rating: 2/7 (Below Average)
Updated: 43, 34, 38, 49, 24, 07 (also 19,22) (Based on 120 Draws)
Any #4: 47, 36, 43, 07, 10, 46 (Based on 49 Draws)
Matched: 10,46 (2)
Rating: 2/7 (Below average)
Updated: 47, 36, 43, 10, 46, 07 (Based on 50 Draws)
Winning Match: None
Profit on playing every predicted line (72 lines):
-£72 + £0 = -£72
-
Lottery results for Main Draw on 04/07/2007:
Main: 03,13,22,32,44,46
Bonus: 26
Machine & Set: Sapphire #3
Predictions:
Sapphire #3: 13, 19, 21, 30, 31, 49 (Based on 4 Draws)
Matched: 13 (1)
Rating: 1/7 (Poor)
Updated: 13, 19, 21, 26, 30, 31 (also 49) (Based on 5 Draws)
Sapphire #Any: 30, 06, 08, 21, 41, 48 (Based on 31 Draws)
Matched: (0)
Rating: 0/7 (Dreadful)
Updated: 30, 06, 08, 21, 41, 46 (also 48) (Based on 32 Draws)
Any #3: 43, 12, 22, 34, 40, 11 (also 17,31,45) (Based on 51 Draws)
Matched: 22 (1)
Rating: 1/7 (Poor)
Updated: 43, 12, 22, 34, 40, 11 (also 17,26,31,45) (Based on 52 Draws)
-
Lottery results for Main Draw on 07/07/2007:
Main: 16,22,28,30,33,35
Bonus: 37
Machine & Set: Amethyst #1
Predictions:
Amethyst #1: 06, 19, 05, 38, 43, 03 (also 36,46) (Based on 17 Draws)
Matched: (0)
Rating: 0/7 (Dreadful)
Updated: 06, 19, 05, 38, 43, 03 (also 4,16,33,36,46) (Based on 18 Draws)
Amethyst #Any: 43, 34, 38, 49, 24, 07 (also 19,22) (Based on 120 Draws)
Matched: (0)
Rating: 0/7 (Dreadful)
Updated: 43, 34, 38, 49, 22, 24 (Based on 121 Draws)
Any #1: 38, 06, 08, 19, 13, 21 (also 40) (Based on 51 Draws)
Matched: (0)
Rating: 0/7 (Dreadful)
Updated: 38, 06, 08, 19, 13, 21 (also 40) (Based on 52 Draws)
Winning Matches:
(Pearl machine + ball set 2) matched 16, 28, 33, a total of 3 balls.
(Garnet machine + ball set Any) matched 33, 35, 22, a total of 3 balls.
(Garnet machine + ball set 7) matched 30, 16, 22, a total of 3 balls.
Profit on playing every predicted line (72 lines):
-£72 + £30 = -£42
--------------------------------------------------------------------
And below is the new prediction set for this Wednesday's draw.
--------------------------------------------------------------------
ANY MACHINE
ANY SET 42, 43, 06, 19, 48, 49 (Based on 388 Draws) (was 42, 43, 06, 48, 19, 38 (also 49) (Based on 387 Draws))
Set 1 38, 06, 08, 19, 13, 21 (also 40) (Based on 52 Draws) (was 38, 06, 08, 19, 13, 21 (also 40) (Based on 51 Draws))
Set 2 48, 37, 01, 24, 03, 17 (also 25,40) (Based on 51 Draws)
Set 3 43, 12, 22, 34, 40, 11 (also 17,26,31,45) (Based on 52 Draws)
Set 4 47, 36, 43, 10, 46, 07 (Based on 50 Draws)
AMETHYST
ANY SET 43, 34, 38, 49, 22, 24 (Based on 121 Draws) (was 43, 34, 38, 49, 24, 07 (also 19,22) (Based on 120 Draws))
Set 1 06, 19, 05, 38, 43, 03 (also 4,16,33,36,46) (Based on 18 Draws) (was 06, 19, 05, 38, 43, 03 (also 36,46) (Based on 17 Draws))
Set 2 07, 04, 25, 26, 48, 11 (also 23,24,39) (Based on 12 Draws)
Set 3 12, 15, 17, 05, 11, 19 (also 21,24,29,31,38,43,44) (Based on 12 Draws)
Set 4 47, 02, 07, 10, 43, 46 (Based on 16 Draws)
SAPPHIRE
ANY SET 30, 06, 08, 21, 41, 46 (also 48) (Based on 32 Draws)
Set 1 01, 02, 07, 08, 12, 28 (also 37,40,48) (Based on 5 Draws)
Set 2 41, 02, 08, 17, 20, 22 (also 33,37) (Based on 5 Draws)
Set 3 13, 19, 21, 26, 30, 31 (also 49) (Based on 5 Draws)
Set 4 40, 04, 06, 15, 18, 23 (also 30,46) (Based on 5 Draws)
Lucky numbers this next draw:
6, 7, 8, 19, 43 + any one of the following:
2 or 11 or 12 or 17 or 21 or 22 or 38 or 46 or 48
Please take with a pinch of salt.
-
I'll stop now - I just wanted to document any successful predictions.
I'll carry on with the analysis and predictions, but I won't post them here unless anyone else wants me to.
-
Noooo dont stop, this topic appears as
"Lottery results analy..." which cracks me up each time.