Dear Hyderabad Python Group,
Good Day.
Recently I was interested in learning how to use Python, a lot because I realized a great variety of things that this tool can help me. I saw on the official Python website that your team have a lot of discursion in the area of Problem Solving and Programming in Python and therefore I believe you can help me with my lawsuit. Although I have looked for some professionals in the field and searched for information on the internet, I have not succeeded in properly targeting the tools of this platform for my needs so I request that you kindly provide specialized support on the uses of the tools necessary to resolve this demand.
It happens that I have tried using Python to make lottery bets, but even though I have an idea how to direct the use of this tool I do not have the knowledge to put my ideas into practice.
My idea is to use some data provided by the raffle developer to try to "figure out the numbers drawn," although this information is not directly related to the numbers that are drawn. The lottery bet I want to bet on is the draw of 5 numbers from 1 to 80 that do not repeat each other in the same draw. The bettors can choose at least 5 numbers and a maximum of 15, and the higher the number of numbers chosen the higher the bet amount and the greater the probability of success of the numbers drawn. You win who hits 2, 3, 4 and all 5 numbers, of course the values will be larger according to the number of hit numbers, whoever hits all 5 numbers wins the total amount.
The data I would like to use in Python to try to figure out the numbers consists of the total collection amount from the draw, from the accumulated to the next draw, from the accumulated to the special draw (in a table) and from the probability of success (if possible 5 numbers drawn), in addition to the numbers drawn in the previous contest. Is there any form or formula I could use so that by giving random numbers to Python base on this information?
Quantity of numbers bet
Bet price
Probability of correctness (1 in ...)
If 5 correct numbers.
Probability of correctness (1 in ...)
If 4 correct numbers.
Probability of correctness (1 in ...)
If 3 correct numbers.
Probability of correctness (1 in ...)
If 2 correct numbers.
5
1.50
24,040,016
64,106
866
36
6
9.00
4,006,669
21,658
445
25
7
31.50
1,144,763
9,409
261
18
8
84.00
429,286
4,770
168
14
9
189.00
190,794
2,687
115
12
10
378.00
95,396
1,635
82
9
11
693.00
52,035
1,056
62
8
12
1,188.00
30,354
714
48
7
13
1,930.50
18,679
502
38
6
14
3,003.00
12,008
364
31
5.8
15
4,504.50
8,005
271
25
5.2
For example:
Total Accumulated
Accumulation for the Next Draw
Accumulated for the Special Draw
Sorted Numbers
Draw 1
7,562,295.00
7,562,295.00
101,661,983.00
9
26
29
37
48
Draw 2
7,960,633.50
4,411,350.00
102,024,325.00
32
45
56
63
67
Draw 3
8,853,382.50
130,000,000.00
102,427,303.00
80
80
80
80
80
In that case, how could I use the total collection information, the accumulated value for the next draw and the accumulated value for the special draw for the previous bets, and the probability of 5 numbers drawn in a single 5-numbered bet (1 / 24,040, 016) to try to find the numbers drawn from the next contest (Draw 4)?
So far I've only been able to program Python to choose random numbers individually from 1 to 80 by Prompt, without relating to the numbers you want. Would it be better to program Python to provide the numbers drawn in a group (in the case of 5 numbers group)? How would I do that?
Therefore, it would be possible, if you please, to give me specialized support in the present demand, that is to say, in the elaboration of the formula, or in the provision of information for me to elaborate a formula or some other idea that may be useful to solve this problem?
P.S.:
1) Another interesting information is that the gross premium corresponds to 45.3% of the Total Accumulated. Of this value:
35% are distributed among the hitters of the 5 numbers,
19% among 4-number hitters,
20% among 3-number hitters,
11% between the two-number hitters and
15% accumulate for the hitters of the 5 numbers of the Special Draw
If there is no winner in any award range, the amounts accumulate for the next contest, in the respective bands.
2) I installed a interpreter (Gnome/Gedit) and some packages (like pandas, Numpy, xls packages etc.), put I couldn't use it. I've been looking for a lot of information on Python accessory tools that could help me. But these tools are far removed from my knowledge on the subject and the tutorials and books I found do not explain very well some of these tools, for example Numpy, Scipy, lottery.py and D3.js, predictionIO etc.
Some accessed sites by me: I) http://predictionio.apache.org/install/
II) https://discuss.codecademy.com/t/python-code-improvement/228401
III) https://www.lotterypost.com/thread/300991
IV) http://pandas.pydata.org/pandas-docs/version/0.23/
V)https://github.com/franktudor/lottery/blob/master/README.md
VI) https://github.com/Milhound/Lottery/blob/master/Lottery.py
VII) https://codereview.stackexchange.com/questions/132810/python-lottery-game
VIII) https://www.skillshare.com/classes/Creating-a-Lottery-Number-Generator-using...
IX) http://christopheviau.com/d3_tutorial/
X) https://github.com/d3/d3/wiki
XI) http://www.datacommunitydc.org/blog/2013/01/d3-js-meta-tutorial/
XII) https://stats.stackexchange.com/questions/68662/using-deep-learning-for-time...
XIII) https://docs.python.org/3/library/random.html
3) Although I tried extensively I could not import Excel spreadsheets and tables to Python.
If it works we can split it! :)
Best regards,
Luis Roberto.