Correct option description, reformat long lines
This commit is contained in:
1 parent
61f407979e
commit
bcdbb7181e
1 file changed
+19
-17
@@ -5,6 +5,7 @@ A Python project to analyze and pick lottery numbers using past draw results to
|
|||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
### Top Level
|
### Top Level
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
usage: main.py [-h] {update,record-count,generate-ticket,predict} ...
|
usage: main.py [-h] {update,record-count,generate-ticket,predict} ...
|
||||||
|
|
||||||
@@ -23,7 +24,8 @@ options:
|
|||||||
|
|
||||||
### Update
|
### Update
|
||||||
|
|
||||||
Scrape the game data from the source site and insert records into the database that are not present. A specific year can be selected as the starting year.
|
Scrape the game data from the source site and insert records into the database that are not present. A specific year can
|
||||||
|
be selected as the starting year.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
usage: main.py update [-h] [-y YEAR] [-d]
|
usage: main.py update [-h] [-y YEAR] [-d]
|
||||||
@@ -57,15 +59,15 @@ usage: main.py generate-ticket [-h] --game {MegaMillions,Powerball}
|
|||||||
options:
|
options:
|
||||||
-h, --help show this help message and exit
|
-h, --help show this help message and exit
|
||||||
--game {MegaMillions,Powerball}
|
--game {MegaMillions,Powerball}
|
||||||
The game to predict the next result for
|
The game to generate a random ticket for
|
||||||
```
|
```
|
||||||
|
|
||||||
### Predict
|
### Predict
|
||||||
|
|
||||||
Due to the lottery drawings being as randomized as possible, generating an accurate prediction is not possible. Many window sizes have been tried during testing
|
Due to the lottery drawings being as randomized as possible, generating an accurate prediction is not possible. Many
|
||||||
and none of them have yielded any hopeful results. The same numbers will most likely be generated with the same window size until the sample changes enough to
|
window sizes have been tried during testing and none of them have yielded any hopeful results. The same numbers will
|
||||||
cause changes in the selections. A different random seed number is chosen for each run to attempt to combat this behavior.
|
most likely be generated with the same window size until the sample changes enough to cause changes in the
|
||||||
cause changes in the selections. A different random seed number is chosen for each run to attempt to combat this behavior.
|
selections. A different random seed number is chosen for each run to attempt to combat this behavior.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
usage: main.py predict [-h] --game {MegaMillions,Powerball} [--window-size WINDOW_SIZE] [--test]
|
usage: main.py predict [-h] --game {MegaMillions,Powerball} [--window-size WINDOW_SIZE] [--test]
|
||||||
@@ -81,15 +83,14 @@ options:
|
|||||||
|
|
||||||
## Draw Dates
|
## Draw Dates
|
||||||
|
|
||||||
Mega Millions drawings are held every Tuesday and Friday. Powerball drawings are held every Monday,
|
Mega Millions drawings are held every Tuesday and Friday. Powerball drawings are held every Monday,
|
||||||
Wednesday, and Friday. In order to conserve processing cycles, the predictor will only request new data
|
Wednesday, and Friday. In order to conserve processing cycles, the predictor will only request new data
|
||||||
if there is the potential for new drawings to collect and save. Powerball can have up to 156/157 drawings
|
if there is the potential for new drawings to collect and save. Powerball can have up to 156/157 drawings
|
||||||
and Mega Millions can have up to 104/105 drawings per year, depending on how draw dates fall.
|
and Mega Millions can have up to 104/105 drawings per year, depending on how draw dates fall.
|
||||||
|
|
||||||
|
|
||||||
## Storage
|
## Storage
|
||||||
|
|
||||||
The data will eventually be stored in database tables for faster execution. This will also allow for dynamic
|
The data will eventually be stored in database tables for faster execution. This will also allow for dynamic
|
||||||
calls for more data based on the draw dates and last drawing stored locally.
|
calls for more data based on the draw dates and last drawing stored locally.
|
||||||
|
|
||||||
### Database Engine
|
### Database Engine
|
||||||
@@ -99,22 +100,22 @@ Sqlite has been chosen for portability and ease of use.
|
|||||||
## Historical Info
|
## Historical Info
|
||||||
|
|
||||||
The first Powerball drawing was on April 22, 1992.
|
The first Powerball drawing was on April 22, 1992.
|
||||||
The first Mega Millions drawing was on September 6, 1996. The original name was "The Big Game" and was
|
The first Mega Millions drawing was on September 6, 1996. The original name was "The Big Game" and was
|
||||||
rebranded to Mega Millions in May 2002.
|
rebranded to Mega Millions in May 2002.
|
||||||
|
|
||||||
However, each game has undergone rule changes that have altered the pool of numbers available for the main
|
However, each game has undergone rule changes that have altered the pool of numbers available for the main
|
||||||
(white) balls and their respective game balls as well. Due to this, the historical information used to
|
(white) balls and their respective game balls as well. Due to this, the historical information used to
|
||||||
analyze the draws should start at the most recent rule change date.
|
analyze the draws should start at the most recent rule change date.
|
||||||
|
|
||||||
**The most recent change for Powerball was on October 4, 2015, when the main ball pool increased from 59 to 69
|
**The most recent change for Powerball was on October 4, 2015, when the main ball pool increased from 59 to 69
|
||||||
numbers and the Powerball pool reduced from 35 to 26 numbers.**
|
numbers and the Powerball pool reduced from 35 to 26 numbers.**
|
||||||
|
|
||||||
**The most recent change for Mega Millions was on April 5, 2025, when the Megaball ball pool was decreased from
|
**The most recent change for Mega Millions was on April 5, 2025, when the Megaball ball pool was decreased from
|
||||||
25 to 24 numbers as well as the addition of a 10x multiplier. The existing pool of 70 numbers for the main
|
25 to 24 numbers as well as the addition of a 10x multiplier. The existing pool of 70 numbers for the main
|
||||||
game ball pool was part of changes made on October 28, 2017.**
|
game ball pool was part of changes made on October 28, 2017.**
|
||||||
|
|
||||||
Historical results can be scraped from the web and added to the database from the URLs below. The
|
Historical results can be scraped from the web and added to the database from the URLs below. The
|
||||||
results must be scraped by year. Changing the year in the URLs alters the resultset displayed.
|
results must be scraped by year. Changing the year in the URLs alters the resultset displayed.
|
||||||
|
|
||||||
Powerball: https://www.lotto.net/powerball/numbers/1992
|
Powerball: https://www.lotto.net/powerball/numbers/1992
|
||||||
Mega Millions: https://www.lotto.net/mega-millions/numbers/1996
|
Mega Millions: https://www.lotto.net/mega-millions/numbers/1996
|
||||||
@@ -169,6 +170,7 @@ LP_DATE_INSERT_FORMAT="%Y-%m-%d"
|
|||||||
# For pytest clean output
|
# For pytest clean output
|
||||||
PYTHONWARNINGS=ignore
|
PYTHONWARNINGS=ignore
|
||||||
```
|
```
|
||||||
|
|
||||||
## TO-DOs
|
## TO-DOs
|
||||||
|
|
||||||
1. ~~Review standard tests for sqlalchemy objects~~
|
1. ~~Review standard tests for sqlalchemy objects~~
|
||||||
|
|||||||
Reference in new issue
Block a user