{"id":34539691,"url":"https://github.com/patzedi/powerballprobabilities","last_synced_at":"2026-04-24T17:03:10.982Z","repository":{"id":181329065,"uuid":"666595454","full_name":"PatzEdi/PowerballProbabilities","owner":"PatzEdi","description":"Powerball Lottery Data Probability loader and Parser written in Python","archived":false,"fork":false,"pushed_at":"2023-08-26T04:51:20.000Z","size":39,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-25T17:47:06.232Z","etag":null,"topics":["data","dataset","lottery","lottery-ticket-hypothesis","machine-learning"],"latest_commit_sha":null,"homepage":"https://patzedi.github.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PatzEdi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-15T00:13:13.000Z","updated_at":"2025-12-16T19:42:41.000Z","dependencies_parsed_at":"2023-07-15T01:45:49.520Z","dependency_job_id":null,"html_url":"https://github.com/PatzEdi/PowerballProbabilities","commit_stats":null,"previous_names":["patzedi/powerballprobabilities"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PatzEdi/PowerballProbabilities","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatzEdi%2FPowerballProbabilities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatzEdi%2FPowerballProbabilities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatzEdi%2FPowerballProbabilities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatzEdi%2FPowerballProbabilities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PatzEdi","download_url":"https://codeload.github.com/PatzEdi/PowerballProbabilities/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatzEdi%2FPowerballProbabilities/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32232629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data","dataset","lottery","lottery-ticket-hypothesis","machine-learning"],"created_at":"2025-12-24T06:14:51.119Z","updated_at":"2026-04-24T17:03:10.976Z","avatar_url":"https://github.com/PatzEdi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PowerballProbabilities\n Powerball Lottery Data Probability loader and Parser written in Python\n\n**Thank you [Ac31415](https://github.com/Ac31415) and [kmayakova](https://github.com/Ac31415) for starring the repository!**\n\n## Update:\n\nPlease note that initial release contained wrong information. I had fogotten to filter out certain results before/after some reformatting Powerball had made on their numbers. Now, all numbers before October 4, 2015 are filtered out, as on that date, Powerball changed their ranges from 1-59 to 1-69 for the normal white balls, and 1-35 to 1-26 for the Powerball. I had forgotten to filter out those before the specific date, leading to incorrect (biased) probabilities. The below information is correct, though, and it is based on the data taken from October (7th, the first ticket after format changes), 2015, up until present day. Apologies for the inconvenience.\n\n## Usage\n\nThis project/study can be used to determine the probabilites of each number through the past decade or so of powerball winning ticket extractions. Note that the probabilities are extracted from October 4th, 2015 and up due to format changes. More information on that above.\n\nYou can enter the path in the variable **lottery_dataset_path** that leads to the lottery.txt file, which can be downloaded from [here](https://catalog.data.gov/dataset/lottery-powerball-winning-numbers-beginning-2010). Download the csv, and change the extension from csv to txt.\n\nPut the path to the file that gets created in the end with all the data in the **parsed_data_save_path** variable.\n\nRun the script. The outputted file will contain something like this:\n\n\n```\n\nLottery Number Probabilities from 2010 to 2023 (Greatest to Least Probabilities) (Filtered October 4th, 2015 and Up: Format Changes)\nNumber: 61 , Probability: 1.9469026548672566\nNumber: 32 , Probability: 1.8805309734513276\nNumber: 21 , Probability: 1.836283185840708\nNumber: 36 , Probability: 1.8141592920353982\nNumber: 63 , Probability: 1.7699115044247788\nNumber: 23 , Probability: 1.7699115044247788\nNumber: 69 , Probability: 1.7477876106194692\nNumber: 39 , Probability: 1.6592920353982303\nNumber: 59 , Probability: 1.6592920353982303\nNumber: 62 , Probability: 1.6371681415929202\nNumber: 64 , Probability: 1.6371681415929202\nNumber: 37 , Probability: 1.6150442477876108\nNumber: 47 , Probability: 1.592920353982301\nNumber: 3 , Probability: 1.592920353982301\nNumber: 28 , Probability: 1.592920353982301\nNumber: 33 , Probability: 1.592920353982301\nNumber: 53 , Probability: 1.5707964601769913\nNumber: 20 , Probability: 1.5707964601769913\nNumber: 27 , Probability: 1.5265486725663717\nNumber: 56 , Probability: 1.5265486725663717\nNumber: 68 , Probability: 1.5265486725663717\nNumber: 2 , Probability: 1.5265486725663717\nNumber: 15 , Probability: 1.5265486725663717\nNumber: 17 , Probability: 1.5265486725663717\nNumber: 10 , Probability: 1.5044247787610618\nNumber: 16 , Probability: 1.5044247787610618\nNumber: 44 , Probability: 1.4823008849557522\nNumber: 67 , Probability: 1.4823008849557522\nNumber: 6 , Probability: 1.4823008849557522\nNumber: 45 , Probability: 1.4823008849557522\nNumber: 52 , Probability: 1.4380530973451326\nNumber: 57 , Probability: 1.4380530973451326\nNumber: 18 , Probability: 1.4380530973451326\nNumber: 54 , Probability: 1.4380530973451326\nNumber: 66 , Probability: 1.415929203539823\nNumber: 12 , Probability: 1.415929203539823\nNumber: 19 , Probability: 1.415929203539823\nNumber: 40 , Probability: 1.415929203539823\nNumber: 50 , Probability: 1.3938053097345133\nNumber: 55 , Probability: 1.3938053097345133\nNumber: 14 , Probability: 1.3938053097345133\nNumber: 30 , Probability: 1.3938053097345133\nNumber: 58 , Probability: 1.3938053097345133\nNumber: 22 , Probability: 1.3938053097345133\nNumber: 38 , Probability: 1.3716814159292035\nNumber: 8 , Probability: 1.3716814159292035\nNumber: 11 , Probability: 1.3716814159292035\nNumber: 41 , Probability: 1.3716814159292035\nNumber: 31 , Probability: 1.3495575221238938\nNumber: 42 , Probability: 1.3495575221238938\nNumber: 1 , Probability: 1.3274336283185841\nNumber: 7 , Probability: 1.3053097345132743\nNumber: 24 , Probability: 1.3053097345132743\nNumber: 48 , Probability: 1.3053097345132743\nNumber: 65 , Probability: 1.3053097345132743\nNumber: 5 , Probability: 1.2831858407079646\nNumber: 43 , Probability: 1.2831858407079646\nNumber: 9 , Probability: 1.2831858407079646\nNumber: 51 , Probability: 1.261061946902655\nNumber: 60 , Probability: 1.261061946902655\nNumber: 29 , Probability: 1.238938053097345\nNumber: 35 , Probability: 1.2168141592920354\nNumber: 46 , Probability: 1.2168141592920354\nNumber: 4 , Probability: 1.1946902654867257\nNumber: 25 , Probability: 1.1946902654867257\nNumber: 49 , Probability: 1.1725663716814159\nNumber: 26 , Probability: 1.1504424778761062\nNumber: 34 , Probability: 1.1061946902654867\nNumber: 13 , Probability: 1.0398230088495575\n\nSum of Probabilities (Numbers): 100.00000000000003\n\n\nPowerball Numbers\nPowerball: 24, Powerball Probability: 5.199115044247788\nPowerball: 18, Powerball Probability: 5.0884955752212395\nPowerball: 4, Powerball Probability: 4.977876106194691\nPowerball: 14, Powerball Probability: 4.424778761061947\nPowerball: 26, Powerball Probability: 4.20353982300885\nPowerball: 11, Powerball Probability: 4.20353982300885\nPowerball: 25, Powerball Probability: 4.092920353982301\nPowerball: 3, Powerball Probability: 3.982300884955752\nPowerball: 6, Powerball Probability: 3.982300884955752\nPowerball: 10, Powerball Probability: 3.982300884955752\nPowerball: 13, Powerball Probability: 3.8716814159292032\nPowerball: 19, Powerball Probability: 3.8716814159292032\nPowerball: 21, Powerball Probability: 3.8716814159292032\nPowerball: 5, Powerball Probability: 3.761061946902655\nPowerball: 8, Powerball Probability: 3.761061946902655\nPowerball: 9, Powerball Probability: 3.650442477876106\nPowerball: 1, Powerball Probability: 3.5398230088495577\nPowerball: 7, Powerball Probability: 3.5398230088495577\nPowerball: 17, Powerball Probability: 3.4292035398230087\nPowerball: 2, Powerball Probability: 3.4292035398230087\nPowerball: 20, Powerball Probability: 3.4292035398230087\nPowerball: 22, Powerball Probability: 3.3185840707964607\nPowerball: 12, Powerball Probability: 3.2079646017699117\nPowerball: 23, Powerball Probability: 3.2079646017699117\nPowerball: 15, Powerball Probability: 2.9867256637168142\nPowerball: 16, Powerball Probability: 2.9867256637168142\n\nSum of Probabilities (Powerball): 99.99999999999999\n\n```\n\n## How It Works\n\n1. Gets the data from the file linked above (lottery data) using regex.\n2. Splits the first five numbers from the last (differentiate between normal numbers and powerball)\n3. Appends each number from the two categories to get a list of all numbers put together (used later on to count probability).\n4. Creates a vocab for each of the lists containing all numbers (one for the normal 5 numbers, one for powerball numbers), by using **set** on the lists.\n5. Iterates through each number in the vocab (first, for the first 5 numbers), and for each number, iterates through each number in the total numbers list. If the integer iterated through the total numbers list is equal to the number in the vocab, a count adds 1.\n6. Probability is calculated by dividing the counter by the total number amount.\n7. The numbers are then associated and ordered in order from greatest to least with a number and their matching probabily. So, the numbers at the top are the most probable.\n\n## User Notice\n- I am not responsible for any damage caused by the data above.\n- The data is not used for any reason to cause a question towards Powerball and their reputation, concerning bias in their numbers, but it can of course be of use to you if you are researching such a topic. Just as a note, the trends do match random trends. \n\n## Credits:\n\n\n - https://catalog.data.gov/dataset/lottery-powerball-winning-numbers-beginning-2010 Thank you State of New York for the data, very helpful!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatzedi%2Fpowerballprobabilities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatzedi%2Fpowerballprobabilities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatzedi%2Fpowerballprobabilities/lists"}