PDA

View Full Version : Python and Lottery (probabilities | predictions) any tips?



picturefreedom
December 12th, 2008, 08:14 AM
I couldn't find any related topics for this, so i'm making one :)

anyhow, as regular lotto player and as a python newbie, where should i start looking? any tutorials , concepts and modules for this topic is greatly apprecieted. :)

CptPicard
December 12th, 2008, 08:32 AM
Take it from someone whose main field of endeavour is writing code for professional sports betting operation... there's nothing there in lottery to be predicted and playing it is a fool's errand. Your expectancy of profit is dismally low.

mentallaxative
December 12th, 2008, 09:02 AM
Are you sure you are not falling for the gambler's fallacy?

jespdj
December 12th, 2008, 09:23 AM
The lotto is random, it is impossible to predict the outcome of the lotto. So there is no way you could ever write a computer program that predicts the outcome of the lotto.

If someone ever tries to sell you such a program, then you can be 100% sure that it's a scam.

CptPicard
December 12th, 2008, 09:52 AM
Actually there is one way to try to maximize winnings in lottery, and that is seeing which numbers are commonly played by others, so that if you do win, it's likely that there are no others sharing with you.

Of course, this is totally meaningless with regards to actual long term profitability, but still..

picturefreedom
December 12th, 2008, 09:57 AM
Are you sure you are not falling for the gambler's fallacy?

maybe i am, but then, i guess i'm just looking for somehing to spice up my picks.

picturefreedom
December 12th, 2008, 10:01 AM
Actually there is one way to try to maximize winnings in lottery, and that is seeing which numbers are commonly played by others, so that if you do win, it's likely that there are no others sharing with you.

Of course, this is totally meaningless with regards to actual long term profitability, but still..

will choosing frequent numbers drawn (programmaticaly in this context) , raise the activity of my chosen picks?

i'm not looking for good predictions, it would be stupid to think otherwise, i guess in python context, what's the easy way spot silly patterns?

frankleeee
December 12th, 2008, 11:34 AM
The lottery is generally a way of taxing the poor.

loell
December 12th, 2008, 12:07 PM
The lottery is generally a way of taxing the poor.

irrelevant unless expressed pythonically! :lolflag:


for patterns, err use regex :D

I dunno if pymvpa might be the one you're looking for..

cb951303
December 12th, 2008, 12:15 PM
if you have access to all winning numbers in the past you can do statistical analysis with python.

Delever
December 12th, 2008, 02:08 PM
if you have access to all winning numbers in the past you can do statistical analysis with python.

And next numbers will be (not) predicted :D

EDIT:
If there would be pattern in random lottery numbers, it would not be lottery, because numbers would not be random.

cb951303
December 12th, 2008, 02:59 PM
And next numbers will be (not) predicted :D

EDIT:
If there would be pattern in random lottery numbers, it would not be lottery, because numbers would not be random.

well of course he can't predict :D it would be good opportunity for him to develop his python skills though.

HelioJorge
March 22nd, 2013, 05:38 PM
I couldn't find any related topics for this, so i'm making one :)

anyhow, as regular lotto player and as a python newbie, where should i start looking? any tutorials , concepts and modules for this topic is greatly apprecieted. :)

Hi, the best I could come up with was: :arrow:


import randomnumbers = range(1, 50)chosen = []while len(chosen) < 6: number = random.choice(numbers) numbers.remove(number) chosen.append(number)chosen.sort()print("This week's numbers are", chosen)print("The bonus ball is", random.choice(numbers))I hope this helps.