Git Product home page Git Product logo

probability-programs's Introduction

Probability-Programs

The scripts for Introduction to Probability by Charles M. Grinstead and J. Laurie Snell ported to python

Setup

Install Python 3.8 and git

Other versions of python 3.X may work
To install using a different version of python, open Pipfile in a text editor and edit the version number

[requires]
python_version = "3.8"

Linux

Make sure pip for python 3 is installed
pip3 --version should not print an error

Install pipenv via pip
pip3 install --user pipenv

Clone the repo
git clone [email protected]:FireLemons/Probability-Programs.git

Install the project dependencies
cd Probability-Programs
pipenv install
this may take several minutes

Install tkinter to be able to display graphs sudo apt install python3-tk

Windows

Help wanted

MacOS

Help Wanted

Running Programs

run pipenv shell in the project folder to start a subshell with all the dependencies loaded

In the subshell, run a program by typing python3 name_of_program.py.

Contributing

This repo aims to port the wolfram mathematica programs found here to python.

When 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.

The 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.

When creating a program, first copy contributing/template.py and edit from there.

When editing programs please keep in mind they may need to be modified by someone who may not have a background in programming.

For the near future I only plan to port standalone programs. Eventually I would like to port the mathematica notebook files to jupyter notebook.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.