Giter Club home page Giter Club logo

bayesian-stats-modelling-tutorial's Introduction

Binder

bayesian-stats-modelling-tutorial

How to do Bayesian statistical modelling using numpy and PyMC3

getting started

To get started, first identify whether you:

  1. Prefer to use the conda package manager (which ships with the Anaconda distribution of Python), or if you
  2. prefer to use pipenv, which is a package authored by Kenneth Reitz for package management with pip and virtualenv, or if you
  3. Do not want to mess around with dev-ops.
  4. Only want to view the website version of the notebooks.

1. Clone the repository locally

In your terminal, use git to clone the repository locally.

git clone https://github.com/ericmjl/bayesian-stats-modelling-tutorial

Alternatively, you can download the zip file of the repository at the top of the main page of the repository. If you prefer not to use git or don't have experience with it, this a good option.

2. Download Anaconda (if you haven't already)

If you do not already have the Anaconda distribution of Python 3, go get it (note: you can also set up your project environment w/out Anaconda using pip to install the required packages; however Anaconda is great for Data Science and we encourage you to use it).

3. Set up your environment

3a. conda users

If this is the first time you're setting up your compute environment, use the conda package manager to install all the necessary packages from the provided environment.yml file.

conda env create -f environment.yml

To activate the environment, use the conda activate command.

conda activate bayesian-modelling-tutorial

If you get an error activating the environment, use the older source activate command.

source activate bayesian-modelling-tutorial

To update the environment based on the environment.yml specification file, use the conda update command.

conda env update -f environment.yml

3b. pip users

Please install all of the packages listed in the environment.yml file manually. An example command would be:

pip install networkx scipy ...

3c. don't want to mess with dev-ops

If you don't want to mess around with dev-ops, click the following badge to get a Binder session on which you can compute and write code.

Binder

4a. Open your Jupyter notebook

In the terminal, execute jupyter notebook.

Navigate to the notebooks directory and open the notebook 01-Student-Probability_a_simulated_introduction.ipynb.

4b. Open your Jupyter notebook in Jupyter Lab!

In the terminal, execute jupyter lab.

Navigate to the notebooks directory and open the notebook 01-Student-Probability_a_simulated_introduction.ipynb.

Now, if you're using Jupyter lab, for Notebook 2, you'll need to get ipywidgets working. The documentation is here.

In short, you'll need node installed & you'll need to run the following in your terminal:

jupyter labextension install @jupyter-widgets/jupyterlab-manager

4c. Open your Jupyter notebook using Binder.

Launch Binder using the button at the top of this README.md. Voila!

4d. Want to view static HTML notebooks

If you're interested in only viewing the static HTML versions of the notebooks, the links are provided below:

Part 1: Bayesian Data Science by Simulation

Part 2: Bayesian Data Science by Probabilistic Programming

Acknowledgements

Development of this type of material is almost always a result of years of discussions between members of a community. We'd like to thank the community and to mention several people who have played pivotal roles in our understanding the the material: Michael Betancourt, Justin Bois, Allen Downey, Chris Fonnesbeck, Jake VanderPlas. Also, Andrew Gelman rocks!

Feedback

Please leave feedback for us here! We'll use this information to help improve the teaching and delivery of the material.

data credits

Please see individual notebooks for dataset attribution.

Further Reading & Resources

Further reading resources that are not specifically tied to any notebooks.

bayesian-stats-modelling-tutorial's People

Contributors

canyon289 avatar ericmjl avatar john-science avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.