{"id":21921447,"url":"https://github.com/firelemons/probability-programs","last_synced_at":"2026-05-18T09:06:04.965Z","repository":{"id":56696896,"uuid":"239203628","full_name":"FireLemons/Probability-Programs","owner":"FireLemons","description":"The scripts for Introduction to Probability by Charles M. Grinstead and J. Laurie Snell ported to python","archived":false,"fork":false,"pushed_at":"2020-12-12T08:02:53.000Z","size":431,"stargazers_count":2,"open_issues_count":6,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T20:56:08.751Z","etag":null,"topics":["mathematics","probability","python"],"latest_commit_sha":null,"homepage":"","language":"Mathematica","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/FireLemons.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing/mathematica_scripts/Book Programs.3.0/Chapter 1 (3.0)/CoinTosses.Chpt1.mat.m","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-08T21:00:30.000Z","updated_at":"2023-07-10T06:42:04.000Z","dependencies_parsed_at":"2022-08-15T23:31:08.687Z","dependency_job_id":null,"html_url":"https://github.com/FireLemons/Probability-Programs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FireLemons/Probability-Programs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FireLemons%2FProbability-Programs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FireLemons%2FProbability-Programs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FireLemons%2FProbability-Programs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FireLemons%2FProbability-Programs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FireLemons","download_url":"https://codeload.github.com/FireLemons/Probability-Programs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FireLemons%2FProbability-Programs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33172173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T05:43:36.989Z","status":"ssl_error","status_checked_at":"2026-05-18T05:43:19.133Z","response_time":71,"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":["mathematics","probability","python"],"created_at":"2024-11-28T20:24:58.418Z","updated_at":"2026-05-18T09:06:04.947Z","avatar_url":"https://github.com/FireLemons.png","language":"Mathematica","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Probability-Programs\nThe scripts for [Introduction to Probability by Charles M. Grinstead and J. Laurie Snell](http://www.dartmouth.edu/~chance/teaching_aids/books_articles/probability_book/book.html) ported to python  \n  \n## Setup\nInstall Python 3.8 and git  \n  \nOther versions of python 3.X may work  \nTo install using a different version of python, open `Pipfile` in a text editor and edit the version number  \n\n    [requires]\n    python_version = \"3.8\"\n\n### Linux\nMake sure pip for python 3 is installed  \n`pip3 --version` should not print an error  \n  \nInstall pipenv via pip  \n`pip3 install --user pipenv`  \n\nClone the repo  \n`git clone git@github.com:FireLemons/Probability-Programs.git`  \n  \nInstall the project dependencies  \n`cd Probability-Programs`  \n`pipenv install`  \n**this may take several minutes**\n\nInstall tkinter to be able to display graphs\n`sudo apt install python3-tk`\n\n### Windows  \nMake sure pip for python 3 is installed  \nMake sure the `\"%AppData%\\Python\\Python3X\\Scripts\"` directory is added to PATH env variable.  \n`pip3 --version` should not print an error  \n  \nInstall pipenv via pip  \n`pip install pipenv`  \n\nClone the repo  \n`git clone git@github.com:FireLemons/Probability-Programs.git`  \n\nInstall the project dependencies  \n`cd Probability-Programs`  \n`pipenv install`  \n**this may take several minutes**\n\nTkinter comes bundled with Windows installer. Use `python -m tkinter` to check if Tkinter is installed properly\n  \n### MacOS  \nHelp Wanted  \n  \n## Running Programs  \nrun `pipenv shell` in the project folder to start a subshell with all the dependencies loaded  \n  \nIn the subshell, run a program by typing `python3 name_of_program.py`.  \n\n## Contributing  \nThis repo aims to port the wolfram mathematica programs found [here](http://www.dartmouth.edu/~chance/teaching_aids/books_articles/probability_book/BookAlgorithms.html) to python.  \n  \nWhen I first discovered the book, I went to download the programs and saw that they were all written in proprietary languages so I decided to port the programs to python.  \n  \nThe program files don't have to be 1 to 1 with the mathematica files. If you can find a way to simplify or improve a program, go for it.  \n  \nWhen creating a program, first copy contributing/template.py and edit from there.\n  \nWhen editing programs please keep in mind they may need to be modified by someone who may not have a background in programming.  \n  \nFor the near future I only plan to port standalone programs. Eventually I would like help to port the mathematica notebook files to jupyter notebook.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirelemons%2Fprobability-programs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirelemons%2Fprobability-programs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirelemons%2Fprobability-programs/lists"}